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