Merge tag 'pci-v4.16-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos4412-trats2.dts
1 /*
2  * Samsung's Exynos4412 based Trats 2 board device tree source
3  *
4  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  *
7  * Device tree source file for Samsung's Trats 2 board which is based on
8  * Samsung's Exynos4412 SoC.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13 */
14
15 /dts-v1/;
16 #include "exynos4412.dtsi"
17 #include "exynos4412-ppmu-common.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/interrupt-controller/irq.h>
20 #include <dt-bindings/clock/maxim,max77686.h>
21 #include <dt-bindings/pinctrl/samsung.h>
22
23 / {
24         model = "Samsung Trats 2 based on Exynos4412";
25         compatible = "samsung,trats2", "samsung,exynos4412", "samsung,exynos4";
26
27         aliases {
28                 i2c9 = &i2c_ak8975;
29                 i2c10 = &i2c_cm36651;
30                 i2c11 = &i2c_max77693;
31                 i2c12 = &i2c_max77693_fuel;
32         };
33
34         memory@40000000 {
35                 device_type = "memory";
36                 reg =  <0x40000000 0x40000000>;
37         };
38
39         chosen {
40                 bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
41                 stdout-path = &serial_2;
42         };
43
44         firmware@204f000 {
45                 compatible = "samsung,secure-firmware";
46                 reg = <0x0204F000 0x1000>;
47         };
48
49         fixed-rate-clocks {
50                 xxti {
51                         compatible = "samsung,clock-xxti", "fixed-clock";
52                         clock-frequency = <0>;
53                 };
54
55                 xusbxti {
56                         compatible = "samsung,clock-xusbxti", "fixed-clock";
57                         clock-frequency = <24000000>;
58                 };
59         };
60
61         regulators {
62                 compatible = "simple-bus";
63                 #address-cells = <1>;
64                 #size-cells = <0>;
65
66                 cam_io_reg: voltage-regulator-1 {
67                         compatible = "regulator-fixed";
68                         regulator-name = "CAM_SENSOR_A";
69                         regulator-min-microvolt = <2800000>;
70                         regulator-max-microvolt = <2800000>;
71                         gpio = <&gpm0 2 GPIO_ACTIVE_HIGH>;
72                         enable-active-high;
73                 };
74
75                 lcd_vdd3_reg: voltage-regulator-2 {
76                         compatible = "regulator-fixed";
77                         regulator-name = "LCD_VDD_2.2V";
78                         regulator-min-microvolt = <2200000>;
79                         regulator-max-microvolt = <2200000>;
80                         gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>;
81                         enable-active-high;
82                 };
83
84                 cam_af_reg: voltage-regulator-3 {
85                         compatible = "regulator-fixed";
86                         regulator-name = "CAM_AF";
87                         regulator-min-microvolt = <2800000>;
88                         regulator-max-microvolt = <2800000>;
89                         gpio = <&gpm0 4 GPIO_ACTIVE_HIGH>;
90                         enable-active-high;
91                 };
92
93                 ps_als_reg: voltage-regulator-5 {
94                         compatible = "regulator-fixed";
95                         regulator-name = "LED_A_3.0V";
96                         regulator-min-microvolt = <3000000>;
97                         regulator-max-microvolt = <3000000>;
98                         gpio = <&gpj0 5 GPIO_ACTIVE_HIGH>;
99                         enable-active-high;
100                 };
101
102                 vsil12: voltage-regulator-6 {
103                         compatible = "regulator-fixed";
104                         regulator-name = "VSIL_1.2V";
105                         regulator-min-microvolt = <1200000>;
106                         regulator-max-microvolt = <1200000>;
107                         gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
108                         enable-active-high;
109                         vin-supply = <&buck7_reg>;
110                 };
111
112                 vcc33mhl: voltage-regulator-7 {
113                         compatible = "regulator-fixed";
114                         regulator-name = "VCC_3.3_MHL";
115                         regulator-min-microvolt = <3300000>;
116                         regulator-max-microvolt = <3300000>;
117                         gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
118                         enable-active-high;
119                 };
120
121                 vcc18mhl: voltage-regulator-8 {
122                         compatible = "regulator-fixed";
123                         regulator-name = "VCC_1.8_MHL";
124                         regulator-min-microvolt = <1800000>;
125                         regulator-max-microvolt = <1800000>;
126                         gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
127                         enable-active-high;
128                 };
129         };
130
131         gpio-keys {
132                 compatible = "gpio-keys";
133
134                 key-down {
135                         gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
136                         linux,code = <114>;
137                         label = "volume down";
138                         debounce-interval = <10>;
139                 };
140
141                 key-up {
142                         gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
143                         linux,code = <115>;
144                         label = "volume up";
145                         debounce-interval = <10>;
146                 };
147
148                 key-power {
149                         gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
150                         linux,code = <116>;
151                         label = "power";
152                         debounce-interval = <10>;
153                         wakeup-source;
154                 };
155
156                 key-ok {
157                         gpios = <&gpx0 1 GPIO_ACTIVE_LOW>;
158                         linux,code = <139>;
159                         label = "ok";
160                         debounce-inteval = <10>;
161                         wakeup-source;
162                 };
163         };
164
165         i2c_max77693: i2c-gpio-1 {
166                 compatible = "i2c-gpio";
167                 gpios = <&gpm2 0 GPIO_ACTIVE_HIGH>, <&gpm2 1 GPIO_ACTIVE_HIGH>;
168                 i2c-gpio,delay-us = <2>;
169                 #address-cells = <1>;
170                 #size-cells = <0>;
171                 status = "okay";
172
173                 max77693@66 {
174                         compatible = "maxim,max77693";
175                         interrupt-parent = <&gpx1>;
176                         interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
177                         reg = <0x66>;
178
179                         regulators {
180                                 esafeout1_reg: ESAFEOUT1 {
181                                         regulator-name = "ESAFEOUT1";
182                                 };
183                                 esafeout2_reg: ESAFEOUT2 {
184                                         regulator-name = "ESAFEOUT2";
185                                 };
186                                 charger_reg: CHARGER {
187                                         regulator-name = "CHARGER";
188                                         regulator-min-microamp = <60000>;
189                                         regulator-max-microamp = <2580000>;
190                                 };
191                         };
192
193                         max77693_haptic {
194                                 compatible = "maxim,max77693-haptic";
195                                 haptic-supply = <&ldo26_reg>;
196                                 pwms = <&pwm 0 38022 0>;
197                         };
198
199                         charger {
200                                 compatible = "maxim,max77693-charger";
201
202                                 maxim,constant-microvolt = <4350000>;
203                                 maxim,min-system-microvolt = <3600000>;
204                                 maxim,thermal-regulation-celsius = <100>;
205                                 maxim,battery-overcurrent-microamp = <3500000>;
206                                 maxim,charge-input-threshold-microvolt = <4300000>;
207                         };
208                 };
209         };
210
211         i2c_max77693_fuel: i2c-gpio-3 {
212                 compatible = "i2c-gpio";
213                 gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>, <&gpf1 4 GPIO_ACTIVE_HIGH>;
214                 i2c-gpio,delay-us = <2>;
215                 #address-cells = <1>;
216                 #size-cells = <0>;
217                 status = "okay";
218
219                 max77693-fuel-gauge@36 {
220                         compatible = "maxim,max17047";
221                         interrupt-parent = <&gpx2>;
222                         interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
223                         reg = <0x36>;
224
225                         maxim,over-heat-temp = <700>;
226                         maxim,over-volt = <4500>;
227                 };
228         };
229
230         i2c_ak8975: i2c-gpio-0 {
231                 compatible = "i2c-gpio";
232                 gpios = <&gpy2 4 GPIO_ACTIVE_HIGH>, <&gpy2 5 GPIO_ACTIVE_HIGH>;
233                 i2c-gpio,delay-us = <2>;
234                 #address-cells = <1>;
235                 #size-cells = <0>;
236                 status = "okay";
237
238                 ak8975@c {
239                         compatible = "asahi-kasei,ak8975";
240                         reg = <0x0c>;
241                         gpios = <&gpj0 7 GPIO_ACTIVE_HIGH>;
242                 };
243         };
244
245         i2c_cm36651: i2c-gpio-2 {
246                 compatible = "i2c-gpio";
247                 gpios = <&gpf0 0 GPIO_ACTIVE_LOW>, <&gpf0 1 GPIO_ACTIVE_LOW>;
248                 i2c-gpio,delay-us = <2>;
249                 #address-cells = <1>;
250                 #size-cells = <0>;
251
252                 cm36651@18 {
253                         compatible = "capella,cm36651";
254                         reg = <0x18>;
255                         interrupt-parent = <&gpx0>;
256                         interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
257                         vled-supply = <&ps_als_reg>;
258                 };
259         };
260
261         i2c-mhl {
262                 compatible = "i2c-gpio";
263                 gpios = <&gpf0 4 GPIO_ACTIVE_HIGH>, <&gpf0 6 GPIO_ACTIVE_HIGH>;
264                 i2c-gpio,delay-us = <100>;
265                 #address-cells = <1>;
266                 #size-cells = <0>;
267
268                 pinctrl-0 = <&i2c_mhl_bus>;
269                 pinctrl-names = "default";
270                 status = "okay";
271
272                 sii9234: hdmi-bridge@39 {
273                         compatible = "sil,sii9234";
274                         avcc33-supply = <&vcc33mhl>;
275                         iovcc18-supply = <&vcc18mhl>;
276                         avcc12-supply = <&vsil12>;
277                         cvcc12-supply = <&vsil12>;
278                         reset-gpios = <&gpf3 4 GPIO_ACTIVE_LOW>;
279                         interrupt-parent = <&gpf3>;
280                         interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
281                         reg = <0x39>;
282
283                         port {
284                                 mhl_to_hdmi: endpoint {
285                                         remote-endpoint = <&hdmi_to_mhl>;
286                                 };
287                         };
288                 };
289         };
290
291         camera: camera {
292                 pinctrl-0 = <&cam_port_a_clk_active &cam_port_b_clk_active>;
293                 pinctrl-names = "default";
294                 status = "okay";
295                 assigned-clocks = <&clock CLK_MOUT_CAM0>,
296                                   <&clock CLK_MOUT_CAM1>;
297                 assigned-clock-parents = <&clock CLK_XUSBXTI>,
298                                          <&clock CLK_XUSBXTI>;
299
300
301         };
302
303         wlan_pwrseq: sdhci3-pwrseq {
304                 compatible = "mmc-pwrseq-simple";
305                 reset-gpios = <&gpj0 0 GPIO_ACTIVE_LOW>;
306                 clocks = <&max77686 MAX77686_CLK_PMIC>;
307                 clock-names = "ext_clock";
308         };
309
310         sound {
311                 compatible = "samsung,trats2-audio";
312                 samsung,i2s-controller = <&i2s0>;
313                 samsung,model = "Trats2";
314                 samsung,audio-codec = <&wm1811>;
315                 samsung,audio-routing =
316                         "SPK", "SPKOUTLN",
317                         "SPK", "SPKOUTLP",
318                         "SPK", "SPKOUTRN",
319                         "SPK", "SPKOUTRP";
320         };
321
322         thermistor-ap {
323                 compatible = "murata,ncp15wb473";
324                 pullup-uv = <1800000>;   /* VCC_1.8V_AP */
325                 pullup-ohm = <100000>;   /* 100K */
326                 pulldown-ohm = <100000>; /* 100K */
327                 io-channels = <&adc 1>;  /* AP temperature */
328         };
329
330         thermistor-battery {
331                 compatible = "murata,ncp15wb473";
332                 pullup-uv = <1800000>;   /* VCC_1.8V_AP */
333                 pullup-ohm = <100000>;   /* 100K */
334                 pulldown-ohm = <100000>; /* 100K */
335                 io-channels = <&adc 2>;  /* Battery temperature */
336         };
337
338         thermal-zones {
339                 cpu_thermal: cpu-thermal {
340                         cooling-maps {
341                                 map0 {
342                                      /* Corresponds to 800MHz at freq_table */
343                                      cooling-device = <&cpu0 7 7>;
344                                 };
345                                 map1 {
346                                      /* Corresponds to 200MHz at freq_table */
347                                      cooling-device = <&cpu0 13 13>;
348                                };
349                        };
350                 };
351         };
352 };
353
354 &adc {
355         vdd-supply = <&ldo3_reg>;
356         status = "okay";
357 };
358
359 &bus_dmc {
360         devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
361         vdd-supply = <&buck1_reg>;
362         status = "okay";
363 };
364
365 &bus_acp {
366         devfreq = <&bus_dmc>;
367         status = "okay";
368 };
369
370 &bus_c2c {
371         devfreq = <&bus_dmc>;
372         status = "okay";
373 };
374
375 &bus_leftbus {
376         devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
377         vdd-supply = <&buck3_reg>;
378         status = "okay";
379 };
380
381 &bus_rightbus {
382         devfreq = <&bus_leftbus>;
383         status = "okay";
384 };
385
386 &bus_display {
387         devfreq = <&bus_leftbus>;
388         status = "okay";
389 };
390
391 &bus_fsys {
392         devfreq = <&bus_leftbus>;
393         status = "okay";
394 };
395
396 &bus_peri {
397         devfreq = <&bus_leftbus>;
398         status = "okay";
399 };
400
401 &bus_mfc {
402         devfreq = <&bus_leftbus>;
403         status = "okay";
404 };
405
406 &cpu0 {
407         cpu0-supply = <&buck2_reg>;
408 };
409
410 &csis_0 {
411         status = "okay";
412         vddcore-supply = <&ldo8_reg>;
413         vddio-supply = <&ldo10_reg>;
414         assigned-clocks = <&clock CLK_MOUT_CSIS0>,
415                         <&clock CLK_SCLK_CSIS0>;
416         assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
417         assigned-clock-rates = <0>, <176000000>;
418
419         /* Camera C (3) MIPI CSI-2 (CSIS0) */
420         port@3 {
421                 reg = <3>;
422                 csis0_ep: endpoint {
423                         remote-endpoint = <&s5c73m3_ep>;
424                         data-lanes = <1 2 3 4>;
425                         samsung,csis-hs-settle = <12>;
426                 };
427         };
428 };
429
430 &csis_1 {
431         status = "okay";
432         vddcore-supply = <&ldo8_reg>;
433         vddio-supply = <&ldo10_reg>;
434         assigned-clocks = <&clock CLK_MOUT_CSIS1>,
435                         <&clock CLK_SCLK_CSIS1>;
436         assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
437         assigned-clock-rates = <0>, <176000000>;
438
439         /* Camera D (4) MIPI CSI-2 (CSIS1) */
440         port@4 {
441                 reg = <4>;
442                 csis1_ep: endpoint {
443                         remote-endpoint = <&is_s5k6a3_ep>;
444                         data-lanes = <1>;
445                         samsung,csis-hs-settle = <18>;
446                         samsung,csis-wclk;
447                 };
448         };
449 };
450
451 &dsi_0 {
452         vddcore-supply = <&ldo8_reg>;
453         vddio-supply = <&ldo10_reg>;
454         samsung,burst-clock-frequency = <500000000>;
455         samsung,esc-clock-frequency = <20000000>;
456         samsung,pll-clock-frequency = <24000000>;
457         status = "okay";
458
459         panel@0 {
460                 compatible = "samsung,s6e8aa0";
461                 reg = <0>;
462                 vdd3-supply = <&lcd_vdd3_reg>;
463                 vci-supply = <&ldo25_reg>;
464                 reset-gpios = <&gpf2 1 GPIO_ACTIVE_HIGH>;
465                 power-on-delay= <50>;
466                 reset-delay = <100>;
467                 init-delay = <100>;
468                 flip-horizontal;
469                 flip-vertical;
470                 panel-width-mm = <58>;
471                 panel-height-mm = <103>;
472
473                 display-timings {
474                         timing-0 {
475                                 clock-frequency = <57153600>;
476                                 hactive = <720>;
477                                 vactive = <1280>;
478                                 hfront-porch = <5>;
479                                 hback-porch = <5>;
480                                 hsync-len = <5>;
481                                 vfront-porch = <13>;
482                                 vback-porch = <1>;
483                                 vsync-len = <2>;
484                         };
485                 };
486         };
487 };
488
489 &exynos_usbphy {
490         vbus-supply = <&esafeout1_reg>;
491         status = "okay";
492 };
493
494 &fimc_0 {
495         status = "okay";
496         assigned-clocks = <&clock CLK_MOUT_FIMC0>,
497                         <&clock CLK_SCLK_FIMC0>;
498         assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
499         assigned-clock-rates = <0>, <176000000>;
500 };
501
502 &fimc_1 {
503         status = "okay";
504         assigned-clocks = <&clock CLK_MOUT_FIMC1>,
505                         <&clock CLK_SCLK_FIMC1>;
506         assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
507         assigned-clock-rates = <0>, <176000000>;
508 };
509
510 &fimc_2 {
511         status = "okay";
512         assigned-clocks = <&clock CLK_MOUT_FIMC2>,
513                         <&clock CLK_SCLK_FIMC2>;
514         assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
515         assigned-clock-rates = <0>, <176000000>;
516 };
517
518 &fimc_3 {
519         status = "okay";
520         assigned-clocks = <&clock CLK_MOUT_FIMC3>,
521                         <&clock CLK_SCLK_FIMC3>;
522         assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
523         assigned-clock-rates = <0>, <176000000>;
524 };
525
526 &fimc_is {
527         pinctrl-0 = <&fimc_is_uart>;
528         pinctrl-names = "default";
529         status = "okay";
530
531         i2c1_isp: i2c-isp@12140000 {
532                 pinctrl-0 = <&fimc_is_i2c1>;
533                 pinctrl-names = "default";
534
535                 s5k6a3@10 {
536                         compatible = "samsung,s5k6a3";
537                         reg = <0x10>;
538                         svdda-supply = <&cam_io_reg>;
539                         svddio-supply = <&ldo19_reg>;
540                         afvdd-supply = <&ldo19_reg>;
541                         clock-frequency = <24000000>;
542                         /* CAM_B_CLKOUT */
543                         clocks = <&camera 1>;
544                         clock-names = "extclk";
545                         samsung,camclk-out = <1>;
546                         gpios = <&gpm1 6 GPIO_ACTIVE_HIGH>;
547
548                         port {
549                                 is_s5k6a3_ep: endpoint {
550                                         remote-endpoint = <&csis1_ep>;
551                                         data-lanes = <1>;
552                                 };
553                         };
554                 };
555         };
556 };
557
558 &fimc_lite_0 {
559         status = "okay";
560 };
561
562 &fimc_lite_1 {
563         status = "okay";
564 };
565
566 &fimd {
567         status = "okay";
568 };
569
570 &hdmi {
571         hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
572         pinctrl-names = "default";
573         pinctrl-0 = <&hdmi_hpd>;
574         vdd-supply = <&ldo3_reg>;
575         vdd_osc-supply = <&ldo4_reg>;
576         vdd_pll-supply = <&ldo3_reg>;
577         ddc = <&i2c_5>;
578         status = "okay";
579
580         ports {
581                 #address-cells = <1>;
582                 #size-cells = <0>;
583
584                 port@1 {
585                         reg = <1>;
586                         hdmi_to_mhl: endpoint {
587                                 remote-endpoint = <&mhl_to_hdmi>;
588                         };
589                 };
590         };
591 };
592
593 &hsotg {
594         vusb_d-supply = <&ldo15_reg>;
595         vusb_a-supply = <&ldo12_reg>;
596         dr_mode = "peripheral";
597         status = "okay";
598 };
599
600 &i2c_0 {
601         samsung,i2c-sda-delay = <100>;
602         samsung,i2c-slave-addr = <0x10>;
603         samsung,i2c-max-bus-freq = <400000>;
604         pinctrl-0 = <&i2c0_bus>;
605         pinctrl-names = "default";
606         status = "okay";
607
608         s5c73m3@3c {
609                 compatible = "samsung,s5c73m3";
610                 reg = <0x3c>;
611                 standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>;   /* ISP_STANDBY */
612                 xshutdown-gpios = <&gpf1 3 GPIO_ACTIVE_LOW>; /* ISP_RESET */
613                 vdd-int-supply = <&buck9_reg>;
614                 vddio-cis-supply = <&ldo9_reg>;
615                 vdda-supply = <&ldo17_reg>;
616                 vddio-host-supply = <&ldo18_reg>;
617                 vdd-af-supply = <&cam_af_reg>;
618                 vdd-reg-supply = <&cam_io_reg>;
619                 clock-frequency = <24000000>;
620                 /* CAM_A_CLKOUT */
621                 clocks = <&camera 0>;
622                 clock-names = "cis_extclk";
623                 port {
624                         s5c73m3_ep: endpoint {
625                                 remote-endpoint = <&csis0_ep>;
626                                 data-lanes = <1 2 3 4>;
627                         };
628                 };
629         };
630 };
631
632 &i2c_3 {
633         samsung,i2c-sda-delay = <100>;
634         samsung,i2c-slave-addr = <0x10>;
635         samsung,i2c-max-bus-freq = <400000>;
636         pinctrl-0 = <&i2c3_bus>;
637         pinctrl-names = "default";
638         status = "okay";
639
640         mms114-touchscreen@48 {
641                 compatible = "melfas,mms114";
642                 reg = <0x48>;
643                 interrupt-parent = <&gpm2>;
644                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
645                 x-size = <720>;
646                 y-size = <1280>;
647                 avdd-supply = <&ldo23_reg>;
648                 vdd-supply = <&ldo24_reg>;
649         };
650 };
651
652 &i2c_4 {
653         samsung,i2c-sda-delay = <100>;
654         samsung,i2c-slave-addr = <0x10>;
655         samsung,i2c-max-bus-freq = <100000>;
656         pinctrl-0 = <&i2c4_bus>;
657         pinctrl-names = "default";
658         status = "okay";
659
660         wm1811: wm1811@1a {
661                 compatible = "wlf,wm1811";
662                 reg = <0x1a>;
663                 clocks = <&pmu_system_controller 0>;
664                 clock-names = "MCLK1";
665                 DCVDD-supply = <&ldo3_reg>;
666                 DBVDD1-supply = <&ldo3_reg>;
667                 wlf,ldo1ena = <&gpj0 4 0>;
668         };
669 };
670
671 &i2c_5 {
672         status = "okay";
673 };
674
675 &i2c_7 {
676         samsung,i2c-sda-delay = <100>;
677         samsung,i2c-slave-addr = <0x10>;
678         samsung,i2c-max-bus-freq = <100000>;
679         pinctrl-0 = <&i2c7_bus>;
680         pinctrl-names = "default";
681         status = "okay";
682
683         max77686: max77686_pmic@9 {
684                 compatible = "maxim,max77686";
685                 interrupt-parent = <&gpx0>;
686                 interrupts = <7 IRQ_TYPE_NONE>;
687                 reg = <0x09>;
688                 #clock-cells = <1>;
689
690                 voltage-regulators {
691                         ldo1_reg: LDO1 {
692                                 regulator-name = "VALIVE_1.0V_AP";
693                                 regulator-min-microvolt = <1000000>;
694                                 regulator-max-microvolt = <1000000>;
695                                 regulator-always-on;
696                         };
697
698                         ldo2_reg: LDO2 {
699                                 regulator-name = "VM1M2_1.2V_AP";
700                                 regulator-min-microvolt = <1200000>;
701                                 regulator-max-microvolt = <1200000>;
702                                 regulator-always-on;
703                                 regulator-state-mem {
704                                         regulator-on-in-suspend;
705                                 };
706                         };
707
708                         ldo3_reg: LDO3 {
709                                 regulator-name = "VCC_1.8V_AP";
710                                 regulator-min-microvolt = <1800000>;
711                                 regulator-max-microvolt = <1800000>;
712                                 regulator-always-on;
713                         };
714
715                         ldo4_reg: LDO4 {
716                                 regulator-name = "VCC_2.8V_AP";
717                                 regulator-min-microvolt = <2800000>;
718                                 regulator-max-microvolt = <2800000>;
719                                 regulator-always-on;
720                         };
721
722                         ldo5_reg: LDO5 {
723                                 regulator-name = "VCC_1.8V_IO";
724                                 regulator-min-microvolt = <1800000>;
725                                 regulator-max-microvolt = <1800000>;
726                                 regulator-always-on;
727                         };
728
729                         ldo6_reg: LDO6 {
730                                 regulator-name = "VMPLL_1.0V_AP";
731                                 regulator-min-microvolt = <1000000>;
732                                 regulator-max-microvolt = <1000000>;
733                                 regulator-always-on;
734                                 regulator-state-mem {
735                                         regulator-on-in-suspend;
736                                 };
737                         };
738
739                         ldo7_reg: LDO7 {
740                                 regulator-name = "VPLL_1.0V_AP";
741                                 regulator-min-microvolt = <1000000>;
742                                 regulator-max-microvolt = <1000000>;
743                                 regulator-always-on;
744                                 regulator-state-mem {
745                                         regulator-on-in-suspend;
746                                 };
747                         };
748
749                         ldo8_reg: LDO8 {
750                                 regulator-name = "VMIPI_1.0V";
751                                 regulator-min-microvolt = <1000000>;
752                                 regulator-max-microvolt = <1000000>;
753                                 regulator-state-mem {
754                                         regulator-off-in-suspend;
755                                 };
756                         };
757
758                         ldo9_reg: LDO9 {
759                                 regulator-name = "CAM_ISP_MIPI_1.2V";
760                                 regulator-min-microvolt = <1200000>;
761                                 regulator-max-microvolt = <1200000>;
762                         };
763
764                         ldo10_reg: LDO10 {
765                                 regulator-name = "VMIPI_1.8V";
766                                 regulator-min-microvolt = <1800000>;
767                                 regulator-max-microvolt = <1800000>;
768                                 regulator-state-mem {
769                                         regulator-off-in-suspend;
770                                 };
771                         };
772
773                         ldo11_reg: LDO11 {
774                                 regulator-name = "VABB1_1.95V";
775                                 regulator-min-microvolt = <1950000>;
776                                 regulator-max-microvolt = <1950000>;
777                                 regulator-always-on;
778                                 regulator-state-mem {
779                                         regulator-off-in-suspend;
780                                 };
781                         };
782
783                         ldo12_reg: LDO12 {
784                                 regulator-name = "VUOTG_3.0V";
785                                 regulator-min-microvolt = <3000000>;
786                                 regulator-max-microvolt = <3000000>;
787                                 regulator-state-mem {
788                                         regulator-off-in-suspend;
789                                 };
790                         };
791
792                         ldo13_reg: LDO13 {
793                                 regulator-name = "NFC_AVDD_1.8V";
794                                 regulator-min-microvolt = <1800000>;
795                                 regulator-max-microvolt = <1800000>;
796                         };
797
798                         ldo14_reg: LDO14 {
799                                 regulator-name = "VABB2_1.95V";
800                                 regulator-min-microvolt = <1950000>;
801                                 regulator-max-microvolt = <1950000>;
802                                 regulator-always-on;
803                                 regulator-state-mem {
804                                         regulator-off-in-suspend;
805                                 };
806                         };
807
808                         ldo15_reg: LDO15 {
809                                 regulator-name = "VHSIC_1.0V";
810                                 regulator-min-microvolt = <1000000>;
811                                 regulator-max-microvolt = <1000000>;
812                                 regulator-state-mem {
813                                         regulator-on-in-suspend;
814                                 };
815                         };
816
817                         ldo16_reg: LDO16 {
818                                 regulator-name = "VHSIC_1.8V";
819                                 regulator-min-microvolt = <1800000>;
820                                 regulator-max-microvolt = <1800000>;
821                                 regulator-state-mem {
822                                         regulator-on-in-suspend;
823                                 };
824                         };
825
826                         ldo17_reg: LDO17 {
827                                 regulator-name = "CAM_SENSOR_CORE_1.2V";
828                                 regulator-min-microvolt = <1200000>;
829                                 regulator-max-microvolt = <1200000>;
830                         };
831
832                         ldo18_reg: LDO18 {
833                                 regulator-name = "CAM_ISP_SEN_IO_1.8V";
834                                 regulator-min-microvolt = <1800000>;
835                                 regulator-max-microvolt = <1800000>;
836                         };
837
838                         ldo19_reg: LDO19 {
839                                 regulator-name = "VT_CAM_1.8V";
840                                 regulator-min-microvolt = <1800000>;
841                                 regulator-max-microvolt = <1800000>;
842                         };
843
844                         ldo20_reg: LDO20 {
845                                 regulator-name = "VDDQ_PRE_1.8V";
846                                 regulator-min-microvolt = <1800000>;
847                                 regulator-max-microvolt = <1800000>;
848                         };
849
850                         ldo21_reg: LDO21 {
851                                 regulator-name = "VTF_2.8V";
852                                 regulator-min-microvolt = <2800000>;
853                                 regulator-max-microvolt = <2800000>;
854                                 maxim,ena-gpios = <&gpy2 0 GPIO_ACTIVE_HIGH>;
855                         };
856
857                         ldo22_reg: LDO22 {
858                                 regulator-name = "VMEM_VDD_2.8V";
859                                 regulator-min-microvolt = <2800000>;
860                                 regulator-max-microvolt = <2800000>;
861                                 maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
862                         };
863
864                         ldo23_reg: LDO23 {
865                                 regulator-name = "TSP_AVDD_3.3V";
866                                 regulator-min-microvolt = <3300000>;
867                                 regulator-max-microvolt = <3300000>;
868                         };
869
870                         ldo24_reg: LDO24 {
871                                 regulator-name = "TSP_VDD_1.8V";
872                                 regulator-min-microvolt = <1800000>;
873                                 regulator-max-microvolt = <1800000>;
874                         };
875
876                         ldo25_reg: LDO25 {
877                                 regulator-name = "LCD_VCC_3.3V";
878                                 regulator-min-microvolt = <2800000>;
879                                 regulator-max-microvolt = <2800000>;
880                         };
881
882                         ldo26_reg: LDO26 {
883                                 regulator-name = "MOTOR_VCC_3.0V";
884                                 regulator-min-microvolt = <3000000>;
885                                 regulator-max-microvolt = <3000000>;
886                         };
887
888                         buck1_reg: BUCK1 {
889                                 regulator-name = "vdd_mif";
890                                 regulator-min-microvolt = <850000>;
891                                 regulator-max-microvolt = <1100000>;
892                                 regulator-always-on;
893                                 regulator-boot-on;
894                                 regulator-state-mem {
895                                         regulator-off-in-suspend;
896                                 };
897                         };
898
899                         buck2_reg: BUCK2 {
900                                 regulator-name = "vdd_arm";
901                                 regulator-min-microvolt = <850000>;
902                                 regulator-max-microvolt = <1500000>;
903                                 regulator-always-on;
904                                 regulator-boot-on;
905                                 regulator-state-mem {
906                                         regulator-on-in-suspend;
907                                 };
908                         };
909
910                         buck3_reg: BUCK3 {
911                                 regulator-name = "vdd_int";
912                                 regulator-min-microvolt = <850000>;
913                                 regulator-max-microvolt = <1150000>;
914                                 regulator-always-on;
915                                 regulator-boot-on;
916                                 regulator-state-mem {
917                                         regulator-off-in-suspend;
918                                 };
919                         };
920
921                         buck4_reg: BUCK4 {
922                                 regulator-name = "vdd_g3d";
923                                 regulator-min-microvolt = <850000>;
924                                 regulator-max-microvolt = <1150000>;
925                                 regulator-boot-on;
926                                 regulator-state-mem {
927                                         regulator-off-in-suspend;
928                                 };
929                         };
930
931                         buck5_reg: BUCK5 {
932                                 regulator-name = "VMEM_1.2V_AP";
933                                 regulator-min-microvolt = <1200000>;
934                                 regulator-max-microvolt = <1200000>;
935                                 regulator-always-on;
936                         };
937
938                         buck6_reg: BUCK6 {
939                                 regulator-name = "VCC_SUB_1.35V";
940                                 regulator-min-microvolt = <1350000>;
941                                 regulator-max-microvolt = <1350000>;
942                                 regulator-always-on;
943                         };
944
945                         buck7_reg: BUCK7 {
946                                 regulator-name = "VCC_SUB_2.0V";
947                                 regulator-min-microvolt = <2000000>;
948                                 regulator-max-microvolt = <2000000>;
949                                 regulator-always-on;
950                         };
951
952                         buck8_reg: BUCK8 {
953                                 regulator-name = "VMEM_VDDF_3.0V";
954                                 regulator-min-microvolt = <2850000>;
955                                 regulator-max-microvolt = <2850000>;
956                                 maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
957                         };
958
959                         buck9_reg: BUCK9 {
960                                 regulator-name = "CAM_ISP_CORE_1.2V";
961                                 regulator-min-microvolt = <1000000>;
962                                 regulator-max-microvolt = <1200000>;
963                                 maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>;
964                         };
965                 };
966         };
967 };
968
969 &i2c_8 {
970         status = "okay";
971 };
972
973 &i2s0 {
974         pinctrl-0 = <&i2s0_bus>;
975         pinctrl-names = "default";
976         status = "okay";
977 };
978
979 &mixer {
980         status = "okay";
981 };
982
983 &mshc_0 {
984         broken-cd;
985         non-removable;
986         card-detect-delay = <200>;
987         vmmc-supply = <&ldo22_reg>;
988         clock-frequency = <400000000>;
989         samsung,dw-mshc-ciu-div = <0>;
990         samsung,dw-mshc-sdr-timing = <2 3>;
991         samsung,dw-mshc-ddr-timing = <1 2>;
992         pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
993         pinctrl-names = "default";
994         status = "okay";
995         bus-width = <8>;
996         cap-mmc-highspeed;
997 };
998
999 &pmu_system_controller {
1000         assigned-clocks = <&pmu_system_controller 0>;
1001         assigned-clock-parents =  <&clock CLK_XUSBXTI>;
1002 };
1003
1004 &pinctrl_0 {
1005         pinctrl-names = "default";
1006         pinctrl-0 = <&sleep0>;
1007
1008         mhl_int: mhl-int {
1009                 samsung,pins = "gpf3-5";
1010                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1011         };
1012
1013         i2c_mhl_bus: i2c-mhl-bus {
1014                 samsung,pins = "gpf0-4", "gpf0-6";
1015                 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
1016                 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
1017                 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
1018         };
1019
1020         sleep0: sleep-states {
1021                 PIN_SLP(gpa0-0, INPUT, NONE);
1022                 PIN_SLP(gpa0-1, OUT0, NONE);
1023                 PIN_SLP(gpa0-2, INPUT, NONE);
1024                 PIN_SLP(gpa0-3, INPUT, UP);
1025                 PIN_SLP(gpa0-4, INPUT, NONE);
1026                 PIN_SLP(gpa0-5, INPUT, DOWN);
1027                 PIN_SLP(gpa0-6, INPUT, DOWN);
1028                 PIN_SLP(gpa0-7, INPUT, UP);
1029
1030                 PIN_SLP(gpa1-0, INPUT, DOWN);
1031                 PIN_SLP(gpa1-1, INPUT, DOWN);
1032                 PIN_SLP(gpa1-2, INPUT, DOWN);
1033                 PIN_SLP(gpa1-3, INPUT, DOWN);
1034                 PIN_SLP(gpa1-4, INPUT, DOWN);
1035                 PIN_SLP(gpa1-5, INPUT, DOWN);
1036
1037                 PIN_SLP(gpb-0, INPUT, NONE);
1038                 PIN_SLP(gpb-1, INPUT, NONE);
1039                 PIN_SLP(gpb-2, INPUT, NONE);
1040                 PIN_SLP(gpb-3, INPUT, NONE);
1041                 PIN_SLP(gpb-4, INPUT, DOWN);
1042                 PIN_SLP(gpb-5, INPUT, UP);
1043                 PIN_SLP(gpb-6, INPUT, DOWN);
1044                 PIN_SLP(gpb-7, INPUT, DOWN);
1045
1046                 PIN_SLP(gpc0-0, INPUT, DOWN);
1047                 PIN_SLP(gpc0-1, INPUT, DOWN);
1048                 PIN_SLP(gpc0-2, INPUT, DOWN);
1049                 PIN_SLP(gpc0-3, INPUT, DOWN);
1050                 PIN_SLP(gpc0-4, INPUT, DOWN);
1051
1052                 PIN_SLP(gpc1-0, INPUT, NONE);
1053                 PIN_SLP(gpc1-1, PREV, NONE);
1054                 PIN_SLP(gpc1-2, INPUT, NONE);
1055                 PIN_SLP(gpc1-3, INPUT, NONE);
1056                 PIN_SLP(gpc1-4, INPUT, NONE);
1057
1058                 PIN_SLP(gpd0-0, INPUT, DOWN);
1059                 PIN_SLP(gpd0-1, INPUT, DOWN);
1060                 PIN_SLP(gpd0-2, INPUT, NONE);
1061                 PIN_SLP(gpd0-3, INPUT, NONE);
1062
1063                 PIN_SLP(gpd1-0, INPUT, DOWN);
1064                 PIN_SLP(gpd1-1, INPUT, DOWN);
1065                 PIN_SLP(gpd1-2, INPUT, NONE);
1066                 PIN_SLP(gpd1-3, INPUT, NONE);
1067
1068                 PIN_SLP(gpf0-0, INPUT, NONE);
1069                 PIN_SLP(gpf0-1, INPUT, NONE);
1070                 PIN_SLP(gpf0-2, INPUT, DOWN);
1071                 PIN_SLP(gpf0-3, INPUT, DOWN);
1072                 PIN_SLP(gpf0-4, INPUT, NONE);
1073                 PIN_SLP(gpf0-5, INPUT, DOWN);
1074                 PIN_SLP(gpf0-6, INPUT, NONE);
1075                 PIN_SLP(gpf0-7, INPUT, DOWN);
1076
1077                 PIN_SLP(gpf1-0, INPUT, DOWN);
1078                 PIN_SLP(gpf1-1, INPUT, DOWN);
1079                 PIN_SLP(gpf1-2, INPUT, DOWN);
1080                 PIN_SLP(gpf1-3, INPUT, DOWN);
1081                 PIN_SLP(gpf1-4, INPUT, NONE);
1082                 PIN_SLP(gpf1-5, INPUT, NONE);
1083                 PIN_SLP(gpf1-6, INPUT, DOWN);
1084                 PIN_SLP(gpf1-7, PREV, NONE);
1085
1086                 PIN_SLP(gpf2-0, PREV, NONE);
1087                 PIN_SLP(gpf2-1, INPUT, DOWN);
1088                 PIN_SLP(gpf2-2, INPUT, DOWN);
1089                 PIN_SLP(gpf2-3, INPUT, DOWN);
1090                 PIN_SLP(gpf2-4, INPUT, DOWN);
1091                 PIN_SLP(gpf2-5, INPUT, DOWN);
1092                 PIN_SLP(gpf2-6, INPUT, NONE);
1093                 PIN_SLP(gpf2-7, INPUT, NONE);
1094
1095                 PIN_SLP(gpf3-0, INPUT, NONE);
1096                 PIN_SLP(gpf3-1, PREV, NONE);
1097                 PIN_SLP(gpf3-2, PREV, NONE);
1098                 PIN_SLP(gpf3-3, PREV, NONE);
1099                 PIN_SLP(gpf3-4, OUT1, NONE);
1100                 PIN_SLP(gpf3-5, INPUT, DOWN);
1101
1102                 PIN_SLP(gpj0-0, PREV, NONE);
1103                 PIN_SLP(gpj0-1, PREV, NONE);
1104                 PIN_SLP(gpj0-2, PREV, NONE);
1105                 PIN_SLP(gpj0-3, INPUT, DOWN);
1106                 PIN_SLP(gpj0-4, PREV, NONE);
1107                 PIN_SLP(gpj0-5, PREV, NONE);
1108                 PIN_SLP(gpj0-6, INPUT, DOWN);
1109                 PIN_SLP(gpj0-7, INPUT, DOWN);
1110
1111                 PIN_SLP(gpj1-0, INPUT, DOWN);
1112                 PIN_SLP(gpj1-1, PREV, NONE);
1113                 PIN_SLP(gpj1-2, PREV, NONE);
1114                 PIN_SLP(gpj1-3, INPUT, DOWN);
1115                 PIN_SLP(gpj1-4, INPUT, DOWN);
1116         };
1117 };
1118
1119 &pinctrl_1 {
1120         pinctrl-names = "default";
1121         pinctrl-0 = <&sleep1>;
1122
1123         hdmi_hpd: hdmi-hpd {
1124                 samsung,pins = "gpx3-7";
1125                 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
1126         };
1127
1128         sleep1: sleep-states {
1129                 PIN_SLP(gpk0-0, PREV, NONE);
1130                 PIN_SLP(gpk0-1, PREV, NONE);
1131                 PIN_SLP(gpk0-2, OUT0, NONE);
1132                 PIN_SLP(gpk0-3, PREV, NONE);
1133                 PIN_SLP(gpk0-4, PREV, NONE);
1134                 PIN_SLP(gpk0-5, PREV, NONE);
1135                 PIN_SLP(gpk0-6, PREV, NONE);
1136
1137                 PIN_SLP(gpk1-0, INPUT, DOWN);
1138                 PIN_SLP(gpk1-1, INPUT, DOWN);
1139                 PIN_SLP(gpk1-2, INPUT, DOWN);
1140                 PIN_SLP(gpk1-3, PREV, NONE);
1141                 PIN_SLP(gpk1-4, PREV, NONE);
1142                 PIN_SLP(gpk1-5, PREV, NONE);
1143                 PIN_SLP(gpk1-6, PREV, NONE);
1144
1145                 PIN_SLP(gpk2-0, INPUT, DOWN);
1146                 PIN_SLP(gpk2-1, INPUT, DOWN);
1147                 PIN_SLP(gpk2-2, INPUT, DOWN);
1148                 PIN_SLP(gpk2-3, INPUT, DOWN);
1149                 PIN_SLP(gpk2-4, INPUT, DOWN);
1150                 PIN_SLP(gpk2-5, INPUT, DOWN);
1151                 PIN_SLP(gpk2-6, INPUT, DOWN);
1152
1153                 PIN_SLP(gpk3-0, OUT0, NONE);
1154                 PIN_SLP(gpk3-1, INPUT, NONE);
1155                 PIN_SLP(gpk3-2, INPUT, DOWN);
1156                 PIN_SLP(gpk3-3, INPUT, NONE);
1157                 PIN_SLP(gpk3-4, INPUT, NONE);
1158                 PIN_SLP(gpk3-5, INPUT, NONE);
1159                 PIN_SLP(gpk3-6, INPUT, NONE);
1160
1161                 PIN_SLP(gpl0-0, INPUT, DOWN);
1162                 PIN_SLP(gpl0-1, INPUT, DOWN);
1163                 PIN_SLP(gpl0-2, INPUT, DOWN);
1164                 PIN_SLP(gpl0-3, INPUT, DOWN);
1165                 PIN_SLP(gpl0-4, PREV, NONE);
1166                 PIN_SLP(gpl0-6, PREV, NONE);
1167
1168                 PIN_SLP(gpl1-0, INPUT, DOWN);
1169                 PIN_SLP(gpl1-1, INPUT, DOWN);
1170                 PIN_SLP(gpl2-0, INPUT, DOWN);
1171                 PIN_SLP(gpl2-1, INPUT, DOWN);
1172                 PIN_SLP(gpl2-2, INPUT, DOWN);
1173                 PIN_SLP(gpl2-3, INPUT, DOWN);
1174                 PIN_SLP(gpl2-4, INPUT, DOWN);
1175                 PIN_SLP(gpl2-5, INPUT, DOWN);
1176                 PIN_SLP(gpl2-6, PREV, NONE);
1177                 PIN_SLP(gpl2-7, INPUT, DOWN);
1178
1179                 PIN_SLP(gpm0-0, INPUT, DOWN);
1180                 PIN_SLP(gpm0-1, INPUT, DOWN);
1181                 PIN_SLP(gpm0-2, INPUT, DOWN);
1182                 PIN_SLP(gpm0-3, INPUT, DOWN);
1183                 PIN_SLP(gpm0-4, INPUT, DOWN);
1184                 PIN_SLP(gpm0-5, INPUT, DOWN);
1185                 PIN_SLP(gpm0-6, INPUT, DOWN);
1186                 PIN_SLP(gpm0-7, INPUT, DOWN);
1187
1188                 PIN_SLP(gpm1-0, INPUT, DOWN);
1189                 PIN_SLP(gpm1-1, INPUT, DOWN);
1190                 PIN_SLP(gpm1-2, INPUT, NONE);
1191                 PIN_SLP(gpm1-3, INPUT, NONE);
1192                 PIN_SLP(gpm1-4, INPUT, NONE);
1193                 PIN_SLP(gpm1-5, INPUT, NONE);
1194                 PIN_SLP(gpm1-6, INPUT, DOWN);
1195
1196                 PIN_SLP(gpm2-0, INPUT, NONE);
1197                 PIN_SLP(gpm2-1, INPUT, NONE);
1198                 PIN_SLP(gpm2-2, INPUT, DOWN);
1199                 PIN_SLP(gpm2-3, INPUT, DOWN);
1200                 PIN_SLP(gpm2-4, INPUT, DOWN);
1201
1202                 PIN_SLP(gpm3-0, PREV, NONE);
1203                 PIN_SLP(gpm3-1, PREV, NONE);
1204                 PIN_SLP(gpm3-2, PREV, NONE);
1205                 PIN_SLP(gpm3-3, OUT1, NONE);
1206                 PIN_SLP(gpm3-4, INPUT, DOWN);
1207                 PIN_SLP(gpm3-5, INPUT, DOWN);
1208                 PIN_SLP(gpm3-6, INPUT, DOWN);
1209                 PIN_SLP(gpm3-7, INPUT, DOWN);
1210
1211                 PIN_SLP(gpm4-0, INPUT, DOWN);
1212                 PIN_SLP(gpm4-1, INPUT, DOWN);
1213                 PIN_SLP(gpm4-2, INPUT, DOWN);
1214                 PIN_SLP(gpm4-3, INPUT, DOWN);
1215                 PIN_SLP(gpm4-4, INPUT, DOWN);
1216                 PIN_SLP(gpm4-5, INPUT, DOWN);
1217                 PIN_SLP(gpm4-6, INPUT, DOWN);
1218                 PIN_SLP(gpm4-7, INPUT, DOWN);
1219
1220                 PIN_SLP(gpy0-0, INPUT, DOWN);
1221                 PIN_SLP(gpy0-1, INPUT, DOWN);
1222                 PIN_SLP(gpy0-2, INPUT, DOWN);
1223                 PIN_SLP(gpy0-3, INPUT, DOWN);
1224                 PIN_SLP(gpy0-4, INPUT, DOWN);
1225                 PIN_SLP(gpy0-5, INPUT, DOWN);
1226
1227                 PIN_SLP(gpy1-0, INPUT, DOWN);
1228                 PIN_SLP(gpy1-1, INPUT, DOWN);
1229                 PIN_SLP(gpy1-2, INPUT, DOWN);
1230                 PIN_SLP(gpy1-3, INPUT, DOWN);
1231
1232                 PIN_SLP(gpy2-0, PREV, NONE);
1233                 PIN_SLP(gpy2-1, INPUT, DOWN);
1234                 PIN_SLP(gpy2-2, INPUT, NONE);
1235                 PIN_SLP(gpy2-3, INPUT, NONE);
1236                 PIN_SLP(gpy2-4, INPUT, NONE);
1237                 PIN_SLP(gpy2-5, INPUT, NONE);
1238
1239                 PIN_SLP(gpy3-0, INPUT, DOWN);
1240                 PIN_SLP(gpy3-1, INPUT, DOWN);
1241                 PIN_SLP(gpy3-2, INPUT, DOWN);
1242                 PIN_SLP(gpy3-3, INPUT, DOWN);
1243                 PIN_SLP(gpy3-4, INPUT, DOWN);
1244                 PIN_SLP(gpy3-5, INPUT, DOWN);
1245                 PIN_SLP(gpy3-6, INPUT, DOWN);
1246                 PIN_SLP(gpy3-7, INPUT, DOWN);
1247
1248                 PIN_SLP(gpy4-0, INPUT, DOWN);
1249                 PIN_SLP(gpy4-1, INPUT, DOWN);
1250                 PIN_SLP(gpy4-2, INPUT, DOWN);
1251                 PIN_SLP(gpy4-3, INPUT, DOWN);
1252                 PIN_SLP(gpy4-4, INPUT, DOWN);
1253                 PIN_SLP(gpy4-5, INPUT, DOWN);
1254                 PIN_SLP(gpy4-6, INPUT, DOWN);
1255                 PIN_SLP(gpy4-7, INPUT, DOWN);
1256
1257                 PIN_SLP(gpy5-0, INPUT, DOWN);
1258                 PIN_SLP(gpy5-1, INPUT, DOWN);
1259                 PIN_SLP(gpy5-2, INPUT, DOWN);
1260                 PIN_SLP(gpy5-3, INPUT, DOWN);
1261                 PIN_SLP(gpy5-4, INPUT, DOWN);
1262                 PIN_SLP(gpy5-5, INPUT, DOWN);
1263                 PIN_SLP(gpy5-6, INPUT, DOWN);
1264                 PIN_SLP(gpy5-7, INPUT, DOWN);
1265
1266                 PIN_SLP(gpy6-0, INPUT, DOWN);
1267                 PIN_SLP(gpy6-1, INPUT, DOWN);
1268                 PIN_SLP(gpy6-2, INPUT, DOWN);
1269                 PIN_SLP(gpy6-3, INPUT, DOWN);
1270                 PIN_SLP(gpy6-4, INPUT, DOWN);
1271                 PIN_SLP(gpy6-5, INPUT, DOWN);
1272                 PIN_SLP(gpy6-6, INPUT, DOWN);
1273                 PIN_SLP(gpy6-7, INPUT, DOWN);
1274         };
1275 };
1276
1277 &pinctrl_2 {
1278         pinctrl-names = "default";
1279         pinctrl-0 = <&sleep2>;
1280
1281         sleep2: sleep-states {
1282                 PIN_SLP(gpz-0, INPUT, DOWN);
1283                 PIN_SLP(gpz-1, INPUT, DOWN);
1284                 PIN_SLP(gpz-2, INPUT, DOWN);
1285                 PIN_SLP(gpz-3, INPUT, DOWN);
1286                 PIN_SLP(gpz-4, INPUT, DOWN);
1287                 PIN_SLP(gpz-5, INPUT, DOWN);
1288                 PIN_SLP(gpz-6, INPUT, DOWN);
1289         };
1290 };
1291
1292 &pinctrl_3 {
1293         pinctrl-names = "default";
1294         pinctrl-0 = <&sleep3>;
1295
1296         sleep3: sleep-states {
1297                 PIN_SLP(gpv0-0, INPUT, DOWN);
1298                 PIN_SLP(gpv0-1, INPUT, DOWN);
1299                 PIN_SLP(gpv0-2, INPUT, DOWN);
1300                 PIN_SLP(gpv0-3, INPUT, DOWN);
1301                 PIN_SLP(gpv0-4, INPUT, DOWN);
1302                 PIN_SLP(gpv0-5, INPUT, DOWN);
1303                 PIN_SLP(gpv0-6, INPUT, DOWN);
1304                 PIN_SLP(gpv0-7, INPUT, DOWN);
1305
1306                 PIN_SLP(gpv1-0, INPUT, DOWN);
1307                 PIN_SLP(gpv1-1, INPUT, DOWN);
1308                 PIN_SLP(gpv1-2, INPUT, DOWN);
1309                 PIN_SLP(gpv1-3, INPUT, DOWN);
1310                 PIN_SLP(gpv1-4, INPUT, DOWN);
1311                 PIN_SLP(gpv1-5, INPUT, DOWN);
1312                 PIN_SLP(gpv1-6, INPUT, DOWN);
1313                 PIN_SLP(gpv1-7, INPUT, DOWN);
1314
1315                 PIN_SLP(gpv2-0, INPUT, DOWN);
1316                 PIN_SLP(gpv2-1, INPUT, DOWN);
1317                 PIN_SLP(gpv2-2, INPUT, DOWN);
1318                 PIN_SLP(gpv2-3, INPUT, DOWN);
1319                 PIN_SLP(gpv2-4, INPUT, DOWN);
1320                 PIN_SLP(gpv2-5, INPUT, DOWN);
1321                 PIN_SLP(gpv2-6, INPUT, DOWN);
1322                 PIN_SLP(gpv2-7, INPUT, DOWN);
1323
1324                 PIN_SLP(gpv3-0, INPUT, DOWN);
1325                 PIN_SLP(gpv3-1, INPUT, DOWN);
1326                 PIN_SLP(gpv3-2, INPUT, DOWN);
1327                 PIN_SLP(gpv3-3, INPUT, DOWN);
1328                 PIN_SLP(gpv3-4, INPUT, DOWN);
1329                 PIN_SLP(gpv3-5, INPUT, DOWN);
1330                 PIN_SLP(gpv3-6, INPUT, DOWN);
1331                 PIN_SLP(gpv3-7, INPUT, DOWN);
1332
1333                 PIN_SLP(gpv4-0, INPUT, DOWN);
1334         };
1335 };
1336
1337 &pwm {
1338         pinctrl-0 = <&pwm0_out>;
1339         pinctrl-names = "default";
1340         samsung,pwm-outputs = <0>;
1341         status = "okay";
1342 };
1343
1344 &rtc {
1345         status = "okay";
1346         clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
1347         clock-names = "rtc", "rtc_src";
1348 };
1349
1350 &sdhci_2 {
1351         bus-width = <4>;
1352         cd-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
1353         cd-inverted;
1354         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
1355         pinctrl-names = "default";
1356         vmmc-supply = <&ldo21_reg>;
1357         status = "okay";
1358 };
1359
1360 &sdhci_3 {
1361         #address-cells = <1>;
1362         #size-cells = <0>;
1363         non-removable;
1364         bus-width = <4>;
1365
1366         mmc-pwrseq = <&wlan_pwrseq>;
1367         pinctrl-names = "default";
1368         pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
1369         status = "okay";
1370
1371         brcmf: wifi@1 {
1372                 reg = <1>;
1373                 compatible = "brcm,bcm4329-fmac";
1374                 interrupt-parent = <&gpx2>;
1375                 interrupts = <5 IRQ_TYPE_NONE>;
1376                 interrupt-names = "host-wake";
1377         };
1378 };
1379
1380 &serial_0 {
1381         status = "okay";
1382 };
1383
1384 &serial_1 {
1385         status = "okay";
1386 };
1387
1388 &serial_2 {
1389         status = "okay";
1390 };
1391
1392 &serial_3 {
1393         status = "okay";
1394 };
1395
1396 &spi_1 {
1397         pinctrl-names = "default";
1398         pinctrl-0 = <&spi1_bus>;
1399         cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
1400         status = "okay";
1401
1402         s5c73m3_spi: s5c73m3@0 {
1403                 compatible = "samsung,s5c73m3";
1404                 spi-max-frequency = <50000000>;
1405                 reg = <0>;
1406                 controller-data {
1407                         samsung,spi-feedback-delay = <2>;
1408                 };
1409         };
1410 };
1411
1412 &tmu {
1413         vtmu-supply = <&ldo10_reg>;
1414         status = "okay";
1415 };