diff options
-rw-r--r-- | Documentation/devicetree/bindings/arm/omap/l4.txt | 1 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/arm/omap/prcm.txt | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/am33xx-clocks.dtsi | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/am33xx.dtsi | 87 | ||||
-rw-r--r-- | arch/arm/mach-omap2/control.c | 2 |
5 files changed, 51 insertions, 43 deletions
diff --git a/Documentation/devicetree/bindings/arm/omap/l4.txt b/Documentation/devicetree/bindings/arm/omap/l4.txt index 64020220024d..d333f0a9044e 100644 --- a/Documentation/devicetree/bindings/arm/omap/l4.txt +++ b/Documentation/devicetree/bindings/arm/omap/l4.txt | |||
@@ -6,6 +6,7 @@ Required properties: | |||
6 | - compatible : Should be "ti,omap2-l4" for OMAP2 family l4 core bus | 6 | - compatible : Should be "ti,omap2-l4" for OMAP2 family l4 core bus |
7 | Should be "ti,omap2-l4-wkup" for OMAP2 family l4 wkup bus | 7 | Should be "ti,omap2-l4-wkup" for OMAP2 family l4 wkup bus |
8 | Should be "ti,omap3-l4-core" for OMAP3 family l4 core bus | 8 | Should be "ti,omap3-l4-core" for OMAP3 family l4 core bus |
9 | Should be "ti,am3-l4-wkup" for AM33xx family l4 wkup bus | ||
9 | - ranges : contains the IO map range for the bus | 10 | - ranges : contains the IO map range for the bus |
10 | 11 | ||
11 | Examples: | 12 | Examples: |
diff --git a/Documentation/devicetree/bindings/arm/omap/prcm.txt b/Documentation/devicetree/bindings/arm/omap/prcm.txt index ef5a74be6148..c8e202763be8 100644 --- a/Documentation/devicetree/bindings/arm/omap/prcm.txt +++ b/Documentation/devicetree/bindings/arm/omap/prcm.txt | |||
@@ -10,7 +10,7 @@ documentation about the individual clock/clockdomain nodes. | |||
10 | Required properties: | 10 | Required properties: |
11 | - compatible: Must be one of: | 11 | - compatible: Must be one of: |
12 | "ti,am3-prcm" | 12 | "ti,am3-prcm" |
13 | "ti,am3-scrm" | 13 | "ti,am3-scm" |
14 | "ti,am4-prcm" | 14 | "ti,am4-prcm" |
15 | "ti,am4-scrm" | 15 | "ti,am4-scrm" |
16 | "ti,omap2-prcm" | 16 | "ti,omap2-prcm" |
diff --git a/arch/arm/boot/dts/am33xx-clocks.dtsi b/arch/arm/boot/dts/am33xx-clocks.dtsi index 712edce7d6fb..236c78a3c6ca 100644 --- a/arch/arm/boot/dts/am33xx-clocks.dtsi +++ b/arch/arm/boot/dts/am33xx-clocks.dtsi | |||
@@ -7,7 +7,7 @@ | |||
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | &scrm_clocks { | 10 | &scm_clocks { |
11 | sys_clkin_ck: sys_clkin_ck { | 11 | sys_clkin_ck: sys_clkin_ck { |
12 | #clock-cells = <0>; | 12 | #clock-cells = <0>; |
13 | compatible = "ti,mux-clock"; | 13 | compatible = "ti,mux-clock"; |
diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index acd37057bca9..21fcc440fc1a 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi | |||
@@ -83,20 +83,6 @@ | |||
83 | }; | 83 | }; |
84 | }; | 84 | }; |
85 | 85 | ||
86 | am33xx_control_module: control_module@4a002000 { | ||
87 | compatible = "syscon"; | ||
88 | reg = <0x44e10000 0x7fc>; | ||
89 | }; | ||
90 | |||
91 | am33xx_pinmux: pinmux@44e10800 { | ||
92 | compatible = "pinctrl-single"; | ||
93 | reg = <0x44e10800 0x0238>; | ||
94 | #address-cells = <1>; | ||
95 | #size-cells = <0>; | ||
96 | pinctrl-single,register-width = <32>; | ||
97 | pinctrl-single,function-mask = <0x7f>; | ||
98 | }; | ||
99 | |||
100 | /* | 86 | /* |
101 | * XXX: Use a flat representation of the AM33XX interconnect. | 87 | * XXX: Use a flat representation of the AM33XX interconnect. |
102 | * The real AM33XX interconnect network is quite complex. Since | 88 | * The real AM33XX interconnect network is quite complex. Since |
@@ -111,37 +97,58 @@ | |||
111 | ranges; | 97 | ranges; |
112 | ti,hwmods = "l3_main"; | 98 | ti,hwmods = "l3_main"; |
113 | 99 | ||
114 | prcm: prcm@44e00000 { | 100 | l4_wkup: l4_wkup@44c00000 { |
115 | compatible = "ti,am3-prcm"; | 101 | compatible = "ti,am3-l4-wkup", "simple-bus"; |
116 | reg = <0x44e00000 0x4000>; | 102 | #address-cells = <1>; |
117 | 103 | #size-cells = <1>; | |
118 | prcm_clocks: clocks { | 104 | ranges = <0 0x44c00000 0x280000>; |
119 | #address-cells = <1>; | ||
120 | #size-cells = <0>; | ||
121 | }; | ||
122 | 105 | ||
123 | prcm_clockdomains: clockdomains { | 106 | prcm: prcm@200000 { |
124 | }; | 107 | compatible = "ti,am3-prcm"; |
125 | }; | 108 | reg = <0x200000 0x4000>; |
126 | 109 | ||
127 | scrm: scrm@44e10000 { | 110 | prcm_clocks: clocks { |
128 | compatible = "ti,am3-scrm"; | 111 | #address-cells = <1>; |
129 | reg = <0x44e10000 0x2000>; | 112 | #size-cells = <0>; |
113 | }; | ||
130 | 114 | ||
131 | scrm_clocks: clocks { | 115 | prcm_clockdomains: clockdomains { |
132 | #address-cells = <1>; | 116 | }; |
133 | #size-cells = <0>; | ||
134 | }; | 117 | }; |
135 | 118 | ||
136 | scrm_clockdomains: clockdomains { | 119 | scm: scm@210000 { |
120 | compatible = "ti,am3-scm", "simple-bus"; | ||
121 | reg = <0x210000 0x2000>; | ||
122 | #address-cells = <1>; | ||
123 | #size-cells = <1>; | ||
124 | ranges = <0 0x210000 0x2000>; | ||
125 | |||
126 | am33xx_pinmux: pinmux@800 { | ||
127 | compatible = "pinctrl-single"; | ||
128 | reg = <0x800 0x238>; | ||
129 | #address-cells = <1>; | ||
130 | #size-cells = <0>; | ||
131 | pinctrl-single,register-width = <32>; | ||
132 | pinctrl-single,function-mask = <0x7f>; | ||
133 | }; | ||
134 | |||
135 | scm_conf: scm_conf@0 { | ||
136 | compatible = "syscon"; | ||
137 | reg = <0x0 0x800>; | ||
138 | #address-cells = <1>; | ||
139 | #size-cells = <1>; | ||
140 | |||
141 | scm_clocks: clocks { | ||
142 | #address-cells = <1>; | ||
143 | #size-cells = <0>; | ||
144 | }; | ||
145 | }; | ||
146 | |||
147 | scm_clockdomains: clockdomains { | ||
148 | }; | ||
137 | }; | 149 | }; |
138 | }; | 150 | }; |
139 | 151 | ||
140 | cm: syscon@44e10000 { | ||
141 | compatible = "ti,am33xx-controlmodule", "syscon"; | ||
142 | reg = <0x44e10000 0x800>; | ||
143 | }; | ||
144 | |||
145 | intc: interrupt-controller@48200000 { | 152 | intc: interrupt-controller@48200000 { |
146 | compatible = "ti,am33xx-intc"; | 153 | compatible = "ti,am33xx-intc"; |
147 | interrupt-controller; | 154 | interrupt-controller; |
@@ -350,7 +357,7 @@ | |||
350 | reg = <0x481cc000 0x2000>; | 357 | reg = <0x481cc000 0x2000>; |
351 | clocks = <&dcan0_fck>; | 358 | clocks = <&dcan0_fck>; |
352 | clock-names = "fck"; | 359 | clock-names = "fck"; |
353 | syscon-raminit = <&am33xx_control_module 0x644 0>; | 360 | syscon-raminit = <&scm_conf 0x644 0>; |
354 | interrupts = <52>; | 361 | interrupts = <52>; |
355 | status = "disabled"; | 362 | status = "disabled"; |
356 | }; | 363 | }; |
@@ -361,7 +368,7 @@ | |||
361 | reg = <0x481d0000 0x2000>; | 368 | reg = <0x481d0000 0x2000>; |
362 | clocks = <&dcan1_fck>; | 369 | clocks = <&dcan1_fck>; |
363 | clock-names = "fck"; | 370 | clock-names = "fck"; |
364 | syscon-raminit = <&am33xx_control_module 0x644 1>; | 371 | syscon-raminit = <&scm_conf 0x644 1>; |
365 | interrupts = <55>; | 372 | interrupts = <55>; |
366 | status = "disabled"; | 373 | status = "disabled"; |
367 | }; | 374 | }; |
@@ -720,7 +727,7 @@ | |||
720 | */ | 727 | */ |
721 | interrupts = <40 41 42 43>; | 728 | interrupts = <40 41 42 43>; |
722 | ranges; | 729 | ranges; |
723 | syscon = <&cm>; | 730 | syscon = <&scm_conf>; |
724 | status = "disabled"; | 731 | status = "disabled"; |
725 | 732 | ||
726 | davinci_mdio: mdio@4a101000 { | 733 | davinci_mdio: mdio@4a101000 { |
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 30f5aff7645f..477e2c8f26a6 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c | |||
@@ -667,7 +667,7 @@ static const struct control_init_data omap2_ctrl_data = { | |||
667 | }; | 667 | }; |
668 | 668 | ||
669 | static const struct of_device_id omap_scrm_dt_match_table[] = { | 669 | static const struct of_device_id omap_scrm_dt_match_table[] = { |
670 | { .compatible = "ti,am3-scrm", .data = &ctrl_data }, | 670 | { .compatible = "ti,am3-scm", .data = &ctrl_data }, |
671 | { .compatible = "ti,am4-scrm", .data = &ctrl_data }, | 671 | { .compatible = "ti,am4-scrm", .data = &ctrl_data }, |
672 | { .compatible = "ti,omap2-scm", .data = &omap2_ctrl_data }, | 672 | { .compatible = "ti,omap2-scm", .data = &omap2_ctrl_data }, |
673 | { .compatible = "ti,omap3-scm", .data = &omap2_ctrl_data }, | 673 | { .compatible = "ti,omap3-scm", .data = &omap2_ctrl_data }, |