xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Microchip MCP251X stand-alone CAN controller device tree bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun - compatible: Should be one of the following:
5*4882a593Smuzhiyun   - "microchip,mcp2510" for MCP2510.
6*4882a593Smuzhiyun   - "microchip,mcp2515" for MCP2515.
7*4882a593Smuzhiyun   - "microchip,mcp25625" for MCP25625.
8*4882a593Smuzhiyun - reg: SPI chip select.
9*4882a593Smuzhiyun - clocks: The clock feeding the CAN controller.
10*4882a593Smuzhiyun - interrupts: Should contain IRQ line for the CAN controller.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunOptional properties:
13*4882a593Smuzhiyun - vdd-supply: Regulator that powers the CAN controller.
14*4882a593Smuzhiyun - xceiver-supply: Regulator that powers the CAN transceiver.
15*4882a593Smuzhiyun - gpio-controller: Indicates this device is a GPIO controller.
16*4882a593Smuzhiyun - #gpio-cells: Should be two. The first cell is the pin number and
17*4882a593Smuzhiyun                the second cell is used to specify the gpio polarity.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunExample:
20*4882a593Smuzhiyun	can0: can@1 {
21*4882a593Smuzhiyun		compatible = "microchip,mcp2515";
22*4882a593Smuzhiyun		reg = <1>;
23*4882a593Smuzhiyun		clocks = <&clk24m>;
24*4882a593Smuzhiyun		interrupt-parent = <&gpio4>;
25*4882a593Smuzhiyun		interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
26*4882a593Smuzhiyun		vdd-supply = <&reg5v0>;
27*4882a593Smuzhiyun		xceiver-supply = <&reg5v0>;
28*4882a593Smuzhiyun		gpio-controller;
29*4882a593Smuzhiyun		#gpio-cells = <2>;
30*4882a593Smuzhiyun	};
31