]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/arm/boot/dts/snowball.dts
ARM: ux500: Add SDI (MMC) support to the HREF Device Tree
[mirror_ubuntu-hirsute-kernel.git] / arch / arm / boot / dts / snowball.dts
CommitLineData
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";
17 compatible = "calaosystems,snowball-a9500";
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
7e0ce270 102 external-bus@50000000 {
bf76e062
LJ
103 status = "okay";
104
105 ethernet@0 {
106 compatible = "smsc,lan9115";
107 reg = <0 0x10000>;
108 interrupts = <12 0x1>;
7e0ce270 109 interrupt-parent = <&gpio4>;
bc367481
LJ
110 vdd33a-supply = <&en_3v3_reg>;
111 vddvario-supply = <&db8500_vape_reg>;
112
bf76e062
LJ
113
114 reg-shift = <1>;
115 reg-io-width = <2>;
116 smsc,force-internal-phy;
117 smsc,irq-active-high;
118 smsc,irq-push-pull;
7e0ce270
LJ
119 };
120 };
121
5e1ac7db 122 // External Micro SD slot
81bf8c2e 123 sdi0_per1@80126000 {
5e1ac7db
LJ
124 arm,primecell-periphid = <0x10480180>;
125 max-frequency = <50000000>;
126 bus-width = <8>;
127 mmc-cap-mmc-highspeed;
4a85c7fa 128 vmmc-supply = <&ab8500_ldo_aux3_reg>;
5e1ac7db 129
93b5698a 130 cd-gpios = <&gpio6 26 0x4>; // 218
5e1ac7db
LJ
131 cd-inverted;
132
133 status = "okay";
7e0ce270
LJ
134 };
135
5e1ac7db 136 // On-board eMMC
81bf8c2e 137 sdi4_per2@80114000 {
5e1ac7db
LJ
138 arm,primecell-periphid = <0x10480180>;
139 max-frequency = <50000000>;
140 bus-width = <8>;
141 mmc-cap-mmc-highspeed;
4a85c7fa 142 vmmc-supply = <&ab8500_ldo_aux2_reg>;
5e1ac7db
LJ
143
144 status = "okay";
7e0ce270
LJ
145 };
146
4905af0e
LJ
147 uart@80120000 {
148 status = "okay";
149 };
150
151 uart@80121000 {
152 status = "okay";
153 };
154
155 uart@80007000 {
156 status = "okay";
157 };
158
7e0ce270
LJ
159 i2c@80004000 {
160 tc3589x@42 {
161 //compatible = "tc3589x";
162 reg = <0x42>;
93b5698a 163 gpios = <&gpio6 25 0x4>;
7e0ce270
LJ
164 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 };
809efa56
LJ
186
187 prcmu@80157000 {
188 db8500-prcmu-regulators {
189 db8500_vape_reg: db8500_vape {
190 regulator-name = "db8500-vape";
191 };
192
193 db8500_varm_reg: db8500_varm {
194 regulator-name = "db8500-varm";
195 };
196
197 db8500_vmodem_reg: db8500_vmodem {
198 regulator-name = "db8500-vmodem";
199 };
200
201 db8500_vpll_reg: db8500_vpll {
202 regulator-name = "db8500-vpll";
203 };
204
205 db8500_vsmps1_reg: db8500_vsmps1 {
206 regulator-name = "db8500-vsmps1";
207 };
208
209 db8500_vsmps2_reg: db8500_vsmps2 {
210 regulator-name = "db8500-vsmps2";
211 };
212
213 db8500_vsmps3_reg: db8500_vsmps3 {
214 regulator-name = "db8500-vsmps3";
215 };
216
217 db8500_vrf1_reg: db8500_vrf1 {
218 regulator-name = "db8500-vrf1";
219 };
220
221 db8500_sva_mmdsp_reg: db8500_sva_mmdsp {
222 regulator-name = "db8500-sva-mmdsp";
223 };
224
225 db8500_sva_mmdsp_ret_reg: db8500_sva_mmdsp_ret {
226 regulator-name = "db8500-sva-mmdsp-ret";
227 };
228
229 db8500_sva_pipe_reg: db8500_sva_pipe {
230 regulator-name = "db8500_sva_pipe";
231 };
232
233 db8500_sia_mmdsp_reg: db8500_sia_mmdsp {
234 regulator-name = "db8500_sia_mmdsp";
235 };
236
237 db8500_sia_mmdsp_ret_reg: db8500_sia_mmdsp_ret {
238 regulator-name = "db8500-sia-mmdsp-ret";
239 };
240
241 db8500_sia_pipe_reg: db8500_sia_pipe {
242 regulator-name = "db8500-sia-pipe";
243 };
244
245 db8500_sga_reg: db8500_sga {
246 regulator-name = "db8500-sga";
247 };
248
249 db8500_b2r2_mcde_reg: db8500_b2r2_mcde {
250 regulator-name = "db8500-b2r2-mcde";
251 };
252
253 db8500_esram12_reg: db8500_esram12 {
254 regulator-name = "db8500-esram12";
255 };
256
257 db8500_esram12_ret_reg: db8500_esram12_ret {
258 regulator-name = "db8500-esram12-ret";
259 };
260
261 db8500_esram34_reg: db8500_esram34 {
262 regulator-name = "db8500-esram34";
263 };
264
265 db8500_esram34_ret_reg: db8500_esram34_ret {
266 regulator-name = "db8500-esram34-ret";
267 };
268 };
269
270 ab8500@5 {
271 ab8500-regulators {
272 ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
273 regulator-name = "V-DISPLAY";
274 };
275
276 ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
277 regulator-name = "V-eMMC1";
278 };
279
280 ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
281 regulator-name = "V-MMC-SD";
282 };
283
284 ab8500_ldo_initcore_reg: ab8500_ldo_initcore {
285 regulator-name = "V-INTCORE";
286 };
287
288 ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
289 regulator-name = "V-TVOUT";
290 };
291
292 ab8500_ldo_usb_reg: ab8500_ldo_usb {
293 regulator-name = "dummy";
294 };
295
296 ab8500_ldo_audio_reg: ab8500_ldo_audio {
297 regulator-name = "V-AUD";
298 };
299
300 ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
301 regulator-name = "V-AMIC1";
302 };
303
304 ab8500_ldo_amamic2_reg: ab8500_ldo_amamic2 {
305 regulator-name = "V-AMIC2";
306 };
307
308 ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
309 regulator-name = "V-DMIC";
310 };
311
312 ab8500_ldo_ana_reg: ab8500_ldo_ana {
313 regulator-name = "V-CSI/DSI";
314 };
315 };
316 };
317 };
2d334297
AB
318 };
319};