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