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