summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.txt
blob: 33c5c28f1455906d862ecaaeb8220634ca78fa67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
* Microchip MCP2517 stand-alone CAN controller device tree bindings

Required properties:
 - compatible: Should be one of the following:
   - "microchip,mcp2517fd" for MCP2517fd.
   - "microchip,mcp2518fd" for MCP2518fd.
 - reg: SPI chip select.
 - clocks: The clock feeding the CAN controller.
 - interrupt-parent: The parent interrupt controller.
 - interrupts: Should contain IRQ line for the CAN controller.
 - gpio-controller: Marks the device node as a GPIO controller

Optional properties:
 - vdd-supply: Regulator that powers the CAN controller.
 - xceiver-supply: Regulator that powers the CAN transceiver.
 - microchip,clock-out-div = <0|1|2|4|10>: Clock output pin divider
					   0 = Start of Frame output
					   default: 10
 - microchip,clock-allways-on: bool: Do not disable the clock if CAN
				     is inactive. Thus a clock on the
				     clko pin will not be stopped.
				     This results in a higher standby
				     current.
 - microchip,clock-div2: bool: divide the internal clock by 2
 - microchip,gpio-open-drain: bool: enable open-drain for all pins
                                    (except cantx)
 - microchip,gpio0-xstandby: bool: enable xstandby functionality on gpio 0

Example:
	can0: can@1 {
		compatible = "microchip,mcp2517fd";
		reg = <1>;
		clocks = <&clk24m>;
		interrupt-parent = <&gpio4>;
		interrupts = <13 0x8>;
		vdd-supply = <&reg5v0>;
		xceiver-supply = <&reg5v0>;
		gpio-controller;
	};