mfd: wm8350-i2c: Make sure the i2c regmap functions are compiled
[linux/fpc-iii.git] / arch / arm / boot / dts / ste-snowball.dts
blob51a6ad40f8a8e1d5604b7861e115f09c73f55091
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  */
12 /dts-v1/;
13 #include "ste-dbx5x0.dtsi"
15 / {
16         model = "Calao Systems Snowball platform with device tree";
17         compatible = "calaosystems,snowball-a9500", "st-ericsson,u9500";
19         memory {
20                 reg = <0x00000000 0x20000000>;
21         };
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                 /* AB8500 GPIOs start from 1 - offset 25 is GPIO26. */
29                 gpio = <&ab8500_gpio 25 0x4>;
30                 startup-delay-us = <5000>;
31                 enable-active-high;
32         };
34         gpio_keys {
35                 compatible = "gpio-keys";
36                 #address-cells = <1>;
37                 #size-cells = <0>;
39                 button@1 {
40                         debounce_interval = <50>;
41                         wakeup = <1>;
42                         linux,code = <2>;
43                         label = "userpb";
44                         gpios = <&gpio1 0 0x4>;
45                 };
46                 button@2 {
47                         debounce_interval = <50>;
48                         wakeup = <1>;
49                         linux,code = <3>;
50                         label = "extkb1";
51                         gpios = <&gpio4 23 0x4>;
52                 };
53                 button@3 {
54                         debounce_interval = <50>;
55                         wakeup = <1>;
56                         linux,code = <4>;
57                         label = "extkb2";
58                         gpios = <&gpio4 24 0x4>;
59                 };
60                 button@4 {
61                         debounce_interval = <50>;
62                         wakeup = <1>;
63                         linux,code = <5>;
64                         label = "extkb3";
65                         gpios = <&gpio5 1 0x4>;
66                 };
67                 button@5 {
68                         debounce_interval = <50>;
69                         wakeup = <1>;
70                         linux,code = <6>;
71                         label = "extkb4";
72                         gpios = <&gpio5 2 0x4>;
73                 };
74         };
76         leds {
77                 compatible = "gpio-leds";
78                 used-led {
79                         label = "user_led";
80                         gpios = <&gpio4 14 0x4>;
81                         default-state = "on";
82                         linux,default-trigger = "heartbeat";
83                 };
84         };
86         soc {
88                 sound {
89                         compatible = "stericsson,snd-soc-mop500";
91                         stericsson,cpu-dai = <&msp1 &msp3>;
92                         stericsson,audio-codec = <&codec>;
93                 };
95                 msp1: msp@80124000 {
96                         status = "okay";
97                 };
99                 msp3: msp@80125000 {
100                         status = "okay";
101                 };
103                 external-bus@50000000 {
104                         status = "okay";
106                         ethernet@0 {
107                                 compatible = "smsc,lan9115";
108                                 reg = <0 0x10000>;
109                                 interrupts = <12 IRQ_TYPE_EDGE_RISING>;
110                                 interrupt-parent = <&gpio4>;
111                                 vdd33a-supply = <&en_3v3_reg>;
112                                 vddvario-supply = <&db8500_vape_reg>;
115                                 reg-shift = <1>;
116                                 reg-io-width = <2>;
117                                 smsc,force-internal-phy;
118                                 smsc,irq-active-high;
119                                 smsc,irq-push-pull;
120                         };
121                 };
123                 vmmci: regulator-gpio {
124                         compatible = "regulator-gpio";
126                         gpios = <&gpio6 25 0x4>;
127                         enable-gpio = <&gpio7 4 0x4>;
129                         regulator-min-microvolt = <1800000>;
130                         regulator-max-microvolt = <2900000>;
131                         regulator-name = "mmci-reg";
132                         regulator-type = "voltage";
134                         startup-delay-us = <100>;
135                         enable-active-high;
137                         states = <1800000 0x1
138                                   2900000 0x0>;
139                 };
141                 // External Micro SD slot
142                 sdi0_per1@80126000 {
143                         arm,primecell-periphid = <0x10480180>;
144                         max-frequency = <100000000>;
145                         bus-width = <4>;
146                         mmc-cap-mmc-highspeed;
147                         vmmc-supply = <&ab8500_ldo_aux3_reg>;
148                         vqmmc-supply = <&vmmci>;
150                         cd-gpios  = <&gpio6 26 0x4>; // 218
151                         cd-inverted;
153                         status = "okay";
154                 };
156                 // On-board eMMC
157                 sdi4_per2@80114000 {
158                         arm,primecell-periphid = <0x10480180>;
159                         max-frequency = <100000000>;
160                         bus-width = <8>;
161                         mmc-cap-mmc-highspeed;
162                         vmmc-supply = <&ab8500_ldo_aux2_reg>;
164                         status = "okay";
165                 };
167                 uart@80120000 {
168                         status = "okay";
169                 };
171                 uart@80121000 {
172                         status = "okay";
173                 };
175                 uart@80007000 {
176                         status = "okay";
177                 };
179                 cpufreq-cooling {
180                         status = "okay";
181                 };
183                 prcmu@80157000 {
184                         db8500-prcmu-regulators {
185                                 db8500_vape_reg: db8500_vape {
186                                         regulator-name = "db8500-vape";
187                                 };
189                                 db8500_varm_reg: db8500_varm {
190                                         regulator-name = "db8500-varm";
191                                 };
193                                 db8500_vmodem_reg: db8500_vmodem {
194                                         regulator-name = "db8500-vmodem";
195                                 };
197                                 db8500_vpll_reg: db8500_vpll {
198                                         regulator-name = "db8500-vpll";
199                                 };
201                                 db8500_vsmps1_reg: db8500_vsmps1 {
202                                         regulator-name = "db8500-vsmps1";
203                                 };
205                                 db8500_vsmps2_reg: db8500_vsmps2 {
206                                         regulator-name = "db8500-vsmps2";
207                                 };
209                                 db8500_vsmps3_reg: db8500_vsmps3 {
210                                         regulator-name = "db8500-vsmps3";
211                                 };
213                                 db8500_vrf1_reg: db8500_vrf1 {
214                                         regulator-name = "db8500-vrf1";
215                                 };
217                                 db8500_sva_mmdsp_reg: db8500_sva_mmdsp {
218                                         regulator-name = "db8500-sva-mmdsp";
219                                 };
221                                 db8500_sva_mmdsp_ret_reg: db8500_sva_mmdsp_ret {
222                                         regulator-name = "db8500-sva-mmdsp-ret";
223                                 };
225                                 db8500_sva_pipe_reg: db8500_sva_pipe {
226                                         regulator-name = "db8500_sva_pipe";
227                                 };
229                                 db8500_sia_mmdsp_reg: db8500_sia_mmdsp {
230                                         regulator-name = "db8500_sia_mmdsp";
231                                 };
233                                 db8500_sia_mmdsp_ret_reg: db8500_sia_mmdsp_ret {
234                                         regulator-name = "db8500-sia-mmdsp-ret";
235                                 };
237                                 db8500_sia_pipe_reg: db8500_sia_pipe {
238                                         regulator-name = "db8500-sia-pipe";
239                                 };
241                                 db8500_sga_reg: db8500_sga {
242                                         regulator-name = "db8500-sga";
243                                 };
245                                 db8500_b2r2_mcde_reg: db8500_b2r2_mcde {
246                                         regulator-name = "db8500-b2r2-mcde";
247                                 };
249                                 db8500_esram12_reg: db8500_esram12 {
250                                         regulator-name = "db8500-esram12";
251                                 };
253                                 db8500_esram12_ret_reg: db8500_esram12_ret {
254                                         regulator-name = "db8500-esram12-ret";
255                                 };
257                                 db8500_esram34_reg: db8500_esram34 {
258                                         regulator-name = "db8500-esram34";
259                                 };
261                                 db8500_esram34_ret_reg: db8500_esram34_ret {
262                                         regulator-name = "db8500-esram34-ret";
263                                 };
264                         };
266                         thermal@801573c0 {
267                                 num-trips = <4>;
269                                 trip0-temp = <70000>;
270                                 trip0-type = "active";
271                                 trip0-cdev-num = <1>;
272                                 trip0-cdev-name0 = "thermal-cpufreq-0";
274                                 trip1-temp = <75000>;
275                                 trip1-type = "active";
276                                 trip1-cdev-num = <1>;
277                                 trip1-cdev-name0 = "thermal-cpufreq-0";
279                                 trip2-temp = <80000>;
280                                 trip2-type = "active";
281                                 trip2-cdev-num = <1>;
282                                 trip2-cdev-name0 = "thermal-cpufreq-0";
284                                 trip3-temp = <85000>;
285                                 trip3-type = "critical";
286                                 trip3-cdev-num = <0>;
288                                 status = "okay";
289                         };
291                         ab8500 {
292                                 ab8500-gpio {
293                                         compatible = "stericsson,ab8500-gpio";
294                                 };
296                                 ext_regulators: ab8500-ext-regulators {
297                                         ab8500_ext1_reg: ab8500_ext1 {
298                                                 regulator-name = "ab8500-ext-supply1";
299                                         };
301                                         ab8500_ext2_reg_reg: ab8500_ext2 {
302                                                 regulator-name = "ab8500-ext-supply2";
303                                         };
305                                         ab8500_ext3_reg_reg: ab8500_ext3 {
306                                                 regulator-name = "ab8500-ext-supply3";
307                                         };
308                                 };
310                                 ab8500-regulators {
311                                         ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
312                                                 regulator-name = "V-DISPLAY";
313                                         };
315                                         ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
316                                                 regulator-name = "V-eMMC1";
317                                         };
319                                         ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
320                                                 regulator-name = "V-MMC-SD";
321                                         };
323                                         ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
324                                                 regulator-name = "V-INTCORE";
325                                         };
327                                         ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
328                                                 regulator-name = "V-TVOUT";
329                                         };
331                                         ab8500_ldo_usb_reg: ab8500_ldo_usb {
332                                                 regulator-name = "dummy";
333                                         };
335                                         ab8500_ldo_audio_reg: ab8500_ldo_audio {
336                                                 regulator-name = "V-AUD";
337                                         };
339                                         ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
340                                                 regulator-name = "V-AMIC1";
341                                         };
343                                         ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
344                                                 regulator-name = "V-AMIC2";
345                                         };
347                                         ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
348                                                 regulator-name = "V-DMIC";
349                                         };
351                                         ab8500_ldo_ana_reg: ab8500_ldo_ana {
352                                                 regulator-name = "V-CSI/DSI";
353                                         };
354                                 };
355                         };
356                 };
357         };