Merge tag 'samsung-drivers-exynos-mfc-4.8-2' of git://git.kernel.org/pub/scm/linux...
[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                 port0 {
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-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-boot-on;
305                                 regulator-state-mem {
306                                         regulator-on-in-suspend;
307                                 };
308                         };
309
310                         buck8_reg: BUCK8 {
311                                 regulator-name = "vdd_emmc";
312                                 regulator-min-microvolt = <2850000>;
313                                 regulator-max-microvolt = <2850000>;
314                                 regulator-always-on;
315                                 regulator-boot-on;
316                                 regulator-state-mem {
317                                         regulator-off-in-suspend;
318                                 };
319                         };
320
321                         buck9_reg: BUCK9 {
322                                 regulator-name = "vdd_2v";
323                                 regulator-min-microvolt = <2000000>;
324                                 regulator-max-microvolt = <2000000>;
325                                 regulator-boot-on;
326                                 regulator-state-mem {
327                                         regulator-on-in-suspend;
328                                 };
329                         };
330
331                         buck10_reg: BUCK10 {
332                                 regulator-name = "vdd_1v8";
333                                 regulator-min-microvolt = <1800000>;
334                                 regulator-max-microvolt = <1800000>;
335                                 regulator-boot-on;
336                                 regulator-state-mem {
337                                         regulator-on-in-suspend;
338                                 };
339                         };
340
341                         ldo1_reg: LDO1 {
342                                 regulator-name = "vdd_1v0";
343                                 regulator-min-microvolt = <1000000>;
344                                 regulator-max-microvolt = <1000000>;
345                                 regulator-always-on;
346                                 regulator-state-mem {
347                                         regulator-on-in-suspend;
348                                         regulator-mode = <MAX77802_OPMODE_LP>;
349                                 };
350                         };
351
352                         ldo2_reg: LDO2 {
353                                 regulator-name = "vdd_1v2_2";
354                                 regulator-min-microvolt = <1200000>;
355                                 regulator-max-microvolt = <1200000>;
356                         };
357
358                         ldo3_reg: LDO3 {
359                                 regulator-name = "vdd_1v8_3";
360                                 regulator-min-microvolt = <1800000>;
361                                 regulator-max-microvolt = <1800000>;
362                                 regulator-always-on;
363                                 regulator-state-mem {
364                                         regulator-on-in-suspend;
365                                         regulator-mode = <MAX77802_OPMODE_LP>;
366                                 };
367                         };
368
369                         vqmmc_sdcard: ldo4_reg: LDO4 {
370                                 regulator-name = "vdd_sd";
371                                 regulator-min-microvolt = <1800000>;
372                                 regulator-max-microvolt = <2800000>;
373                                 regulator-always-on;
374                                 regulator-state-mem {
375                                         regulator-off-in-suspend;
376                                 };
377                         };
378
379                         ldo5_reg: LDO5 {
380                                 regulator-name = "vdd_1v8_5";
381                                 regulator-min-microvolt = <1800000>;
382                                 regulator-max-microvolt = <1800000>;
383                                 regulator-always-on;
384                                 regulator-state-mem {
385                                         regulator-off-in-suspend;
386                                 };
387                         };
388
389                         ldo6_reg: LDO6 {
390                                 regulator-name = "vdd_1v8_6";
391                                 regulator-min-microvolt = <1800000>;
392                                 regulator-max-microvolt = <1800000>;
393                                 regulator-always-on;
394                                 regulator-state-mem {
395                                         regulator-off-in-suspend;
396                                 };
397                         };
398
399                         ldo7_reg: LDO7 {
400                                 regulator-name = "vdd_1v8_7";
401                                 regulator-min-microvolt = <1800000>;
402                                 regulator-max-microvolt = <1800000>;
403                         };
404
405                         ldo8_reg: LDO8 {
406                                 regulator-name = "vdd_ldo8";
407                                 regulator-min-microvolt = <1000000>;
408                                 regulator-max-microvolt = <1000000>;
409                                 regulator-always-on;
410                                 regulator-state-mem {
411                                         regulator-off-in-suspend;
412                                 };
413                         };
414
415                         ldo9_reg: LDO9 {
416                                 regulator-name = "vdd_ldo9";
417                                 regulator-min-microvolt = <1800000>;
418                                 regulator-max-microvolt = <1800000>;
419                                 regulator-state-mem {
420                                         regulator-on-in-suspend;
421                                         regulator-mode = <MAX77802_OPMODE_LP>;
422                                 };
423                         };
424
425                         ldo10_reg: LDO10 {
426                                 regulator-name = "vdd_ldo10";
427                                 regulator-min-microvolt = <1800000>;
428                                 regulator-max-microvolt = <1800000>;
429                                 regulator-state-mem {
430                                         regulator-off-in-suspend;
431                                 };
432                         };
433
434                         ldo11_reg: LDO11 {
435                                 regulator-name = "vdd_ldo11";
436                                 regulator-min-microvolt = <1800000>;
437                                 regulator-max-microvolt = <1800000>;
438                                 regulator-always-on;
439                                 regulator-state-mem {
440                                         regulator-on-in-suspend;
441                                         regulator-mode = <MAX77802_OPMODE_LP>;
442                                 };
443                         };
444
445                         ldo12_reg: LDO12 {
446                                 regulator-name = "vdd_ldo12";
447                                 regulator-min-microvolt = <3000000>;
448                                 regulator-max-microvolt = <3000000>;
449                                 regulator-always-on;
450                                 regulator-state-mem {
451                                         regulator-off-in-suspend;
452                                 };
453                         };
454
455                         ldo13_reg: LDO13 {
456                                 regulator-name = "vdd_ldo13";
457                                 regulator-min-microvolt = <1800000>;
458                                 regulator-max-microvolt = <1800000>;
459                                 regulator-always-on;
460                                 regulator-state-mem {
461                                         regulator-on-in-suspend;
462                                         regulator-mode = <MAX77802_OPMODE_LP>;
463                                 };
464                         };
465
466                         ldo14_reg: LDO14 {
467                                 regulator-name = "vdd_ldo14";
468                                 regulator-min-microvolt = <1800000>;
469                                 regulator-max-microvolt = <1800000>;
470                                 regulator-always-on;
471                                 regulator-state-mem {
472                                         regulator-off-in-suspend;
473                                 };
474                         };
475
476                         ldo15_reg: LDO15 {
477                                 regulator-name = "vdd_ldo15";
478                                 regulator-min-microvolt = <1000000>;
479                                 regulator-max-microvolt = <1000000>;
480                                 regulator-always-on;
481                                 regulator-state-mem {
482                                         regulator-off-in-suspend;
483                                 };
484                         };
485
486                         ldo17_reg: LDO17 {
487                                 regulator-name = "vdd_g3ds";
488                                 regulator-min-microvolt = <900000>;
489                                 regulator-max-microvolt = <1400000>;
490                                 regulator-always-on;
491                                 regulator-state-mem {
492                                         regulator-off-in-suspend;
493                                 };
494                         };
495
496                         ldo18_reg: LDO18 {
497                                 regulator-name = "ldo_18";
498                                 regulator-min-microvolt = <1800000>;
499                                 regulator-max-microvolt = <1800000>;
500                         };
501
502                         ldo19_reg: LDO19 {
503                                 regulator-name = "ldo_19";
504                                 regulator-min-microvolt = <1800000>;
505                                 regulator-max-microvolt = <1800000>;
506                         };
507
508                         ldo20_reg: LDO20 {
509                                 regulator-name = "ldo_20";
510                                 regulator-min-microvolt = <1800000>;
511                                 regulator-max-microvolt = <1800000>;
512                                 regulator-always-on;
513                         };
514
515                         ldo21_reg: LDO21 {
516                                 regulator-name = "ldo_21";
517                                 regulator-min-microvolt = <2800000>;
518                                 regulator-max-microvolt = <2800000>;
519                         };
520
521                         ldo23_reg: LDO23 {
522                                 regulator-name = "ldo_23";
523                                 regulator-min-microvolt = <3300000>;
524                                 regulator-max-microvolt = <3300000>;
525                         };
526                         ldo24_reg: LDO24 {
527                                 regulator-name = "ldo_24";
528                                 regulator-min-microvolt = <2800000>;
529                                 regulator-max-microvolt = <2800000>;
530                         };
531
532                         ldo25_reg: LDO25 {
533                                 regulator-name = "ldo_25";
534                                 regulator-min-microvolt = <3300000>;
535                                 regulator-max-microvolt = <3300000>;
536                         };
537
538                         ldo26_reg: LDO26 {
539                                 regulator-name = "ldo_26";
540                                 regulator-min-microvolt = <1200000>;
541                                 regulator-max-microvolt = <1200000>;
542                         };
543
544                         ldo27_reg: LDO27 {
545                                 regulator-name = "ldo_27";
546                                 regulator-min-microvolt = <1200000>;
547                                 regulator-max-microvolt = <1200000>;
548                         };
549
550                         ldo28_reg: LDO28 {
551                                 regulator-name = "ldo_28";
552                                 regulator-min-microvolt = <1800000>;
553                                 regulator-max-microvolt = <1800000>;
554                         };
555
556                         ldo29_reg: LDO29 {
557                                 regulator-name = "ldo_29";
558                                 regulator-min-microvolt = <1800000>;
559                                 regulator-max-microvolt = <1800000>;
560                         };
561
562                         ldo30_reg: LDO30 {
563                                 regulator-name = "vdd_mifs";
564                                 regulator-min-microvolt = <1000000>;
565                                 regulator-max-microvolt = <1000000>;
566                                 regulator-always-on;
567                                 regulator-state-mem {
568                                         regulator-off-in-suspend;
569                                 };
570                         };
571
572                         ldo32_reg: LDO32 {
573                                 regulator-name = "ldo_32";
574                                 regulator-min-microvolt = <3000000>;
575                                 regulator-max-microvolt = <3000000>;
576                         };
577
578                         ldo33_reg: LDO33 {
579                                 regulator-name = "ldo_33";
580                                 regulator-min-microvolt = <2800000>;
581                                 regulator-max-microvolt = <2800000>;
582                         };
583
584                         ldo34_reg: LDO34 {
585                                 regulator-name = "ldo_34";
586                                 regulator-min-microvolt = <3000000>;
587                                 regulator-max-microvolt = <3000000>;
588                         };
589
590                         ldo35_reg: LDO35 {
591                                 regulator-name = "ldo_35";
592                                 regulator-min-microvolt = <1200000>;
593                                 regulator-max-microvolt = <1200000>;
594                         };
595                 };
596         };
597 };
598
599 &hsi2c_7 {
600         status = "okay";
601         clock-frequency = <400000>;
602
603         max98090: codec@10 {
604                 compatible = "maxim,max98090";
605                 reg = <0x10>;
606                 interrupts = <2 0>;
607                 interrupt-parent = <&gpx0>;
608                 pinctrl-names = "default";
609                 pinctrl-0 = <&max98090_irq>;
610                 clocks = <&pmu_system_controller 0>;
611                 clock-names = "mclk";
612         };
613
614         light-sensor@44 {
615                 compatible = "isil,isl29018";
616                 reg = <0x44>;
617                 vcc-supply = <&tps65090_fet5>;
618         };
619
620         ps8625: lvds-bridge@48 {
621                 compatible = "parade,ps8625";
622                 reg = <0x48>;
623                 sleep-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
624                 reset-gpios = <&gpy7 7 GPIO_ACTIVE_HIGH>;
625                 lane-count = <2>;
626                 use-external-pwm;
627
628                 ports {
629                         port0 {
630                                 bridge_out: endpoint {
631                                         remote-endpoint = <&panel_in>;
632                                 };
633                         };
634
635                         port1 {
636                                 bridge_in: endpoint {
637                                         remote-endpoint = <&dp_out>;
638                                 };
639                         };
640                 };
641
642         };
643 };
644
645 &hsi2c_8 {
646         status = "okay";
647         clock-frequency = <333000>;
648
649         /* Atmel mXT336S */
650         trackpad@4b {
651                 compatible = "atmel,maxtouch";
652                 reg = <0x4b>;
653                 interrupt-parent = <&gpx1>;
654                 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
655                 wakeup-source;
656                 pinctrl-names = "default";
657                 pinctrl-0 = <&trackpad_irq>;
658                 linux,gpio-keymap = <KEY_RESERVED
659                                      KEY_RESERVED
660                                      KEY_RESERVED       /* GPIO0 */
661                                      KEY_RESERVED       /* GPIO1 */
662                                      KEY_RESERVED       /* GPIO2 */
663                                      BTN_LEFT>;         /* GPIO3 */
664         };
665 };
666
667 &hsi2c_9 {
668         status = "okay";
669         clock-frequency = <400000>;
670
671         tpm@20 {
672                 compatible = "infineon,slb9645tt";
673                 reg = <0x20>;
674
675                 /* Unused irq; but still need to configure the pins */
676                 pinctrl-names = "default";
677                 pinctrl-0 = <&tpm_irq>;
678         };
679 };
680
681 &i2c_2 {
682         status = "okay";
683         samsung,i2c-sda-delay = <100>;
684         samsung,i2c-max-bus-freq = <66000>;
685         samsung,i2c-slave-addr = <0x50>;
686 };
687
688 &i2s0 {
689         status = "okay";
690 };
691
692 &mmc_0 {
693         status = "okay";
694         num-slots = <1>;
695         mmc-hs200-1_8v;
696         cap-mmc-highspeed;
697         non-removable;
698         clock-frequency = <400000000>;
699         samsung,dw-mshc-ciu-div = <3>;
700         samsung,dw-mshc-sdr-timing = <0 4>;
701         samsung,dw-mshc-ddr-timing = <0 2>;
702         samsung,dw-mshc-hs400-timing = <0 2>;
703         samsung,read-strobe-delay = <90>;
704         pinctrl-names = "default";
705         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_rclk>;
706         bus-width = <8>;
707 };
708
709 &mmc_1 {
710         status = "okay";
711         num-slots = <1>;
712         non-removable;
713         cap-sdio-irq;
714         keep-power-in-suspend;
715         clock-frequency = <400000000>;
716         samsung,dw-mshc-ciu-div = <1>;
717         samsung,dw-mshc-sdr-timing = <0 1>;
718         samsung,dw-mshc-ddr-timing = <0 2>;
719         pinctrl-names = "default";
720         pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>,
721                     <&sd1_bus4>, <&sd1_bus8>, <&wifi_en>;
722         bus-width = <4>;
723         cap-sd-highspeed;
724         mmc-pwrseq = <&mmc1_pwrseq>;
725         vqmmc-supply = <&buck10_reg>;
726 };
727
728 &mmc_2 {
729         status = "okay";
730         num-slots = <1>;
731         cap-sd-highspeed;
732         card-detect-delay = <200>;
733         clock-frequency = <400000000>;
734         samsung,dw-mshc-ciu-div = <3>;
735         samsung,dw-mshc-sdr-timing = <2 3>;
736         samsung,dw-mshc-ddr-timing = <1 2>;
737         pinctrl-names = "default";
738         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
739         bus-width = <4>;
740 };
741
742
743 &pinctrl_0 {
744         pinctrl-names = "default";
745         pinctrl-0 = <&mask_tpm_reset>;
746
747         wifi_en: wifi-en {
748                 samsung,pins = "gpx0-0";
749                 samsung,pin-function = <1>;
750                 samsung,pin-pud = <0>;
751                 samsung,pin-drv = <0>;
752         };
753
754         max98090_irq: max98090-irq {
755                 samsung,pins = "gpx0-2";
756                 samsung,pin-function = <0>;
757                 samsung,pin-pud = <0>;
758                 samsung,pin-drv = <0>;
759         };
760
761         /* We need GPX0_6 to be low at sleep time; just keep it low always */
762         mask_tpm_reset: mask-tpm-reset {
763                 samsung,pins = "gpx0-6";
764                 samsung,pin-function = <1>;
765                 samsung,pin-pud = <0>;
766                 samsung,pin-drv = <0>;
767                 samsung,pin-val = <0>;
768         };
769
770         tpm_irq: tpm-irq {
771                 samsung,pins = "gpx1-0";
772                 samsung,pin-function = <0>;
773                 samsung,pin-pud = <0>;
774                 samsung,pin-drv = <0>;
775         };
776
777         trackpad_irq: trackpad-irq {
778                 samsung,pins = "gpx1-1";
779                 samsung,pin-function = <0xf>;
780                 samsung,pin-pud = <0>;
781                 samsung,pin-drv = <0>;
782         };
783
784         power_key_irq: power-key-irq {
785                 samsung,pins = "gpx1-2";
786                 samsung,pin-function = <0>;
787                 samsung,pin-pud = <0>;
788                 samsung,pin-drv = <0>;
789         };
790
791         ec_irq: ec-irq {
792                 samsung,pins = "gpx1-5";
793                 samsung,pin-function = <0>;
794                 samsung,pin-pud = <0>;
795                 samsung,pin-drv = <0>;
796         };
797
798         tps65090_irq: tps65090-irq {
799                 samsung,pins = "gpx2-5";
800                 samsung,pin-function = <0>;
801                 samsung,pin-pud = <0>;
802                 samsung,pin-drv = <0>;
803         };
804
805         dp_hpd_gpio: dp_hpd_gpio {
806                 samsung,pins = "gpx2-6";
807                 samsung,pin-function = <0>;
808                 samsung,pin-pud = <3>;
809                 samsung,pin-drv = <0>;
810         };
811
812         max77802_irq: max77802-irq {
813                 samsung,pins = "gpx3-1";
814                 samsung,pin-function = <0>;
815                 samsung,pin-pud = <0>;
816                 samsung,pin-drv = <0>;
817         };
818
819         lid_irq: lid-irq {
820                 samsung,pins = "gpx3-4";
821                 samsung,pin-function = <0xf>;
822                 samsung,pin-pud = <0>;
823                 samsung,pin-drv = <0>;
824         };
825
826         hdmi_hpd_irq: hdmi-hpd-irq {
827                 samsung,pins = "gpx3-7";
828                 samsung,pin-function = <0>;
829                 samsung,pin-pud = <1>;
830                 samsung,pin-drv = <0>;
831         };
832
833         pmic_dvs_1: pmic-dvs-1 {
834                 samsung,pins = "gpy7-6";
835                 samsung,pin-function = <1>;
836                 samsung,pin-pud = <0>;
837                 samsung,pin-drv = <0>;
838         };
839 };
840
841 &pinctrl_1 {
842         /* Adjust WiFi drive strengths lower for EMI */
843         sd1_clk: sd1-clk {
844                 samsung,pin-drv = <2>;
845         };
846
847         sd1_cmd: sd1-cmd {
848                 samsung,pin-drv = <2>;
849         };
850
851         sd1_bus1: sd1-bus-width1 {
852                 samsung,pin-drv = <2>;
853         };
854
855         sd1_bus4: sd1-bus-width4 {
856                 samsung,pin-drv = <2>;
857         };
858
859         sd1_bus8: sd1-bus-width8 {
860                 samsung,pin-drv = <2>;
861         };
862 };
863
864 &pinctrl_2 {
865         pmic_dvs_2: pmic-dvs-2 {
866                 samsung,pins = "gpj4-2";
867                 samsung,pin-function = <1>;
868                 samsung,pin-pud = <0>;
869                 samsung,pin-drv = <0>;
870         };
871
872         pmic_dvs_3: pmic-dvs-3 {
873                 samsung,pins = "gpj4-3";
874                 samsung,pin-function = <1>;
875                 samsung,pin-pud = <0>;
876                 samsung,pin-drv = <0>;
877         };
878 };
879
880 &pinctrl_3 {
881         /* Drive SPI lines at x2 for better integrity */
882         spi2-bus {
883                 samsung,pin-drv = <2>;
884         };
885
886         /* Drive SPI chip select at x2 for better integrity */
887         ec_spi_cs: ec-spi-cs {
888                 samsung,pins = "gpb1-2";
889                 samsung,pin-function = <1>;
890                 samsung,pin-pud = <0>;
891                 samsung,pin-drv = <2>;
892         };
893
894         usb300_vbus_en: usb300-vbus-en {
895                 samsung,pins = "gph0-0";
896                 samsung,pin-function = <1>;
897                 samsung,pin-pud = <0>;
898                 samsung,pin-drv = <0>;
899         };
900
901         usb301_vbus_en: usb301-vbus-en {
902                 samsung,pins = "gph0-1";
903                 samsung,pin-function = <1>;
904                 samsung,pin-pud = <0>;
905                 samsung,pin-drv = <0>;
906         };
907
908         pmic_selb: pmic-selb {
909                 samsung,pins = "gph0-2", "gph0-3", "gph0-4", "gph0-5",
910                                "gph0-6";
911                 samsung,pin-function = <1>;
912                 samsung,pin-pud = <0>;
913                 samsung,pin-drv = <0>;
914         };
915 };
916
917 &pmu_system_controller {
918         assigned-clocks = <&pmu_system_controller 0>;
919         assigned-clock-parents = <&clock CLK_FIN_PLL>;
920 };
921
922 &rtc {
923         status = "okay";
924         clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
925         clock-names = "rtc", "rtc_src";
926 };
927
928 &spi_2 {
929         status = "okay";
930         num-cs = <1>;
931         samsung,spi-src-clk = <0>;
932         cs-gpios = <&gpb1 2 GPIO_ACTIVE_HIGH>;
933
934         cros_ec: cros-ec@0 {
935                 compatible = "google,cros-ec-spi";
936                 interrupt-parent = <&gpx1>;
937                 interrupts = <5 0>;
938                 pinctrl-names = "default";
939                 pinctrl-0 = <&ec_spi_cs &ec_irq>;
940                 reg = <0>;
941                 spi-max-frequency = <3125000>;
942                 google,has-vbc-nvram;
943
944                 controller-data {
945                         samsung,spi-feedback-delay = <1>;
946                 };
947
948                 i2c-tunnel {
949                         compatible = "google,cros-ec-i2c-tunnel";
950                         #address-cells = <1>;
951                         #size-cells = <0>;
952                         google,remote-bus = <0>;
953
954                         battery: sbs-battery@b {
955                                 compatible = "sbs,sbs-battery";
956                                 reg = <0xb>;
957                                 sbs,poll-retry-count = <1>;
958                                 sbs,i2c-retry-count = <2>;
959                         };
960
961                         power-regulator@48 {
962                                 compatible = "ti,tps65090";
963                                 reg = <0x48>;
964
965                                 /*
966                                  * Config irq to disable internal pulls
967                                  * even though we run in polling mode.
968                                  */
969                                 pinctrl-names = "default";
970                                 pinctrl-0 = <&tps65090_irq>;
971
972                                 vsys1-supply = <&vbat>;
973                                 vsys2-supply = <&vbat>;
974                                 vsys3-supply = <&vbat>;
975                                 infet1-supply = <&vbat>;
976                                 infet2-supply = <&tps65090_dcdc1>;
977                                 infet3-supply = <&tps65090_dcdc2>;
978                                 infet4-supply = <&tps65090_dcdc2>;
979                                 infet5-supply = <&tps65090_dcdc2>;
980                                 infet6-supply = <&tps65090_dcdc2>;
981                                 infet7-supply = <&tps65090_dcdc1>;
982                                 vsys-l1-supply = <&vbat>;
983                                 vsys-l2-supply = <&vbat>;
984
985                                 regulators {
986                                         tps65090_dcdc1: dcdc1 {
987                                                 ti,enable-ext-control;
988                                         };
989                                         tps65090_dcdc2: dcdc2 {
990                                                 ti,enable-ext-control;
991                                         };
992                                         tps65090_dcdc3: dcdc3 {
993                                                 ti,enable-ext-control;
994                                         };
995                                         tps65090_fet1: fet1 {
996                                                 regulator-name = "vcd_led";
997                                         };
998                                         tps65090_fet2: fet2 {
999                                                 regulator-name = "video_mid";
1000                                                 regulator-always-on;
1001                                         };
1002                                         tps65090_fet3: fet3 {
1003                                                 regulator-name = "wwan_r";
1004                                                 regulator-always-on;
1005                                         };
1006                                         tps65090_fet4: fet4 {
1007                                                 regulator-name = "sdcard";
1008                                                 regulator-always-on;
1009                                         };
1010                                         tps65090_fet5: fet5 {
1011                                                 regulator-name = "camout";
1012                                                 regulator-always-on;
1013                                         };
1014                                         tps65090_fet6: fet6 {
1015                                                 regulator-name = "lcd_vdd";
1016                                         };
1017                                         tps65090_fet7: fet7 {
1018                                                 regulator-name = "video_mid_1a";
1019                                                 regulator-always-on;
1020                                         };
1021                                         tps65090_ldo1: ldo1 {
1022                                         };
1023                                         tps65090_ldo2: ldo2 {
1024                                         };
1025                                 };
1026
1027                                 charger {
1028                                         compatible = "ti,tps65090-charger";
1029                                 };
1030                         };
1031                 };
1032         };
1033 };
1034
1035 &serial_3 {
1036         status = "okay";
1037 };
1038
1039 &tmu_cpu0 {
1040         vtmu-supply = <&ldo10_reg>;
1041 };
1042
1043 &tmu_cpu1 {
1044         vtmu-supply = <&ldo10_reg>;
1045 };
1046
1047 &tmu_cpu2 {
1048         vtmu-supply = <&ldo10_reg>;
1049 };
1050
1051 &tmu_cpu3 {
1052         vtmu-supply = <&ldo10_reg>;
1053 };
1054
1055 &tmu_gpu {
1056         vtmu-supply = <&ldo10_reg>;
1057 };
1058
1059 &usbdrd_dwc3_0 {
1060         dr_mode = "host";
1061 };
1062
1063 &usbdrd_dwc3_1 {
1064         dr_mode = "host";
1065 };
1066
1067 &usbdrd_phy0 {
1068         vbus-supply = <&usb300_vbus_reg>;
1069 };
1070
1071 &usbdrd_phy1 {
1072         vbus-supply = <&usb301_vbus_reg>;
1073 };
1074
1075 /*
1076  * Use longest HW watchdog in SoC (32 seconds) since the hardware
1077  * watchdog provides no debugging information (compared to soft/hard
1078  * lockup detectors) and so should be last resort.
1079  */
1080 &watchdog {
1081         timeout-sec = <32>;
1082 };
1083
1084 #include "cros-ec-keyboard.dtsi"
1085 #include "cros-adc-thermistors.dtsi"