blob: 06151816c8de8c7ed7b726b10cff94cd341973d3 [file] [log] [blame]
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03004#include <dt-bindings/input/input.h>
5#include "tegra30.dtsi"
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03006
7/ {
8 model = "ASUS VivoTab RT TF600T";
9 compatible = "asus,tf600t", "nvidia,tegra30";
10
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +030011 chosen {
12 stdout-path = &uarta;
13 };
14
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +030015 aliases {
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +030016 i2c0 = &pwr_i2c;
17
18 mmc0 = &sdmmc4; /* eMMC */
19 mmc1 = &sdmmc1; /* uSD slot */
20
21 rtc0 = &pmic;
22 rtc1 = "/rtc@7000e000";
23
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +030024 spi0 = &spi4;
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +030025
26 usb0 = &usb1;
27 usb1 = &usb3; /* Dock USB */
28 };
29
30 memory {
31 device_type = "memory";
32 reg = <0x80000000 0x80000000>;
33 };
34
35 host1x@50000000 {
36 dc@54200000 {
37 clocks = <&tegra_car TEGRA30_CLK_DISP1>,
38 <&tegra_car TEGRA30_CLK_PLL_D_OUT0>;
39
40 rgb {
41 status = "okay";
42
43 nvidia,panel = <&dsia>;
44 };
45 };
46
47 dsia: dsi@54300000 {
48 status = "okay";
49
50 avdd-dsi-csi-supply = <&avdd_dsi_csi>;
51
52 panel = <&panel>;
53 };
54 };
55
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +020056 pinmux@70000868 {
57 pinctrl-names = "default";
58 pinctrl-0 = <&state_default>;
59
60 state_default: pinmux {
61 /* SDMMC1 pinmux */
62 sdmmc1_clk {
63 nvidia,pins = "sdmmc1_clk_pz0";
64 nvidia,function = "sdmmc1";
65 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
66 nvidia,tristate = <TEGRA_PIN_DISABLE>;
67 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
68 };
69 sdmmc1_cmd {
70 nvidia,pins = "sdmmc1_dat3_py4",
71 "sdmmc1_dat2_py5",
72 "sdmmc1_dat1_py6",
73 "sdmmc1_dat0_py7",
74 "sdmmc1_cmd_pz1";
75 nvidia,function = "sdmmc1";
76 nvidia,pull = <TEGRA_PIN_PULL_UP>;
77 nvidia,tristate = <TEGRA_PIN_DISABLE>;
78 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
79 };
80 sdmmc1_cd {
81 nvidia,pins = "gmi_iordy_pi5";
82 nvidia,function = "rsvd1";
83 nvidia,pull = <TEGRA_PIN_PULL_UP>;
84 nvidia,tristate = <TEGRA_PIN_DISABLE>;
85 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
86 };
87 sdmmc1_wp {
88 nvidia,pins = "vi_d11_pt3";
89 nvidia,function = "rsvd2";
90 nvidia,pull = <TEGRA_PIN_PULL_UP>;
91 nvidia,tristate = <TEGRA_PIN_DISABLE>;
92 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +020093 nvidia,lock = <1>;
94 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +020095 };
96
97 /* SDMMC2 pinmux */
98 vi_d1_pd5 {
99 nvidia,pins = "vi_d1_pd5",
100 "vi_d2_pl0",
101 "vi_d3_pl1",
102 "vi_d5_pl3",
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200103 "vi_d7_pl5",
104 "vi_d8_pl6",
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200105 "vi_d9_pl7";
106 nvidia,function = "sdmmc2";
107 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
108 nvidia,tristate = <TEGRA_PIN_DISABLE>;
109 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200110 nvidia,lock = <1>;
111 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200112 };
113
114 /* SDMMC3 pinmux */
115 sdmmc3_clk {
116 nvidia,pins = "sdmmc3_clk_pa6";
117 nvidia,function = "sdmmc3";
118 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
119 nvidia,tristate = <TEGRA_PIN_DISABLE>;
120 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
121 };
122 sdmmc3_cmd {
123 nvidia,pins = "sdmmc3_cmd_pa7",
124 "sdmmc3_dat0_pb7",
125 "sdmmc3_dat1_pb6",
126 "sdmmc3_dat2_pb5",
127 "sdmmc3_dat3_pb4",
128 "sdmmc3_dat4_pd1",
129 "sdmmc3_dat5_pd0",
130 "sdmmc3_dat6_pd3",
131 "sdmmc3_dat7_pd4";
132 nvidia,function = "sdmmc3";
133 nvidia,pull = <TEGRA_PIN_PULL_UP>;
134 nvidia,tristate = <TEGRA_PIN_DISABLE>;
135 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
136 };
137
138 /* SDMMC4 pinmux */
139 sdmmc4_clk {
140 nvidia,pins = "sdmmc4_clk_pcc4";
141 nvidia,function = "sdmmc4";
142 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
143 nvidia,tristate = <TEGRA_PIN_DISABLE>;
144 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200145 nvidia,lock = <1>;
146 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200147 };
148 sdmmc4_cmd {
149 nvidia,pins = "sdmmc4_cmd_pt7",
150 "sdmmc4_dat0_paa0",
151 "sdmmc4_dat1_paa1",
152 "sdmmc4_dat2_paa2",
153 "sdmmc4_dat3_paa3",
154 "sdmmc4_dat4_paa4",
155 "sdmmc4_dat5_paa5",
156 "sdmmc4_dat6_paa6",
157 "sdmmc4_dat7_paa7";
158 nvidia,function = "sdmmc4";
159 nvidia,pull = <TEGRA_PIN_PULL_UP>;
160 nvidia,tristate = <TEGRA_PIN_DISABLE>;
161 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200162 nvidia,lock = <1>;
163 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200164 };
165 sdmmc4_rst_n {
166 nvidia,pins = "sdmmc4_rst_n_pcc3";
167 nvidia,function = "rsvd2";
168 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
169 nvidia,tristate = <TEGRA_PIN_DISABLE>;
170 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
171 };
172 cam_mclk {
173 nvidia,pins = "cam_mclk_pcc0";
174 nvidia,function = "vi_alt3";
175 nvidia,pull = <TEGRA_PIN_PULL_UP>;
176 nvidia,tristate = <TEGRA_PIN_DISABLE>;
177 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
178 };
179
180 /* I2C pinmux */
181 gen1_i2c {
182 nvidia,pins = "gen1_i2c_scl_pc4",
183 "gen1_i2c_sda_pc5";
184 nvidia,function = "i2c1";
185 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
186 nvidia,tristate = <TEGRA_PIN_DISABLE>;
187 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
188 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
189 nvidia,lock = <0>;
190 };
191 gen2_i2c {
192 nvidia,pins = "gen2_i2c_scl_pt5",
193 "gen2_i2c_sda_pt6";
194 nvidia,function = "i2c2";
195 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
196 nvidia,tristate = <TEGRA_PIN_DISABLE>;
197 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
198 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
199 nvidia,lock = <0>;
200 };
201 cam_i2c {
202 nvidia,pins = "cam_i2c_scl_pbb1",
203 "cam_i2c_sda_pbb2";
204 nvidia,function = "i2c3";
205 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
206 nvidia,tristate = <TEGRA_PIN_DISABLE>;
207 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
208 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
209 nvidia,lock = <0>;
210 };
211 ddc_i2c {
212 nvidia,pins = "ddc_scl_pv4",
213 "ddc_sda_pv5";
214 nvidia,function = "i2c4";
215 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
216 nvidia,tristate = <TEGRA_PIN_DISABLE>;
217 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
218 nvidia,lock = <0>;
219 };
220 pwr_i2c {
221 nvidia,pins = "pwr_i2c_scl_pz6",
222 "pwr_i2c_sda_pz7";
223 nvidia,function = "i2cpwr";
224 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
225 nvidia,tristate = <TEGRA_PIN_DISABLE>;
226 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
227 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
228 nvidia,lock = <0>;
229 };
230 hotplug_i2c {
231 nvidia,pins = "pu4";
232 nvidia,function = "rsvd4";
233 nvidia,pull = <TEGRA_PIN_PULL_UP>;
234 nvidia,tristate = <TEGRA_PIN_DISABLE>;
235 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
236 };
237
238 /* HDMI pinmux */
239 hdmi_cec {
240 nvidia,pins = "hdmi_cec_pee3";
241 nvidia,function = "cec";
242 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
243 nvidia,tristate = <TEGRA_PIN_DISABLE>;
244 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
245 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
246 nvidia,lock = <0>;
247 };
248 hdmi_hpd {
249 nvidia,pins = "hdmi_int_pn7";
250 nvidia,function = "hdmi";
251 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
252 nvidia,tristate = <TEGRA_PIN_ENABLE>;
253 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
254 };
255
256 /* UART-A */
257 ulpi_data0_po1 {
258 nvidia,pins = "ulpi_data0_po1";
259 nvidia,function = "uarta";
260 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
261 nvidia,tristate = <TEGRA_PIN_DISABLE>;
262 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
263 };
264 ulpi_data1_po2 {
265 nvidia,pins = "ulpi_data1_po2";
266 nvidia,function = "uarta";
267 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
268 nvidia,tristate = <TEGRA_PIN_ENABLE>;
269 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
270 };
271 ulpi_data5_po6 {
272 nvidia,pins = "ulpi_data5_po6";
273 nvidia,function = "uarta";
274 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
275 nvidia,tristate = <TEGRA_PIN_ENABLE>;
276 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
277 };
278 ulpi_data7_po0 {
279 nvidia,pins = "ulpi_data7_po0",
280 "ulpi_data2_po3",
281 "ulpi_data3_po4",
282 "ulpi_data4_po5",
283 "ulpi_data6_po7";
284 nvidia,function = "uarta";
285 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
286 nvidia,tristate = <TEGRA_PIN_DISABLE>;
287 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
288 };
289
290 /* UART-B */
291 uartb_txd_rts {
292 nvidia,pins = "uart2_txd_pc2",
293 "uart2_rts_n_pj6";
294 nvidia,function = "uartb";
295 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
296 nvidia,tristate = <TEGRA_PIN_DISABLE>;
297 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
298 };
299 uartb_rxd_cts {
300 nvidia,pins = "uart2_rxd_pc3",
301 "uart2_cts_n_pj5";
302 nvidia,function = "uartb";
303 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
304 nvidia,tristate = <TEGRA_PIN_DISABLE>;
305 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
306 };
307
308 /* UART-C */
309 uartc_rxd_cts {
310 nvidia,pins = "uart3_cts_n_pa1",
311 "uart3_rxd_pw7";
312 nvidia,function = "uartc";
313 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
314 nvidia,tristate = <TEGRA_PIN_DISABLE>;
315 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
316 };
317 uartc_txd_rts {
318 nvidia,pins = "uart3_rts_n_pc0",
319 "uart3_txd_pw6";
320 nvidia,function = "uartc";
321 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
322 nvidia,tristate = <TEGRA_PIN_DISABLE>;
323 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
324 };
325
326 /* UART-D */
327 ulpi_nxt_py2 {
328 nvidia,pins = "ulpi_nxt_py2";
329 nvidia,function = "uartd";
330 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
331 nvidia,tristate = <TEGRA_PIN_ENABLE>;
332 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
333 };
334 ulpi_clk_py0 {
335 nvidia,pins = "ulpi_clk_py0",
336 "ulpi_dir_py1",
337 "ulpi_stp_py3";
338 nvidia,function = "uartd";
339 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
340 nvidia,tristate = <TEGRA_PIN_ENABLE>;
341 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
342 };
343
344 /* I2S pinmux */
345 dap_i2s0 {
346 nvidia,pins = "dap1_fs_pn0",
347 "dap1_din_pn1",
348 "dap1_dout_pn2",
349 "dap1_sclk_pn3";
350 nvidia,function = "i2s0";
351 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
352 nvidia,tristate = <TEGRA_PIN_ENABLE>;
353 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
354 };
355 dap_i2s1 {
356 nvidia,pins = "dap2_fs_pa2",
357 "dap2_sclk_pa3",
358 "dap2_din_pa4",
359 "dap2_dout_pa5";
360 nvidia,function = "i2s1";
361 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
362 nvidia,tristate = <TEGRA_PIN_DISABLE>;
363 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
364 };
365 dap3_fs {
366 nvidia,pins = "dap3_fs_pp0";
367 nvidia,function = "i2s2";
368 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
369 nvidia,tristate = <TEGRA_PIN_ENABLE>;
370 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
371 };
372 dap3_din {
373 nvidia,pins = "dap3_din_pp1";
374 nvidia,function = "i2s2";
375 nvidia,pull = <TEGRA_PIN_PULL_UP>;
376 nvidia,tristate = <TEGRA_PIN_DISABLE>;
377 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
378 };
379 dap3_dout {
380 nvidia,pins = "dap3_dout_pp2",
381 "dap3_sclk_pp3";
382 nvidia,function = "i2s2";
383 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
384 nvidia,tristate = <TEGRA_PIN_DISABLE>;
385 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
386 };
387 dap_i2s3 {
388 nvidia,pins = "dap4_fs_pp4",
389 "dap4_din_pp5",
390 "dap4_dout_pp6",
391 "dap4_sclk_pp7";
392 nvidia,function = "i2s3";
393 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
394 nvidia,tristate = <TEGRA_PIN_DISABLE>;
395 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
396 };
397 i2s4 {
398 nvidia,pins = "pbb7";
399 nvidia,function = "i2s4";
400 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
401 nvidia,tristate = <TEGRA_PIN_DISABLE>;
402 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
403 };
404
405 /* Sensors pinmux */
406 nct_irq {
407 nvidia,pins = "pcc2";
408 nvidia,function = "i2s4";
409 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
410 nvidia,tristate = <TEGRA_PIN_DISABLE>;
411 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
412 };
413 hall {
414 nvidia,pins = "pbb6";
415 nvidia,function = "vgp6";
416 nvidia,pull = <TEGRA_PIN_PULL_UP>;
417 nvidia,tristate = <TEGRA_PIN_DISABLE>;
418 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
419 };
420
421 /* Asus EC pinmux */
422 ec_irqs {
423 nvidia,pins = "kb_row10_ps2",
424 "kb_row15_ps7";
425 nvidia,function = "kbc";
426 nvidia,pull = <TEGRA_PIN_PULL_UP>;
427 nvidia,tristate = <TEGRA_PIN_DISABLE>;
428 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
429 };
430 ec_reqs {
431 nvidia,pins = "kb_col1_pq1";
432 nvidia,function = "kbc";
433 nvidia,pull = <TEGRA_PIN_PULL_UP>;
434 nvidia,tristate = <TEGRA_PIN_DISABLE>;
435 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
436 };
437
438 /* Memory type bootstrap */
439 mem_boostraps {
440 nvidia,pins = "gmi_ad4_pg4",
441 "gmi_ad5_pg5";
442 nvidia,function = "nand";
443 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
444 nvidia,tristate = <TEGRA_PIN_DISABLE>;
445 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
446 };
447
448 /* PCI-e pinmux */
449 pex_l2_rst_n {
450 nvidia,pins = "pex_l2_rst_n_pcc6",
451 "pex_l0_rst_n_pdd1",
452 "pex_l1_rst_n_pdd5";
453 nvidia,function = "pcie";
454 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
455 nvidia,tristate = <TEGRA_PIN_DISABLE>;
456 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
457 };
458 pex_l2_clkreq_n {
459 nvidia,pins = "pex_l2_clkreq_n_pcc7",
460 "pex_l0_prsnt_n_pdd0",
461 "pex_l0_clkreq_n_pdd2",
462 "pex_wake_n_pdd3",
463 "pex_l1_prsnt_n_pdd4",
464 "pex_l1_clkreq_n_pdd6",
465 "pex_l2_prsnt_n_pdd7";
466 nvidia,function = "pcie";
467 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
468 nvidia,tristate = <TEGRA_PIN_DISABLE>;
469 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
470 };
471
Svyatoslav Ryhel66e96422024-01-17 18:32:21 +0200472 /* SPI pinmux */
473 spi1_ctrl {
474 nvidia,pins = "spi1_mosi_px4",
475 "spi1_sck_px5",
476 "spi1_cs0_n_px6",
477 "spi1_miso_px7";
478 nvidia,function = "spi1";
479 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
480 nvidia,tristate = <TEGRA_PIN_ENABLE>;
481 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
482 };
483 spi2_sck {
484 nvidia,pins = "spi2_sck_px2";
485 nvidia,function = "gmi";
486 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
487 nvidia,tristate = <TEGRA_PIN_DISABLE>;
488 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
489 };
490 spi2_cs1_n {
491 nvidia,pins = "spi2_cs1_n_pw2";
492 nvidia,function = "spi2";
493 nvidia,pull = <TEGRA_PIN_PULL_UP>;
494 nvidia,tristate = <TEGRA_PIN_DISABLE>;
495 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
496 };
497 spi4_ctrl {
498 nvidia,pins = "gmi_a16_pj7",
499 "gmi_a17_pb0",
500 "gmi_a18_pb1",
501 "gmi_a19_pk7";
502 nvidia,function = "spi4";
503 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
504 nvidia,tristate = <TEGRA_PIN_DISABLE>;
505 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
506 };
507
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200508 /* Display A pinmux */
509 lcd_pwr0_pb2 {
510 nvidia,pins = "lcd_pwr0_pb2",
511 "lcd_pclk_pb3",
512 "lcd_pwr1_pc1",
513 "lcd_d0_pe0",
514 "lcd_d1_pe1",
515 "lcd_d2_pe2",
516 "lcd_d3_pe3",
517 "lcd_d4_pe4",
518 "lcd_d5_pe5",
519 "lcd_d6_pe6",
520 "lcd_d7_pe7",
521 "lcd_d8_pf0",
522 "lcd_d9_pf1",
523 "lcd_d10_pf2",
524 "lcd_d11_pf3",
525 "lcd_d12_pf4",
526 "lcd_d13_pf5",
527 "lcd_d14_pf6",
528 "lcd_d15_pf7",
529 "lcd_de_pj1",
530 "lcd_hsync_pj3",
531 "lcd_vsync_pj4",
532 "lcd_d16_pm0",
533 "lcd_d17_pm1",
534 "lcd_d18_pm2",
535 "lcd_d19_pm3",
536 "lcd_d20_pm4",
537 "lcd_d21_pm5",
538 "lcd_d22_pm6",
539 "lcd_d23_pm7",
540 "lcd_cs1_n_pw0",
541 "lcd_m1_pw1",
542 "lcd_dc0_pn6",
543 "lcd_sck_pz4",
544 "lcd_sdin_pz2";
545 nvidia,function = "displaya";
546 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
547 nvidia,tristate = <TEGRA_PIN_DISABLE>;
548 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
549 };
550 lcd_cs0_n_pn4 {
551 nvidia,pins = "lcd_sdout_pn5",
552 "lcd_wr_n_pz3",
553 "lcd_pwr2_pc6",
554 "lcd_dc1_pd2";
555 nvidia,function = "displaya";
556 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
557 nvidia,tristate = <TEGRA_PIN_ENABLE>;
558 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
559 };
560
561 blink {
562 nvidia,pins = "clk_32k_out_pa0";
563 nvidia,function = "blink";
564 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
565 nvidia,tristate = <TEGRA_PIN_DISABLE>;
566 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
567 };
568
569 /* KBC keys */
570 kb_col0 {
571 nvidia,pins = "kb_col0_pq0",
572 "kb_row1_pr1",
573 "kb_row3_pr3",
574 "kb_row6_pr6",
575 "kb_row8_ps0",
576 "kb_row9_ps1",
577 "kb_row11_ps3",
578 "kb_row14_ps6",
579 "kb_col6_pq6";
580 nvidia,function = "kbc";
581 nvidia,pull = <TEGRA_PIN_PULL_UP>;
582 nvidia,tristate = <TEGRA_PIN_DISABLE>;
583 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
584 };
585 kb_col5 {
586 nvidia,pins = "kb_col5_pq5",
587 "kb_col7_pq7",
588 "kb_row2_pr2",
589 "kb_row4_pr4",
590 "kb_row5_pr5",
591 "kb_row13_ps5";
592 nvidia,function = "kbc";
593 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
594 nvidia,tristate = <TEGRA_PIN_ENABLE>;
595 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
596 };
597
598 gmi_cs0_n_pj0 {
599 nvidia,pins = "gmi_wp_n_pc7",
600 "gmi_wait_pi7",
601 "gmi_cs0_n_pj0",
602 "gmi_cs1_n_pj2",
603 "gmi_cs2_n_pk3",
604 "gmi_cs3_n_pk4";
605 nvidia,function = "rsvd1";
606 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
607 nvidia,tristate = <TEGRA_PIN_ENABLE>;
608 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
609 };
610 vi_pclk_pt0 {
611 nvidia,pins = "vi_pclk_pt0";
612 nvidia,function = "rsvd1";
613 nvidia,pull = <TEGRA_PIN_PULL_UP>;
614 nvidia,tristate = <TEGRA_PIN_ENABLE>;
615 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200616 nvidia,lock = <1>;
617 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200618 };
619
620 /* GPIO keys pinmux */
621 power_key {
622 nvidia,pins = "pv0";
623 nvidia,function = "rsvd1";
624 nvidia,pull = <TEGRA_PIN_PULL_UP>;
625 nvidia,tristate = <TEGRA_PIN_ENABLE>;
626 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
627 };
628 vol_keys {
629 nvidia,pins = "kb_col3_pq3",
630 "kb_col4_pq4";
631 nvidia,function = "rsvd4";
632 nvidia,pull = <TEGRA_PIN_PULL_UP>;
633 nvidia,tristate = <TEGRA_PIN_ENABLE>;
634 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
635 };
636
637 /* Bluetooth */
638 bt_shutdown {
639 nvidia,pins = "pu0";
640 nvidia,function = "rsvd4";
641 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
642 nvidia,tristate = <TEGRA_PIN_DISABLE>;
643 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
644 };
645 bt_dev_wake {
646 nvidia,pins = "pu1";
647 nvidia,function = "rsvd1";
648 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
649 nvidia,tristate = <TEGRA_PIN_DISABLE>;
650 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
651 };
652 bt_host_wake {
653 nvidia,pins = "pu6";
654 nvidia,function = "rsvd4";
655 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
656 nvidia,tristate = <TEGRA_PIN_DISABLE>;
657 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
658 };
659
660 pu2 {
661 nvidia,pins = "pu2";
662 nvidia,function = "rsvd1";
663 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
664 nvidia,tristate = <TEGRA_PIN_DISABLE>;
665 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
666 };
667 pu3 {
668 nvidia,pins = "pu3";
669 nvidia,function = "rsvd4";
670 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
671 nvidia,tristate = <TEGRA_PIN_DISABLE>;
672 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
673 };
674 pcc1 {
675 nvidia,pins = "pcc1";
676 nvidia,function = "rsvd2";
677 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
678 nvidia,tristate = <TEGRA_PIN_ENABLE>;
679 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
680 };
681 pv2 {
682 nvidia,pins = "pv2";
683 nvidia,function = "rsvd2";
684 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
685 nvidia,tristate = <TEGRA_PIN_DISABLE>;
686 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
687 };
688 pv3 {
689 nvidia,pins = "pv3";
690 nvidia,function = "rsvd2";
691 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
692 nvidia,tristate = <TEGRA_PIN_ENABLE>;
693 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
694 };
695 vi_vsync_pd6 {
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200696 nvidia,pins = "vi_d0_pt4",
697 "vi_d10_pt2",
698 "vi_vsync_pd6",
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200699 "vi_hsync_pd7";
700 nvidia,function = "rsvd2";
701 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
702 nvidia,tristate = <TEGRA_PIN_DISABLE>;
703 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200704 nvidia,lock = <1>;
705 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200706 };
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200707 pbb0 {
708 nvidia,pins = "pbb0";
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200709 nvidia,function = "rsvd2";
710 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
711 nvidia,tristate = <TEGRA_PIN_DISABLE>;
712 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
713 };
714
715 kb_row0_pr0 {
716 nvidia,pins = "kb_row0_pr0";
717 nvidia,function = "rsvd4";
718 nvidia,pull = <TEGRA_PIN_PULL_UP>;
719 nvidia,tristate = <TEGRA_PIN_DISABLE>;
720 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
721 };
722
723 gmi_ad0_pg0 {
724 nvidia,pins = "gmi_ad0_pg0",
725 "gmi_ad1_pg1",
726 "gmi_ad2_pg2",
727 "gmi_ad3_pg3",
728 "gmi_ad6_pg6",
729 "gmi_ad7_pg7",
730 "gmi_wr_n_pi0",
731 "gmi_oe_n_pi1",
732 "gmi_dqs_pi2",
733 "gmi_adv_n_pk0",
734 "gmi_clk_pk1";
735 nvidia,function = "nand";
736 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
737 nvidia,tristate = <TEGRA_PIN_ENABLE>;
738 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
739 };
740 gmi_ad13_ph5 {
741 nvidia,pins = "gmi_ad13_ph5";
742 nvidia,function = "nand";
743 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
744 nvidia,tristate = <TEGRA_PIN_DISABLE>;
745 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
746 };
747 gmi_ad10_ph2 {
748 nvidia,pins = "gmi_ad10_ph2",
749 "gmi_ad11_ph3",
750 "gmi_ad14_ph6";
751 nvidia,function = "nand";
752 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
753 nvidia,tristate = <TEGRA_PIN_DISABLE>;
754 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
755 };
756 gmi_ad12_ph4 {
757 nvidia,pins = "gmi_ad12_ph4",
758 "gmi_rst_n_pi4",
759 "gmi_cs7_n_pi6";
760 nvidia,function = "nand";
761 nvidia,pull = <TEGRA_PIN_PULL_UP>;
762 nvidia,tristate = <TEGRA_PIN_DISABLE>;
763 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
764 };
765
766 /* Vibrator control */
767 vibrator {
768 nvidia,pins = "gmi_ad11_ph3";
769 nvidia,function = "nand";
770 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
771 nvidia,tristate = <TEGRA_PIN_DISABLE>;
772 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
773 };
774
775 /* PWM pinmux */
776 pwm_0 {
777 nvidia,pins = "gmi_ad8_ph0";
778 nvidia,function = "pwm0";
779 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
780 nvidia,tristate = <TEGRA_PIN_DISABLE>;
781 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
782 };
783 pwm_1 {
784 nvidia,pins = "gmi_ad9_ph1";
785 nvidia,function = "pwm1";
786 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
787 nvidia,tristate = <TEGRA_PIN_DISABLE>;
788 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
789 };
790 pwm_2 {
791 nvidia,pins = "pu5";
792 nvidia,function = "pwm2";
793 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
794 nvidia,tristate = <TEGRA_PIN_DISABLE>;
795 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
796 };
797
798 gmi_cs_n {
799 nvidia,pins = "gmi_cs4_n_pk2",
800 "gmi_cs6_n_pi3";
801 nvidia,function = "gmi";
802 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
803 nvidia,tristate = <TEGRA_PIN_ENABLE>;
804 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
805 };
806
807 /* Spdif pinmux */
808 spdif_out {
809 nvidia,pins = "spdif_out_pk5";
810 nvidia,function = "spdif";
811 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
812 nvidia,tristate = <TEGRA_PIN_ENABLE>;
813 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
814 };
815 spdif_in {
816 nvidia,pins = "spdif_in_pk6";
817 nvidia,function = "spdif";
818 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
819 nvidia,tristate = <TEGRA_PIN_ENABLE>;
820 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
821 };
822
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200823 vi_d4 {
824 nvidia,pins = "vi_d4_pl2",
825 "vi_d6_pl4";
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200826 nvidia,function = "vi";
827 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
828 nvidia,tristate = <TEGRA_PIN_DISABLE>;
829 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200830 nvidia,lock = <1>;
831 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200832 };
833 vi_mclk_pt1 {
834 nvidia,pins = "vi_mclk_pt1";
835 nvidia,function = "vi";
836 nvidia,pull = <TEGRA_PIN_PULL_UP>;
837 nvidia,tristate = <TEGRA_PIN_DISABLE>;
838 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Svyatoslav Ryhel6b5f84b2024-01-19 13:28:54 +0200839 nvidia,lock = <1>;
840 nvidia,io-reset = <1>;
Svyatoslav Ryhelf3947d42023-11-27 19:20:21 +0200841 };
842
843 jtag {
844 nvidia,pins = "jtag_rtck_pu7";
845 nvidia,function = "rtck";
846 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
847 nvidia,tristate = <TEGRA_PIN_DISABLE>;
848 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
849 };
850
851 crt_sync {
852 nvidia,pins = "crt_hsync_pv6",
853 "crt_vsync_pv7";
854 nvidia,function = "crt";
855 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
856 nvidia,tristate = <TEGRA_PIN_ENABLE>;
857 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
858 };
859
860 clk1_out {
861 nvidia,pins = "clk1_out_pw4";
862 nvidia,function = "extperiph1";
863 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
864 nvidia,tristate = <TEGRA_PIN_DISABLE>;
865 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
866 };
867 clk2_out {
868 nvidia,pins = "clk2_out_pw5";
869 nvidia,function = "extperiph2";
870 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
871 nvidia,tristate = <TEGRA_PIN_DISABLE>;
872 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
873 };
874 clk3_out {
875 nvidia,pins = "clk3_out_pee0";
876 nvidia,function = "extperiph3";
877 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
878 nvidia,tristate = <TEGRA_PIN_ENABLE>;
879 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
880 };
881
882 sys_clk_req {
883 nvidia,pins = "sys_clk_req_pz5";
884 nvidia,function = "sysclk";
885 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
886 nvidia,tristate = <TEGRA_PIN_DISABLE>;
887 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
888 };
889
890 pbb3 {
891 nvidia,pins = "pbb3";
892 nvidia,function = "vgp3";
893 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
894 nvidia,tristate = <TEGRA_PIN_DISABLE>;
895 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
896 };
897 pbb4 {
898 nvidia,pins = "pbb4";
899 nvidia,function = "vgp4";
900 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
901 nvidia,tristate = <TEGRA_PIN_DISABLE>;
902 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
903 };
904 pbb5 {
905 nvidia,pins = "pbb5";
906 nvidia,function = "vgp5";
907 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
908 nvidia,tristate = <TEGRA_PIN_DISABLE>;
909 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
910 };
911
912 clk2_req_pcc5 {
913 nvidia,pins = "clk2_req_pcc5",
914 "clk1_req_pee2";
915 nvidia,function = "dap";
916 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
917 nvidia,tristate = <TEGRA_PIN_DISABLE>;
918 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
919 };
920
921 clk3_req_pee1 {
922 nvidia,pins = "clk3_req_pee1";
923 nvidia,function = "dev3";
924 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
925 nvidia,tristate = <TEGRA_PIN_ENABLE>;
926 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
927 };
928
929 owr {
930 nvidia,pins = "owr";
931 nvidia,function = "owr";
932 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
933 nvidia,tristate = <TEGRA_PIN_DISABLE>;
934 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
935 };
936
937 /* GPIO power/drive control */
938 drive_dap1 {
939 nvidia,pins = "drive_dap1",
940 "drive_dap2",
941 "drive_dbg",
942 "drive_at5",
943 "drive_gme",
944 "drive_ddc",
945 "drive_ao1",
946 "drive_uart3";
947 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
948 nvidia,schmitt = <TEGRA_PIN_ENABLE>;
949 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
950 nvidia,pull-down-strength = <31>;
951 nvidia,pull-up-strength = <31>;
952 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
953 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
954 };
955 drive_sdio1 {
956 nvidia,pins = "drive_sdio1",
957 "drive_sdio3";
958 nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
959 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
960 nvidia,pull-down-strength = <46>;
961 nvidia,pull-up-strength = <42>;
962 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
963 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
964 };
965 drive_sdmmc4 {
966 nvidia,pins = "drive_gma",
967 "drive_gmb",
968 "drive_gmc",
969 "drive_gmd";
970 nvidia,pull-down-strength = <9>;
971 nvidia,pull-up-strength = <9>;
972 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
973 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
974 };
975 };
976 };
977
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +0300978 uarta: serial@70006000 {
979 status = "okay";
980 };
981
982 pwm: pwm@7000a000 {
983 status = "okay";
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +0300984 };
985
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +0300986 pwr_i2c: i2c@7000d000 {
987 status = "okay";
988 clock-frequency = <400000>;
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +0300989
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +0300990 /* Texas Instruments TPS659110 PMIC */
991 pmic: tps65911@2d {
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +0300992 compatible = "ti,tps65911";
993 reg = <0x2d>;
994
995 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
996 #interrupt-cells = <2>;
997 interrupt-controller;
998
999 ti,system-power-controller;
1000
1001 #gpio-cells = <2>;
1002 gpio-controller;
1003
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001004 regulators {
1005 vdd_1v2_bl: vdd1 {
1006 regulator-name = "vdd_1v2_backlight";
1007 regulator-min-microvolt = <1200000>;
1008 regulator-max-microvolt = <1200000>;
Svyatoslav Ryhelbf732172023-08-26 18:39:29 +03001009 regulator-boot-on;
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001010 };
1011
1012 vcore_lcd: vdd2 {
1013 regulator-name = "vcore_lcd";
1014 regulator-min-microvolt = <1500000>;
1015 regulator-max-microvolt = <1500000>;
Svyatoslav Ryhelbf732172023-08-26 18:39:29 +03001016 regulator-boot-on;
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001017 };
1018
1019 vdd_1v8_vio: vddio {
1020 regulator-name = "vdd_1v8_gen";
1021 regulator-min-microvolt = <1800000>;
1022 regulator-max-microvolt = <1800000>;
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001023 regulator-always-on;
1024 regulator-boot-on;
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001025 };
1026
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001027 /* eMMC VDD */
1028 vcore_emmc: ldo1 {
1029 regulator-name = "vdd_emmc_core";
1030 regulator-min-microvolt = <3300000>;
1031 regulator-max-microvolt = <3300000>;
Svyatoslav Ryhelbf732172023-08-26 18:39:29 +03001032 regulator-boot-on;
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001033 };
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001034
1035 /* uSD slot VDDIO */
1036 vddio_usd: ldo5 {
1037 regulator-name = "vddio_sdmmc";
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001038 regulator-min-microvolt = <3300000>;
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001039 regulator-max-microvolt = <3300000>;
1040 regulator-always-on;
1041 };
1042
1043 avdd_dsi_csi: ldo6 {
1044 regulator-name = "avdd_dsi_csi";
1045 regulator-min-microvolt = <1200000>;
1046 regulator-max-microvolt = <1200000>;
Svyatoslav Ryhelbf732172023-08-26 18:39:29 +03001047 regulator-boot-on;
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001048 };
1049 };
1050 };
1051 };
1052
1053 spi4: spi@7000da00 {
1054 status = "okay";
1055 spi-max-frequency = <25000000>;
1056
1057 spi-flash@1 {
1058 compatible = "winbond,w25q32", "jedec,spi-nor";
1059 reg = <1>;
1060 spi-max-frequency = <20000000>;
1061 };
1062 };
1063
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001064 sdmmc1: sdhci@78000000 {
1065 status = "okay";
1066 bus-width = <4>;
1067
1068 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
1069 power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
1070
1071 vmmc-supply = <&vdd_usd>;
1072 vqmmc-supply = <&vddio_usd>;
1073 };
1074
1075 sdmmc4: sdhci@78000600 {
1076 status = "okay";
1077 bus-width = <8>;
1078 non-removable;
1079
1080 vmmc-supply = <&vcore_emmc>;
1081 vqmmc-supply = <&vdd_1v8_vio>;
1082 };
1083
1084 /* USB via ASUS connector */
1085 usb1: usb@7d000000 {
1086 status = "okay";
1087 dr_mode = "otg";
1088 };
1089
Svyatoslav Ryhel6c438612023-08-25 20:23:14 +03001090 usb-phy@7d000000 {
1091 status = "okay";
1092 nvidia,hssync-start-delay = <0>;
1093 nvidia,xcvr-lsfslew = <2>;
1094 nvidia,xcvr-lsrslew = <2>;
1095 };
1096
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001097 /* Dock's USB port */
1098 usb3: usb@7d008000 {
1099 status = "okay";
1100 };
1101
Svyatoslav Ryhel6c438612023-08-25 20:23:14 +03001102 usb-phy@7d008000 {
1103 status = "okay";
1104 };
1105
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001106 backlight: backlight {
1107 compatible = "pwm-backlight";
1108
1109 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001110 power-supply = <&vdd_1v2_bl>;
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001111 pwms = <&pwm 0 71428>;
1112
1113 brightness-levels = <1 35 70 105 140 175 210 255>;
1114 default-brightness-level = <5>;
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001115 };
1116
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001117 /* PMIC has a built-in 32KHz oscillator which is used by PMC */
1118 clk32k_in: clock-32k {
1119 compatible = "fixed-clock";
1120 #clock-cells = <0>;
1121 clock-frequency = <32768>;
1122 clock-output-names = "pmic-oscillator";
1123 };
1124
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001125 gpio-keys {
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001126 compatible = "gpio-keys";
1127
1128 key-power {
1129 label = "Power";
1130 gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
1131 linux,code = <KEY_ENTER>;
1132 };
1133
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001134 key-volume-up {
1135 label = "Volume Up";
1136 gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>;
1137 linux,code = <KEY_UP>;
1138 };
1139
1140 key-volume-down {
1141 label = "Volume Down";
1142 gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_LOW>;
1143 linux,code = <KEY_DOWN>;
1144 };
1145 };
1146
Svyatoslav Ryhelb5e3b352023-10-03 09:36:33 +03001147 panel: panel {
1148 compatible = "hydis,hv101hd1";
1149
1150 vdd-supply = <&vcore_lcd>;
1151 enable-gpios = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
1152
1153 backlight = <&backlight>;
1154 };
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001155
1156 vdd_usd: regulator-usd {
1157 compatible = "regulator-fixed";
1158 regulator-name = "vdd_usd";
1159 regulator-min-microvolt = <3300000>;
1160 regulator-max-microvolt = <3300000>;
1161 };
Svyatoslav Ryhel7a25c382023-06-30 10:29:03 +03001162};