Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszer...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos5250-smdk5250.dts
1 /*
2  * SAMSUNG SMDK5250 board device tree source
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11
12 /dts-v1/;
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include "exynos5250.dtsi"
16
17 / {
18         model = "SAMSUNG SMDK5250 board based on EXYNOS5250";
19         compatible = "samsung,smdk5250", "samsung,exynos5250", "samsung,exynos5";
20
21         aliases {
22         };
23
24         memory@40000000 {
25                 device_type = "memory";
26                 reg = <0x40000000 0x80000000>;
27         };
28
29         chosen {
30                 bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc";
31         };
32
33         vdd: fixed-regulator-vdd {
34                 compatible = "regulator-fixed";
35                 regulator-name = "vdd-supply";
36                 regulator-min-microvolt = <1800000>;
37                 regulator-max-microvolt = <1800000>;
38                 regulator-always-on;
39         };
40
41         dbvdd: fixed-regulator-dbvdd {
42                 compatible = "regulator-fixed";
43                 regulator-name = "dbvdd-supply";
44                 regulator-min-microvolt = <3300000>;
45                 regulator-max-microvolt = <3300000>;
46                 regulator-always-on;
47         };
48
49         spkvdd: fixed-regulator-spkvdd {
50                 compatible = "regulator-fixed";
51                 regulator-name = "spkvdd-supply";
52                 regulator-min-microvolt = <5000000>;
53                 regulator-max-microvolt = <5000000>;
54                 regulator-always-on;
55         };
56
57         sound {
58                 compatible = "samsung,smdk-wm8994";
59
60                 samsung,i2s-controller = <&i2s0>;
61                 samsung,audio-codec = <&wm8994>;
62         };
63
64         fixed-rate-clocks {
65                 xxti {
66                         compatible = "samsung,clock-xxti";
67                         clock-frequency = <24000000>;
68                 };
69
70                 codec_mclk: codec-mclk {
71                         compatible = "fixed-clock";
72                         #clock-cells = <0>;
73                         clock-frequency = <16934000>;
74                 };
75         };
76 };
77
78 &cpu0 {
79         cpu0-supply = <&buck2_reg>;
80 };
81
82 &dp {
83         samsung,color-space = <0>;
84         samsung,color-depth = <1>;
85         samsung,link-rate = <0x0a>;
86         samsung,lane-count = <4>;
87
88         pinctrl-names = "default";
89         pinctrl-0 = <&dp_hpd>;
90         status = "okay";
91
92         display-timings {
93                 native-mode = <&timing0>;
94
95                 timing0: timing {
96                         /* 1280x800 */
97                         clock-frequency = <50000>;
98                         hactive = <1280>;
99                         vactive = <800>;
100                         hfront-porch = <4>;
101                         hback-porch = <4>;
102                         hsync-len = <4>;
103                         vback-porch = <4>;
104                         vfront-porch = <4>;
105                         vsync-len = <4>;
106                 };
107         };
108 };
109
110 &ehci {
111         samsung,vbus-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
112 };
113
114 &fimd {
115         status = "okay";
116 };
117
118 &hdmi {
119         status = "okay";
120         ddc = <&i2c_2>;
121         hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
122 };
123
124 &i2c_0 {
125         status = "okay";
126         samsung,i2c-sda-delay = <100>;
127         samsung,i2c-max-bus-freq = <20000>;
128
129         eeprom@50 {
130                 compatible = "samsung,s524ad0xd1";
131                 reg = <0x50>;
132         };
133
134         max77686@9 {
135                 compatible = "maxim,max77686";
136                 reg = <0x09>;
137                 interrupt-parent = <&gpx3>;
138                 interrupts = <2 IRQ_TYPE_NONE>;
139                 pinctrl-names = "default";
140                 pinctrl-0 = <&max77686_irq>;
141                 wakeup-source;
142
143                 voltage-regulators {
144                         ldo1_reg: LDO1 {
145                                 regulator-name = "P1.0V_LDO_OUT1";
146                                 regulator-min-microvolt = <1000000>;
147                                 regulator-max-microvolt = <1000000>;
148                                 regulator-always-on;
149                         };
150
151                         ldo2_reg: LDO2 {
152                                 regulator-name = "P1.2V_LDO_OUT2";
153                                 regulator-min-microvolt = <1200000>;
154                                 regulator-max-microvolt = <1200000>;
155                                 regulator-always-on;
156                         };
157
158                         ldo3_reg: LDO3 {
159                                 regulator-name = "P1.8V_LDO_OUT3";
160                                 regulator-min-microvolt = <1800000>;
161                                 regulator-max-microvolt = <1800000>;
162                                 regulator-always-on;
163                         };
164
165                         ldo4_reg: LDO4 {
166                                 regulator-name = "P2.8V_LDO_OUT4";
167                                 regulator-min-microvolt = <2800000>;
168                                 regulator-max-microvolt = <2800000>;
169                         };
170
171                         ldo5_reg: LDO5 {
172                                 regulator-name = "P1.8V_LDO_OUT5";
173                                 regulator-min-microvolt = <1800000>;
174                                 regulator-max-microvolt = <1800000>;
175                         };
176
177                         ldo6_reg: LDO6 {
178                                 regulator-name = "P1.1V_LDO_OUT6";
179                                 regulator-min-microvolt = <1100000>;
180                                 regulator-max-microvolt = <1100000>;
181                                 regulator-always-on;
182                         };
183
184                         ldo7_reg: LDO7 {
185                                 regulator-name = "P1.1V_LDO_OUT7";
186                                 regulator-min-microvolt = <1100000>;
187                                 regulator-max-microvolt = <1100000>;
188                                 regulator-always-on;
189                         };
190
191                         ldo8_reg: LDO8 {
192                                 regulator-name = "P1.0V_LDO_OUT8";
193                                 regulator-min-microvolt = <1000000>;
194                                 regulator-max-microvolt = <1000000>;
195                         };
196
197                         ldo10_reg: LDO10 {
198                                 regulator-name = "P1.8V_LDO_OUT10";
199                                 regulator-min-microvolt = <1800000>;
200                                 regulator-max-microvolt = <1800000>;
201                                 regulator-always-on;
202                         };
203
204                         ldo11_reg: LDO11 {
205                                 regulator-name = "P1.8V_LDO_OUT11";
206                                 regulator-min-microvolt = <1800000>;
207                                 regulator-max-microvolt = <1800000>;
208                         };
209
210                         ldo12_reg: LDO12 {
211                                 regulator-name = "P3.0V_LDO_OUT12";
212                                 regulator-min-microvolt = <3000000>;
213                                 regulator-max-microvolt = <3000000>;
214                         };
215
216                         ldo13_reg: LDO13 {
217                                 regulator-name = "P1.8V_LDO_OUT13";
218                                 regulator-min-microvolt = <1800000>;
219                                 regulator-max-microvolt = <1800000>;
220                         };
221
222                         ldo14_reg: LDO14 {
223                                 regulator-name = "P1.8V_LDO_OUT14";
224                                 regulator-min-microvolt = <1800000>;
225                                 regulator-max-microvolt = <1800000>;
226                         };
227
228                         ldo15_reg: LDO15 {
229                                 regulator-name = "P1.0V_LDO_OUT15";
230                                 regulator-min-microvolt = <1000000>;
231                                 regulator-max-microvolt = <1000000>;
232                         };
233
234                         ldo16_reg: LDO16 {
235                                 regulator-name = "P1.8V_LDO_OUT16";
236                                 regulator-min-microvolt = <1800000>;
237                                 regulator-max-microvolt = <1800000>;
238                         };
239
240                         buck1_reg: BUCK1 {
241                                 regulator-name = "vdd_mif";
242                                 regulator-min-microvolt = <950000>;
243                                 regulator-max-microvolt = <1300000>;
244                                 regulator-always-on;
245                                 regulator-boot-on;
246                         };
247
248                         buck2_reg: BUCK2 {
249                                 regulator-name = "vdd_arm";
250                                 regulator-min-microvolt = <850000>;
251                                 regulator-max-microvolt = <1350000>;
252                                 regulator-always-on;
253                                 regulator-boot-on;
254                         };
255
256                         buck3_reg: BUCK3 {
257                                 regulator-name = "vdd_int";
258                                 regulator-min-microvolt = <900000>;
259                                 regulator-max-microvolt = <1200000>;
260                                 regulator-always-on;
261                                 regulator-boot-on;
262                         };
263
264                         buck4_reg: BUCK4 {
265                                 regulator-name = "vdd_g3d";
266                                 regulator-min-microvolt = <850000>;
267                                 regulator-max-microvolt = <1300000>;
268                                 regulator-always-on;
269                                 regulator-boot-on;
270                         };
271
272                         buck5_reg: BUCK5 {
273                                 regulator-name = "P1.8V_BUCK_OUT5";
274                                 regulator-min-microvolt = <1800000>;
275                                 regulator-max-microvolt = <1800000>;
276                                 regulator-always-on;
277                                 regulator-boot-on;
278                         };
279                 };
280         };
281 };
282
283 &i2c_1 {
284         status = "okay";
285         samsung,i2c-sda-delay = <100>;
286         samsung,i2c-max-bus-freq = <20000>;
287
288         eeprom@51 {
289                 compatible = "samsung,s524ad0xd1";
290                 reg = <0x51>;
291         };
292
293         wm8994: wm8994@1a {
294                 compatible = "wlf,wm8994";
295                 reg = <0x1a>;
296
297                 gpio-controller;
298                 #gpio-cells = <2>;
299
300                 clocks = <&codec_mclk>;
301                 clock-names = "MCLK1";
302
303                 AVDD2-supply = <&vdd>;
304                 CPVDD-supply = <&vdd>;
305                 DBVDD-supply = <&dbvdd>;
306                 SPKVDD1-supply = <&spkvdd>;
307                 SPKVDD2-supply = <&spkvdd>;
308         };
309 };
310
311 &i2c_2 {
312         status = "okay";
313         /* used by HDMI DDC */
314         samsung,i2c-sda-delay = <100>;
315         samsung,i2c-max-bus-freq = <66000>;
316 };
317
318 &i2c_8 {
319         status = "okay";
320         /* used by HDMI PHY */
321         samsung,i2c-sda-delay = <100>;
322         samsung,i2c-max-bus-freq = <66000>;
323 };
324
325 &i2c_9 {
326         status = "okay";
327         samsung,i2c-sda-delay = <100>;
328         samsung,i2c-max-bus-freq = <40000>;
329         samsung,i2c-slave-addr = <0x38>;
330
331         sata_phy_i2c: sata-phy@38 {
332                 compatible = "samsung,exynos-sataphy-i2c";
333                 reg = <0x38>;
334         };
335 };
336
337 &i2s0 {
338         status = "okay";
339 };
340
341 &mixer {
342         status = "okay";
343 };
344
345 &mmc_0 {
346         status = "okay";
347         broken-cd;
348         card-detect-delay = <200>;
349         samsung,dw-mshc-ciu-div = <3>;
350         samsung,dw-mshc-sdr-timing = <2 3>;
351         samsung,dw-mshc-ddr-timing = <1 2>;
352         pinctrl-names = "default";
353         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
354         bus-width = <8>;
355         cap-mmc-highspeed;
356 };
357
358 &mmc_2 {
359         status = "okay";
360         card-detect-delay = <200>;
361         samsung,dw-mshc-ciu-div = <3>;
362         samsung,dw-mshc-sdr-timing = <2 3>;
363         samsung,dw-mshc-ddr-timing = <1 2>;
364         pinctrl-names = "default";
365         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
366         bus-width = <4>;
367         disable-wp;
368         cap-sd-highspeed;
369 };
370
371 &rtc {
372         status = "okay";
373 };
374
375 &sata {
376         status = "okay";
377 };
378
379 &sata_phy {
380         status = "okay";
381         samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
382 };
383
384 &spi_1 {
385         status = "okay";
386         cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>;
387
388         w25q80bw@0 {
389                 #address-cells = <1>;
390                 #size-cells = <1>;
391                 compatible = "w25x80";
392                 reg = <0>;
393                 spi-max-frequency = <1000000>;
394
395                 controller-data {
396                         samsung,spi-feedback-delay = <0>;
397                 };
398
399                 partition@0 {
400                         label = "U-Boot";
401                         reg = <0x0 0x40000>;
402                         read-only;
403                 };
404
405                 partition@40000 {
406                         label = "Kernel";
407                         reg = <0x40000 0xc0000>;
408                 };
409         };
410 };
411
412 &pinctrl_0 {
413         max77686_irq: max77686-irq {
414                 samsung,pins = "gpx3-2";
415                 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
416                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
417                 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
418         };
419 };