summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/net/can
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-12-21 09:01:41 +0400
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-12-21 15:04:24 +0100
commit66606aafd8cd6cffbefa463b27e1f16e793e40a9 (patch)
treed4b9c8e4d0fdfe8fb99306a73747d287f0e34985 /Documentation/devicetree/bindings/net/can
parentc0ebbdd6b57949775d428f00b8696a4078f86ac4 (diff)
downloadblackbird-op-linux-66606aafd8cd6cffbefa463b27e1f16e793e40a9.tar.gz
blackbird-op-linux-66606aafd8cd6cffbefa463b27e1f16e793e40a9.zip
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/devicetree/bindings/net/can')
-rw-r--r--Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt25
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 @@
+* Microchip MCP251X stand-alone CAN controller device tree bindings
+
+Required properties:
+ - compatible: Should be one of the following:
+ - "microchip,mcp2510" for MCP2510.
+ - "microchip,mcp2515" for MCP2515.
+ - 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.
+
+Optional properties:
+ - vdd-supply: Regulator that powers the CAN controller.
+ - xceiver-supply: Regulator that powers the CAN transceiver.
+
+Example:
+ can0: can@1 {
+ compatible = "microchip,mcp2515";
+ reg = <1>;
+ clocks = <&clk24m>;
+ interrupt-parent = <&gpio4>;
+ interrupts = <13 0x2>;
+ vdd-supply = <&reg5v0>;
+ xceiver-supply = <&reg5v0>;
+ };
OpenPOWER on IntegriCloud