can: c_can: Add syscon/regmap RAMINIT mechanism
[cascardo/linux.git] / Documentation / devicetree / bindings / net / can / c_can.txt
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 - syscon-raminit        : Handle to system control region that contains the
16                           RAMINIT register, register offset to the RAMINIT
17                           register and the CAN instance number (0 offset).
18
19 Note: "ti,hwmods" field is used to fetch the base address and irq
20 resources from TI, omap hwmod data base during device registration.
21 Future plan is to migrate hwmod data base contents into device tree
22 blob so that, all the required data will be used from device tree dts
23 file.
24
25 Example:
26
27 Step1: SoC common .dtsi file
28
29         dcan1: d_can@481d0000 {
30                 compatible = "bosch,d_can";
31                 reg = <0x481d0000 0x2000>;
32                 interrupts = <55>;
33                 interrupt-parent = <&intc>;
34                 status = "disabled";
35         };
36
37 (or)
38
39         dcan1: d_can@481d0000 {
40                 compatible = "bosch,d_can";
41                 ti,hwmods = "d_can1";
42                 reg = <0x481d0000 0x2000>;
43                 interrupts = <55>;
44                 interrupt-parent = <&intc>;
45                 status = "disabled";
46         };
47
48 Step 2: board specific .dts file
49
50         &dcan1 {
51                 status = "okay";
52         };