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