blob: 814769b65bcfc5aca19b9edd0506fb2d6d1238e0 [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";
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
Lee Jones7e0ce272012-03-15 16:46:17 +000033 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";
Lee Jones93b56982012-05-29 14:17:36 +080043 gpios = <&gpio1 0 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000044 };
45 button@2 {
46 debounce_interval = <50>;
47 wakeup = <1>;
48 linux,code = <3>;
Lee Jones3f3ed402012-04-13 15:05:07 +010049 label = "extkb1";
Lee Jones93b56982012-05-29 14:17:36 +080050 gpios = <&gpio4 23 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000051 };
52 button@3 {
53 debounce_interval = <50>;
54 wakeup = <1>;
55 linux,code = <4>;
Lee Jones3f3ed402012-04-13 15:05:07 +010056 label = "extkb2";
Lee Jones93b56982012-05-29 14:17:36 +080057 gpios = <&gpio4 24 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000058 };
59 button@4 {
60 debounce_interval = <50>;
61 wakeup = <1>;
62 linux,code = <5>;
Lee Jones3f3ed402012-04-13 15:05:07 +010063 label = "extkb3";
Lee Jones93b56982012-05-29 14:17:36 +080064 gpios = <&gpio5 1 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000065 };
66 button@5 {
67 debounce_interval = <50>;
68 wakeup = <1>;
69 linux,code = <6>;
Lee Jones3f3ed402012-04-13 15:05:07 +010070 label = "extkb4";
Lee Jones93b56982012-05-29 14:17:36 +080071 gpios = <&gpio5 2 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000072 };
73 };
74
75 leds {
76 compatible = "gpio-leds";
77 used-led {
78 label = "user_led";
Lee Jones93b56982012-05-29 14:17:36 +080079 gpios = <&gpio4 14 0x4>;
Lee Jones7fd975f2012-06-15 09:30:30 +010080 default-state = "on";
Lee Jonesfd53d042012-05-02 09:48:38 +010081 linux,default-trigger = "heartbeat";
Lee Jones7e0ce272012-03-15 16:46:17 +000082 };
83 };
84
Arnd Bergmann2d334292012-03-07 15:04:07 +000085 soc-u9500 {
Lee Jonese6488062012-07-31 13:31:50 +010086
87 sound {
88 compatible = "stericsson,snd-soc-mop500";
89
90 stericsson,cpu-dai = <&msp1 &msp3>;
91 stericsson,audio-codec = <&codec>;
92 };
93
Lee Jonesfe164522012-07-31 12:37:16 +010094 msp1: msp@80124000 {
95 status = "okay";
96 };
97
98 msp3: msp@80125000 {
99 status = "okay";
100 };
101
Lee Jones7e0ce272012-03-15 16:46:17 +0000102 external-bus@50000000 {
Lee Jonesbf76e062012-04-24 10:53:18 +0100103 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000104
Lee Jonesbf76e062012-04-24 10:53:18 +0100105 ethernet@0 {
106 compatible = "smsc,lan9115";
107 reg = <0 0x10000>;
108 interrupts = <12 0x1>;
Lee Jones7e0ce272012-03-15 16:46:17 +0000109 interrupt-parent = <&gpio4>;
Lee Jonesbc367482012-05-03 11:23:47 +0100110 vdd33a-supply = <&en_3v3_reg>;
111 vddvario-supply = <&db8500_vape_reg>;
112
Lee Jonesbf76e062012-04-24 10:53:18 +0100113
114 reg-shift = <1>;
115 reg-io-width = <2>;
116 smsc,force-internal-phy;
117 smsc,irq-active-high;
118 smsc,irq-push-pull;
Lee Jones7e0ce272012-03-15 16:46:17 +0000119 };
120 };
121
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800122 // External Micro SD slot
Lee Jones81bf8c22012-09-26 12:55:56 +0100123 sdi0_per1@80126000 {
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800124 arm,primecell-periphid = <0x10480180>;
125 max-frequency = <50000000>;
Lee Jones92a0f482012-09-26 11:12:48 +0100126 bus-width = <4>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800127 mmc-cap-mmc-highspeed;
Lee Jones4a85c7f2012-05-29 14:29:53 +0800128 vmmc-supply = <&ab8500_ldo_aux3_reg>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800129
Lee Jones93b56982012-05-29 14:17:36 +0800130 cd-gpios = <&gpio6 26 0x4>; // 218
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800131 cd-inverted;
132
133 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000134 };
135
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800136 // On-board eMMC
Lee Jones81bf8c22012-09-26 12:55:56 +0100137 sdi4_per2@80114000 {
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800138 arm,primecell-periphid = <0x10480180>;
139 max-frequency = <50000000>;
140 bus-width = <8>;
141 mmc-cap-mmc-highspeed;
Lee Jones4a85c7f2012-05-29 14:29:53 +0800142 vmmc-supply = <&ab8500_ldo_aux2_reg>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800143
144 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000145 };
146
Lee Jones4905af02012-03-07 17:35:04 +0000147 uart@80120000 {
148 status = "okay";
149 };
150
151 uart@80121000 {
152 status = "okay";
153 };
154
155 uart@80007000 {
156 status = "okay";
157 };
158
Lee Jones7e0ce272012-03-15 16:46:17 +0000159 i2c@80004000 {
160 tc3589x@42 {
161 //compatible = "tc3589x";
162 reg = <0x42>;
Lee Jones93b56982012-05-29 14:17:36 +0800163 gpios = <&gpio6 25 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +0000164 interrupt-parent = <&gpio6>;
165 };
166 tps61052@33 {
167 //compatible = "tps61052";
168 reg = <0x33>;
169 };
170 };
171
172 i2c@80128000 {
173 lp5521@0x33 {
174 // compatible = "lp5521";
175 reg = <0x33>;
176 };
177 lp5521@0x34 {
178 // compatible = "lp5521";
179 reg = <0x34>;
180 };
181 bh1780@0x29 {
182 // compatible = "rohm,bh1780gli";
183 reg = <0x33>;
184 };
185 };
hongbo.zhangdc1956b2012-11-15 18:56:43 +0800186
187 cpufreq-cooling {
188 status = "okay";
189 };
Linus Torvaldsdb5b0ae2012-12-13 10:39:26 -0800190
Lee Jones809efa52012-09-25 12:04:51 +0100191 prcmu@80157000 {
192 db8500-prcmu-regulators {
193 db8500_vape_reg: db8500_vape {
194 regulator-name = "db8500-vape";
195 };
196
197 db8500_varm_reg: db8500_varm {
198 regulator-name = "db8500-varm";
199 };
200
201 db8500_vmodem_reg: db8500_vmodem {
202 regulator-name = "db8500-vmodem";
203 };
204
205 db8500_vpll_reg: db8500_vpll {
206 regulator-name = "db8500-vpll";
207 };
208
209 db8500_vsmps1_reg: db8500_vsmps1 {
210 regulator-name = "db8500-vsmps1";
211 };
212
213 db8500_vsmps2_reg: db8500_vsmps2 {
214 regulator-name = "db8500-vsmps2";
215 };
216
217 db8500_vsmps3_reg: db8500_vsmps3 {
218 regulator-name = "db8500-vsmps3";
219 };
220
221 db8500_vrf1_reg: db8500_vrf1 {
222 regulator-name = "db8500-vrf1";
223 };
224
225 db8500_sva_mmdsp_reg: db8500_sva_mmdsp {
226 regulator-name = "db8500-sva-mmdsp";
227 };
228
229 db8500_sva_mmdsp_ret_reg: db8500_sva_mmdsp_ret {
230 regulator-name = "db8500-sva-mmdsp-ret";
231 };
232
233 db8500_sva_pipe_reg: db8500_sva_pipe {
234 regulator-name = "db8500_sva_pipe";
235 };
236
237 db8500_sia_mmdsp_reg: db8500_sia_mmdsp {
238 regulator-name = "db8500_sia_mmdsp";
239 };
240
241 db8500_sia_mmdsp_ret_reg: db8500_sia_mmdsp_ret {
242 regulator-name = "db8500-sia-mmdsp-ret";
243 };
244
245 db8500_sia_pipe_reg: db8500_sia_pipe {
246 regulator-name = "db8500-sia-pipe";
247 };
248
249 db8500_sga_reg: db8500_sga {
250 regulator-name = "db8500-sga";
251 };
252
253 db8500_b2r2_mcde_reg: db8500_b2r2_mcde {
254 regulator-name = "db8500-b2r2-mcde";
255 };
256
257 db8500_esram12_reg: db8500_esram12 {
258 regulator-name = "db8500-esram12";
259 };
260
261 db8500_esram12_ret_reg: db8500_esram12_ret {
262 regulator-name = "db8500-esram12-ret";
263 };
264
265 db8500_esram34_reg: db8500_esram34 {
266 regulator-name = "db8500-esram34";
267 };
268
269 db8500_esram34_ret_reg: db8500_esram34_ret {
270 regulator-name = "db8500-esram34-ret";
271 };
272 };
273
Lee Jones6c1d25b2013-04-02 14:21:51 +0100274 thermal@801573c0 {
275 num-trips = <4>;
276
277 trip0-temp = <70000>;
278 trip0-type = "active";
279 trip0-cdev-num = <1>;
280 trip0-cdev-name0 = "thermal-cpufreq-0";
281
282 trip1-temp = <75000>;
283 trip1-type = "active";
284 trip1-cdev-num = <1>;
285 trip1-cdev-name0 = "thermal-cpufreq-0";
286
287 trip2-temp = <80000>;
288 trip2-type = "active";
289 trip2-cdev-num = <1>;
290 trip2-cdev-name0 = "thermal-cpufreq-0";
291
292 trip3-temp = <85000>;
293 trip3-type = "critical";
294 trip3-cdev-num = <0>;
295
296 status = "okay";
297 };
298
Arnd Bergmannd52701d32013-03-12 09:39:01 +0100299 ab8500 {
Lee Jones924e82d2013-01-16 14:28:03 +0000300 ab8500-gpio {
301 compatible = "stericsson,ab8500-gpio";
302 };
303
Lee Jones809efa52012-09-25 12:04:51 +0100304 ab8500-regulators {
305 ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
306 regulator-name = "V-DISPLAY";
307 };
308
309 ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
310 regulator-name = "V-eMMC1";
311 };
312
313 ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
314 regulator-name = "V-MMC-SD";
315 };
316
317 ab8500_ldo_initcore_reg: ab8500_ldo_initcore {
318 regulator-name = "V-INTCORE";
319 };
320
321 ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
322 regulator-name = "V-TVOUT";
323 };
324
325 ab8500_ldo_usb_reg: ab8500_ldo_usb {
326 regulator-name = "dummy";
327 };
328
329 ab8500_ldo_audio_reg: ab8500_ldo_audio {
330 regulator-name = "V-AUD";
331 };
332
333 ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
334 regulator-name = "V-AMIC1";
335 };
336
337 ab8500_ldo_amamic2_reg: ab8500_ldo_amamic2 {
338 regulator-name = "V-AMIC2";
339 };
340
341 ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
342 regulator-name = "V-DMIC";
343 };
344
345 ab8500_ldo_ana_reg: ab8500_ldo_ana {
346 regulator-name = "V-CSI/DSI";
347 };
348 };
349 };
350 };
Arnd Bergmann2d334292012-03-07 15:04:07 +0000351 };
352};