Merge tag 's390-4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos5420-peach-pit.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Google Peach Pit Rev 6+ board device tree source
4  *
5  * Copyright (c) 2014 Google, Inc
6  */
7
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/clock/maxim,max77802.h>
13 #include <dt-bindings/regulator/maxim,max77802.h>
14 #include <dt-bindings/sound/samsung-i2s.h>
15 #include "exynos5420.dtsi"
16 #include "exynos5420-cpus.dtsi"
17
18 / {
19         model = "Google Peach Pit Rev 6+";
20
21         compatible = "google,pit-rev16",
22                 "google,pit-rev15", "google,pit-rev14",
23                 "google,pit-rev13", "google,pit-rev12",
24                 "google,pit-rev11", "google,pit-rev10",
25                 "google,pit-rev9", "google,pit-rev8",
26                 "google,pit-rev7", "google,pit-rev6",
27                 "google,pit", "google,peach","samsung,exynos5420",
28                 "samsung,exynos5";
29
30         aliases {
31                 /* Assign 20 so we don't get confused w/ builtin ones */
32                 i2c20 = &i2c_tunnel;
33         };
34
35         backlight: backlight {
36                 compatible = "pwm-backlight";
37                 pwms = <&pwm 0 1000000 0>;
38                 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
39                 default-brightness-level = <7>;
40                 power-supply = <&tps65090_fet1>;
41                 pinctrl-0 = <&pwm0_out>;
42                 pinctrl-names = "default";
43         };
44
45         chosen {
46                 stdout-path = "serial3:115200n8";
47         };
48
49         fixed-rate-clocks {
50                 oscclk {
51                         compatible = "samsung,exynos5420-oscclk";
52                         clock-frequency = <24000000>;
53                 };
54         };
55
56         gpio-keys {
57                 compatible = "gpio-keys";
58
59                 pinctrl-names = "default";
60                 pinctrl-0 = <&power_key_irq &lid_irq>;
61
62                 power {
63                         label = "Power";
64                         gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
65                         linux,code = <KEY_POWER>;
66                         wakeup-source;
67                 };
68
69                 lid-switch {
70                         label = "Lid";
71                         gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
72                         linux,input-type = <5>; /* EV_SW */
73                         linux,code = <0>; /* SW_LID */
74                         debounce-interval = <1>;
75                         wakeup-source;
76                 };
77         };
78
79         memory@20000000 {
80                 device_type = "memory";
81                 reg = <0x20000000 0x80000000>;
82         };
83
84         sound {
85                 compatible = "google,snow-audio-max98090";
86
87                 samsung,model = "Peach-Pit-I2S-MAX98090";
88                 samsung,i2s-controller = <&i2s0>;
89                 samsung,audio-codec = <&max98090>;
90
91                 cpu {
92                         sound-dai = <&i2s0 0>;
93                 };
94
95                 codec {
96                         sound-dai = <&max98090>, <&hdmi>;
97                 };
98         };
99
100         usb300_vbus_reg: regulator-usb300 {
101                 compatible = "regulator-fixed";
102                 regulator-name = "P5.0V_USB3CON0";
103                 regulator-min-microvolt = <5000000>;
104                 regulator-max-microvolt = <5000000>;
105                 gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
106                 pinctrl-names = "default";
107                 pinctrl-0 = <&usb300_vbus_en>;
108                 enable-active-high;
109         };
110
111         usb301_vbus_reg: regulator-usb301 {
112                 compatible = "regulator-fixed";
113                 regulator-name = "P5.0V_USB3CON1";
114                 regulator-min-microvolt = <5000000>;
115                 regulator-max-microvolt = <5000000>;
116                 gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
117                 pinctrl-names = "default";
118                 pinctrl-0 = <&usb301_vbus_en>;
119                 enable-active-high;
120         };
121
122         vbat: fixed-regulator {
123                 compatible = "regulator-fixed";
124                 regulator-name = "vbat-supply";
125                 regulator-boot-on;
126                 regulator-always-on;
127         };
128
129         panel: panel {
130                 compatible = "auo,b116xw03";
131                 power-supply = <&tps65090_fet6>;
132                 backlight = <&backlight>;
133
134                 port {
135                         panel_in: endpoint {
136                                 remote-endpoint = <&bridge_out>;
137                         };
138                 };
139         };
140
141         mmc1_pwrseq: mmc1_pwrseq {
142                 compatible = "mmc-pwrseq-simple";
143                 reset-gpios = <&gpx0 0 GPIO_ACTIVE_LOW>; /* WIFI_EN */
144                 clocks = <&max77802 MAX77802_CLK_32K_CP>;
145                 clock-names = "ext_clock";
146         };
147 };
148
149 &adc {
150         status = "okay";
151         vdd-supply = <&ldo9_reg>;
152 };
153
154 &clock_audss {
155         assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
156         assigned-clock-parents = <&clock CLK_MAU_EPLL>;
157 };
158
159 &cpu0 {
160         cpu-supply = <&buck2_reg>;
161 };
162
163 &cpu4 {
164         cpu-supply = <&buck6_reg>;
165 };
166
167 &dp {
168         status = "okay";
169         pinctrl-names = "default";
170         pinctrl-0 = <&dp_hpd_gpio>;
171         samsung,color-space = <0>;
172         samsung,color-depth = <1>;
173         samsung,link-rate = <0x06>;
174         samsung,lane-count = <2>;
175         hpd-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
176
177         ports {
178                 port {
179                         dp_out: endpoint {
180                                 remote-endpoint = <&bridge_in>;
181                         };
182                 };
183         };
184 };
185
186 &fimd {
187         status = "okay";
188         samsung,invert-vclk;
189 };
190
191 &hdmi {
192         status = "okay";
193         hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
194         pinctrl-names = "default";
195         pinctrl-0 = <&hdmi_hpd_irq>;
196         ddc = <&i2c_2>;
197
198         hdmi-en-supply = <&tps65090_fet7>;
199         vdd-supply = <&ldo8_reg>;
200         vdd_osc-supply = <&ldo10_reg>;
201         vdd_pll-supply = <&ldo8_reg>;
202 };
203
204 &hsi2c_4 {
205         status = "okay";
206         clock-frequency = <400000>;
207
208         max77802: max77802-pmic@9 {
209                 compatible = "maxim,max77802";
210                 interrupt-parent = <&gpx3>;
211                 interrupts = <1 IRQ_TYPE_NONE>;
212                 pinctrl-names = "default";
213                 pinctrl-0 = <&max77802_irq>, <&pmic_selb>,
214                             <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>;
215                 wakeup-source;
216                 reg = <0x9>;
217                 #clock-cells = <1>;
218
219                 inb1-supply = <&tps65090_dcdc2>;
220                 inb2-supply = <&tps65090_dcdc1>;
221                 inb3-supply = <&tps65090_dcdc2>;
222                 inb4-supply = <&tps65090_dcdc2>;
223                 inb5-supply = <&tps65090_dcdc1>;
224                 inb6-supply = <&tps65090_dcdc2>;
225                 inb7-supply = <&tps65090_dcdc1>;
226                 inb8-supply = <&tps65090_dcdc1>;
227                 inb9-supply = <&tps65090_dcdc1>;
228                 inb10-supply = <&tps65090_dcdc1>;
229
230                 inl1-supply = <&buck5_reg>;
231                 inl2-supply = <&buck7_reg>;
232                 inl3-supply = <&buck9_reg>;
233                 inl4-supply = <&buck9_reg>;
234                 inl5-supply = <&buck9_reg>;
235                 inl6-supply = <&tps65090_dcdc2>;
236                 inl7-supply = <&buck9_reg>;
237                 inl9-supply = <&tps65090_dcdc2>;
238                 inl10-supply = <&buck7_reg>;
239
240                 regulators {
241                         buck1_reg: BUCK1 {
242                                 regulator-name = "vdd_mif";
243                                 regulator-min-microvolt = <800000>;
244                                 regulator-max-microvolt = <1300000>;
245                                 regulator-always-on;
246                                 regulator-boot-on;
247                                 regulator-ramp-delay = <12500>;
248                                 regulator-state-mem {
249                                         regulator-off-in-suspend;
250                                 };
251                         };
252
253                         buck2_reg: BUCK2 {
254                                 regulator-name = "vdd_arm";
255                                 regulator-min-microvolt = <800000>;
256                                 regulator-max-microvolt = <1500000>;
257                                 regulator-always-on;
258                                 regulator-boot-on;
259                                 regulator-ramp-delay = <12500>;
260                                 regulator-state-mem {
261                                         regulator-off-in-suspend;
262                                 };
263                         };
264
265                         buck3_reg: BUCK3 {
266                                 regulator-name = "vdd_int";
267                                 regulator-min-microvolt = <800000>;
268                                 regulator-max-microvolt = <1400000>;
269                                 regulator-always-on;
270                                 regulator-boot-on;
271                                 regulator-ramp-delay = <12500>;
272                                 regulator-state-mem {
273                                         regulator-off-in-suspend;
274                                 };
275                         };
276
277                         buck4_reg: BUCK4 {
278                                 regulator-name = "vdd_g3d";
279                                 regulator-min-microvolt = <700000>;
280                                 regulator-max-microvolt = <1400000>;
281                                 regulator-always-on;
282                                 regulator-boot-on;
283                                 regulator-ramp-delay = <12500>;
284                                 regulator-state-mem {
285                                         regulator-off-in-suspend;
286                                 };
287                         };
288
289                         buck5_reg: BUCK5 {
290                                 regulator-name = "vdd_1v2";
291                                 regulator-min-microvolt = <1200000>;
292                                 regulator-max-microvolt = <1200000>;
293                                 regulator-boot-on;
294                                 regulator-state-mem {
295                                         regulator-off-in-suspend;
296                                 };
297                         };
298
299                         buck6_reg: BUCK6 {
300                                 regulator-name = "vdd_kfc";
301                                 regulator-min-microvolt = <800000>;
302                                 regulator-max-microvolt = <1500000>;
303                                 regulator-always-on;
304                                 regulator-boot-on;
305                                 regulator-ramp-delay = <12500>;
306                                 regulator-state-mem {
307                                         regulator-off-in-suspend;
308                                 };
309                         };
310
311                         buck7_reg: BUCK7 {
312                                 regulator-name = "vdd_1v35";
313                                 regulator-min-microvolt = <1350000>;
314                                 regulator-max-microvolt = <1350000>;
315                                 regulator-always-on;
316                                 regulator-boot-on;
317                                 regulator-state-mem {
318                                         regulator-on-in-suspend;
319                                 };
320                         };
321
322                         buck8_reg: BUCK8 {
323                                 regulator-name = "vdd_emmc";
324                                 regulator-min-microvolt = <2850000>;
325                                 regulator-max-microvolt = <2850000>;
326                                 regulator-always-on;
327                                 regulator-boot-on;
328                                 regulator-state-mem {
329                                         regulator-off-in-suspend;
330                                 };
331                         };
332
333                         buck9_reg: BUCK9 {
334                                 regulator-name = "vdd_2v";
335                                 regulator-min-microvolt = <2000000>;
336                                 regulator-max-microvolt = <2000000>;
337                                 regulator-always-on;
338                                 regulator-boot-on;
339                                 regulator-state-mem {
340                                         regulator-on-in-suspend;
341                                 };
342                         };
343
344                         buck10_reg: BUCK10 {
345                                 regulator-name = "vdd_1v8";
346                                 regulator-min-microvolt = <1800000>;
347                                 regulator-max-microvolt = <1800000>;
348                                 regulator-always-on;
349                                 regulator-boot-on;
350                                 regulator-state-mem {
351                                         regulator-on-in-suspend;
352                                 };
353                         };
354
355                         ldo1_reg: LDO1 {
356                                 regulator-name = "vdd_1v0";
357                                 regulator-min-microvolt = <1000000>;
358                                 regulator-max-microvolt = <1000000>;
359                                 regulator-always-on;
360                                 regulator-state-mem {
361                                         regulator-on-in-suspend;
362                                         regulator-mode = <MAX77802_OPMODE_LP>;
363                                 };
364                         };
365
366                         ldo2_reg: LDO2 {
367                                 regulator-name = "vdd_1v2_2";
368                                 regulator-min-microvolt = <1200000>;
369                                 regulator-max-microvolt = <1200000>;
370                         };
371
372                         ldo3_reg: LDO3 {
373                                 regulator-name = "vdd_1v8_3";
374                                 regulator-min-microvolt = <1800000>;
375                                 regulator-max-microvolt = <1800000>;
376                                 regulator-always-on;
377                                 regulator-state-mem {
378                                         regulator-on-in-suspend;
379                                         regulator-mode = <MAX77802_OPMODE_LP>;
380                                 };
381                         };
382
383                         vqmmc_sdcard: ldo4_reg: LDO4 {
384                                 regulator-name = "vdd_sd";
385                                 regulator-min-microvolt = <1800000>;
386                                 regulator-max-microvolt = <2800000>;
387                                 regulator-always-on;
388                                 regulator-state-mem {
389                                         regulator-off-in-suspend;
390                                 };
391                         };
392
393                         ldo5_reg: LDO5 {
394                                 regulator-name = "vdd_1v8_5";
395                                 regulator-min-microvolt = <1800000>;
396                                 regulator-max-microvolt = <1800000>;
397                                 regulator-always-on;
398                                 regulator-state-mem {
399                                         regulator-off-in-suspend;
400                                 };
401                         };
402
403                         ldo6_reg: LDO6 {
404                                 regulator-name = "vdd_1v8_6";
405                                 regulator-min-microvolt = <1800000>;
406                                 regulator-max-microvolt = <1800000>;
407                                 regulator-always-on;
408                                 regulator-state-mem {
409                                         regulator-off-in-suspend;
410                                 };
411                         };
412
413                         ldo7_reg: LDO7 {
414                                 regulator-name = "vdd_1v8_7";
415                                 regulator-min-microvolt = <1800000>;
416                                 regulator-max-microvolt = <1800000>;
417                         };
418
419                         ldo8_reg: LDO8 {
420                                 regulator-name = "vdd_ldo8";
421                                 regulator-min-microvolt = <1000000>;
422                                 regulator-max-microvolt = <1000000>;
423                                 regulator-always-on;
424                                 regulator-state-mem {
425                                         regulator-off-in-suspend;
426                                 };
427                         };
428
429                         ldo9_reg: LDO9 {
430                                 regulator-name = "vdd_ldo9";
431                                 regulator-min-microvolt = <1800000>;
432                                 regulator-max-microvolt = <1800000>;
433                                 regulator-state-mem {
434                                         regulator-on-in-suspend;
435                                         regulator-mode = <MAX77802_OPMODE_LP>;
436                                 };
437                         };
438
439                         ldo10_reg: LDO10 {
440                                 regulator-name = "vdd_ldo10";
441                                 regulator-min-microvolt = <1800000>;
442                                 regulator-max-microvolt = <1800000>;
443                                 regulator-state-mem {
444                                         regulator-off-in-suspend;
445                                 };
446                         };
447
448                         ldo11_reg: LDO11 {
449                                 regulator-name = "vdd_ldo11";
450                                 regulator-min-microvolt = <1800000>;
451                                 regulator-max-microvolt = <1800000>;
452                                 regulator-always-on;
453                                 regulator-state-mem {
454                                         regulator-on-in-suspend;
455                                         regulator-mode = <MAX77802_OPMODE_LP>;
456                                 };
457                         };
458
459                         ldo12_reg: LDO12 {
460                                 regulator-name = "vdd_ldo12";
461                                 regulator-min-microvolt = <3000000>;
462                                 regulator-max-microvolt = <3000000>;
463                                 regulator-always-on;
464                                 regulator-state-mem {
465                                         regulator-off-in-suspend;
466                                 };
467                         };
468
469                         ldo13_reg: LDO13 {
470                                 regulator-name = "vdd_ldo13";
471                                 regulator-min-microvolt = <1800000>;
472                                 regulator-max-microvolt = <1800000>;
473                                 regulator-always-on;
474                                 regulator-state-mem {
475                                         regulator-on-in-suspend;
476                                         regulator-mode = <MAX77802_OPMODE_LP>;
477                                 };
478                         };
479
480                         ldo14_reg: LDO14 {
481                                 regulator-name = "vdd_ldo14";
482                                 regulator-min-microvolt = <1800000>;
483                                 regulator-max-microvolt = <1800000>;
484                                 regulator-always-on;
485                                 regulator-state-mem {
486                                         regulator-off-in-suspend;
487                                 };
488                         };
489
490                         ldo15_reg: LDO15 {
491                                 regulator-name = "vdd_ldo15";
492                                 regulator-min-microvolt = <1000000>;
493                                 regulator-max-microvolt = <1000000>;
494                                 regulator-always-on;
495                                 regulator-state-mem {
496                                         regulator-off-in-suspend;
497                                 };
498                         };
499
500                         ldo17_reg: LDO17 {
501                                 regulator-name = "vdd_g3ds";
502                                 regulator-min-microvolt = <900000>;
503                                 regulator-max-microvolt = <1400000>;
504                                 regulator-always-on;
505                                 regulator-state-mem {
506                                         regulator-off-in-suspend;
507                                 };
508                         };
509
510                         ldo18_reg: LDO18 {
511                                 regulator-name = "ldo_18";
512                                 regulator-min-microvolt = <1800000>;
513                                 regulator-max-microvolt = <1800000>;
514                         };
515
516                         ldo19_reg: LDO19 {
517                                 regulator-name = "ldo_19";
518                                 regulator-min-microvolt = <1800000>;
519                                 regulator-max-microvolt = <1800000>;
520                         };
521
522                         ldo20_reg: LDO20 {
523                                 regulator-name = "ldo_20";
524                                 regulator-min-microvolt = <1800000>;
525                                 regulator-max-microvolt = <1800000>;
526                                 regulator-always-on;
527                         };
528
529                         ldo21_reg: LDO21 {
530                                 regulator-name = "ldo_21";
531                                 regulator-min-microvolt = <2800000>;
532                                 regulator-max-microvolt = <2800000>;
533                         };
534
535                         ldo23_reg: LDO23 {
536                                 regulator-name = "ldo_23";
537                                 regulator-min-microvolt = <3300000>;
538                                 regulator-max-microvolt = <3300000>;
539                         };
540                         ldo24_reg: LDO24 {
541                                 regulator-name = "ldo_24";
542                                 regulator-min-microvolt = <2800000>;
543                                 regulator-max-microvolt = <2800000>;
544                         };
545
546                         ldo25_reg: LDO25 {
547                                 regulator-name = "ldo_25";
548                                 regulator-min-microvolt = <3300000>;
549                                 regulator-max-microvolt = <3300000>;
550                         };
551
552                         ldo26_reg: LDO26 {
553                                 regulator-name = "ldo_26";
554                                 regulator-min-microvolt = <1200000>;
555                                 regulator-max-microvolt = <1200000>;
556                         };
557
558                         ldo27_reg: LDO27 {
559                                 regulator-name = "ldo_27";
560                                 regulator-min-microvolt = <1200000>;
561                                 regulator-max-microvolt = <1200000>;
562                         };
563
564                         ldo28_reg: LDO28 {
565                                 regulator-name = "ldo_28";
566                                 regulator-min-microvolt = <1800000>;
567                                 regulator-max-microvolt = <1800000>;
568                         };
569
570                         ldo29_reg: LDO29 {
571                                 regulator-name = "ldo_29";
572                                 regulator-min-microvolt = <1800000>;
573                                 regulator-max-microvolt = <1800000>;
574                         };
575
576                         ldo30_reg: LDO30 {
577                                 regulator-name = "vdd_mifs";
578                                 regulator-min-microvolt = <1000000>;
579                                 regulator-max-microvolt = <1000000>;
580                                 regulator-always-on;
581                                 regulator-state-mem {
582                                         regulator-off-in-suspend;
583                                 };
584                         };
585
586                         ldo32_reg: LDO32 {
587                                 regulator-name = "ldo_32";
588                                 regulator-min-microvolt = <3000000>;
589                                 regulator-max-microvolt = <3000000>;
590                         };
591
592                         ldo33_reg: LDO33 {
593                                 regulator-name = "ldo_33";
594                                 regulator-min-microvolt = <2800000>;
595                                 regulator-max-microvolt = <2800000>;
596                         };
597
598                         ldo34_reg: LDO34 {
599                                 regulator-name = "ldo_34";
600                                 regulator-min-microvolt = <3000000>;
601                                 regulator-max-microvolt = <3000000>;
602                         };
603
604                         ldo35_reg: LDO35 {
605                                 regulator-name = "ldo_35";
606                                 regulator-min-microvolt = <1200000>;
607                                 regulator-max-microvolt = <1200000>;
608                         };
609                 };
610         };
611 };
612
613 &hsi2c_7 {
614         status = "okay";
615         clock-frequency = <400000>;
616
617         max98090: codec@10 {
618                 compatible = "maxim,max98090";
619                 reg = <0x10>;
620                 interrupts = <2 IRQ_TYPE_NONE>;
621                 interrupt-parent = <&gpx0>;
622                 pinctrl-names = "default";
623                 pinctrl-0 = <&max98090_irq>;
624                 clocks = <&pmu_system_controller 0>;
625                 clock-names = "mclk";
626                 #sound-dai-cells = <0>;
627         };
628
629         light-sensor@44 {
630                 compatible = "isil,isl29018";
631                 reg = <0x44>;
632                 vcc-supply = <&tps65090_fet5>;
633         };
634
635         ps8625: lvds-bridge@48 {
636                 compatible = "parade,ps8625";
637                 reg = <0x48>;
638                 sleep-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
639                 reset-gpios = <&gpy7 7 GPIO_ACTIVE_HIGH>;
640                 lane-count = <2>;
641                 use-external-pwm;
642
643                 ports {
644                         #address-cells = <1>;
645                         #size-cells = <0>;
646
647                         port@0 {
648                                 reg = <0>;
649
650                                 bridge_out: endpoint {
651                                         remote-endpoint = <&panel_in>;
652                                 };
653                         };
654
655                         port@1 {
656                                 reg = <1>;
657
658                                 bridge_in: endpoint {
659                                         remote-endpoint = <&dp_out>;
660                                 };
661                         };
662                 };
663
664         };
665 };
666
667 &hsi2c_8 {
668         status = "okay";
669         clock-frequency = <333000>;
670
671         /* Atmel mXT336S */
672         trackpad@4b {
673                 compatible = "atmel,maxtouch";
674                 reg = <0x4b>;
675                 interrupt-parent = <&gpx1>;
676                 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
677                 wakeup-source;
678                 pinctrl-names = "default";
679                 pinctrl-0 = <&trackpad_irq>;
680                 linux,gpio-keymap = <KEY_RESERVED
681                                      KEY_RESERVED
682                                      KEY_RESERVED       /* GPIO0 */
683                                      KEY_RESERVED       /* GPIO1 */
684                                      KEY_RESERVED       /* GPIO2 */
685                                      BTN_LEFT>;         /* GPIO3 */
686         };
687 };
688
689 &hsi2c_9 {
690         status = "okay";
691         clock-frequency = <400000>;
692
693         tpm@20 {
694                 compatible = "infineon,slb9645tt";
695                 reg = <0x20>;
696
697                 /* Unused irq; but still need to configure the pins */
698                 pinctrl-names = "default";
699                 pinctrl-0 = <&tpm_irq>;
700         };
701 };
702
703 &i2c_2 {
704         status = "okay";
705         samsung,i2c-sda-delay = <100>;
706         samsung,i2c-max-bus-freq = <66000>;
707         samsung,i2c-slave-addr = <0x50>;
708 };
709
710 &i2s0 {
711         assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
712         assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
713         status = "okay";
714 };
715
716 &mixer {
717         status = "okay";
718 };
719
720 /* eMMC flash */
721 &mmc_0 {
722         status = "okay";
723         mmc-hs200-1_8v;
724         cap-mmc-highspeed;
725         non-removable;
726         clock-frequency = <400000000>;
727         samsung,dw-mshc-ciu-div = <3>;
728         samsung,dw-mshc-sdr-timing = <0 4>;
729         samsung,dw-mshc-ddr-timing = <0 2>;
730         samsung,dw-mshc-hs400-timing = <0 2>;
731         samsung,read-strobe-delay = <90>;
732         pinctrl-names = "default";
733         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_rclk>;
734         bus-width = <8>;
735 };
736
737 /* WiFi SDIO module */
738 &mmc_1 {
739         status = "okay";
740         non-removable;
741         cap-sdio-irq;
742         keep-power-in-suspend;
743         clock-frequency = <400000000>;
744         samsung,dw-mshc-ciu-div = <1>;
745         samsung,dw-mshc-sdr-timing = <0 1>;
746         samsung,dw-mshc-ddr-timing = <0 2>;
747         pinctrl-names = "default";
748         pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>,
749                     <&sd1_bus4>, <&sd1_bus8>, <&wifi_en>;
750         bus-width = <4>;
751         cap-sd-highspeed;
752         mmc-pwrseq = <&mmc1_pwrseq>;
753         vqmmc-supply = <&buck10_reg>;
754 };
755
756 /* uSD card */
757 &mmc_2 {
758         status = "okay";
759         cap-sd-highspeed;
760         card-detect-delay = <200>;
761         clock-frequency = <400000000>;
762         samsung,dw-mshc-ciu-div = <3>;
763         samsung,dw-mshc-sdr-timing = <2 3>;
764         samsung,dw-mshc-ddr-timing = <1 2>;
765         pinctrl-names = "default";
766         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
767         bus-width = <4>;
768 };
769
770
771 &pinctrl_0 {
772         pinctrl-names = "default";
773         pinctrl-0 = <&mask_tpm_reset>;
774
775         wifi_en: wifi-en {
776                 samsung,pins = "gpx0-0";
777                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
778                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
779                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
780         };
781
782         max98090_irq: max98090-irq {
783                 samsung,pins = "gpx0-2";
784                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
785                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
786                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
787         };
788
789         /* We need GPX0_6 to be low at sleep time; just keep it low always */
790         mask_tpm_reset: mask-tpm-reset {
791                 samsung,pins = "gpx0-6";
792                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
793                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
794                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
795                 samsung,pin-val = <0>;
796         };
797
798         tpm_irq: tpm-irq {
799                 samsung,pins = "gpx1-0";
800                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
801                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
802                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
803         };
804
805         trackpad_irq: trackpad-irq {
806                 samsung,pins = "gpx1-1";
807                 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
808                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
809                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
810         };
811
812         power_key_irq: power-key-irq {
813                 samsung,pins = "gpx1-2";
814                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
815                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
816                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
817         };
818
819         ec_irq: ec-irq {
820                 samsung,pins = "gpx1-5";
821                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
822                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
823                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
824         };
825
826         tps65090_irq: tps65090-irq {
827                 samsung,pins = "gpx2-5";
828                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
829                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
830                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
831         };
832
833         dp_hpd_gpio: dp_hpd_gpio {
834                 samsung,pins = "gpx2-6";
835                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
836                 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
837                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
838         };
839
840         max77802_irq: max77802-irq {
841                 samsung,pins = "gpx3-1";
842                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
843                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
844                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
845         };
846
847         lid_irq: lid-irq {
848                 samsung,pins = "gpx3-4";
849                 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
850                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
851                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
852         };
853
854         hdmi_hpd_irq: hdmi-hpd-irq {
855                 samsung,pins = "gpx3-7";
856                 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
857                 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
858                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
859         };
860
861         pmic_dvs_1: pmic-dvs-1 {
862                 samsung,pins = "gpy7-6";
863                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
864                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
865                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
866         };
867 };
868
869 &pinctrl_1 {
870         /* Adjust WiFi drive strengths lower for EMI */
871         sd1_clk: sd1-clk {
872                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
873         };
874
875         sd1_cmd: sd1-cmd {
876                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
877         };
878
879         sd1_bus1: sd1-bus-width1 {
880                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
881         };
882
883         sd1_bus4: sd1-bus-width4 {
884                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
885         };
886
887         sd1_bus8: sd1-bus-width8 {
888                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
889         };
890 };
891
892 &pinctrl_2 {
893         pmic_dvs_2: pmic-dvs-2 {
894                 samsung,pins = "gpj4-2";
895                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
896                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
897                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
898         };
899
900         pmic_dvs_3: pmic-dvs-3 {
901                 samsung,pins = "gpj4-3";
902                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
903                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
904                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
905         };
906 };
907
908 &pinctrl_3 {
909         /* Drive SPI lines at x2 for better integrity */
910         spi2-bus {
911                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
912         };
913
914         /* Drive SPI chip select at x2 for better integrity */
915         ec_spi_cs: ec-spi-cs {
916                 samsung,pins = "gpb1-2";
917                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
918                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
919                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
920         };
921
922         usb300_vbus_en: usb300-vbus-en {
923                 samsung,pins = "gph0-0";
924                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
925                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
926                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
927         };
928
929         usb301_vbus_en: usb301-vbus-en {
930                 samsung,pins = "gph0-1";
931                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
932                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
933                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
934         };
935
936         pmic_selb: pmic-selb {
937                 samsung,pins = "gph0-2", "gph0-3", "gph0-4", "gph0-5",
938                                "gph0-6";
939                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
940                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
941                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
942         };
943 };
944
945 &pmu_system_controller {
946         assigned-clocks = <&pmu_system_controller 0>;
947         assigned-clock-parents = <&clock CLK_FIN_PLL>;
948 };
949
950 &rtc {
951         status = "okay";
952         clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
953         clock-names = "rtc", "rtc_src";
954 };
955
956 &spi_2 {
957         status = "okay";
958         num-cs = <1>;
959         samsung,spi-src-clk = <0>;
960         cs-gpios = <&gpb1 2 GPIO_ACTIVE_HIGH>;
961
962         cros_ec: cros-ec@0 {
963                 compatible = "google,cros-ec-spi";
964                 interrupt-parent = <&gpx1>;
965                 interrupts = <5 IRQ_TYPE_NONE>;
966                 pinctrl-names = "default";
967                 pinctrl-0 = <&ec_spi_cs &ec_irq>;
968                 reg = <0>;
969                 spi-max-frequency = <3125000>;
970                 google,has-vbc-nvram;
971
972                 controller-data {
973                         samsung,spi-feedback-delay = <1>;
974                 };
975
976                 i2c_tunnel: i2c-tunnel {
977                         compatible = "google,cros-ec-i2c-tunnel";
978                         #address-cells = <1>;
979                         #size-cells = <0>;
980                         google,remote-bus = <0>;
981
982                         battery: sbs-battery@b {
983                                 compatible = "sbs,sbs-battery";
984                                 reg = <0xb>;
985                                 sbs,poll-retry-count = <1>;
986                                 sbs,i2c-retry-count = <2>;
987                         };
988
989                         power-regulator@48 {
990                                 compatible = "ti,tps65090";
991                                 reg = <0x48>;
992
993                                 /*
994                                  * Config irq to disable internal pulls
995                                  * even though we run in polling mode.
996                                  */
997                                 pinctrl-names = "default";
998                                 pinctrl-0 = <&tps65090_irq>;
999
1000                                 vsys1-supply = <&vbat>;
1001                                 vsys2-supply = <&vbat>;
1002                                 vsys3-supply = <&vbat>;
1003                                 infet1-supply = <&vbat>;
1004                                 infet2-supply = <&tps65090_dcdc1>;
1005                                 infet3-supply = <&tps65090_dcdc2>;
1006                                 infet4-supply = <&tps65090_dcdc2>;
1007                                 infet5-supply = <&tps65090_dcdc2>;
1008                                 infet6-supply = <&tps65090_dcdc2>;
1009                                 infet7-supply = <&tps65090_dcdc1>;
1010                                 vsys-l1-supply = <&vbat>;
1011                                 vsys-l2-supply = <&vbat>;
1012
1013                                 regulators {
1014                                         tps65090_dcdc1: dcdc1 {
1015                                                 ti,enable-ext-control;
1016                                         };
1017                                         tps65090_dcdc2: dcdc2 {
1018                                                 ti,enable-ext-control;
1019                                         };
1020                                         tps65090_dcdc3: dcdc3 {
1021                                                 ti,enable-ext-control;
1022                                         };
1023                                         tps65090_fet1: fet1 {
1024                                                 regulator-name = "vcd_led";
1025                                         };
1026                                         tps65090_fet2: fet2 {
1027                                                 regulator-name = "video_mid";
1028                                                 regulator-always-on;
1029                                         };
1030                                         tps65090_fet3: fet3 {
1031                                                 regulator-name = "wwan_r";
1032                                                 regulator-always-on;
1033                                         };
1034                                         tps65090_fet4: fet4 {
1035                                                 regulator-name = "sdcard";
1036                                                 regulator-always-on;
1037                                         };
1038                                         tps65090_fet5: fet5 {
1039                                                 regulator-name = "camout";
1040                                                 regulator-always-on;
1041                                         };
1042                                         tps65090_fet6: fet6 {
1043                                                 regulator-name = "lcd_vdd";
1044                                         };
1045                                         tps65090_fet7: fet7 {
1046                                                 regulator-name = "video_mid_1a";
1047                                                 regulator-always-on;
1048                                         };
1049                                         tps65090_ldo1: ldo1 {
1050                                         };
1051                                         tps65090_ldo2: ldo2 {
1052                                         };
1053                                 };
1054
1055                                 charger {
1056                                         compatible = "ti,tps65090-charger";
1057                                 };
1058                         };
1059                 };
1060         };
1061 };
1062
1063 &serial_3 {
1064         status = "okay";
1065 };
1066
1067 &tmu_cpu0 {
1068         vtmu-supply = <&ldo10_reg>;
1069 };
1070
1071 &tmu_cpu1 {
1072         vtmu-supply = <&ldo10_reg>;
1073 };
1074
1075 &tmu_cpu2 {
1076         vtmu-supply = <&ldo10_reg>;
1077 };
1078
1079 &tmu_cpu3 {
1080         vtmu-supply = <&ldo10_reg>;
1081 };
1082
1083 &tmu_gpu {
1084         vtmu-supply = <&ldo10_reg>;
1085 };
1086
1087 &usbdrd_dwc3_0 {
1088         dr_mode = "host";
1089 };
1090
1091 &usbdrd_dwc3_1 {
1092         dr_mode = "host";
1093 };
1094
1095 &usbdrd_phy0 {
1096         vbus-supply = <&usb300_vbus_reg>;
1097 };
1098
1099 &usbdrd_phy1 {
1100         vbus-supply = <&usb301_vbus_reg>;
1101 };
1102
1103 /*
1104  * Use longest HW watchdog in SoC (32 seconds) since the hardware
1105  * watchdog provides no debugging information (compared to soft/hard
1106  * lockup detectors) and so should be last resort.
1107  */
1108 &watchdog {
1109         timeout-sec = <32>;
1110 };
1111
1112 #include "cros-ec-keyboard.dtsi"
1113 #include "cros-adc-thermistors.dtsi"