blob: 381f8fb3e865a0abbc2e4414f28293654baa6f26 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001* Microchip MCP251X stand-alone CAN controller device tree bindings
2
3Required properties:
4 - compatible: Should be one of the following:
5 - "microchip,mcp2510" for MCP2510.
6 - "microchip,mcp2515" for MCP2515.
7 - "microchip,mcp25625" for MCP25625.
8 - reg: SPI chip select.
9 - clocks: The clock feeding the CAN controller.
10 - interrupts: Should contain IRQ line for the CAN controller.
11
12Optional properties:
13 - vdd-supply: Regulator that powers the CAN controller.
14 - xceiver-supply: Regulator that powers the CAN transceiver.
15 - gpio-controller: Indicates this device is a GPIO controller.
16 - #gpio-cells: Should be two. The first cell is the pin number and
17 the second cell is used to specify the gpio polarity.
18
19Example:
20 can0: can@1 {
21 compatible = "microchip,mcp2515";
22 reg = <1>;
23 clocks = <&clk24m>;
24 interrupt-parent = <&gpio4>;
25 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
26 vdd-supply = <&reg5v0>;
27 xceiver-supply = <&reg5v0>;
28 gpio-controller;
29 #gpio-cells = <2>;
30 };