diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-12-21 00:01:41 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-12-21 09:04:24 -0500 |
commit | 66606aafd8cd6cffbefa463b27e1f16e793e40a9 (patch) | |
tree | d4b9c8e4d0fdfe8fb99306a73747d287f0e34985 /Documentation | |
parent | c0ebbdd6b57949775d428f00b8696a4078f86ac4 (diff) |
can: mcp251x: Add device tree support
This patch adds Device Tree support to the Microchip MCP251X driver.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt b/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt new file mode 100644 index 000000000000..ee3723beb701 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt | |||
@@ -0,0 +1,25 @@ | |||
1 | * Microchip MCP251X stand-alone CAN controller device tree bindings | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Should be one of the following: | ||
5 | - "microchip,mcp2510" for MCP2510. | ||
6 | - "microchip,mcp2515" for MCP2515. | ||
7 | - reg: SPI chip select. | ||
8 | - clocks: The clock feeding the CAN controller. | ||
9 | - interrupt-parent: The parent interrupt controller. | ||
10 | - interrupts: Should contain IRQ line for the CAN controller. | ||
11 | |||
12 | Optional properties: | ||
13 | - vdd-supply: Regulator that powers the CAN controller. | ||
14 | - xceiver-supply: Regulator that powers the CAN transceiver. | ||
15 | |||
16 | Example: | ||
17 | can0: can@1 { | ||
18 | compatible = "microchip,mcp2515"; | ||
19 | reg = <1>; | ||
20 | clocks = <&clk24m>; | ||
21 | interrupt-parent = <&gpio4>; | ||
22 | interrupts = <13 0x2>; | ||
23 | vdd-supply = <®5v0>; | ||
24 | xceiver-supply = <®5v0>; | ||
25 | }; | ||