Commit | Line | Data |
---|---|---|
2d334297 AB |
1 | /* |
2 | * Copyright 2011 ST-Ericsson AB | |
3 | * | |
4 | * The code contained herein is licensed under the GNU General Public | |
5 | * License. You may obtain a copy of the GNU General Public License | |
6 | * Version 2 or later at the following locations: | |
7 | * | |
8 | * http://www.opensource.org/licenses/gpl-license.html | |
9 | * http://www.gnu.org/copyleft/gpl.html | |
10 | */ | |
11 | ||
12 | /dts-v1/; | |
d582cb0b | 13 | /include/ "dbx5x0.dtsi" |
2d334297 AB |
14 | |
15 | / { | |
16 | model = "Calao Systems Snowball platform with device tree"; | |
79b40753 | 17 | compatible = "calaosystems,snowball-a9500", "st-ericsson,u9500"; |
2d334297 | 18 | |
2d334297 AB |
19 | memory { |
20 | reg = <0x00000000 0x20000000>; | |
21 | }; | |
22 | ||
bc367481 LJ |
23 | en_3v3_reg: en_3v3 { |
24 | compatible = "regulator-fixed"; | |
25 | regulator-name = "en-3v3-fixed-supply"; | |
26 | regulator-min-microvolt = <3300000>; | |
27 | regulator-max-microvolt = <3300000>; | |
28 | gpios = <&gpio0 26 0x4>; // 26 | |
29 | startup-delay-us = <5000>; | |
30 | enable-active-high; | |
31 | }; | |
32 | ||
7e0ce270 LJ |
33 | gpio_keys { |
34 | compatible = "gpio-keys"; | |
35 | #address-cells = <1>; | |
36 | #size-cells = <0>; | |
37 | ||
38 | button@1 { | |
39 | debounce_interval = <50>; | |
40 | wakeup = <1>; | |
41 | linux,code = <2>; | |
42 | label = "userpb"; | |
93b5698a | 43 | gpios = <&gpio1 0 0x4>; |
7e0ce270 LJ |
44 | }; |
45 | button@2 { | |
46 | debounce_interval = <50>; | |
47 | wakeup = <1>; | |
48 | linux,code = <3>; | |
3f3ed400 | 49 | label = "extkb1"; |
93b5698a | 50 | gpios = <&gpio4 23 0x4>; |
7e0ce270 LJ |
51 | }; |
52 | button@3 { | |
53 | debounce_interval = <50>; | |
54 | wakeup = <1>; | |
55 | linux,code = <4>; | |
3f3ed400 | 56 | label = "extkb2"; |
93b5698a | 57 | gpios = <&gpio4 24 0x4>; |
7e0ce270 LJ |
58 | }; |
59 | button@4 { | |
60 | debounce_interval = <50>; | |
61 | wakeup = <1>; | |
62 | linux,code = <5>; | |
3f3ed400 | 63 | label = "extkb3"; |
93b5698a | 64 | gpios = <&gpio5 1 0x4>; |
7e0ce270 LJ |
65 | }; |
66 | button@5 { | |
67 | debounce_interval = <50>; | |
68 | wakeup = <1>; | |
69 | linux,code = <6>; | |
3f3ed400 | 70 | label = "extkb4"; |
93b5698a | 71 | gpios = <&gpio5 2 0x4>; |
7e0ce270 LJ |
72 | }; |
73 | }; | |
74 | ||
75 | leds { | |
76 | compatible = "gpio-leds"; | |
77 | used-led { | |
78 | label = "user_led"; | |
93b5698a | 79 | gpios = <&gpio4 14 0x4>; |
7fd975fa | 80 | default-state = "on"; |
fd53d042 | 81 | linux,default-trigger = "heartbeat"; |
7e0ce270 LJ |
82 | }; |
83 | }; | |
84 | ||
2d334297 | 85 | soc-u9500 { |
e6488065 LJ |
86 | |
87 | sound { | |
88 | compatible = "stericsson,snd-soc-mop500"; | |
89 | ||
90 | stericsson,cpu-dai = <&msp1 &msp3>; | |
91 | stericsson,audio-codec = <&codec>; | |
92 | }; | |
93 | ||
fe164529 LJ |
94 | msp1: msp@80124000 { |
95 | status = "okay"; | |
96 | }; | |
97 | ||
98 | msp3: msp@80125000 { | |
99 | status = "okay"; | |
100 | }; | |
101 | ||
dc1956b5 | 102 | prcmu@80157000 { |
103 | thermal@801573c0 { | |
104 | num-trips = <4>; | |
105 | ||
106 | trip0-temp = <70000>; | |
107 | trip0-type = "active"; | |
108 | trip0-cdev-num = <1>; | |
109 | trip0-cdev-name0 = "thermal-cpufreq-0"; | |
110 | ||
111 | trip1-temp = <75000>; | |
112 | trip1-type = "active"; | |
113 | trip1-cdev-num = <1>; | |
114 | trip1-cdev-name0 = "thermal-cpufreq-0"; | |
115 | ||
116 | trip2-temp = <80000>; | |
117 | trip2-type = "active"; | |
118 | trip2-cdev-num = <1>; | |
119 | trip2-cdev-name0 = "thermal-cpufreq-0"; | |
120 | ||
121 | trip3-temp = <85000>; | |
122 | trip3-type = "critical"; | |
123 | trip3-cdev-num = <0>; | |
124 | ||
125 | status = "okay"; | |
126 | }; | |
127 | }; | |
128 | ||
7e0ce270 | 129 | external-bus@50000000 { |
bf76e062 LJ |
130 | status = "okay"; |
131 | ||
132 | ethernet@0 { | |
133 | compatible = "smsc,lan9115"; | |
134 | reg = <0 0x10000>; | |
135 | interrupts = <12 0x1>; | |
7e0ce270 | 136 | interrupt-parent = <&gpio4>; |
bc367481 LJ |
137 | vdd33a-supply = <&en_3v3_reg>; |
138 | vddvario-supply = <&db8500_vape_reg>; | |
139 | ||
bf76e062 LJ |
140 | |
141 | reg-shift = <1>; | |
142 | reg-io-width = <2>; | |
143 | smsc,force-internal-phy; | |
144 | smsc,irq-active-high; | |
145 | smsc,irq-push-pull; | |
7e0ce270 LJ |
146 | }; |
147 | }; | |
148 | ||
5e1ac7db | 149 | // External Micro SD slot |
81bf8c2e | 150 | sdi0_per1@80126000 { |
5e1ac7db LJ |
151 | arm,primecell-periphid = <0x10480180>; |
152 | max-frequency = <50000000>; | |
92a0f489 | 153 | bus-width = <4>; |
5e1ac7db | 154 | mmc-cap-mmc-highspeed; |
4a85c7fa | 155 | vmmc-supply = <&ab8500_ldo_aux3_reg>; |
5e1ac7db | 156 | |
93b5698a | 157 | cd-gpios = <&gpio6 26 0x4>; // 218 |
5e1ac7db LJ |
158 | cd-inverted; |
159 | ||
160 | status = "okay"; | |
7e0ce270 LJ |
161 | }; |
162 | ||
5e1ac7db | 163 | // On-board eMMC |
81bf8c2e | 164 | sdi4_per2@80114000 { |
5e1ac7db LJ |
165 | arm,primecell-periphid = <0x10480180>; |
166 | max-frequency = <50000000>; | |
167 | bus-width = <8>; | |
168 | mmc-cap-mmc-highspeed; | |
4a85c7fa | 169 | vmmc-supply = <&ab8500_ldo_aux2_reg>; |
5e1ac7db LJ |
170 | |
171 | status = "okay"; | |
7e0ce270 LJ |
172 | }; |
173 | ||
4905af0e LJ |
174 | uart@80120000 { |
175 | status = "okay"; | |
176 | }; | |
177 | ||
178 | uart@80121000 { | |
179 | status = "okay"; | |
180 | }; | |
181 | ||
182 | uart@80007000 { | |
183 | status = "okay"; | |
184 | }; | |
185 | ||
7e0ce270 LJ |
186 | i2c@80004000 { |
187 | tc3589x@42 { | |
188 | //compatible = "tc3589x"; | |
189 | reg = <0x42>; | |
93b5698a | 190 | gpios = <&gpio6 25 0x4>; |
7e0ce270 LJ |
191 | interrupt-parent = <&gpio6>; |
192 | }; | |
193 | tps61052@33 { | |
194 | //compatible = "tps61052"; | |
195 | reg = <0x33>; | |
196 | }; | |
197 | }; | |
198 | ||
199 | i2c@80128000 { | |
200 | lp5521@0x33 { | |
201 | // compatible = "lp5521"; | |
202 | reg = <0x33>; | |
203 | }; | |
204 | lp5521@0x34 { | |
205 | // compatible = "lp5521"; | |
206 | reg = <0x34>; | |
207 | }; | |
208 | bh1780@0x29 { | |
209 | // compatible = "rohm,bh1780gli"; | |
210 | reg = <0x33>; | |
211 | }; | |
212 | }; | |
dc1956b5 | 213 | |
214 | cpufreq-cooling { | |
215 | status = "okay"; | |
216 | }; | |
db5b0ae0 | 217 | |
809efa56 LJ |
218 | prcmu@80157000 { |
219 | db8500-prcmu-regulators { | |
220 | db8500_vape_reg: db8500_vape { | |
221 | regulator-name = "db8500-vape"; | |
222 | }; | |
223 | ||
224 | db8500_varm_reg: db8500_varm { | |
225 | regulator-name = "db8500-varm"; | |
226 | }; | |
227 | ||
228 | db8500_vmodem_reg: db8500_vmodem { | |
229 | regulator-name = "db8500-vmodem"; | |
230 | }; | |
231 | ||
232 | db8500_vpll_reg: db8500_vpll { | |
233 | regulator-name = "db8500-vpll"; | |
234 | }; | |
235 | ||
236 | db8500_vsmps1_reg: db8500_vsmps1 { | |
237 | regulator-name = "db8500-vsmps1"; | |
238 | }; | |
239 | ||
240 | db8500_vsmps2_reg: db8500_vsmps2 { | |
241 | regulator-name = "db8500-vsmps2"; | |
242 | }; | |
243 | ||
244 | db8500_vsmps3_reg: db8500_vsmps3 { | |
245 | regulator-name = "db8500-vsmps3"; | |
246 | }; | |
247 | ||
248 | db8500_vrf1_reg: db8500_vrf1 { | |
249 | regulator-name = "db8500-vrf1"; | |
250 | }; | |
251 | ||
252 | db8500_sva_mmdsp_reg: db8500_sva_mmdsp { | |
253 | regulator-name = "db8500-sva-mmdsp"; | |
254 | }; | |
255 | ||
256 | db8500_sva_mmdsp_ret_reg: db8500_sva_mmdsp_ret { | |
257 | regulator-name = "db8500-sva-mmdsp-ret"; | |
258 | }; | |
259 | ||
260 | db8500_sva_pipe_reg: db8500_sva_pipe { | |
261 | regulator-name = "db8500_sva_pipe"; | |
262 | }; | |
263 | ||
264 | db8500_sia_mmdsp_reg: db8500_sia_mmdsp { | |
265 | regulator-name = "db8500_sia_mmdsp"; | |
266 | }; | |
267 | ||
268 | db8500_sia_mmdsp_ret_reg: db8500_sia_mmdsp_ret { | |
269 | regulator-name = "db8500-sia-mmdsp-ret"; | |
270 | }; | |
271 | ||
272 | db8500_sia_pipe_reg: db8500_sia_pipe { | |
273 | regulator-name = "db8500-sia-pipe"; | |
274 | }; | |
275 | ||
276 | db8500_sga_reg: db8500_sga { | |
277 | regulator-name = "db8500-sga"; | |
278 | }; | |
279 | ||
280 | db8500_b2r2_mcde_reg: db8500_b2r2_mcde { | |
281 | regulator-name = "db8500-b2r2-mcde"; | |
282 | }; | |
283 | ||
284 | db8500_esram12_reg: db8500_esram12 { | |
285 | regulator-name = "db8500-esram12"; | |
286 | }; | |
287 | ||
288 | db8500_esram12_ret_reg: db8500_esram12_ret { | |
289 | regulator-name = "db8500-esram12-ret"; | |
290 | }; | |
291 | ||
292 | db8500_esram34_reg: db8500_esram34 { | |
293 | regulator-name = "db8500-esram34"; | |
294 | }; | |
295 | ||
296 | db8500_esram34_ret_reg: db8500_esram34_ret { | |
297 | regulator-name = "db8500-esram34-ret"; | |
298 | }; | |
299 | }; | |
300 | ||
301 | ab8500@5 { | |
302 | ab8500-regulators { | |
303 | ab8500_ldo_aux1_reg: ab8500_ldo_aux1 { | |
304 | regulator-name = "V-DISPLAY"; | |
305 | }; | |
306 | ||
307 | ab8500_ldo_aux2_reg: ab8500_ldo_aux2 { | |
308 | regulator-name = "V-eMMC1"; | |
309 | }; | |
310 | ||
311 | ab8500_ldo_aux3_reg: ab8500_ldo_aux3 { | |
312 | regulator-name = "V-MMC-SD"; | |
313 | }; | |
314 | ||
315 | ab8500_ldo_initcore_reg: ab8500_ldo_initcore { | |
316 | regulator-name = "V-INTCORE"; | |
317 | }; | |
318 | ||
319 | ab8500_ldo_tvout_reg: ab8500_ldo_tvout { | |
320 | regulator-name = "V-TVOUT"; | |
321 | }; | |
322 | ||
323 | ab8500_ldo_usb_reg: ab8500_ldo_usb { | |
324 | regulator-name = "dummy"; | |
325 | }; | |
326 | ||
327 | ab8500_ldo_audio_reg: ab8500_ldo_audio { | |
328 | regulator-name = "V-AUD"; | |
329 | }; | |
330 | ||
331 | ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 { | |
332 | regulator-name = "V-AMIC1"; | |
333 | }; | |
334 | ||
335 | ab8500_ldo_amamic2_reg: ab8500_ldo_amamic2 { | |
336 | regulator-name = "V-AMIC2"; | |
337 | }; | |
338 | ||
339 | ab8500_ldo_dmic_reg: ab8500_ldo_dmic { | |
340 | regulator-name = "V-DMIC"; | |
341 | }; | |
342 | ||
343 | ab8500_ldo_ana_reg: ab8500_ldo_ana { | |
344 | regulator-name = "V-CSI/DSI"; | |
345 | }; | |
346 | }; | |
347 | }; | |
348 | }; | |
2d334297 AB |
349 | }; |
350 | }; |