xref: /openbmc/linux/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
166606aafSAlexander Shiyan* Microchip MCP251X stand-alone CAN controller device tree bindings
266606aafSAlexander Shiyan
366606aafSAlexander ShiyanRequired properties:
466606aafSAlexander Shiyan - compatible: Should be one of the following:
566606aafSAlexander Shiyan   - "microchip,mcp2510" for MCP2510.
666606aafSAlexander Shiyan   - "microchip,mcp2515" for MCP2515.
70df82dcdSSean Nyekjaer   - "microchip,mcp25625" for MCP25625.
866606aafSAlexander Shiyan - reg: SPI chip select.
966606aafSAlexander Shiyan - clocks: The clock feeding the CAN controller.
1066606aafSAlexander Shiyan - interrupts: Should contain IRQ line for the CAN controller.
1166606aafSAlexander Shiyan
1266606aafSAlexander ShiyanOptional properties:
1366606aafSAlexander Shiyan - vdd-supply: Regulator that powers the CAN controller.
1466606aafSAlexander Shiyan - xceiver-supply: Regulator that powers the CAN transceiver.
15*864e48ebSMarc Kleine-Budde - gpio-controller: Indicates this device is a GPIO controller.
16*864e48ebSMarc Kleine-Budde - #gpio-cells: Should be two. The first cell is the pin number and
17*864e48ebSMarc Kleine-Budde                the second cell is used to specify the gpio polarity.
1866606aafSAlexander Shiyan
1966606aafSAlexander ShiyanExample:
2066606aafSAlexander Shiyan	can0: can@1 {
2166606aafSAlexander Shiyan		compatible = "microchip,mcp2515";
2266606aafSAlexander Shiyan		reg = <1>;
2366606aafSAlexander Shiyan		clocks = <&clk24m>;
2466606aafSAlexander Shiyan		interrupt-parent = <&gpio4>;
2514243910SMarc Kleine-Budde		interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
2666606aafSAlexander Shiyan		vdd-supply = <&reg5v0>;
2766606aafSAlexander Shiyan		xceiver-supply = <&reg5v0>;
28*864e48ebSMarc Kleine-Budde		gpio-controller;
29*864e48ebSMarc Kleine-Budde		#gpio-cells = <2>;
3066606aafSAlexander Shiyan	};
31