blob: da3f02a7d84bcb3586cead151fe5d12b278d893e [file] [log] [blame]
Arnd Bergmann2d334292012-03-07 15:04:07 +00001/*
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/;
Lee Jonesd582cb02012-07-30 09:34:46 +010013/include/ "dbx5x0.dtsi"
Arnd Bergmann2d334292012-03-07 15:04:07 +000014
15/ {
16 model = "Calao Systems Snowball platform with device tree";
Lee Jones79b40752012-10-15 10:07:55 +010017 compatible = "calaosystems,snowball-a9500", "st-ericsson,u9500";
Arnd Bergmann2d334292012-03-07 15:04:07 +000018
Arnd Bergmann2d334292012-03-07 15:04:07 +000019 memory {
20 reg = <0x00000000 0x20000000>;
21 };
22
Lee Jonesbc367482012-05-03 11:23:47 +010023 en_3v3_reg: en_3v3 {
24 compatible = "regulator-fixed";
Lee Jonesb0995762013-06-18 09:51:58 +010025 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;
Lee Jonesbc367482012-05-03 11:23:47 +010032 };
33
Lee Jones7e0ce272012-03-15 16:46:17 +000034 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";
Lee Jones93b56982012-05-29 14:17:36 +080044 gpios = <&gpio1 0 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000045 };
46 button@2 {
47 debounce_interval = <50>;
48 wakeup = <1>;
49 linux,code = <3>;
Lee Jones3f3ed402012-04-13 15:05:07 +010050 label = "extkb1";
Lee Jones93b56982012-05-29 14:17:36 +080051 gpios = <&gpio4 23 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000052 };
53 button@3 {
54 debounce_interval = <50>;
55 wakeup = <1>;
56 linux,code = <4>;
Lee Jones3f3ed402012-04-13 15:05:07 +010057 label = "extkb2";
Lee Jones93b56982012-05-29 14:17:36 +080058 gpios = <&gpio4 24 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000059 };
60 button@4 {
61 debounce_interval = <50>;
62 wakeup = <1>;
63 linux,code = <5>;
Lee Jones3f3ed402012-04-13 15:05:07 +010064 label = "extkb3";
Lee Jones93b56982012-05-29 14:17:36 +080065 gpios = <&gpio5 1 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000066 };
67 button@5 {
68 debounce_interval = <50>;
69 wakeup = <1>;
70 linux,code = <6>;
Lee Jones3f3ed402012-04-13 15:05:07 +010071 label = "extkb4";
Lee Jones93b56982012-05-29 14:17:36 +080072 gpios = <&gpio5 2 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000073 };
74 };
75
76 leds {
77 compatible = "gpio-leds";
78 used-led {
79 label = "user_led";
Lee Jones93b56982012-05-29 14:17:36 +080080 gpios = <&gpio4 14 0x4>;
Lee Jones7fd975f2012-06-15 09:30:30 +010081 default-state = "on";
Lee Jonesfd53d042012-05-02 09:48:38 +010082 linux,default-trigger = "heartbeat";
Lee Jones7e0ce272012-03-15 16:46:17 +000083 };
84 };
85
Arnd Bergmann2d334292012-03-07 15:04:07 +000086 soc-u9500 {
Lee Jonese6488062012-07-31 13:31:50 +010087
88 sound {
89 compatible = "stericsson,snd-soc-mop500";
90
91 stericsson,cpu-dai = <&msp1 &msp3>;
92 stericsson,audio-codec = <&codec>;
93 };
94
Lee Jonesfe164522012-07-31 12:37:16 +010095 msp1: msp@80124000 {
96 status = "okay";
97 };
98
99 msp3: msp@80125000 {
100 status = "okay";
101 };
102
hongbo.zhangdc1956b2012-11-15 18:56:43 +0800103 prcmu@80157000 {
104 thermal@801573c0 {
105 num-trips = <4>;
106
107 trip0-temp = <70000>;
108 trip0-type = "active";
109 trip0-cdev-num = <1>;
110 trip0-cdev-name0 = "thermal-cpufreq-0";
111
112 trip1-temp = <75000>;
113 trip1-type = "active";
114 trip1-cdev-num = <1>;
115 trip1-cdev-name0 = "thermal-cpufreq-0";
116
117 trip2-temp = <80000>;
118 trip2-type = "active";
119 trip2-cdev-num = <1>;
120 trip2-cdev-name0 = "thermal-cpufreq-0";
121
122 trip3-temp = <85000>;
123 trip3-type = "critical";
124 trip3-cdev-num = <0>;
125
126 status = "okay";
127 };
128 };
129
Lee Jones7e0ce272012-03-15 16:46:17 +0000130 external-bus@50000000 {
Lee Jonesbf76e062012-04-24 10:53:18 +0100131 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000132
Lee Jonesbf76e062012-04-24 10:53:18 +0100133 ethernet@0 {
134 compatible = "smsc,lan9115";
135 reg = <0 0x10000>;
136 interrupts = <12 0x1>;
Lee Jones7e0ce272012-03-15 16:46:17 +0000137 interrupt-parent = <&gpio4>;
Lee Jonesbc367482012-05-03 11:23:47 +0100138 vdd33a-supply = <&en_3v3_reg>;
139 vddvario-supply = <&db8500_vape_reg>;
140
Lee Jonesbf76e062012-04-24 10:53:18 +0100141
142 reg-shift = <1>;
143 reg-io-width = <2>;
144 smsc,force-internal-phy;
145 smsc,irq-active-high;
146 smsc,irq-push-pull;
Lee Jones7e0ce272012-03-15 16:46:17 +0000147 };
148 };
149
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800150 // External Micro SD slot
Lee Jones81bf8c22012-09-26 12:55:56 +0100151 sdi0_per1@80126000 {
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800152 arm,primecell-periphid = <0x10480180>;
153 max-frequency = <50000000>;
Lee Jones92a0f482012-09-26 11:12:48 +0100154 bus-width = <4>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800155 mmc-cap-mmc-highspeed;
Lee Jones4a85c7f2012-05-29 14:29:53 +0800156 vmmc-supply = <&ab8500_ldo_aux3_reg>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800157
Lee Jones93b56982012-05-29 14:17:36 +0800158 cd-gpios = <&gpio6 26 0x4>; // 218
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800159 cd-inverted;
160
161 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000162 };
163
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800164 // On-board eMMC
Lee Jones81bf8c22012-09-26 12:55:56 +0100165 sdi4_per2@80114000 {
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800166 arm,primecell-periphid = <0x10480180>;
167 max-frequency = <50000000>;
168 bus-width = <8>;
169 mmc-cap-mmc-highspeed;
Lee Jones4a85c7f2012-05-29 14:29:53 +0800170 vmmc-supply = <&ab8500_ldo_aux2_reg>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800171
172 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000173 };
174
Lee Jones4905af02012-03-07 17:35:04 +0000175 uart@80120000 {
176 status = "okay";
177 };
178
179 uart@80121000 {
180 status = "okay";
181 };
182
183 uart@80007000 {
184 status = "okay";
185 };
186
Lee Jones7e0ce272012-03-15 16:46:17 +0000187 i2c@80004000 {
188 tc3589x@42 {
189 //compatible = "tc3589x";
190 reg = <0x42>;
Lee Jones93b56982012-05-29 14:17:36 +0800191 gpios = <&gpio6 25 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +0000192 interrupt-parent = <&gpio6>;
193 };
194 tps61052@33 {
195 //compatible = "tps61052";
196 reg = <0x33>;
197 };
198 };
199
200 i2c@80128000 {
201 lp5521@0x33 {
202 // compatible = "lp5521";
203 reg = <0x33>;
204 };
205 lp5521@0x34 {
206 // compatible = "lp5521";
207 reg = <0x34>;
208 };
209 bh1780@0x29 {
210 // compatible = "rohm,bh1780gli";
211 reg = <0x33>;
212 };
213 };
hongbo.zhangdc1956b2012-11-15 18:56:43 +0800214
215 cpufreq-cooling {
216 status = "okay";
217 };
Linus Torvaldsdb5b0ae2012-12-13 10:39:26 -0800218
Lee Jones809efa52012-09-25 12:04:51 +0100219 prcmu@80157000 {
220 db8500-prcmu-regulators {
221 db8500_vape_reg: db8500_vape {
222 regulator-name = "db8500-vape";
223 };
224
225 db8500_varm_reg: db8500_varm {
226 regulator-name = "db8500-varm";
227 };
228
229 db8500_vmodem_reg: db8500_vmodem {
230 regulator-name = "db8500-vmodem";
231 };
232
233 db8500_vpll_reg: db8500_vpll {
234 regulator-name = "db8500-vpll";
235 };
236
237 db8500_vsmps1_reg: db8500_vsmps1 {
238 regulator-name = "db8500-vsmps1";
239 };
240
241 db8500_vsmps2_reg: db8500_vsmps2 {
242 regulator-name = "db8500-vsmps2";
243 };
244
245 db8500_vsmps3_reg: db8500_vsmps3 {
246 regulator-name = "db8500-vsmps3";
247 };
248
249 db8500_vrf1_reg: db8500_vrf1 {
250 regulator-name = "db8500-vrf1";
251 };
252
253 db8500_sva_mmdsp_reg: db8500_sva_mmdsp {
254 regulator-name = "db8500-sva-mmdsp";
255 };
256
257 db8500_sva_mmdsp_ret_reg: db8500_sva_mmdsp_ret {
258 regulator-name = "db8500-sva-mmdsp-ret";
259 };
260
261 db8500_sva_pipe_reg: db8500_sva_pipe {
262 regulator-name = "db8500_sva_pipe";
263 };
264
265 db8500_sia_mmdsp_reg: db8500_sia_mmdsp {
266 regulator-name = "db8500_sia_mmdsp";
267 };
268
269 db8500_sia_mmdsp_ret_reg: db8500_sia_mmdsp_ret {
270 regulator-name = "db8500-sia-mmdsp-ret";
271 };
272
273 db8500_sia_pipe_reg: db8500_sia_pipe {
274 regulator-name = "db8500-sia-pipe";
275 };
276
277 db8500_sga_reg: db8500_sga {
278 regulator-name = "db8500-sga";
279 };
280
281 db8500_b2r2_mcde_reg: db8500_b2r2_mcde {
282 regulator-name = "db8500-b2r2-mcde";
283 };
284
285 db8500_esram12_reg: db8500_esram12 {
286 regulator-name = "db8500-esram12";
287 };
288
289 db8500_esram12_ret_reg: db8500_esram12_ret {
290 regulator-name = "db8500-esram12-ret";
291 };
292
293 db8500_esram34_reg: db8500_esram34 {
294 regulator-name = "db8500-esram34";
295 };
296
297 db8500_esram34_ret_reg: db8500_esram34_ret {
298 regulator-name = "db8500-esram34-ret";
299 };
300 };
301
Arnd Bergmannd52701d32013-03-12 09:39:01 +0100302 ab8500 {
Lee Jones924e82d2013-01-16 14:28:03 +0000303 ab8500-gpio {
304 compatible = "stericsson,ab8500-gpio";
305 };
306
Lee Jones809efa52012-09-25 12:04:51 +0100307 ab8500-regulators {
308 ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
309 regulator-name = "V-DISPLAY";
310 };
311
312 ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
313 regulator-name = "V-eMMC1";
314 };
315
316 ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
317 regulator-name = "V-MMC-SD";
318 };
319
320 ab8500_ldo_initcore_reg: ab8500_ldo_initcore {
321 regulator-name = "V-INTCORE";
322 };
323
324 ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
325 regulator-name = "V-TVOUT";
326 };
327
328 ab8500_ldo_usb_reg: ab8500_ldo_usb {
329 regulator-name = "dummy";
330 };
331
332 ab8500_ldo_audio_reg: ab8500_ldo_audio {
333 regulator-name = "V-AUD";
334 };
335
336 ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
337 regulator-name = "V-AMIC1";
338 };
339
340 ab8500_ldo_amamic2_reg: ab8500_ldo_amamic2 {
341 regulator-name = "V-AMIC2";
342 };
343
344 ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
345 regulator-name = "V-DMIC";
346 };
347
348 ab8500_ldo_ana_reg: ab8500_ldo_ana {
349 regulator-name = "V-CSI/DSI";
350 };
351 };
352 };
353 };
Arnd Bergmann2d334292012-03-07 15:04:07 +0000354 };
355};