Loading...
1// SPDX-License-Identifier: GPL-2.0
2#include <dt-bindings/input/input.h>
3#include <dt-bindings/thermal/thermal.h>
4#include "tegra124.dtsi"
5
6/ {
7 aliases {
8 rtc0 = "/i2c@7000d000/pmic@40";
9 rtc1 = "/rtc@7000e000";
10 serial0 = &uarta;
11 };
12
13 chosen {
14 stdout-path = "serial0:115200n8";
15 };
16
17 /*
18 * Note that recent version of the device tree compiler (starting with
19 * version 1.4.2) warn about this node containing a reg property, but
20 * missing a unit-address. However, the bootloader on these Chromebook
21 * devices relies on the full name of this node to be exactly /memory.
22 * Adding the unit-address causes the bootloader to create a /memory
23 * node and write the memory bank configuration to that node, which in
24 * turn leads the kernel to believe that the device has 2 GiB of
25 * memory instead of the amount detected by the bootloader.
26 *
27 * The name of this node is effectively ABI and must not be changed.
28 */
29 memory {
30 device_type = "memory";
31 reg = <0x0 0x80000000 0x0 0x80000000>;
32 };
33
34 /delete-node/ memory@80000000;
35
36 host1x@50000000 {
37 hdmi@54280000 {
38 status = "okay";
39
40 vdd-supply = <&vdd_3v3_hdmi>;
41 pll-supply = <&vdd_hdmi_pll>;
42 hdmi-supply = <&vdd_5v0_hdmi>;
43
44 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
45 nvidia,hpd-gpio =
46 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
47 };
48
49 sor@54540000 {
50 status = "okay";
51
52 avdd-io-hdmi-dp-supply = <&vdd_3v3_hdmi>;
53 vdd-hdmi-dp-pll-supply = <&vdd_hdmi_pll>;
54
55 nvidia,dpaux = <&dpaux>;
56 nvidia,panel = <&panel>;
57 };
58
59 dpaux@545c0000 {
60 vdd-supply = <&vdd_3v3_panel>;
61 status = "okay";
62 };
63 };
64
65 gpu@57000000 {
66 status = "okay";
67
68 vdd-supply = <&vdd_gpu>;
69 };
70
71 serial@70006000 {
72 /* Debug connector on the bottom of the board near SD card. */
73 status = "okay";
74 };
75
76 pwm@7000a000 {
77 status = "okay";
78 };
79
80 i2c@7000c000 {
81 status = "okay";
82 clock-frequency = <100000>;
83
84 acodec: audio-codec@10 {
85 compatible = "maxim,max98090";
86 reg = <0x10>;
87 interrupt-parent = <&gpio>;
88 interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_EDGE_FALLING>;
89 };
90
91 tmp451: temperature-sensor@4c {
92 compatible = "ti,tmp451";
93 reg = <0x4c>;
94 interrupt-parent = <&gpio>;
95 interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_EDGE_FALLING>;
96
97 #thermal-sensor-cells = <1>;
98 };
99 };
100
101 i2c@7000c400 {
102 status = "okay";
103 clock-frequency = <100000>;
104
105 trackpad@15 {
106 compatible = "elan,ekth3000";
107 reg = <0x15>;
108 interrupt-parent = <&gpio>;
109 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_FALLING>;
110 wakeup-source;
111 };
112 };
113
114 i2c@7000c500 {
115 status = "okay";
116 clock-frequency = <400000>;
117
118 tpm@20 {
119 compatible = "infineon,slb9645tt";
120 reg = <0x20>;
121 };
122 };
123
124 hdmi_ddc: i2c@7000c700 {
125 status = "okay";
126 clock-frequency = <100000>;
127 };
128
129 i2c@7000d000 {
130 status = "okay";
131 clock-frequency = <400000>;
132
133 pmic: pmic@40 {
134 compatible = "ams,as3722";
135 reg = <0x40>;
136 interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
137
138 ams,system-power-controller;
139
140 #interrupt-cells = <2>;
141 interrupt-controller;
142
143 gpio-controller;
144 #gpio-cells = <2>;
145
146 pinctrl-names = "default";
147 pinctrl-0 = <&as3722_default>;
148
149 as3722_default: pinmux {
150 gpio0 {
151 pins = "gpio0";
152 function = "gpio";
153 bias-pull-down;
154 };
155
156 gpio1 {
157 pins = "gpio1";
158 function = "gpio";
159 bias-pull-up;
160 };
161
162 gpio2_4_7 {
163 pins = "gpio2", "gpio4", "gpio7";
164 function = "gpio";
165 bias-pull-up;
166 };
167
168 gpio3_6 {
169 pins = "gpio3", "gpio6";
170 bias-high-impedance;
171 };
172
173 gpio5 {
174 pins = "gpio5";
175 function = "clk32k-out";
176 bias-pull-down;
177 };
178 };
179
180 regulators {
181 vsup-sd2-supply = <&vdd_5v0_sys>;
182 vsup-sd3-supply = <&vdd_5v0_sys>;
183 vsup-sd4-supply = <&vdd_5v0_sys>;
184 vsup-sd5-supply = <&vdd_5v0_sys>;
185 vin-ldo0-supply = <&vdd_1v35_lp0>;
186 vin-ldo1-6-supply = <&vdd_3v3_run>;
187 vin-ldo2-5-7-supply = <&vddio_1v8>;
188 vin-ldo3-4-supply = <&vdd_3v3_sys>;
189 vin-ldo9-10-supply = <&vdd_5v0_sys>;
190 vin-ldo11-supply = <&vdd_3v3_run>;
191
192 vdd_cpu: sd0 {
193 regulator-name = "+VDD_CPU_AP";
194 regulator-min-microvolt = <700000>;
195 regulator-max-microvolt = <1350000>;
196 regulator-min-microamp = <3500000>;
197 regulator-max-microamp = <3500000>;
198 regulator-always-on;
199 regulator-boot-on;
200 ams,ext-control = <2>;
201 };
202
203 sd1 {
204 regulator-name = "+VDD_CORE";
205 regulator-min-microvolt = <700000>;
206 regulator-max-microvolt = <1350000>;
207 regulator-min-microamp = <2500000>;
208 regulator-max-microamp = <4000000>;
209 regulator-always-on;
210 regulator-boot-on;
211 ams,ext-control = <1>;
212 };
213
214 vdd_1v35_lp0: sd2 {
215 regulator-name = "+1.35V_LP0(sd2)";
216 regulator-min-microvolt = <1350000>;
217 regulator-max-microvolt = <1350000>;
218 regulator-always-on;
219 regulator-boot-on;
220 };
221
222 sd3 {
223 regulator-name = "+1.35V_LP0(sd3)";
224 regulator-min-microvolt = <1350000>;
225 regulator-max-microvolt = <1350000>;
226 regulator-always-on;
227 regulator-boot-on;
228 };
229
230 vdd_1v05_run: sd4 {
231 regulator-name = "+1.05V_RUN";
232 regulator-min-microvolt = <1050000>;
233 regulator-max-microvolt = <1050000>;
234 };
235
236 vddio_1v8: sd5 {
237 regulator-name = "+1.8V_VDDIO";
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <1800000>;
240 regulator-always-on;
241 };
242
243 vdd_gpu: sd6 {
244 regulator-name = "+VDD_GPU_AP";
245 regulator-min-microvolt = <650000>;
246 regulator-max-microvolt = <1200000>;
247 regulator-min-microamp = <3500000>;
248 regulator-max-microamp = <3500000>;
249 regulator-boot-on;
250 regulator-always-on;
251 };
252
253 avdd_1v05_run: ldo0 {
254 regulator-name = "+1.05V_RUN_AVDD";
255 regulator-min-microvolt = <1050000>;
256 regulator-max-microvolt = <1050000>;
257 regulator-boot-on;
258 regulator-always-on;
259 ams,ext-control = <1>;
260 };
261
262 ldo1 {
263 regulator-name = "+1.8V_RUN_CAM";
264 regulator-min-microvolt = <1800000>;
265 regulator-max-microvolt = <1800000>;
266 };
267
268 ldo2 {
269 regulator-name = "+1.2V_GEN_AVDD";
270 regulator-min-microvolt = <1200000>;
271 regulator-max-microvolt = <1200000>;
272 regulator-boot-on;
273 regulator-always-on;
274 };
275
276 ldo3 {
277 regulator-name = "+1.00V_LP0_VDD_RTC";
278 regulator-min-microvolt = <1000000>;
279 regulator-max-microvolt = <1000000>;
280 regulator-boot-on;
281 regulator-always-on;
282 ams,enable-tracking;
283 };
284
285 vdd_run_cam: ldo4 {
286 regulator-name = "+3.3V_RUN_CAM";
287 regulator-min-microvolt = <2800000>;
288 regulator-max-microvolt = <2800000>;
289 };
290
291 ldo5 {
292 regulator-name = "+1.2V_RUN_CAM_FRONT";
293 regulator-min-microvolt = <1200000>;
294 regulator-max-microvolt = <1200000>;
295 };
296
297 vddio_sdmmc3: ldo6 {
298 regulator-name = "+VDDIO_SDMMC3";
299 regulator-min-microvolt = <1800000>;
300 regulator-max-microvolt = <3300000>;
301 };
302
303 ldo7 {
304 regulator-name = "+1.05V_RUN_CAM_REAR";
305 regulator-min-microvolt = <1050000>;
306 regulator-max-microvolt = <1050000>;
307 };
308
309 ldo9 {
310 regulator-name = "+2.8V_RUN_TOUCH";
311 regulator-min-microvolt = <2800000>;
312 regulator-max-microvolt = <2800000>;
313 };
314
315 ldo10 {
316 regulator-name = "+2.8V_RUN_CAM_AF";
317 regulator-min-microvolt = <2800000>;
318 regulator-max-microvolt = <2800000>;
319 };
320
321 ldo11 {
322 regulator-name = "+1.8V_RUN_VPP_FUSE";
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
325 };
326 };
327 };
328 };
329
330 spi@7000d400 {
331 status = "okay";
332
333 cros_ec: cros-ec@0 {
334 compatible = "google,cros-ec-spi";
335 spi-max-frequency = <3000000>;
336 interrupt-parent = <&gpio>;
337 interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>;
338 reg = <0>;
339
340 google,cros-ec-spi-msg-delay = <2000>;
341
342 i2c-tunnel {
343 compatible = "google,cros-ec-i2c-tunnel";
344 #address-cells = <1>;
345 #size-cells = <0>;
346
347 google,remote-bus = <0>;
348
349 charger: bq24735@9 {
350 compatible = "ti,bq24735";
351 reg = <0x9>;
352 interrupt-parent = <&gpio>;
353 interrupts = <TEGRA_GPIO(J, 0)
354 IRQ_TYPE_EDGE_BOTH>;
355 ti,ac-detect-gpios = <&gpio
356 TEGRA_GPIO(J, 0)
357 GPIO_ACTIVE_HIGH>;
358 ti,external-control;
359 };
360
361 battery: sbs-battery@b {
362 compatible = "sbs,sbs-battery";
363 reg = <0xb>;
364 sbs,i2c-retry-count = <2>;
365 sbs,poll-retry-count = <10>;
366 power-supplies = <&charger>;
367 };
368 };
369 };
370 };
371
372 spi@7000da00 {
373 status = "okay";
374 spi-max-frequency = <25000000>;
375
376 flash@0 {
377 compatible = "winbond,w25q32dw", "jedec,spi-nor";
378 spi-max-frequency = <25000000>;
379 reg = <0>;
380 };
381 };
382
383 pmc@7000e400 {
384 nvidia,invert-interrupt;
385 nvidia,suspend-mode = <0>;
386 nvidia,cpu-pwr-good-time = <500>;
387 nvidia,cpu-pwr-off-time = <300>;
388 nvidia,core-pwr-good-time = <641 3845>;
389 nvidia,core-pwr-off-time = <61036>;
390 nvidia,core-power-req-active-high;
391 nvidia,sys-clock-req-active-high;
392 };
393
394 cec@70015000 {
395 status = "okay";
396 };
397
398 hda@70030000 {
399 status = "okay";
400 };
401
402 usb@70090000 {
403 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, /* 1st USB A */
404 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, /* Internal USB */
405 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, /* 2nd USB A */
406 <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, /* 1st USB A */
407 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>; /* 2nd USB A */
408 phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0", "usb3-1";
409
410 avddio-pex-supply = <&vdd_1v05_run>;
411 dvddio-pex-supply = <&vdd_1v05_run>;
412 avdd-usb-supply = <&vdd_3v3_lp0>;
413 avdd-pll-utmip-supply = <&vddio_1v8>;
414 avdd-pll-erefe-supply = <&avdd_1v05_run>;
415 avdd-usb-ss-pll-supply = <&vdd_1v05_run>;
416 hvdd-usb-ss-supply = <&vdd_3v3_lp0>;
417 hvdd-usb-ss-pll-e-supply = <&vdd_3v3_lp0>;
418
419 status = "okay";
420 };
421
422 padctl@7009f000 {
423 status = "okay";
424
425 avdd-pll-utmip-supply = <&vddio_1v8>;
426 avdd-pll-erefe-supply = <&avdd_1v05_run>;
427 avdd-pex-pll-supply = <&vdd_1v05_run>;
428 hvdd-pex-pll-e-supply = <&vdd_3v3_lp0>;
429
430 pads {
431 usb2 {
432 status = "okay";
433
434 lanes {
435 usb2-0 {
436 nvidia,function = "xusb";
437 status = "okay";
438 };
439
440 usb2-1 {
441 nvidia,function = "xusb";
442 status = "okay";
443 };
444
445 usb2-2 {
446 nvidia,function = "xusb";
447 status = "okay";
448 };
449 };
450 };
451
452 pcie {
453 status = "okay";
454
455 lanes {
456 pcie-0 {
457 nvidia,function = "usb3-ss";
458 status = "okay";
459 };
460
461 pcie-1 {
462 nvidia,function = "usb3-ss";
463 status = "okay";
464 };
465 };
466 };
467 };
468
469 ports {
470 usb2-0 {
471 vbus-supply = <&vdd_usb1_vbus>;
472 status = "okay";
473 mode = "otg";
474 usb-role-switch;
475 };
476
477 usb2-1 {
478 vbus-supply = <&vdd_run_cam>;
479 status = "okay";
480 mode = "host";
481 };
482
483 usb2-2 {
484 vbus-supply = <&vdd_usb3_vbus>;
485 status = "okay";
486 mode = "host";
487 };
488
489 usb3-0 {
490 nvidia,usb2-companion = <0>;
491 status = "okay";
492 };
493
494 usb3-1 {
495 nvidia,usb2-companion = <1>;
496 status = "okay";
497 };
498 };
499 };
500
501 sdhci0_pwrseq: sdhci0_pwrseq {
502 compatible = "mmc-pwrseq-simple";
503
504 reset-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;
505 };
506
507 mmc@700b0000 { /* WiFi/BT on this bus */
508 status = "okay";
509 bus-width = <4>;
510 no-1-8-v;
511 non-removable;
512 mmc-pwrseq = <&sdhci0_pwrseq>;
513 vmmc-supply = <&vdd_3v3_lp0>;
514 vqmmc-supply = <&vddio_1v8>;
515 keep-power-in-suspend;
516 };
517
518 mmc@700b0400 { /* SD Card on this bus */
519 status = "okay";
520 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
521 power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
522 bus-width = <4>;
523 no-1-8-v;
524 vqmmc-supply = <&vddio_sdmmc3>;
525 };
526
527 mmc@700b0600 { /* eMMC on this bus */
528 status = "okay";
529 bus-width = <8>;
530 no-1-8-v;
531 non-removable;
532 };
533
534 /* CPU DFLL clock */
535 clock@70110000 {
536 status = "okay";
537 vdd-cpu-supply = <&vdd_cpu>;
538 nvidia,i2c-fs-rate = <400000>;
539 };
540
541 ahub@70300000 {
542 i2s@70301100 {
543 status = "okay";
544 };
545 };
546
547 backlight: backlight {
548 compatible = "pwm-backlight";
549
550 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
551 power-supply = <&vdd_led>;
552 pwms = <&pwm 1 1000000>;
553
554 default-brightness-level = <224>;
555 brightness-levels =
556 < 0 1 2 3 4 5 6 7
557 8 9 10 11 12 13 14 15
558 16 17 18 19 20 21 22 23
559 24 25 26 27 28 29 30 31
560 32 33 34 35 36 37 38 39
561 40 41 42 43 44 45 46 47
562 48 49 50 51 52 53 54 55
563 56 57 58 59 60 61 62 63
564 64 65 66 67 68 69 70 71
565 72 73 74 75 76 77 78 79
566 80 81 82 83 84 85 86 87
567 88 89 90 91 92 93 94 95
568 96 97 98 99 100 101 102 103
569 104 105 106 107 108 109 110 111
570 112 113 114 115 116 117 118 119
571 120 121 122 123 124 125 126 127
572 128 129 130 131 132 133 134 135
573 136 137 138 139 140 141 142 143
574 144 145 146 147 148 149 150 151
575 152 153 154 155 156 157 158 159
576 160 161 162 163 164 165 166 167
577 168 169 170 171 172 173 174 175
578 176 177 178 179 180 181 182 183
579 184 185 186 187 188 189 190 191
580 192 193 194 195 196 197 198 199
581 200 201 202 203 204 205 206 207
582 208 209 210 211 212 213 214 215
583 216 217 218 219 220 221 222 223
584 224 225 226 227 228 229 230 231
585 232 233 234 235 236 237 238 239
586 240 241 242 243 244 245 246 247
587 248 249 250 251 252 253 254 255
588 256>;
589 };
590
591 clk32k_in: clock-32k {
592 compatible = "fixed-clock";
593 clock-frequency = <32768>;
594 #clock-cells = <0>;
595 };
596
597 cpus {
598 cpu@0 {
599 vdd-cpu-supply = <&vdd_cpu>;
600 };
601 };
602
603 gpio-keys {
604 compatible = "gpio-keys";
605
606 switch-lid {
607 label = "Lid";
608 gpios = <&gpio TEGRA_GPIO(R, 4) GPIO_ACTIVE_LOW>;
609 linux,input-type = <5>;
610 linux,code = <KEY_RESERVED>;
611 debounce-interval = <1>;
612 wakeup-source;
613 };
614
615 key-power {
616 label = "Power";
617 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
618 linux,code = <KEY_POWER>;
619 debounce-interval = <30>;
620 wakeup-source;
621 };
622 };
623
624 vdd_mux: regulator-mux {
625 compatible = "regulator-fixed";
626 regulator-name = "+VDD_MUX";
627 regulator-min-microvolt = <12000000>;
628 regulator-max-microvolt = <12000000>;
629 regulator-always-on;
630 regulator-boot-on;
631 };
632
633 vdd_5v0_sys: regulator-5v0sys {
634 compatible = "regulator-fixed";
635 regulator-name = "+5V_SYS";
636 regulator-min-microvolt = <5000000>;
637 regulator-max-microvolt = <5000000>;
638 regulator-always-on;
639 regulator-boot-on;
640 vin-supply = <&vdd_mux>;
641 };
642
643 vdd_3v3_sys: regulator-3v3sys {
644 compatible = "regulator-fixed";
645 regulator-name = "+3.3V_SYS";
646 regulator-min-microvolt = <3300000>;
647 regulator-max-microvolt = <3300000>;
648 regulator-always-on;
649 regulator-boot-on;
650 vin-supply = <&vdd_mux>;
651 };
652
653 vdd_3v3_run: regulator-3v3run {
654 compatible = "regulator-fixed";
655 regulator-name = "+3.3V_RUN";
656 regulator-min-microvolt = <3300000>;
657 regulator-max-microvolt = <3300000>;
658 regulator-always-on;
659 regulator-boot-on;
660 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
661 enable-active-high;
662 vin-supply = <&vdd_3v3_sys>;
663 };
664
665 vdd_3v3_hdmi: regulator-3v3hdmi {
666 compatible = "regulator-fixed";
667 regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
668 regulator-min-microvolt = <3300000>;
669 regulator-max-microvolt = <3300000>;
670 vin-supply = <&vdd_3v3_run>;
671 };
672
673 vdd_led: regulator-led {
674 compatible = "regulator-fixed";
675 regulator-name = "+VDD_LED";
676 gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
677 enable-active-high;
678 vin-supply = <&vdd_mux>;
679 };
680
681 vdd_5v0_ts: regulator-ts {
682 compatible = "regulator-fixed";
683 regulator-name = "+5V_VDD_TS_SW";
684 regulator-min-microvolt = <5000000>;
685 regulator-max-microvolt = <5000000>;
686 regulator-boot-on;
687 gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
688 enable-active-high;
689 vin-supply = <&vdd_5v0_sys>;
690 };
691
692 vdd_usb1_vbus: regulator-usb1 {
693 compatible = "regulator-fixed";
694 regulator-name = "+5V_USB_HS";
695 regulator-min-microvolt = <5000000>;
696 regulator-max-microvolt = <5000000>;
697 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
698 enable-active-high;
699 gpio-open-drain;
700 vin-supply = <&vdd_5v0_sys>;
701 };
702
703 vdd_usb3_vbus: regulator-usb3 {
704 compatible = "regulator-fixed";
705 regulator-name = "+5V_USB_SS";
706 regulator-min-microvolt = <5000000>;
707 regulator-max-microvolt = <5000000>;
708 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
709 enable-active-high;
710 gpio-open-drain;
711 vin-supply = <&vdd_5v0_sys>;
712 };
713
714 vdd_3v3_panel: regulator-panel {
715 compatible = "regulator-fixed";
716 regulator-name = "+3.3V_PANEL";
717 regulator-min-microvolt = <3300000>;
718 regulator-max-microvolt = <3300000>;
719 gpio = <&pmic 4 GPIO_ACTIVE_HIGH>;
720 enable-active-high;
721 vin-supply = <&vdd_3v3_run>;
722 };
723
724 vdd_3v3_lp0: regulator-lp0 {
725 compatible = "regulator-fixed";
726 regulator-name = "+3.3V_LP0";
727 regulator-min-microvolt = <3300000>;
728 regulator-max-microvolt = <3300000>;
729 /*
730 * TODO: find a way to wire this up with the USB EHCI
731 * controllers so that it can be enabled on demand.
732 */
733 regulator-always-on;
734 gpio = <&pmic 2 GPIO_ACTIVE_HIGH>;
735 enable-active-high;
736 vin-supply = <&vdd_3v3_sys>;
737 };
738
739 vdd_hdmi_pll: regulator-hdmipll {
740 compatible = "regulator-fixed";
741 regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL";
742 regulator-min-microvolt = <1050000>;
743 regulator-max-microvolt = <1050000>;
744 gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
745 vin-supply = <&vdd_1v05_run>;
746 };
747
748 vdd_5v0_hdmi: regulator-hdmicon {
749 compatible = "regulator-fixed";
750 regulator-name = "+5V_HDMI_CON";
751 regulator-min-microvolt = <5000000>;
752 regulator-max-microvolt = <5000000>;
753 gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
754 enable-active-high;
755 vin-supply = <&vdd_5v0_sys>;
756 };
757
758 sound {
759 nvidia,audio-routing =
760 "Headphones", "HPR",
761 "Headphones", "HPL",
762 "Speakers", "SPKR",
763 "Speakers", "SPKL",
764 "Mic Jack", "MICBIAS",
765 "DMICL", "Int Mic",
766 "DMICR", "Int Mic",
767 "IN34", "Mic Jack";
768
769 nvidia,i2s-controller = <&tegra_i2s1>;
770 nvidia,audio-codec = <&acodec>;
771
772 clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
773 <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
774 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
775 clock-names = "pll_a", "pll_a_out0", "mclk";
776
777 assigned-clocks = <&tegra_car TEGRA124_CLK_EXTERN1>,
778 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
779
780 assigned-clock-parents = <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
781 <&tegra_car TEGRA124_CLK_EXTERN1>;
782
783 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>;
784 nvidia,mic-det-gpios =
785 <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
786 };
787
788 gpio-restart {
789 compatible = "gpio-restart";
790 gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
791 priority = <200>;
792 };
793
794 cpus {
795 cpu0: cpu@0 {
796 #cooling-cells = <2>;
797 };
798
799 cpu1: cpu@1 {
800 #cooling-cells = <2>;
801 };
802
803 cpu2: cpu@2 {
804 #cooling-cells = <2>;
805 };
806
807 cpu3: cpu@3 {
808 #cooling-cells = <2>;
809 };
810 };
811
812 thermal-zones {
813 cpu-skin-thermal {
814 polling-delay-passive = <1000>; /* milliseconds */
815 polling-delay = <5000>; /* milliseconds */
816
817 thermal-sensors = <&tmp451 0>;
818
819 trips {
820 cpu_passive_trip: cpu-alert0 {
821 /* throttle at 70C until temperature drops to 69.8C */
822 temperature = <70000>;
823 hysteresis = <200>;
824 type = "passive";
825 };
826 };
827
828 cooling-maps {
829 map0 {
830 trip = <&cpu_passive_trip>;
831 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
832 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
833 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
834 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
835 };
836 };
837 };
838 };
839};
840
841#include "cros-ec-keyboard.dtsi"
1#include <dt-bindings/input/input.h>
2#include "tegra124.dtsi"
3
4/ {
5 aliases {
6 rtc0 = "/i2c@0,7000d000/pmic@40";
7 rtc1 = "/rtc@0,7000e000";
8 serial0 = &uarta;
9 };
10
11 memory {
12 reg = <0x0 0x80000000 0x0 0x80000000>;
13 };
14
15 host1x@0,50000000 {
16 hdmi@0,54280000 {
17 status = "okay";
18
19 vdd-supply = <&vdd_3v3_hdmi>;
20 pll-supply = <&vdd_hdmi_pll>;
21 hdmi-supply = <&vdd_5v0_hdmi>;
22
23 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
24 nvidia,hpd-gpio =
25 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
26 };
27
28 sor@0,54540000 {
29 status = "okay";
30
31 nvidia,dpaux = <&dpaux>;
32 nvidia,panel = <&panel>;
33 };
34
35 dpaux@0,545c0000 {
36 vdd-supply = <&vdd_3v3_panel>;
37 status = "okay";
38 };
39 };
40
41 serial@0,70006000 {
42 /* Debug connector on the bottom of the board near SD card. */
43 status = "okay";
44 };
45
46 pwm@0,7000a000 {
47 status = "okay";
48 };
49
50 i2c@0,7000c000 {
51 status = "okay";
52 clock-frequency = <100000>;
53
54 acodec: audio-codec@10 {
55 compatible = "maxim,max98090";
56 reg = <0x10>;
57 interrupt-parent = <&gpio>;
58 interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
59 };
60
61 temperature-sensor@4c {
62 compatible = "ti,tmp451";
63 reg = <0x4c>;
64 interrupt-parent = <&gpio>;
65 interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
66
67 #thermal-sensor-cells = <1>;
68 };
69 };
70
71 i2c@0,7000c400 {
72 status = "okay";
73 clock-frequency = <100000>;
74
75 trackpad@15 {
76 compatible = "elan,ekth3000";
77 reg = <0x15>;
78 interrupt-parent = <&gpio>;
79 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_FALLING>;
80 wakeup-source;
81 };
82 };
83
84 i2c@0,7000c500 {
85 status = "okay";
86 clock-frequency = <400000>;
87
88 tpm@20 {
89 compatible = "infineon,slb9645tt";
90 reg = <0x20>;
91 };
92 };
93
94 hdmi_ddc: i2c@0,7000c700 {
95 status = "okay";
96 clock-frequency = <100000>;
97 };
98
99 i2c@0,7000d000 {
100 status = "okay";
101 clock-frequency = <400000>;
102
103 pmic: pmic@40 {
104 compatible = "ams,as3722";
105 reg = <0x40>;
106 interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
107
108 ams,system-power-controller;
109
110 #interrupt-cells = <2>;
111 interrupt-controller;
112
113 gpio-controller;
114 #gpio-cells = <2>;
115
116 pinctrl-names = "default";
117 pinctrl-0 = <&as3722_default>;
118
119 as3722_default: pinmux {
120 gpio0 {
121 pins = "gpio0";
122 function = "gpio";
123 bias-pull-down;
124 };
125
126 gpio1 {
127 pins = "gpio1";
128 function = "gpio";
129 bias-pull-up;
130 };
131
132 gpio2_4_7 {
133 pins = "gpio2", "gpio4", "gpio7";
134 function = "gpio";
135 bias-pull-up;
136 };
137
138 gpio3_6 {
139 pins = "gpio3", "gpio6";
140 bias-high-impedance;
141 };
142
143 gpio5 {
144 pins = "gpio5";
145 function = "clk32k-out";
146 bias-pull-down;
147 };
148 };
149
150 regulators {
151 vsup-sd2-supply = <&vdd_5v0_sys>;
152 vsup-sd3-supply = <&vdd_5v0_sys>;
153 vsup-sd4-supply = <&vdd_5v0_sys>;
154 vsup-sd5-supply = <&vdd_5v0_sys>;
155 vin-ldo0-supply = <&vdd_1v35_lp0>;
156 vin-ldo1-6-supply = <&vdd_3v3_run>;
157 vin-ldo2-5-7-supply = <&vddio_1v8>;
158 vin-ldo3-4-supply = <&vdd_3v3_sys>;
159 vin-ldo9-10-supply = <&vdd_5v0_sys>;
160 vin-ldo11-supply = <&vdd_3v3_run>;
161
162 vdd_cpu: sd0 {
163 regulator-name = "+VDD_CPU_AP";
164 regulator-min-microvolt = <700000>;
165 regulator-max-microvolt = <1350000>;
166 regulator-min-microamp = <3500000>;
167 regulator-max-microamp = <3500000>;
168 regulator-always-on;
169 regulator-boot-on;
170 ams,ext-control = <2>;
171 };
172
173 sd1 {
174 regulator-name = "+VDD_CORE";
175 regulator-min-microvolt = <700000>;
176 regulator-max-microvolt = <1350000>;
177 regulator-min-microamp = <2500000>;
178 regulator-max-microamp = <4000000>;
179 regulator-always-on;
180 regulator-boot-on;
181 ams,ext-control = <1>;
182 };
183
184 vdd_1v35_lp0: sd2 {
185 regulator-name = "+1.35V_LP0(sd2)";
186 regulator-min-microvolt = <1350000>;
187 regulator-max-microvolt = <1350000>;
188 regulator-always-on;
189 regulator-boot-on;
190 };
191
192 sd3 {
193 regulator-name = "+1.35V_LP0(sd3)";
194 regulator-min-microvolt = <1350000>;
195 regulator-max-microvolt = <1350000>;
196 regulator-always-on;
197 regulator-boot-on;
198 };
199
200 vdd_1v05_run: sd4 {
201 regulator-name = "+1.05V_RUN";
202 regulator-min-microvolt = <1050000>;
203 regulator-max-microvolt = <1050000>;
204 };
205
206 vddio_1v8: sd5 {
207 regulator-name = "+1.8V_VDDIO";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;
210 regulator-always-on;
211 };
212
213 sd6 {
214 regulator-name = "+VDD_GPU_AP";
215 regulator-min-microvolt = <650000>;
216 regulator-max-microvolt = <1200000>;
217 regulator-min-microamp = <3500000>;
218 regulator-max-microamp = <3500000>;
219 regulator-boot-on;
220 regulator-always-on;
221 };
222
223 ldo0 {
224 regulator-name = "+1.05V_RUN_AVDD";
225 regulator-min-microvolt = <1050000>;
226 regulator-max-microvolt = <1050000>;
227 regulator-boot-on;
228 regulator-always-on;
229 ams,ext-control = <1>;
230 };
231
232 ldo1 {
233 regulator-name = "+1.8V_RUN_CAM";
234 regulator-min-microvolt = <1800000>;
235 regulator-max-microvolt = <1800000>;
236 };
237
238 ldo2 {
239 regulator-name = "+1.2V_GEN_AVDD";
240 regulator-min-microvolt = <1200000>;
241 regulator-max-microvolt = <1200000>;
242 regulator-boot-on;
243 regulator-always-on;
244 };
245
246 ldo3 {
247 regulator-name = "+1.00V_LP0_VDD_RTC";
248 regulator-min-microvolt = <1000000>;
249 regulator-max-microvolt = <1000000>;
250 regulator-boot-on;
251 regulator-always-on;
252 ams,enable-tracking;
253 };
254
255 vdd_run_cam: ldo4 {
256 regulator-name = "+3.3V_RUN_CAM";
257 regulator-min-microvolt = <2800000>;
258 regulator-max-microvolt = <2800000>;
259 };
260
261 ldo5 {
262 regulator-name = "+1.2V_RUN_CAM_FRONT";
263 regulator-min-microvolt = <1200000>;
264 regulator-max-microvolt = <1200000>;
265 };
266
267 vddio_sdmmc3: ldo6 {
268 regulator-name = "+VDDIO_SDMMC3";
269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <3300000>;
271 };
272
273 ldo7 {
274 regulator-name = "+1.05V_RUN_CAM_REAR";
275 regulator-min-microvolt = <1050000>;
276 regulator-max-microvolt = <1050000>;
277 };
278
279 ldo9 {
280 regulator-name = "+2.8V_RUN_TOUCH";
281 regulator-min-microvolt = <2800000>;
282 regulator-max-microvolt = <2800000>;
283 };
284
285 ldo10 {
286 regulator-name = "+2.8V_RUN_CAM_AF";
287 regulator-min-microvolt = <2800000>;
288 regulator-max-microvolt = <2800000>;
289 };
290
291 ldo11 {
292 regulator-name = "+1.8V_RUN_VPP_FUSE";
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
295 };
296 };
297 };
298 };
299
300 spi@0,7000d400 {
301 status = "okay";
302
303 cros_ec: cros-ec@0 {
304 compatible = "google,cros-ec-spi";
305 spi-max-frequency = <3000000>;
306 interrupt-parent = <&gpio>;
307 interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>;
308 reg = <0>;
309
310 google,cros-ec-spi-msg-delay = <2000>;
311
312 i2c-tunnel {
313 compatible = "google,cros-ec-i2c-tunnel";
314 #address-cells = <1>;
315 #size-cells = <0>;
316
317 google,remote-bus = <0>;
318
319 charger: bq24735@9 {
320 compatible = "ti,bq24735";
321 reg = <0x9>;
322 interrupt-parent = <&gpio>;
323 interrupts = <TEGRA_GPIO(J, 0)
324 GPIO_ACTIVE_HIGH>;
325 ti,ac-detect-gpios = <&gpio
326 TEGRA_GPIO(J, 0)
327 GPIO_ACTIVE_HIGH>;
328 };
329
330 battery: sbs-battery@b {
331 compatible = "sbs,sbs-battery";
332 reg = <0xb>;
333 sbs,i2c-retry-count = <2>;
334 sbs,poll-retry-count = <10>;
335 power-supplies = <&charger>;
336 };
337 };
338 };
339 };
340
341 spi@0,7000da00 {
342 status = "okay";
343 spi-max-frequency = <25000000>;
344
345 flash@0 {
346 compatible = "winbond,w25q32dw";
347 spi-max-frequency = <25000000>;
348 reg = <0>;
349 };
350 };
351
352 pmc@0,7000e400 {
353 nvidia,invert-interrupt;
354 nvidia,suspend-mode = <0>;
355 nvidia,cpu-pwr-good-time = <500>;
356 nvidia,cpu-pwr-off-time = <300>;
357 nvidia,core-pwr-good-time = <641 3845>;
358 nvidia,core-pwr-off-time = <61036>;
359 nvidia,core-power-req-active-high;
360 nvidia,sys-clock-req-active-high;
361 };
362
363 hda@0,70030000 {
364 status = "okay";
365 };
366
367 sdhci0_pwrseq: sdhci0_pwrseq {
368 compatible = "mmc-pwrseq-simple";
369
370 reset-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;
371 };
372
373 sdhci@0,700b0000 { /* WiFi/BT on this bus */
374 status = "okay";
375 bus-width = <4>;
376 no-1-8-v;
377 non-removable;
378 mmc-pwrseq = <&sdhci0_pwrseq>;
379 vmmc-supply = <&vdd_3v3_lp0>;
380 vqmmc-supply = <&vddio_1v8>;
381 keep-power-in-suspend;
382 };
383
384 sdhci@0,700b0400 { /* SD Card on this bus */
385 status = "okay";
386 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
387 power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
388 bus-width = <4>;
389 no-1-8-v;
390 vqmmc-supply = <&vddio_sdmmc3>;
391 };
392
393 sdhci@0,700b0600 { /* eMMC on this bus */
394 status = "okay";
395 bus-width = <8>;
396 no-1-8-v;
397 non-removable;
398 };
399
400 /* CPU DFLL clock */
401 clock@0,70110000 {
402 status = "disabled";
403 vdd-cpu-supply = <&vdd_cpu>;
404 nvidia,i2c-fs-rate = <400000>;
405 };
406
407 ahub@0,70300000 {
408 i2s@0,70301100 {
409 status = "okay";
410 };
411 };
412
413 usb@0,7d000000 { /* Rear external USB port. */
414 status = "okay";
415 };
416
417 usb-phy@0,7d000000 {
418 status = "okay";
419 vbus-supply = <&vdd_usb1_vbus>;
420 };
421
422 usb@0,7d004000 { /* Internal webcam. */
423 status = "okay";
424 };
425
426 usb-phy@0,7d004000 {
427 status = "okay";
428 vbus-supply = <&vdd_run_cam>;
429 };
430
431 usb@0,7d008000 { /* Left external USB port. */
432 status = "okay";
433 };
434
435 usb-phy@0,7d008000 {
436 status = "okay";
437 vbus-supply = <&vdd_usb3_vbus>;
438 };
439
440 backlight: backlight {
441 compatible = "pwm-backlight";
442
443 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
444 power-supply = <&vdd_led>;
445 pwms = <&pwm 1 1000000>;
446
447 default-brightness-level = <224>;
448 brightness-levels =
449 < 0 1 2 3 4 5 6 7
450 8 9 10 11 12 13 14 15
451 16 17 18 19 20 21 22 23
452 24 25 26 27 28 29 30 31
453 32 33 34 35 36 37 38 39
454 40 41 42 43 44 45 46 47
455 48 49 50 51 52 53 54 55
456 56 57 58 59 60 61 62 63
457 64 65 66 67 68 69 70 71
458 72 73 74 75 76 77 78 79
459 80 81 82 83 84 85 86 87
460 88 89 90 91 92 93 94 95
461 96 97 98 99 100 101 102 103
462 104 105 106 107 108 109 110 111
463 112 113 114 115 116 117 118 119
464 120 121 122 123 124 125 126 127
465 128 129 130 131 132 133 134 135
466 136 137 138 139 140 141 142 143
467 144 145 146 147 148 149 150 151
468 152 153 154 155 156 157 158 159
469 160 161 162 163 164 165 166 167
470 168 169 170 171 172 173 174 175
471 176 177 178 179 180 181 182 183
472 184 185 186 187 188 189 190 191
473 192 193 194 195 196 197 198 199
474 200 201 202 203 204 205 206 207
475 208 209 210 211 212 213 214 215
476 216 217 218 219 220 221 222 223
477 224 225 226 227 228 229 230 231
478 232 233 234 235 236 237 238 239
479 240 241 242 243 244 245 246 247
480 248 249 250 251 252 253 254 255
481 256>;
482 };
483
484 clocks {
485 compatible = "simple-bus";
486 #address-cells = <1>;
487 #size-cells = <0>;
488
489 clk32k_in: clock@0 {
490 compatible = "fixed-clock";
491 reg = <0>;
492 #clock-cells = <0>;
493 clock-frequency = <32768>;
494 };
495 };
496
497 cpus {
498 cpu@0 {
499 vdd-cpu-supply = <&vdd_cpu>;
500 };
501 };
502
503 gpio-keys {
504 compatible = "gpio-keys";
505
506 lid {
507 label = "Lid";
508 gpios = <&gpio TEGRA_GPIO(R, 4) GPIO_ACTIVE_LOW>;
509 linux,input-type = <5>;
510 linux,code = <KEY_RESERVED>;
511 debounce-interval = <1>;
512 gpio-key,wakeup;
513 };
514
515 power {
516 label = "Power";
517 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
518 linux,code = <KEY_POWER>;
519 debounce-interval = <30>;
520 gpio-key,wakeup;
521 };
522 };
523
524 regulators {
525 compatible = "simple-bus";
526 #address-cells = <1>;
527 #size-cells = <0>;
528
529 vdd_mux: regulator@0 {
530 compatible = "regulator-fixed";
531 reg = <0>;
532 regulator-name = "+VDD_MUX";
533 regulator-min-microvolt = <12000000>;
534 regulator-max-microvolt = <12000000>;
535 regulator-always-on;
536 regulator-boot-on;
537 };
538
539 vdd_5v0_sys: regulator@1 {
540 compatible = "regulator-fixed";
541 reg = <1>;
542 regulator-name = "+5V_SYS";
543 regulator-min-microvolt = <5000000>;
544 regulator-max-microvolt = <5000000>;
545 regulator-always-on;
546 regulator-boot-on;
547 vin-supply = <&vdd_mux>;
548 };
549
550 vdd_3v3_sys: regulator@2 {
551 compatible = "regulator-fixed";
552 reg = <2>;
553 regulator-name = "+3.3V_SYS";
554 regulator-min-microvolt = <3300000>;
555 regulator-max-microvolt = <3300000>;
556 regulator-always-on;
557 regulator-boot-on;
558 vin-supply = <&vdd_mux>;
559 };
560
561 vdd_3v3_run: regulator@3 {
562 compatible = "regulator-fixed";
563 reg = <3>;
564 regulator-name = "+3.3V_RUN";
565 regulator-min-microvolt = <3300000>;
566 regulator-max-microvolt = <3300000>;
567 regulator-always-on;
568 regulator-boot-on;
569 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
570 enable-active-high;
571 vin-supply = <&vdd_3v3_sys>;
572 };
573
574 vdd_3v3_hdmi: regulator@4 {
575 compatible = "regulator-fixed";
576 reg = <4>;
577 regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
578 regulator-min-microvolt = <3300000>;
579 regulator-max-microvolt = <3300000>;
580 vin-supply = <&vdd_3v3_run>;
581 };
582
583 vdd_led: regulator@5 {
584 compatible = "regulator-fixed";
585 reg = <5>;
586 regulator-name = "+VDD_LED";
587 gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
588 enable-active-high;
589 vin-supply = <&vdd_mux>;
590 };
591
592 vdd_5v0_ts: regulator@6 {
593 compatible = "regulator-fixed";
594 reg = <6>;
595 regulator-name = "+5V_VDD_TS_SW";
596 regulator-min-microvolt = <5000000>;
597 regulator-max-microvolt = <5000000>;
598 regulator-boot-on;
599 gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
600 enable-active-high;
601 vin-supply = <&vdd_5v0_sys>;
602 };
603
604 vdd_usb1_vbus: regulator@7 {
605 compatible = "regulator-fixed";
606 reg = <7>;
607 regulator-name = "+5V_USB_HS";
608 regulator-min-microvolt = <5000000>;
609 regulator-max-microvolt = <5000000>;
610 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
611 enable-active-high;
612 gpio-open-drain;
613 vin-supply = <&vdd_5v0_sys>;
614 };
615
616 vdd_usb3_vbus: regulator@8 {
617 compatible = "regulator-fixed";
618 reg = <8>;
619 regulator-name = "+5V_USB_SS";
620 regulator-min-microvolt = <5000000>;
621 regulator-max-microvolt = <5000000>;
622 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
623 enable-active-high;
624 gpio-open-drain;
625 vin-supply = <&vdd_5v0_sys>;
626 };
627
628 vdd_3v3_panel: regulator@9 {
629 compatible = "regulator-fixed";
630 reg = <9>;
631 regulator-name = "+3.3V_PANEL";
632 regulator-min-microvolt = <3300000>;
633 regulator-max-microvolt = <3300000>;
634 gpio = <&pmic 4 GPIO_ACTIVE_HIGH>;
635 enable-active-high;
636 vin-supply = <&vdd_3v3_run>;
637 };
638
639 vdd_3v3_lp0: regulator@10 {
640 compatible = "regulator-fixed";
641 reg = <10>;
642 regulator-name = "+3.3V_LP0";
643 regulator-min-microvolt = <3300000>;
644 regulator-max-microvolt = <3300000>;
645 /*
646 * TODO: find a way to wire this up with the USB EHCI
647 * controllers so that it can be enabled on demand.
648 */
649 regulator-always-on;
650 gpio = <&pmic 2 GPIO_ACTIVE_HIGH>;
651 enable-active-high;
652 vin-supply = <&vdd_3v3_sys>;
653 };
654
655 vdd_hdmi_pll: regulator@11 {
656 compatible = "regulator-fixed";
657 reg = <11>;
658 regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL";
659 regulator-min-microvolt = <1050000>;
660 regulator-max-microvolt = <1050000>;
661 gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
662 vin-supply = <&vdd_1v05_run>;
663 };
664
665 vdd_5v0_hdmi: regulator@12 {
666 compatible = "regulator-fixed";
667 reg = <12>;
668 regulator-name = "+5V_HDMI_CON";
669 regulator-min-microvolt = <5000000>;
670 regulator-max-microvolt = <5000000>;
671 gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
672 enable-active-high;
673 vin-supply = <&vdd_5v0_sys>;
674 };
675 };
676
677 sound {
678 nvidia,audio-routing =
679 "Headphones", "HPR",
680 "Headphones", "HPL",
681 "Speakers", "SPKR",
682 "Speakers", "SPKL",
683 "Mic Jack", "MICBIAS",
684 "DMICL", "Int Mic",
685 "DMICR", "Int Mic",
686 "IN34", "Mic Jack";
687
688 nvidia,i2s-controller = <&tegra_i2s1>;
689 nvidia,audio-codec = <&acodec>;
690
691 clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
692 <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
693 <&tegra_car TEGRA124_CLK_EXTERN1>;
694 clock-names = "pll_a", "pll_a_out0", "mclk";
695
696 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>;
697 nvidia,mic-det-gpios =
698 <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
699 };
700
701 gpio-restart {
702 compatible = "gpio-restart";
703 gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
704 priority = <200>;
705 };
706};
707
708#include "cros-ec-keyboard.dtsi"