AnilKumar Ch | 2469627 | 2012-08-02 18:43:10 +0530 | [diff] [blame] | 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 | }; |