diff options
author | AnilKumar Ch <anilkumar@ti.com> | 2012-08-02 09:13:10 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-09-21 17:58:47 -0400 |
commit | 2469627d175c1d6d7812a1395dd3ef053a0e65b3 (patch) | |
tree | 8ee10f2f87ddccc8fa6160e9d73bfd93b33b57ac /Documentation/devicetree/bindings/net | |
parent | f27b1db95d047d05e8d4dd22813b1078267892f2 (diff) |
can: c_can: Add device tree support to Bosch C_CAN/D_CAN controller
Add device tree support to C_CAN/D_CAN controller and usage details
are added to device tree documentation. Driver was tested on AM335x
EVM.
Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
For the of binding doc:
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'Documentation/devicetree/bindings/net')
-rw-r--r-- | Documentation/devicetree/bindings/net/can/c_can.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/can/c_can.txt b/Documentation/devicetree/bindings/net/can/c_can.txt new file mode 100644 index 000000000000..8f1ae81228e3 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/c_can.txt | |||
@@ -0,0 +1,49 @@ | |||
1 | Bosch C_CAN/D_CAN controller Device Tree Bindings | ||
2 | ------------------------------------------------- | ||
3 | |||
4 | Required properties: | ||
5 | - compatible : Should be "bosch,c_can" for C_CAN controllers and | ||
6 | "bosch,d_can" for D_CAN controllers. | ||
7 | - reg : physical base address and size of the C_CAN/D_CAN | ||
8 | registers map | ||
9 | - interrupts : property with a value describing the interrupt | ||
10 | number | ||
11 | |||
12 | Optional properties: | ||
13 | - ti,hwmods : Must be "d_can<n>" or "c_can<n>", n being the | ||
14 | instance number | ||
15 | |||
16 | Note: "ti,hwmods" field is used to fetch the base address and irq | ||
17 | resources from TI, omap hwmod data base during device registration. | ||
18 | Future plan is to migrate hwmod data base contents into device tree | ||
19 | blob so that, all the required data will be used from device tree dts | ||
20 | file. | ||
21 | |||
22 | Example: | ||
23 | |||
24 | Step1: SoC common .dtsi file | ||
25 | |||
26 | dcan1: d_can@481d0000 { | ||
27 | compatible = "bosch,d_can"; | ||
28 | reg = <0x481d0000 0x2000>; | ||
29 | interrupts = <55>; | ||
30 | interrupt-parent = <&intc>; | ||
31 | status = "disabled"; | ||
32 | }; | ||
33 | |||
34 | (or) | ||
35 | |||
36 | dcan1: d_can@481d0000 { | ||
37 | compatible = "bosch,d_can"; | ||
38 | ti,hwmods = "d_can1"; | ||
39 | reg = <0x481d0000 0x2000>; | ||
40 | interrupts = <55>; | ||
41 | interrupt-parent = <&intc>; | ||
42 | status = "disabled"; | ||
43 | }; | ||
44 | |||
45 | Step 2: board specific .dts file | ||
46 | |||
47 | &dcan1 { | ||
48 | status = "okay"; | ||
49 | }; | ||