Merge tag 'for-linus-20160527' of git://git.infradead.org/linux-mtd
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos5250-arndale.dts
1 /*
2  * Samsung's Exynos5250 based Arndale 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 <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/input/input.h>
16 #include "exynos5250.dtsi"
17
18 / {
19         model = "Insignal Arndale evaluation board based on EXYNOS5250";
20         compatible = "insignal,arndale", "samsung,exynos5250", "samsung,exynos5";
21
22         memory {
23                 reg = <0x40000000 0x80000000>;
24         };
25
26         chosen {
27                 bootargs = "console=ttySAC2,115200";
28         };
29
30         gpio_keys {
31                 compatible = "gpio-keys";
32
33                 menu {
34                         label = "SW-TACT2";
35                         gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
36                         linux,code = <KEY_MENU>;
37                         wakeup-source;
38                 };
39
40                 home {
41                         label = "SW-TACT3";
42                         gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
43                         linux,code = <KEY_HOME>;
44                         wakeup-source;
45                 };
46
47                 up {
48                         label = "SW-TACT4";
49                         gpios = <&gpx1 6 GPIO_ACTIVE_LOW>;
50                         linux,code = <KEY_UP>;
51                         wakeup-source;
52                 };
53
54                 down {
55                         label = "SW-TACT5";
56                         gpios = <&gpx1 7 GPIO_ACTIVE_LOW>;
57                         linux,code = <KEY_DOWN>;
58                         wakeup-source;
59                 };
60
61                 back {
62                         label = "SW-TACT6";
63                         gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
64                         linux,code = <KEY_BACK>;
65                         wakeup-source;
66                 };
67
68                 wakeup {
69                         label = "SW-TACT7";
70                         gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
71                         linux,code = <KEY_WAKEUP>;
72                         wakeup-source;
73                 };
74         };
75
76         regulators {
77                 compatible = "simple-bus";
78                 #address-cells = <1>;
79                 #size-cells = <0>;
80
81                 main_dc_reg: regulator@0 {
82                         compatible = "regulator-fixed";
83                         reg = <0>;
84                         regulator-name = "MAIN_DC";
85                 };
86
87                 mmc_reg: regulator@1 {
88                         compatible = "regulator-fixed";
89                         reg = <1>;
90                         regulator-name = "VDD_33ON_2.8V";
91                         regulator-min-microvolt = <2800000>;
92                         regulator-max-microvolt = <2800000>;
93                         gpio = <&gpx1 1 GPIO_ACTIVE_LOW>;
94                         enable-active-high;
95                 };
96
97                 reg_hdmi_en: regulator@2 {
98                         compatible = "regulator-fixed";
99                         reg = <2>;
100                         regulator-name = "hdmi-en";
101                 };
102         };
103
104         fixed-rate-clocks {
105                 xxti {
106                         compatible = "samsung,clock-xxti";
107                         clock-frequency = <24000000>;
108                 };
109         };
110
111         // SMSC USB3503 connected in hardware only mode as a PHY
112         usb_hub: usb-hub {
113                 compatible = "smsc,usb3503a";
114
115                 reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
116                 connect-gpios = <&gpd1 7 GPIO_ACTIVE_LOW>;
117         };
118 };
119
120 &cpu0 {
121         cpu0-supply = <&buck2_reg>;
122 };
123
124 &dp {
125         status = "okay";
126         samsung,color-space = <0>;
127         samsung,color-depth = <1>;
128         samsung,link-rate = <0x0a>;
129         samsung,lane-count = <4>;
130
131         display-timings {
132                 native-mode = <&timing0>;
133
134                 timing0: timing {
135                         /* 2560x1600 DP panel */
136                         clock-frequency = <50000>;
137                         hactive = <2560>;
138                         vactive = <1600>;
139                         hfront-porch = <48>;
140                         hback-porch = <80>;
141                         hsync-len = <32>;
142                         vback-porch = <16>;
143                         vfront-porch = <8>;
144                         vsync-len = <6>;
145                 };
146         };
147 };
148
149 &fimd {
150         status = "okay";
151 };
152
153 &hdmi {
154         hpd-gpio = <&gpx3 7 GPIO_ACTIVE_LOW>;
155         vdd_osc-supply = <&ldo10_reg>;
156         vdd_pll-supply = <&ldo8_reg>;
157         vdd-supply = <&ldo8_reg>;
158 };
159
160 &i2c_0 {
161         status = "okay";
162         samsung,i2c-sda-delay = <100>;
163         samsung,i2c-max-bus-freq = <20000>;
164         samsung,i2c-slave-addr = <0x66>;
165
166         s5m8767_pmic@66 {
167                 compatible = "samsung,s5m8767-pmic";
168                 reg = <0x66>;
169                 interrupt-parent = <&gpx3>;
170                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
171
172                 vinb1-supply = <&main_dc_reg>;
173                 vinb2-supply = <&main_dc_reg>;
174                 vinb3-supply = <&main_dc_reg>;
175                 vinb4-supply = <&main_dc_reg>;
176                 vinb5-supply = <&main_dc_reg>;
177                 vinb6-supply = <&main_dc_reg>;
178                 vinb7-supply = <&main_dc_reg>;
179                 vinb8-supply = <&main_dc_reg>;
180                 vinb9-supply = <&main_dc_reg>;
181
182                 vinl1-supply = <&buck7_reg>;
183                 vinl2-supply = <&buck7_reg>;
184                 vinl3-supply = <&buck7_reg>;
185                 vinl4-supply = <&main_dc_reg>;
186                 vinl5-supply = <&main_dc_reg>;
187                 vinl6-supply = <&main_dc_reg>;
188                 vinl7-supply = <&main_dc_reg>;
189                 vinl8-supply = <&buck8_reg>;
190                 vinl9-supply = <&buck8_reg>;
191
192                 s5m8767,pmic-buck2-dvs-voltage = <1300000>;
193                 s5m8767,pmic-buck3-dvs-voltage = <1100000>;
194                 s5m8767,pmic-buck4-dvs-voltage = <1200000>;
195                 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_HIGH>,
196                                               <&gpd1 1 GPIO_ACTIVE_HIGH>,
197                                               <&gpd1 2 GPIO_ACTIVE_HIGH>;
198                 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>,
199                                              <&gpx2 4 GPIO_ACTIVE_HIGH>,
200                                              <&gpx2 5 GPIO_ACTIVE_HIGH>;
201
202                 regulators {
203                         ldo1_reg: LDO1 {
204                                 regulator-name = "VDD_ALIVE_1.0V";
205                                 regulator-min-microvolt = <1100000>;
206                                 regulator-max-microvolt = <1100000>;
207                                 regulator-always-on;
208                                 regulator-boot-on;
209                                 op_mode = <1>;
210                         };
211
212                         ldo2_reg: LDO2 {
213                                 regulator-name = "VDD_28IO_DP_1.35V";
214                                 regulator-min-microvolt = <1200000>;
215                                 regulator-max-microvolt = <1200000>;
216                                 regulator-always-on;
217                                 regulator-boot-on;
218                                 op_mode = <1>;
219                         };
220
221                         ldo3_reg: LDO3 {
222                                 regulator-name = "VDD_COMMON1_1.8V";
223                                 regulator-min-microvolt = <1800000>;
224                                 regulator-max-microvolt = <1800000>;
225                                 regulator-always-on;
226                                 regulator-boot-on;
227                                 op_mode = <1>;
228                         };
229
230                         ldo4_reg: LDO4 {
231                                 regulator-name = "VDD_IOPERI_1.8V";
232                                 regulator-min-microvolt = <1800000>;
233                                 regulator-max-microvolt = <1800000>;
234                                 regulator-always-on;
235                                 op_mode = <1>;
236                         };
237
238                         ldo5_reg: LDO5 {
239                                 regulator-name = "VDD_EXT_1.8V";
240                                 regulator-min-microvolt = <1800000>;
241                                 regulator-max-microvolt = <1800000>;
242                                 regulator-always-on;
243                                 regulator-boot-on;
244                                 op_mode = <1>;
245                         };
246
247                         ldo6_reg: LDO6 {
248                                 regulator-name = "VDD_MPLL_1.1V";
249                                 regulator-min-microvolt = <1100000>;
250                                 regulator-max-microvolt = <1100000>;
251                                 regulator-always-on;
252                                 regulator-boot-on;
253                                 op_mode = <1>;
254                         };
255
256                         ldo7_reg: LDO7 {
257                                 regulator-name = "VDD_XPLL_1.1V";
258                                 regulator-min-microvolt = <1100000>;
259                                 regulator-max-microvolt = <1100000>;
260                                 regulator-always-on;
261                                 regulator-boot-on;
262                                 op_mode = <1>;
263                         };
264
265                         ldo8_reg: LDO8 {
266                                 regulator-name = "VDD_COMMON2_1.0V";
267                                 regulator-min-microvolt = <1000000>;
268                                 regulator-max-microvolt = <1000000>;
269                                 regulator-always-on;
270                                 regulator-boot-on;
271                                 op_mode = <1>;
272                         };
273
274                         ldo9_reg: LDO9 {
275                                 regulator-name = "VDD_33ON_3.0V";
276                                 regulator-min-microvolt = <3000000>;
277                                 regulator-max-microvolt = <3000000>;
278                                 op_mode = <1>;
279                         };
280
281                         ldo10_reg: LDO10 {
282                                 regulator-name = "VDD_COMMON3_1.8V";
283                                 regulator-min-microvolt = <1800000>;
284                                 regulator-max-microvolt = <1800000>;
285                                 regulator-always-on;
286                                 regulator-boot-on;
287                                 op_mode = <1>;
288                         };
289
290                         ldo11_reg: LDO11 {
291                                 regulator-name = "VDD_ABB2_1.8V";
292                                 regulator-min-microvolt = <1800000>;
293                                 regulator-max-microvolt = <1800000>;
294                                 regulator-always-on;
295                                 regulator-boot-on;
296                                 op_mode = <1>;
297                         };
298
299                         ldo12_reg: LDO12 {
300                                 regulator-name = "VDD_USB_3.0V";
301                                 regulator-min-microvolt = <3000000>;
302                                 regulator-max-microvolt = <3000000>;
303                                 regulator-always-on;
304                                 regulator-boot-on;
305                                 op_mode = <1>;
306                         };
307
308                         ldo13_reg: LDO13 {
309                                 regulator-name = "VDDQ_C2C_W_1.8V";
310                                 regulator-min-microvolt = <1800000>;
311                                 regulator-max-microvolt = <1800000>;
312                                 regulator-always-on;
313                                 regulator-boot-on;
314                                 op_mode = <1>;
315                         };
316
317                         ldo14_reg: LDO14 {
318                                 regulator-name = "VDD18_ABB0_3_1.8V";
319                                 regulator-min-microvolt = <1800000>;
320                                 regulator-max-microvolt = <1800000>;
321                                 regulator-always-on;
322                                 regulator-boot-on;
323                                 op_mode = <1>;
324                         };
325
326                         ldo15_reg: LDO15 {
327                                 regulator-name = "VDD10_COMMON4_1.0V";
328                                 regulator-min-microvolt = <1000000>;
329                                 regulator-max-microvolt = <1000000>;
330                                 regulator-always-on;
331                                 regulator-boot-on;
332                                 op_mode = <1>;
333                         };
334
335                         ldo16_reg: LDO16 {
336                                 regulator-name = "VDD18_HSIC_1.8V";
337                                 regulator-min-microvolt = <1800000>;
338                                 regulator-max-microvolt = <1800000>;
339                                 regulator-always-on;
340                                 regulator-boot-on;
341                                 op_mode = <1>;
342                         };
343
344                         ldo17_reg: LDO17 {
345                                 regulator-name = "VDDQ_MMC2_3_2.8V";
346                                 regulator-min-microvolt = <2800000>;
347                                 regulator-max-microvolt = <2800000>;
348                                 regulator-always-on;
349                                 regulator-boot-on;
350                                 op_mode = <1>;
351                         };
352
353                         ldo18_reg: LDO18 {
354                                 regulator-name = "VDD_33ON_2.8V";
355                                 regulator-min-microvolt = <2800000>;
356                                 regulator-max-microvolt = <2800000>;
357                                 op_mode = <1>;
358                         };
359
360                         ldo22_reg: LDO22 {
361                                 regulator-name = "EXT_33_OFF";
362                                 regulator-min-microvolt = <3300000>;
363                                 regulator-max-microvolt = <3300000>;
364                                 op_mode = <1>;
365                         };
366
367                         ldo23_reg: LDO23 {
368                                 regulator-name = "EXT_28_OFF";
369                                 regulator-min-microvolt = <2800000>;
370                                 regulator-max-microvolt = <2800000>;
371                                 op_mode = <1>;
372                         };
373
374                         ldo25_reg: LDO25 {
375                                 regulator-name = "PVDD_LDO25";
376                                 regulator-min-microvolt = <1200000>;
377                                 regulator-max-microvolt = <1200000>;
378                                 op_mode = <1>;
379                         };
380
381                         ldo26_reg: LDO26 {
382                                 regulator-name = "EXT_18_OFF";
383                                 regulator-min-microvolt = <1800000>;
384                                 regulator-max-microvolt = <1800000>;
385                                 op_mode = <1>;
386                         };
387
388                         buck1_reg: BUCK1 {
389                                 regulator-name = "vdd_mif";
390                                 regulator-min-microvolt = <950000>;
391                                 regulator-max-microvolt = <1200000>;
392                                 regulator-always-on;
393                                 regulator-boot-on;
394                                 op_mode = <1>;
395                         };
396
397                         buck2_reg: BUCK2 {
398                                 regulator-name = "vdd_arm";
399                                 regulator-min-microvolt = <912500>;
400                                 regulator-max-microvolt = <1300000>;
401                                 regulator-always-on;
402                                 regulator-boot-on;
403                                 op_mode = <1>;
404                         };
405
406                         buck3_reg: BUCK3 {
407                                 regulator-name = "vdd_int";
408                                 regulator-min-microvolt = <900000>;
409                                 regulator-max-microvolt = <1200000>;
410                                 regulator-always-on;
411                                 regulator-boot-on;
412                                 op_mode = <1>;
413                         };
414
415                         buck4_reg: BUCK4 {
416                                 regulator-name = "vdd_g3d";
417                                 regulator-min-microvolt = <1000000>;
418                                 regulator-max-microvolt = <1000000>;
419                                 regulator-always-on;
420                                 regulator-boot-on;
421                                 op_mode = <1>;
422                         };
423
424                         buck5_reg: BUCK5 {
425                                 regulator-name = "VDD_MEM_1.35V";
426                                 regulator-min-microvolt = <750000>;
427                                 regulator-max-microvolt = <1355000>;
428                                 regulator-always-on;
429                                 regulator-boot-on;
430                                 op_mode = <1>;
431                         };
432
433                         buck7_reg: BUCK7 {
434                                 regulator-name = "PVDD_BUCK7";
435                                 regulator-always-on;
436                                 op_mode = <1>;
437                         };
438
439                         buck8_reg: BUCK8 {
440                                 regulator-name = "PVDD_BUCK8";
441                                 regulator-always-on;
442                                 op_mode = <1>;
443                         };
444
445                         buck9_reg: BUCK9 {
446                                 regulator-name = "VDD_33_OFF_EXT1";
447                                 regulator-min-microvolt = <750000>;
448                                 regulator-max-microvolt = <3000000>;
449                                 op_mode = <1>;
450                         };
451                 };
452         };
453 };
454
455 &i2c_2 {
456         status = "okay";
457
458         samsung,i2c-sda-delay = <100>;
459         samsung,i2c-max-bus-freq = <66000>;
460         samsung,i2c-slave-addr = <0x50>;
461
462         hdmiddc@50 {
463                 compatible = "samsung,exynos4210-hdmiddc";
464                 reg = <0x50>;
465         };
466 };
467
468 &i2c_3 {
469         status = "okay";
470
471         wm1811a@1a {
472                 compatible = "wlf,wm1811";
473                 reg = <0x1a>;
474
475                 AVDD2-supply = <&main_dc_reg>;
476                 CPVDD-supply = <&main_dc_reg>;
477                 DBVDD1-supply = <&main_dc_reg>;
478                 DBVDD2-supply = <&main_dc_reg>;
479                 DBVDD3-supply = <&main_dc_reg>;
480                 LDO1VDD-supply = <&main_dc_reg>;
481                 SPKVDD1-supply = <&main_dc_reg>;
482                 SPKVDD2-supply = <&main_dc_reg>;
483
484                 wlf,ldo1ena = <&gpb0 0 GPIO_ACTIVE_HIGH>;
485                 wlf,ldo2ena = <&gpb0 1 GPIO_ACTIVE_HIGH>;
486         };
487 };
488
489 &i2c_8 {
490         status = "okay";
491
492         samsung,i2c-sda-delay = <100>;
493         samsung,i2c-max-bus-freq = <66000>;
494         samsung,i2c-slave-addr = <0x38>;
495
496         hdmiphy@38 {
497                 compatible = "samsung,exynos4212-hdmiphy";
498                 reg = <0x38>;
499         };
500 };
501
502 &i2c_9 {
503         status = "okay";
504         samsung,i2c-sda-delay = <100>;
505         samsung,i2c-max-bus-freq = <40000>;
506         samsung,i2c-slave-addr = <0x38>;
507
508         sata_phy_i2c:sata-phy@38 {
509                 compatible = "samsung,exynos-sataphy-i2c";
510                 reg = <0x38>;
511         };
512 };
513
514 &i2s0 {
515         status = "okay";
516 };
517
518 &mfc {
519         samsung,mfc-r = <0x43000000 0x800000>;
520         samsung,mfc-l = <0x51000000 0x800000>;
521 };
522
523 &mmc_0 {
524         status = "okay";
525         num-slots = <1>;
526         broken-cd;
527         card-detect-delay = <200>;
528         samsung,dw-mshc-ciu-div = <3>;
529         samsung,dw-mshc-sdr-timing = <2 3>;
530         samsung,dw-mshc-ddr-timing = <1 2>;
531         vmmc-supply = <&mmc_reg>;
532         pinctrl-names = "default";
533         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
534         bus-width = <8>;
535         cap-mmc-highspeed;
536 };
537
538 &mmc_2 {
539         status = "okay";
540         num-slots = <1>;
541         card-detect-delay = <200>;
542         samsung,dw-mshc-ciu-div = <3>;
543         samsung,dw-mshc-sdr-timing = <2 3>;
544         samsung,dw-mshc-ddr-timing = <1 2>;
545         vmmc-supply = <&mmc_reg>;
546         pinctrl-names = "default";
547         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
548         bus-width = <4>;
549         disable-wp;
550         cap-sd-highspeed;
551 };
552
553 &rtc {
554         status = "okay";
555 };
556
557 &sata {
558         status = "okay";
559 };
560
561 &sata_phy {
562         status = "okay";
563         samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
564 };