diff options
author | Tero Kristo <t-kristo@ti.com> | 2015-02-24 09:22:45 -0500 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-31 14:26:56 -0400 |
commit | b8845074cfbbd1d1b46720a1b563d7b4240dac21 (patch) | |
tree | a3054f3e304854ef4a55e63de53c8729f0a14db2 /arch/arm | |
parent | 72b10ac00eb1c154037e398371685d3f1d2d4793 (diff) |
ARM: dts: omap3: add minimal l4 bus layout with control module support
This patch creates an l4_core interconnect for OMAP3, and moves some
of the generic peripherals under it. System control module nodes are
moved under this new interconnect also, and the SCM clock layout
is changed to use the renamed SCM node as the clock provider.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reported-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/am3517.dtsi | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/am35xx-clocks.dtsi | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3.dtsi | 96 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3xxx-clocks.dtsi | 13 | ||||
-rw-r--r-- | arch/arm/mach-omap2/control.c | 2 |
5 files changed, 65 insertions, 50 deletions
diff --git a/arch/arm/boot/dts/am3517.dtsi b/arch/arm/boot/dts/am3517.dtsi index c90724bded10..f164dce08755 100644 --- a/arch/arm/boot/dts/am3517.dtsi +++ b/arch/arm/boot/dts/am3517.dtsi | |||
@@ -31,7 +31,7 @@ | |||
31 | status = "disabled"; | 31 | status = "disabled"; |
32 | reg = <0x5c000000 0x30000>; | 32 | reg = <0x5c000000 0x30000>; |
33 | interrupts = <67 68 69 70>; | 33 | interrupts = <67 68 69 70>; |
34 | syscon = <&omap3_scm_general>; | 34 | syscon = <&scm_conf>; |
35 | ti,davinci-ctrl-reg-offset = <0x10000>; | 35 | ti,davinci-ctrl-reg-offset = <0x10000>; |
36 | ti,davinci-ctrl-mod-reg-offset = <0>; | 36 | ti,davinci-ctrl-mod-reg-offset = <0>; |
37 | ti,davinci-ctrl-ram-offset = <0x20000>; | 37 | ti,davinci-ctrl-ram-offset = <0x20000>; |
diff --git a/arch/arm/boot/dts/am35xx-clocks.dtsi b/arch/arm/boot/dts/am35xx-clocks.dtsi index df489d310b50..518b8fde88b0 100644 --- a/arch/arm/boot/dts/am35xx-clocks.dtsi +++ b/arch/arm/boot/dts/am35xx-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 | emac_ick: emac_ick { | 11 | emac_ick: emac_ick { |
12 | #clock-cells = <0>; | 12 | #clock-cells = <0>; |
13 | compatible = "ti,am35xx-gate-clock"; | 13 | compatible = "ti,am35xx-gate-clock"; |
diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/omap3.dtsi index 01b71111bd55..b28791ade27a 100644 --- a/arch/arm/boot/dts/omap3.dtsi +++ b/arch/arm/boot/dts/omap3.dtsi | |||
@@ -87,6 +87,60 @@ | |||
87 | ranges; | 87 | ranges; |
88 | ti,hwmods = "l3_main"; | 88 | ti,hwmods = "l3_main"; |
89 | 89 | ||
90 | l4_core: l4@48000000 { | ||
91 | compatible = "ti,omap3-l4-core", "simple-bus"; | ||
92 | #address-cells = <1>; | ||
93 | #size-cells = <1>; | ||
94 | ranges = <0 0x48000000 0x1000000>; | ||
95 | |||
96 | scm: scm@2000 { | ||
97 | compatible = "ti,omap3-scm", "simple-bus"; | ||
98 | reg = <0x2000 0x2000>; | ||
99 | #address-cells = <1>; | ||
100 | #size-cells = <1>; | ||
101 | ranges = <0 0x2000 0x2000>; | ||
102 | |||
103 | omap3_pmx_core: pinmux@30 { | ||
104 | compatible = "ti,omap3-padconf", | ||
105 | "pinctrl-single"; | ||
106 | reg = <0x30 0x238>; | ||
107 | #address-cells = <1>; | ||
108 | #size-cells = <0>; | ||
109 | #interrupt-cells = <1>; | ||
110 | interrupt-controller; | ||
111 | pinctrl-single,register-width = <16>; | ||
112 | pinctrl-single,function-mask = <0xff1f>; | ||
113 | }; | ||
114 | |||
115 | scm_conf: scm_conf@270 { | ||
116 | compatible = "syscon"; | ||
117 | reg = <0x270 0x330>; | ||
118 | #address-cells = <1>; | ||
119 | #size-cells = <1>; | ||
120 | |||
121 | scm_clocks: clocks { | ||
122 | #address-cells = <1>; | ||
123 | #size-cells = <0>; | ||
124 | }; | ||
125 | }; | ||
126 | |||
127 | scm_clockdomains: clockdomains { | ||
128 | }; | ||
129 | |||
130 | omap3_pmx_wkup: pinmux@a00 { | ||
131 | compatible = "ti,omap3-padconf", | ||
132 | "pinctrl-single"; | ||
133 | reg = <0xa00 0x5c>; | ||
134 | #address-cells = <1>; | ||
135 | #size-cells = <0>; | ||
136 | #interrupt-cells = <1>; | ||
137 | interrupt-controller; | ||
138 | pinctrl-single,register-width = <16>; | ||
139 | pinctrl-single,function-mask = <0xff1f>; | ||
140 | }; | ||
141 | }; | ||
142 | }; | ||
143 | |||
90 | aes: aes@480c5000 { | 144 | aes: aes@480c5000 { |
91 | compatible = "ti,omap3-aes"; | 145 | compatible = "ti,omap3-aes"; |
92 | ti,hwmods = "aes"; | 146 | ti,hwmods = "aes"; |
@@ -121,19 +175,6 @@ | |||
121 | }; | 175 | }; |
122 | }; | 176 | }; |
123 | 177 | ||
124 | scrm: scrm@48002000 { | ||
125 | compatible = "ti,omap3-scrm"; | ||
126 | reg = <0x48002000 0x2000>; | ||
127 | |||
128 | scrm_clocks: clocks { | ||
129 | #address-cells = <1>; | ||
130 | #size-cells = <0>; | ||
131 | }; | ||
132 | |||
133 | scrm_clockdomains: clockdomains { | ||
134 | }; | ||
135 | }; | ||
136 | |||
137 | counter32k: counter@48320000 { | 178 | counter32k: counter@48320000 { |
138 | compatible = "ti,omap-counter32k"; | 179 | compatible = "ti,omap-counter32k"; |
139 | reg = <0x48320000 0x20>; | 180 | reg = <0x48320000 0x20>; |
@@ -159,37 +200,10 @@ | |||
159 | #dma-requests = <96>; | 200 | #dma-requests = <96>; |
160 | }; | 201 | }; |
161 | 202 | ||
162 | omap3_pmx_core: pinmux@48002030 { | ||
163 | compatible = "ti,omap3-padconf", "pinctrl-single"; | ||
164 | reg = <0x48002030 0x0238>; | ||
165 | #address-cells = <1>; | ||
166 | #size-cells = <0>; | ||
167 | #interrupt-cells = <1>; | ||
168 | interrupt-controller; | ||
169 | pinctrl-single,register-width = <16>; | ||
170 | pinctrl-single,function-mask = <0xff1f>; | ||
171 | }; | ||
172 | |||
173 | omap3_pmx_wkup: pinmux@48002a00 { | ||
174 | compatible = "ti,omap3-padconf", "pinctrl-single"; | ||
175 | reg = <0x48002a00 0x5c>; | ||
176 | #address-cells = <1>; | ||
177 | #size-cells = <0>; | ||
178 | #interrupt-cells = <1>; | ||
179 | interrupt-controller; | ||
180 | pinctrl-single,register-width = <16>; | ||
181 | pinctrl-single,function-mask = <0xff1f>; | ||
182 | }; | ||
183 | |||
184 | omap3_scm_general: tisyscon@48002270 { | ||
185 | compatible = "syscon"; | ||
186 | reg = <0x48002270 0x2f0>; | ||
187 | }; | ||
188 | |||
189 | pbias_regulator: pbias_regulator { | 203 | pbias_regulator: pbias_regulator { |
190 | compatible = "ti,pbias-omap"; | 204 | compatible = "ti,pbias-omap"; |
191 | reg = <0x2b0 0x4>; | 205 | reg = <0x2b0 0x4>; |
192 | syscon = <&omap3_scm_general>; | 206 | syscon = <&scm_conf>; |
193 | pbias_mmc_reg: pbias_mmc_omap2430 { | 207 | pbias_mmc_reg: pbias_mmc_omap2430 { |
194 | regulator-name = "pbias_mmc_omap2430"; | 208 | regulator-name = "pbias_mmc_omap2430"; |
195 | regulator-min-microvolt = <1800000>; | 209 | regulator-min-microvolt = <1800000>; |
diff --git a/arch/arm/boot/dts/omap3xxx-clocks.dtsi b/arch/arm/boot/dts/omap3xxx-clocks.dtsi index 5c375003bad1..bbba5bdc4bc9 100644 --- a/arch/arm/boot/dts/omap3xxx-clocks.dtsi +++ b/arch/arm/boot/dts/omap3xxx-clocks.dtsi | |||
@@ -79,13 +79,14 @@ | |||
79 | clock-div = <1>; | 79 | clock-div = <1>; |
80 | }; | 80 | }; |
81 | }; | 81 | }; |
82 | &scrm_clocks { | 82 | |
83 | &scm_clocks { | ||
83 | mcbsp5_mux_fck: mcbsp5_mux_fck { | 84 | mcbsp5_mux_fck: mcbsp5_mux_fck { |
84 | #clock-cells = <0>; | 85 | #clock-cells = <0>; |
85 | compatible = "ti,composite-mux-clock"; | 86 | compatible = "ti,composite-mux-clock"; |
86 | clocks = <&core_96m_fck>, <&mcbsp_clks>; | 87 | clocks = <&core_96m_fck>, <&mcbsp_clks>; |
87 | ti,bit-shift = <4>; | 88 | ti,bit-shift = <4>; |
88 | reg = <0x02d8>; | 89 | reg = <0x68>; |
89 | }; | 90 | }; |
90 | 91 | ||
91 | mcbsp5_fck: mcbsp5_fck { | 92 | mcbsp5_fck: mcbsp5_fck { |
@@ -99,7 +100,7 @@ | |||
99 | compatible = "ti,composite-mux-clock"; | 100 | compatible = "ti,composite-mux-clock"; |
100 | clocks = <&core_96m_fck>, <&mcbsp_clks>; | 101 | clocks = <&core_96m_fck>, <&mcbsp_clks>; |
101 | ti,bit-shift = <2>; | 102 | ti,bit-shift = <2>; |
102 | reg = <0x0274>; | 103 | reg = <0x04>; |
103 | }; | 104 | }; |
104 | 105 | ||
105 | mcbsp1_fck: mcbsp1_fck { | 106 | mcbsp1_fck: mcbsp1_fck { |
@@ -113,7 +114,7 @@ | |||
113 | compatible = "ti,composite-mux-clock"; | 114 | compatible = "ti,composite-mux-clock"; |
114 | clocks = <&per_96m_fck>, <&mcbsp_clks>; | 115 | clocks = <&per_96m_fck>, <&mcbsp_clks>; |
115 | ti,bit-shift = <6>; | 116 | ti,bit-shift = <6>; |
116 | reg = <0x0274>; | 117 | reg = <0x04>; |
117 | }; | 118 | }; |
118 | 119 | ||
119 | mcbsp2_fck: mcbsp2_fck { | 120 | mcbsp2_fck: mcbsp2_fck { |
@@ -126,7 +127,7 @@ | |||
126 | #clock-cells = <0>; | 127 | #clock-cells = <0>; |
127 | compatible = "ti,composite-mux-clock"; | 128 | compatible = "ti,composite-mux-clock"; |
128 | clocks = <&per_96m_fck>, <&mcbsp_clks>; | 129 | clocks = <&per_96m_fck>, <&mcbsp_clks>; |
129 | reg = <0x02d8>; | 130 | reg = <0x68>; |
130 | }; | 131 | }; |
131 | 132 | ||
132 | mcbsp3_fck: mcbsp3_fck { | 133 | mcbsp3_fck: mcbsp3_fck { |
@@ -140,7 +141,7 @@ | |||
140 | compatible = "ti,composite-mux-clock"; | 141 | compatible = "ti,composite-mux-clock"; |
141 | clocks = <&per_96m_fck>, <&mcbsp_clks>; | 142 | clocks = <&per_96m_fck>, <&mcbsp_clks>; |
142 | ti,bit-shift = <2>; | 143 | ti,bit-shift = <2>; |
143 | reg = <0x02d8>; | 144 | reg = <0x68>; |
144 | }; | 145 | }; |
145 | 146 | ||
146 | mcbsp4_fck: mcbsp4_fck { | 147 | mcbsp4_fck: mcbsp4_fck { |
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index eb592ea51b78..30f5aff7645f 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c | |||
@@ -670,7 +670,7 @@ static const struct of_device_id omap_scrm_dt_match_table[] = { | |||
670 | { .compatible = "ti,am3-scrm", .data = &ctrl_data }, | 670 | { .compatible = "ti,am3-scrm", .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-scrm", .data = &ctrl_data }, | 673 | { .compatible = "ti,omap3-scm", .data = &omap2_ctrl_data }, |
674 | { .compatible = "ti,dm816-scrm", .data = &ctrl_data }, | 674 | { .compatible = "ti,dm816-scrm", .data = &ctrl_data }, |
675 | { } | 675 | { } |
676 | }; | 676 | }; |