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