Merge remote-tracking branches 'regulator/fix/88pm800', 'regulator/fix/max8973',...
[linux-drm-fsl-dcu.git] / arch / arm / boot / dts / exynos5420-smdk5420.dts
1 /*
2  * SAMSUNG SMDK5420 board device tree source
3  *
4  * Copyright (c) 2013 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 "exynos5420.dtsi"
14
15 / {
16         model = "Samsung SMDK5420 board based on EXYNOS5420";
17         compatible = "samsung,smdk5420", "samsung,exynos5420", "samsung,exynos5";
18
19         memory {
20                 reg = <0x20000000 0x80000000>;
21         };
22
23         chosen {
24                 bootargs = "console=ttySAC2,115200 init=/linuxrc";
25         };
26
27         fixed-rate-clocks {
28                 oscclk {
29                         compatible = "samsung,exynos5420-oscclk";
30                         clock-frequency = <24000000>;
31                 };
32         };
33
34         regulators {
35                 compatible = "simple-bus";
36                 #address-cells = <1>;
37                 #size-cells = <0>;
38
39                 vdd: fixed-regulator@0 {
40                         compatible = "regulator-fixed";
41                         reg = <0>;
42                         regulator-name = "vdd-supply";
43                         regulator-min-microvolt = <1800000>;
44                         regulator-max-microvolt = <1800000>;
45                         regulator-always-on;
46                 };
47
48                 dbvdd: fixed-regulator@1 {
49                         compatible = "regulator-fixed";
50                         reg = <1>;
51                         regulator-name = "dbvdd-supply";
52                         regulator-min-microvolt = <3300000>;
53                         regulator-max-microvolt = <3300000>;
54                         regulator-always-on;
55                 };
56
57                 spkvdd: fixed-regulator@2 {
58                         compatible = "regulator-fixed";
59                         reg = <2>;
60                         regulator-name = "spkvdd-supply";
61                         regulator-min-microvolt = <5000000>;
62                         regulator-max-microvolt = <5000000>;
63                         regulator-always-on;
64                 };
65         };
66
67         usb300_vbus_reg: regulator-usb300 {
68                 compatible = "regulator-fixed";
69                 regulator-name = "VBUS0";
70                 regulator-min-microvolt = <5000000>;
71                 regulator-max-microvolt = <5000000>;
72                 gpio = <&gpg0 5 0>;
73                 pinctrl-names = "default";
74                 pinctrl-0 = <&usb300_vbus_en>;
75                 enable-active-high;
76         };
77
78         usb301_vbus_reg: regulator-usb301 {
79                 compatible = "regulator-fixed";
80                 regulator-name = "VBUS1";
81                 regulator-min-microvolt = <5000000>;
82                 regulator-max-microvolt = <5000000>;
83                 gpio = <&gpg1 4 0>;
84                 pinctrl-names = "default";
85                 pinctrl-0 = <&usb301_vbus_en>;
86                 enable-active-high;
87         };
88
89 };
90
91 &dp {
92         pinctrl-names = "default";
93         pinctrl-0 = <&dp_hpd>;
94         samsung,color-space = <0>;
95         samsung,dynamic-range = <0>;
96         samsung,ycbcr-coeff = <0>;
97         samsung,color-depth = <1>;
98         samsung,link-rate = <0x0a>;
99         samsung,lane-count = <4>;
100         status = "okay";
101 };
102
103 &fimd {
104         status = "okay";
105         display-timings {
106                 native-mode = <&timing0>;
107                 timing0: timing@0 {
108                         clock-frequency = <50000>;
109                         hactive = <2560>;
110                         vactive = <1600>;
111                         hfront-porch = <48>;
112                         hback-porch = <80>;
113                         hsync-len = <32>;
114                         vback-porch = <16>;
115                         vfront-porch = <8>;
116                         vsync-len = <6>;
117                 };
118         };
119 };
120
121 &hdmi {
122         status = "okay";
123         hpd-gpio = <&gpx3 7 0>;
124         pinctrl-names = "default";
125         pinctrl-0 = <&hdmi_hpd_irq>;
126 };
127
128 &hsi2c_4 {
129         status = "okay";
130
131         s2mps11_pmic@66 {
132                 compatible = "samsung,s2mps11-pmic";
133                 reg = <0x66>;
134                 s2mps11,buck2-ramp-delay = <12>;
135                 s2mps11,buck34-ramp-delay = <12>;
136                 s2mps11,buck16-ramp-delay = <12>;
137                 s2mps11,buck6-ramp-enable = <1>;
138                 s2mps11,buck2-ramp-enable = <1>;
139                 s2mps11,buck3-ramp-enable = <1>;
140                 s2mps11,buck4-ramp-enable = <1>;
141
142                 s2mps11_osc: clocks {
143                         #clock-cells = <1>;
144                         clock-output-names = "s2mps11_ap",
145                                         "s2mps11_cp", "s2mps11_bt";
146                 };
147
148                 regulators {
149                         ldo1_reg: LDO1 {
150                                 regulator-name = "vdd_ldo1";
151                                 regulator-min-microvolt = <1000000>;
152                                 regulator-max-microvolt = <1000000>;
153                                 regulator-always-on;
154                         };
155
156                         ldo3_reg: LDO3 {
157                                 regulator-name = "vdd_ldo3";
158                                 regulator-min-microvolt = <1800000>;
159                                 regulator-max-microvolt = <1800000>;
160                                 regulator-always-on;
161                         };
162
163                         ldo5_reg: LDO5 {
164                                 regulator-name = "vdd_ldo5";
165                                 regulator-min-microvolt = <1800000>;
166                                 regulator-max-microvolt = <1800000>;
167                                 regulator-always-on;
168                         };
169
170                         ldo6_reg: LDO6 {
171                                 regulator-name = "vdd_ldo6";
172                                 regulator-min-microvolt = <1000000>;
173                                 regulator-max-microvolt = <1000000>;
174                                 regulator-always-on;
175                         };
176
177                         ldo7_reg: LDO7 {
178                                 regulator-name = "vdd_ldo7";
179                                 regulator-min-microvolt = <1800000>;
180                                 regulator-max-microvolt = <1800000>;
181                                 regulator-always-on;
182                         };
183
184                         ldo8_reg: LDO8 {
185                                 regulator-name = "vdd_ldo8";
186                                 regulator-min-microvolt = <1800000>;
187                                 regulator-max-microvolt = <1800000>;
188                                 regulator-always-on;
189                         };
190
191                         ldo9_reg: LDO9 {
192                                 regulator-name = "vdd_ldo9";
193                                 regulator-min-microvolt = <3000000>;
194                                 regulator-max-microvolt = <3000000>;
195                                 regulator-always-on;
196                         };
197
198                         ldo10_reg: LDO10 {
199                                 regulator-name = "vdd_ldo10";
200                                 regulator-min-microvolt = <1800000>;
201                                 regulator-max-microvolt = <1800000>;
202                                 regulator-always-on;
203                         };
204
205                         ldo11_reg: LDO11 {
206                                 regulator-name = "vdd_ldo11";
207                                 regulator-min-microvolt = <1000000>;
208                                 regulator-max-microvolt = <1000000>;
209                                 regulator-always-on;
210                         };
211
212                         ldo12_reg: LDO12 {
213                                 regulator-name = "vdd_ldo12";
214                                 regulator-min-microvolt = <1800000>;
215                                 regulator-max-microvolt = <1800000>;
216                                 regulator-always-on;
217                         };
218
219                         ldo13_reg: LDO13 {
220                                 regulator-name = "vdd_ldo13";
221                                 regulator-min-microvolt = <2800000>;
222                                 regulator-max-microvolt = <2800000>;
223                                 regulator-always-on;
224                         };
225
226                         ldo15_reg: LDO15 {
227                                 regulator-name = "vdd_ldo15";
228                                 regulator-min-microvolt = <3100000>;
229                                 regulator-max-microvolt = <3100000>;
230                                 regulator-always-on;
231                         };
232
233                         ldo16_reg: LDO16 {
234                                 regulator-name = "vdd_ldo16";
235                                 regulator-min-microvolt = <2200000>;
236                                 regulator-max-microvolt = <2200000>;
237                                 regulator-always-on;
238                         };
239
240                         ldo17_reg: LDO17 {
241                                 regulator-name = "tsp_avdd";
242                                 regulator-min-microvolt = <3300000>;
243                                 regulator-max-microvolt = <3300000>;
244                                 regulator-always-on;
245                         };
246
247                         ldo19_reg: LDO19 {
248                                 regulator-name = "vdd_sd";
249                                 regulator-min-microvolt = <2800000>;
250                                 regulator-max-microvolt = <2800000>;
251                                 regulator-always-on;
252                         };
253
254                         ldo24_reg: LDO24 {
255                                 regulator-name = "tsp_io";
256                                 regulator-min-microvolt = <2800000>;
257                                 regulator-max-microvolt = <2800000>;
258                                 regulator-always-on;
259                         };
260
261                         buck1_reg: BUCK1 {
262                                 regulator-name = "vdd_mif";
263                                 regulator-min-microvolt = <800000>;
264                                 regulator-max-microvolt = <1300000>;
265                                 regulator-always-on;
266                                 regulator-boot-on;
267                         };
268
269                         buck2_reg: BUCK2 {
270                                 regulator-name = "vdd_arm";
271                                 regulator-min-microvolt = <800000>;
272                                 regulator-max-microvolt = <1500000>;
273                                 regulator-always-on;
274                                 regulator-boot-on;
275                         };
276
277                         buck3_reg: BUCK3 {
278                                 regulator-name = "vdd_int";
279                                 regulator-min-microvolt = <800000>;
280                                 regulator-max-microvolt = <1400000>;
281                                 regulator-always-on;
282                                 regulator-boot-on;
283                         };
284
285                         buck4_reg: BUCK4 {
286                                 regulator-name = "vdd_g3d";
287                                 regulator-min-microvolt = <800000>;
288                                 regulator-max-microvolt = <1400000>;
289                                 regulator-always-on;
290                                 regulator-boot-on;
291                         };
292
293                         buck5_reg: BUCK5 {
294                                 regulator-name = "vdd_mem";
295                                 regulator-min-microvolt = <800000>;
296                                 regulator-max-microvolt = <1400000>;
297                                 regulator-always-on;
298                                 regulator-boot-on;
299                         };
300
301                         buck6_reg: BUCK6 {
302                                 regulator-name = "vdd_kfc";
303                                 regulator-min-microvolt = <800000>;
304                                 regulator-max-microvolt = <1500000>;
305                                 regulator-always-on;
306                                 regulator-boot-on;
307                         };
308
309                         buck7_reg: BUCK7 {
310                                 regulator-name = "vdd_1.0v_ldo";
311                                 regulator-min-microvolt = <800000>;
312                                 regulator-max-microvolt = <1500000>;
313                                 regulator-always-on;
314                                 regulator-boot-on;
315                         };
316
317                         buck8_reg: BUCK8 {
318                                 regulator-name = "vdd_1.8v_ldo";
319                                 regulator-min-microvolt = <800000>;
320                                 regulator-max-microvolt = <1500000>;
321                                 regulator-always-on;
322                                 regulator-boot-on;
323                         };
324
325                         buck9_reg: BUCK9 {
326                                 regulator-name = "vdd_2.8v_ldo";
327                                 regulator-min-microvolt = <3000000>;
328                                 regulator-max-microvolt = <3750000>;
329                                 regulator-always-on;
330                                 regulator-boot-on;
331                         };
332
333                         buck10_reg: BUCK10 {
334                                 regulator-name = "vdd_vmem";
335                                 regulator-min-microvolt = <2850000>;
336                                 regulator-max-microvolt = <2850000>;
337                                 regulator-always-on;
338                                 regulator-boot-on;
339                         };
340                 };
341         };
342 };
343
344 &i2c_2 {
345         samsung,i2c-sda-delay = <100>;
346         samsung,i2c-max-bus-freq = <66000>;
347         status = "okay";
348
349         hdmiddc@50 {
350                 compatible = "samsung,exynos4210-hdmiddc";
351                 reg = <0x50>;
352         };
353 };
354
355 &mfc {
356         samsung,mfc-r = <0x43000000 0x800000>;
357         samsung,mfc-l = <0x51000000 0x800000>;
358 };
359
360 &mmc_0 {
361         status = "okay";
362         broken-cd;
363         card-detect-delay = <200>;
364         samsung,dw-mshc-ciu-div = <3>;
365         samsung,dw-mshc-sdr-timing = <0 4>;
366         samsung,dw-mshc-ddr-timing = <0 2>;
367         samsung,dw-mshc-hs400-timing = <0 2>;
368         samsung,read-strobe-delay = <90>;
369         pinctrl-names = "default";
370         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8
371                      &sd0_rclk>;
372         bus-width = <8>;
373         cap-mmc-highspeed;
374 };
375
376 &mmc_2 {
377         status = "okay";
378         card-detect-delay = <200>;
379         samsung,dw-mshc-ciu-div = <3>;
380         samsung,dw-mshc-sdr-timing = <2 3>;
381         samsung,dw-mshc-ddr-timing = <1 2>;
382         pinctrl-names = "default";
383         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
384         bus-width = <4>;
385         cap-sd-highspeed;
386 };
387
388 &pinctrl_0 {
389         hdmi_hpd_irq: hdmi-hpd-irq {
390                 samsung,pins = "gpx3-7";
391                 samsung,pin-function = <0>;
392                 samsung,pin-pud = <1>;
393                 samsung,pin-drv = <0>;
394         };
395 };
396
397 &pinctrl_2 {
398         usb300_vbus_en: usb300-vbus-en {
399                 samsung,pins = "gpg0-5";
400                 samsung,pin-function = <1>;
401                 samsung,pin-pud = <0>;
402                 samsung,pin-drv = <0>;
403         };
404
405         usb301_vbus_en: usb301-vbus-en {
406                 samsung,pins = "gpg1-4";
407                 samsung,pin-function = <1>;
408                 samsung,pin-pud = <0>;
409                 samsung,pin-drv = <0>;
410         };
411 };
412
413 &rtc {
414         status = "okay";
415 };
416
417 &usbdrd_phy0 {
418         vbus-supply = <&usb300_vbus_reg>;
419 };
420
421 &usbdrd_phy1 {
422         vbus-supply = <&usb301_vbus_reg>;
423 };