Merge tag 'xfs-for-linus-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.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                 port {
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-always-on;
282                                 regulator-boot-on;
283                                 regulator-state-mem {
284                                         regulator-off-in-suspend;
285                                 };
286                         };
287
288                         buck6_reg: BUCK6 {
289                                 regulator-name = "vdd_kfc";
290                                 regulator-min-microvolt = <800000>;
291                                 regulator-max-microvolt = <1500000>;
292                                 regulator-always-on;
293                                 regulator-boot-on;
294                                 regulator-ramp-delay = <12500>;
295                                 regulator-state-mem {
296                                         regulator-off-in-suspend;
297                                 };
298                         };
299
300                         buck7_reg: BUCK7 {
301                                 regulator-name = "vdd_1v35";
302                                 regulator-min-microvolt = <1350000>;
303                                 regulator-max-microvolt = <1350000>;
304                                 regulator-always-on;
305                                 regulator-boot-on;
306                                 regulator-state-mem {
307                                         regulator-on-in-suspend;
308                                 };
309                         };
310
311                         buck8_reg: BUCK8 {
312                                 regulator-name = "vdd_emmc";
313                                 regulator-min-microvolt = <2850000>;
314                                 regulator-max-microvolt = <2850000>;
315                                 regulator-always-on;
316                                 regulator-boot-on;
317                                 regulator-state-mem {
318                                         regulator-off-in-suspend;
319                                 };
320                         };
321
322                         buck9_reg: BUCK9 {
323                                 regulator-name = "vdd_2v";
324                                 regulator-min-microvolt = <2000000>;
325                                 regulator-max-microvolt = <2000000>;
326                                 regulator-always-on;
327                                 regulator-boot-on;
328                                 regulator-state-mem {
329                                         regulator-on-in-suspend;
330                                 };
331                         };
332
333                         buck10_reg: BUCK10 {
334                                 regulator-name = "vdd_1v8";
335                                 regulator-min-microvolt = <1800000>;
336                                 regulator-max-microvolt = <1800000>;
337                                 regulator-always-on;
338                                 regulator-boot-on;
339                                 regulator-state-mem {
340                                         regulator-on-in-suspend;
341                                 };
342                         };
343
344                         ldo1_reg: LDO1 {
345                                 regulator-name = "vdd_1v0";
346                                 regulator-min-microvolt = <1000000>;
347                                 regulator-max-microvolt = <1000000>;
348                                 regulator-always-on;
349                                 regulator-state-mem {
350                                         regulator-on-in-suspend;
351                                         regulator-mode = <MAX77802_OPMODE_LP>;
352                                 };
353                         };
354
355                         ldo2_reg: LDO2 {
356                                 regulator-name = "vdd_1v2_2";
357                                 regulator-min-microvolt = <1200000>;
358                                 regulator-max-microvolt = <1200000>;
359                         };
360
361                         ldo3_reg: LDO3 {
362                                 regulator-name = "vdd_1v8_3";
363                                 regulator-min-microvolt = <1800000>;
364                                 regulator-max-microvolt = <1800000>;
365                                 regulator-always-on;
366                                 regulator-state-mem {
367                                         regulator-on-in-suspend;
368                                         regulator-mode = <MAX77802_OPMODE_LP>;
369                                 };
370                         };
371
372                         vqmmc_sdcard: ldo4_reg: LDO4 {
373                                 regulator-name = "vdd_sd";
374                                 regulator-min-microvolt = <1800000>;
375                                 regulator-max-microvolt = <2800000>;
376                                 regulator-always-on;
377                                 regulator-state-mem {
378                                         regulator-off-in-suspend;
379                                 };
380                         };
381
382                         ldo5_reg: LDO5 {
383                                 regulator-name = "vdd_1v8_5";
384                                 regulator-min-microvolt = <1800000>;
385                                 regulator-max-microvolt = <1800000>;
386                                 regulator-always-on;
387                                 regulator-state-mem {
388                                         regulator-off-in-suspend;
389                                 };
390                         };
391
392                         ldo6_reg: LDO6 {
393                                 regulator-name = "vdd_1v8_6";
394                                 regulator-min-microvolt = <1800000>;
395                                 regulator-max-microvolt = <1800000>;
396                                 regulator-always-on;
397                                 regulator-state-mem {
398                                         regulator-off-in-suspend;
399                                 };
400                         };
401
402                         ldo7_reg: LDO7 {
403                                 regulator-name = "vdd_1v8_7";
404                                 regulator-min-microvolt = <1800000>;
405                                 regulator-max-microvolt = <1800000>;
406                         };
407
408                         ldo8_reg: LDO8 {
409                                 regulator-name = "vdd_ldo8";
410                                 regulator-min-microvolt = <1000000>;
411                                 regulator-max-microvolt = <1000000>;
412                                 regulator-always-on;
413                                 regulator-state-mem {
414                                         regulator-off-in-suspend;
415                                 };
416                         };
417
418                         ldo9_reg: LDO9 {
419                                 regulator-name = "vdd_ldo9";
420                                 regulator-min-microvolt = <1800000>;
421                                 regulator-max-microvolt = <1800000>;
422                                 regulator-always-on;
423                                 regulator-state-mem {
424                                         regulator-on-in-suspend;
425                                         regulator-mode = <MAX77802_OPMODE_LP>;
426                                 };
427                         };
428
429                         ldo10_reg: LDO10 {
430                                 regulator-name = "vdd_ldo10";
431                                 regulator-min-microvolt = <1800000>;
432                                 regulator-max-microvolt = <1800000>;
433                                 regulator-always-on;
434                                 regulator-state-mem {
435                                         regulator-off-in-suspend;
436                                 };
437                         };
438
439                         ldo11_reg: LDO11 {
440                                 regulator-name = "vdd_ldo11";
441                                 regulator-min-microvolt = <1800000>;
442                                 regulator-max-microvolt = <1800000>;
443                                 regulator-always-on;
444                                 regulator-state-mem {
445                                         regulator-on-in-suspend;
446                                         regulator-mode = <MAX77802_OPMODE_LP>;
447                                 };
448                         };
449
450                         ldo12_reg: LDO12 {
451                                 regulator-name = "vdd_ldo12";
452                                 regulator-min-microvolt = <3000000>;
453                                 regulator-max-microvolt = <3000000>;
454                                 regulator-always-on;
455                                 regulator-state-mem {
456                                         regulator-off-in-suspend;
457                                 };
458                         };
459
460                         ldo13_reg: LDO13 {
461                                 regulator-name = "vdd_ldo13";
462                                 regulator-min-microvolt = <1800000>;
463                                 regulator-max-microvolt = <1800000>;
464                                 regulator-always-on;
465                                 regulator-state-mem {
466                                         regulator-on-in-suspend;
467                                         regulator-mode = <MAX77802_OPMODE_LP>;
468                                 };
469                         };
470
471                         ldo14_reg: LDO14 {
472                                 regulator-name = "vdd_ldo14";
473                                 regulator-min-microvolt = <1800000>;
474                                 regulator-max-microvolt = <1800000>;
475                                 regulator-always-on;
476                                 regulator-state-mem {
477                                         regulator-off-in-suspend;
478                                 };
479                         };
480
481                         ldo15_reg: LDO15 {
482                                 regulator-name = "vdd_ldo15";
483                                 regulator-min-microvolt = <1000000>;
484                                 regulator-max-microvolt = <1000000>;
485                                 regulator-always-on;
486                                 regulator-state-mem {
487                                         regulator-off-in-suspend;
488                                 };
489                         };
490
491                         ldo17_reg: LDO17 {
492                                 regulator-name = "vdd_g3ds";
493                                 regulator-min-microvolt = <900000>;
494                                 regulator-max-microvolt = <1400000>;
495                                 regulator-always-on;
496                                 regulator-state-mem {
497                                         regulator-off-in-suspend;
498                                 };
499                         };
500
501                         ldo18_reg: LDO18 {
502                                 regulator-name = "ldo_18";
503                                 regulator-min-microvolt = <1800000>;
504                                 regulator-max-microvolt = <1800000>;
505                         };
506
507                         ldo19_reg: LDO19 {
508                                 regulator-name = "ldo_19";
509                                 regulator-min-microvolt = <1800000>;
510                                 regulator-max-microvolt = <1800000>;
511                         };
512
513                         ldo20_reg: LDO20 {
514                                 regulator-name = "ldo_20";
515                                 regulator-min-microvolt = <1800000>;
516                                 regulator-max-microvolt = <1800000>;
517                                 regulator-always-on;
518                         };
519
520                         ldo21_reg: LDO21 {
521                                 regulator-name = "ldo_21";
522                                 regulator-min-microvolt = <2800000>;
523                                 regulator-max-microvolt = <2800000>;
524                         };
525
526                         ldo23_reg: LDO23 {
527                                 regulator-name = "ldo_23";
528                                 regulator-min-microvolt = <3300000>;
529                                 regulator-max-microvolt = <3300000>;
530                         };
531                         ldo24_reg: LDO24 {
532                                 regulator-name = "ldo_24";
533                                 regulator-min-microvolt = <2800000>;
534                                 regulator-max-microvolt = <2800000>;
535                         };
536
537                         ldo25_reg: LDO25 {
538                                 regulator-name = "ldo_25";
539                                 regulator-min-microvolt = <3300000>;
540                                 regulator-max-microvolt = <3300000>;
541                         };
542
543                         ldo26_reg: LDO26 {
544                                 regulator-name = "ldo_26";
545                                 regulator-min-microvolt = <1200000>;
546                                 regulator-max-microvolt = <1200000>;
547                         };
548
549                         ldo27_reg: LDO27 {
550                                 regulator-name = "ldo_27";
551                                 regulator-min-microvolt = <1200000>;
552                                 regulator-max-microvolt = <1200000>;
553                         };
554
555                         ldo28_reg: LDO28 {
556                                 regulator-name = "ldo_28";
557                                 regulator-min-microvolt = <1800000>;
558                                 regulator-max-microvolt = <1800000>;
559                         };
560
561                         ldo29_reg: LDO29 {
562                                 regulator-name = "ldo_29";
563                                 regulator-min-microvolt = <1800000>;
564                                 regulator-max-microvolt = <1800000>;
565                         };
566
567                         ldo30_reg: LDO30 {
568                                 regulator-name = "vdd_mifs";
569                                 regulator-min-microvolt = <1000000>;
570                                 regulator-max-microvolt = <1000000>;
571                                 regulator-always-on;
572                                 regulator-state-mem {
573                                         regulator-off-in-suspend;
574                                 };
575                         };
576
577                         ldo32_reg: LDO32 {
578                                 regulator-name = "ldo_32";
579                                 regulator-min-microvolt = <3000000>;
580                                 regulator-max-microvolt = <3000000>;
581                         };
582
583                         ldo33_reg: LDO33 {
584                                 regulator-name = "ldo_33";
585                                 regulator-min-microvolt = <2800000>;
586                                 regulator-max-microvolt = <2800000>;
587                         };
588
589                         ldo34_reg: LDO34 {
590                                 regulator-name = "ldo_34";
591                                 regulator-min-microvolt = <3000000>;
592                                 regulator-max-microvolt = <3000000>;
593                         };
594
595                         ldo35_reg: LDO35 {
596                                 regulator-name = "ldo_35";
597                                 regulator-min-microvolt = <1200000>;
598                                 regulator-max-microvolt = <1200000>;
599                         };
600                 };
601         };
602 };
603
604 &hsi2c_7 {
605         status = "okay";
606         clock-frequency = <400000>;
607
608         max98090: codec@10 {
609                 compatible = "maxim,max98090";
610                 reg = <0x10>;
611                 interrupts = <2 0>;
612                 interrupt-parent = <&gpx0>;
613                 pinctrl-names = "default";
614                 pinctrl-0 = <&max98090_irq>;
615                 clocks = <&pmu_system_controller 0>;
616                 clock-names = "mclk";
617         };
618
619         light-sensor@44 {
620                 compatible = "isil,isl29018";
621                 reg = <0x44>;
622                 vcc-supply = <&tps65090_fet5>;
623         };
624
625         ps8625: lvds-bridge@48 {
626                 compatible = "parade,ps8625";
627                 reg = <0x48>;
628                 sleep-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
629                 reset-gpios = <&gpy7 7 GPIO_ACTIVE_HIGH>;
630                 lane-count = <2>;
631                 use-external-pwm;
632
633                 ports {
634                         #address-cells = <1>;
635                         #size-cells = <0>;
636
637                         port@0 {
638                                 reg = <0>;
639
640                                 bridge_out: endpoint {
641                                         remote-endpoint = <&panel_in>;
642                                 };
643                         };
644
645                         port@1 {
646                                 reg = <1>;
647
648                                 bridge_in: endpoint {
649                                         remote-endpoint = <&dp_out>;
650                                 };
651                         };
652                 };
653
654         };
655 };
656
657 &hsi2c_8 {
658         status = "okay";
659         clock-frequency = <333000>;
660
661         /* Atmel mXT336S */
662         trackpad@4b {
663                 compatible = "atmel,maxtouch";
664                 reg = <0x4b>;
665                 interrupt-parent = <&gpx1>;
666                 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
667                 wakeup-source;
668                 pinctrl-names = "default";
669                 pinctrl-0 = <&trackpad_irq>;
670                 linux,gpio-keymap = <KEY_RESERVED
671                                      KEY_RESERVED
672                                      KEY_RESERVED       /* GPIO0 */
673                                      KEY_RESERVED       /* GPIO1 */
674                                      KEY_RESERVED       /* GPIO2 */
675                                      BTN_LEFT>;         /* GPIO3 */
676         };
677 };
678
679 &hsi2c_9 {
680         status = "okay";
681         clock-frequency = <400000>;
682
683         tpm@20 {
684                 compatible = "infineon,slb9645tt";
685                 reg = <0x20>;
686
687                 /* Unused irq; but still need to configure the pins */
688                 pinctrl-names = "default";
689                 pinctrl-0 = <&tpm_irq>;
690         };
691 };
692
693 &i2c_2 {
694         status = "okay";
695         samsung,i2c-sda-delay = <100>;
696         samsung,i2c-max-bus-freq = <66000>;
697         samsung,i2c-slave-addr = <0x50>;
698 };
699
700 &i2s0 {
701         status = "okay";
702 };
703
704 &mfc {
705         samsung,mfc-r = <0x43000000 0x800000>;
706         samsung,mfc-l = <0x51000000 0x800000>;
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"