Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3588-jaguar.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2023 Theobroma Systems Design und Consulting GmbH
4 */
5
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/soc/rockchip,vop2.h>
12 #include <dt-bindings/usb/pd.h>
13 #include "rk8xx.h"
14 #include "rk3588.dtsi"
15
16 / {
17 model = "Theobroma Systems RK3588-SBC Jaguar";
18 compatible = "tsd,rk3588-jaguar", "rockchip,rk3588";
19
20 adc-keys {
21 compatible = "adc-keys";
22 io-channels = <&saradc 0>;
23 io-channel-names = "buttons";
24 keyup-threshold-microvolt = <1800000>;
25 poll-interval = <100>;
26
27 /* Can be controlled through SW2 but also GPIO1 on CP2102 on P20 */
28 button-bios-disable {
29 label = "BIOS_DISABLE";
30 linux,code = <KEY_VENDOR>;
31 press-threshold-microvolt = <0>;
32 };
33 };
34
35 aliases {
36 ethernet0 = &gmac0;
37 i2c10 = &i2c10;
38 mmc0 = &sdhci;
39 mmc1 = &sdmmc;
40 rtc0 = &rtc_twi;
41 };
42
43 chosen {
44 stdout-path = "serial2:115200n8";
45 };
46
47 /* DCIN is 12-24V but standard is 12V */
48 dc_12v: regulator-dc-12v {
49 compatible = "regulator-fixed";
50 regulator-name = "dc_12v";
51 regulator-always-on;
52 regulator-boot-on;
53 regulator-min-microvolt = <12000000>;
54 regulator-max-microvolt = <12000000>;
55 };
56
57 emmc_pwrseq: emmc-pwrseq {
58 compatible = "mmc-pwrseq-emmc";
59 pinctrl-0 = <&emmc_reset>;
60 pinctrl-names = "default";
61 reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
62 };
63
64 hdmi-con {
65 compatible = "hdmi-connector";
66 type = "a";
67
68 port {
69 hdmi_con_in: endpoint {
70 remote-endpoint = <&hdmi0_out_con>;
71 };
72 };
73 };
74
75 leds {
76 compatible = "gpio-leds";
77 pinctrl-names = "default";
78 pinctrl-0 = <&led1_pin>;
79
80 /* LED1 on PCB */
81 led-1 {
82 gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
83 function = LED_FUNCTION_HEARTBEAT;
84 linux,default-trigger = "heartbeat";
85 color = <LED_COLOR_ID_AMBER>;
86 };
87 };
88
89 /*
90 * 100MHz reference clock for PCIe peripherals from PI6C557-05BLE
91 * clock generator.
92 * The clock output is gated via the OE pin on the clock generator.
93 * This is modeled as a fixed-clock plus a gpio-gate-clock.
94 */
95 pcie_refclk_gen: pcie-refclk-gen-clock {
96 compatible = "fixed-clock";
97 #clock-cells = <0>;
98 clock-frequency = <100000000>;
99 };
100
101 pcie_refclk: pcie-refclk-clock {
102 compatible = "gpio-gate-clock";
103 clocks = <&pcie_refclk_gen>;
104 #clock-cells = <0>;
105 enable-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>; /* PCIE30X4_CLKREQN_M0 */
106 pinctrl-names = "default";
107 pinctrl-0 = <&pcie30x4_clkreqn_m0>;
108 };
109
110 pps {
111 compatible = "pps-gpio";
112 gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
113 };
114
115 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
116 compatible = "regulator-fixed";
117 regulator-name = "vcc_1v1_nldo_s3";
118 regulator-always-on;
119 regulator-boot-on;
120 regulator-min-microvolt = <1100000>;
121 regulator-max-microvolt = <1100000>;
122 vin-supply = <&vcc5v0_sys>;
123 };
124
125 vcc_1v2_s3: regulator-vcc-1v2-s3 {
126 compatible = "regulator-fixed";
127 regulator-name = "vcc_1v2_s3";
128 regulator-always-on;
129 regulator-boot-on;
130 regulator-min-microvolt = <1200000>;
131 regulator-max-microvolt = <1200000>;
132 vin-supply = <&vcc5v0_sys>;
133 };
134
135 /* Exposed on P14 and P15 */
136 vcc_2v8_s3: regulator-vcc-2v8-s3 {
137 compatible = "regulator-fixed";
138 regulator-name = "vcc_2v8_s3";
139 regulator-always-on;
140 regulator-boot-on;
141 regulator-min-microvolt = <2800000>;
142 regulator-max-microvolt = <2800000>;
143 vin-supply = <&vcc_3v3_s3>;
144 };
145
146 vcc_5v0_usb_a: regulator-vcc-5v0-usb-a {
147 compatible = "regulator-fixed";
148 regulator-name = "usb_a_vcc";
149 regulator-min-microvolt = <5000000>;
150 regulator-max-microvolt = <5000000>;
151 vin-supply = <&vcc5v0_sys>;
152 gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
153 enable-active-high;
154 };
155
156 vcc_5v0_usb_c1: regulator-vcc-5v0-usb-c1 {
157 compatible = "regulator-fixed";
158 regulator-name = "5v_usbc1";
159 regulator-min-microvolt = <5000000>;
160 regulator-max-microvolt = <5000000>;
161 vin-supply = <&vcc5v0_usb>;
162 gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
163 enable-active-high;
164 };
165
166 vcc_5v0_usb_c2: regulator-vcc-5v0-usb-c2 {
167 compatible = "regulator-fixed";
168 regulator-name = "5v_usbc2";
169 regulator-min-microvolt = <5000000>;
170 regulator-max-microvolt = <5000000>;
171 vin-supply = <&vcc5v0_usb>;
172 gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
173 enable-active-high;
174 };
175
176 vcc3v3_mdot2: regulator-vcc3v3-mdot2 {
177 compatible = "regulator-fixed";
178 regulator-name = "vcc3v3_mdot2";
179 regulator-always-on;
180 regulator-boot-on;
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
183 vin-supply = <&dc_12v>;
184 };
185
186 vcc5v0_sys: regulator-vcc5v0-sys {
187 compatible = "regulator-fixed";
188 regulator-name = "vcc5v0_sys";
189 regulator-always-on;
190 regulator-boot-on;
191 regulator-min-microvolt = <5000000>;
192 regulator-max-microvolt = <5000000>;
193 vin-supply = <&dc_12v>;
194 };
195
196 vcc5v0_usb: regulator-vcc5v0-usb {
197 compatible = "regulator-fixed";
198 regulator-name = "vcc5v0_usb";
199 regulator-always-on;
200 regulator-boot-on;
201 regulator-min-microvolt = <5000000>;
202 regulator-max-microvolt = <5000000>;
203 vin-supply = <&vcc5v0_sys>;
204 };
205 };
206
207 &combphy1_ps {
208 status = "okay";
209 };
210
211 &cpu_b0 {
212 cpu-supply = <&vdd_cpu_big0_s0>;
213 };
214
215 &cpu_b1 {
216 cpu-supply = <&vdd_cpu_big0_s0>;
217 };
218
219 &cpu_b2 {
220 cpu-supply = <&vdd_cpu_big1_s0>;
221 };
222
223 &cpu_b3 {
224 cpu-supply = <&vdd_cpu_big1_s0>;
225 };
226
227 &cpu_l0 {
228 cpu-supply = <&vdd_cpu_lit_s0>;
229 };
230
231 &cpu_l1 {
232 cpu-supply = <&vdd_cpu_lit_s0>;
233 };
234
235 &cpu_l2 {
236 cpu-supply = <&vdd_cpu_lit_s0>;
237 };
238
239 &cpu_l3 {
240 cpu-supply = <&vdd_cpu_lit_s0>;
241 };
242
243 &gmac0 {
244 clock_in_out = "output";
245 phy-handle = <&rgmii_phy>;
246 phy-mode = "rgmii";
247 phy-supply = <&vcc_1v2_s3>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&gmac0_miim
250 &gmac0_rx_bus2
251 &gmac0_tx_bus2
252 &gmac0_rgmii_clk
253 &gmac0_rgmii_bus
254 &eth0_pins
255 &eth_reset>;
256 tx_delay = <0x10>;
257 rx_delay = <0x10>;
258 snps,reset-gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_LOW>;
259 snps,reset-active-low;
260 snps,reset-delays-us = <0 10000 100000>;
261
262 status = "okay";
263 };
264
265 &gpio1 {
266 mdot2e-w-disable1-n-hog {
267 gpios = <RK_PB1 GPIO_ACTIVE_LOW>;
268 output-low;
269 line-name = "m.2 E-key W_DISABLE1#";
270 gpio-hog;
271 };
272 };
273
274 &gpio4 {
275 mdot2e-w-disable2-n-hog {
276 gpios = <RK_PC1 GPIO_ACTIVE_LOW>;
277 output-low;
278 line-name = "m.2 E-key W_DISABLE2#";
279 gpio-hog;
280 };
281 };
282
283 &gpu {
284 mali-supply = <&vdd_gpu_s0>;
285 status = "okay";
286 };
287
288 &hdmi0 {
289 /* No CEC on Jaguar */
290 pinctrl-names = "default";
291 pinctrl-0 = <&hdmim0_tx0_hpd &hdmim0_tx0_scl &hdmim0_tx0_sda>;
292 status = "okay";
293 };
294
295 &hdmi0_in {
296 hdmi0_in_vp0: endpoint {
297 remote-endpoint = <&vp0_out_hdmi0>;
298 };
299 };
300
301 &hdmi0_out {
302 hdmi0_out_con: endpoint {
303 remote-endpoint = <&hdmi_con_in>;
304 };
305 };
306
307 &hdmi0_sound {
308 status = "okay";
309 };
310
311 &hdptxphy0 {
312 status = "okay";
313 };
314
315 &i2c0 {
316 pinctrl-0 = <&i2c0m2_xfer>;
317 status = "okay";
318
319 fan@18 {
320 compatible = "tsd,mule", "ti,amc6821";
321 reg = <0x18>;
322
323 i2c-mux {
324 compatible = "tsd,mule-i2c-mux";
325 #address-cells = <1>;
326 #size-cells = <0>;
327
328 i2c10: i2c@0 {
329 reg = <0x0>;
330 #address-cells = <1>;
331 #size-cells = <0>;
332
333 rtc_twi: rtc@6f {
334 compatible = "isil,isl1208";
335 reg = <0x6f>;
336 };
337 };
338 };
339 };
340
341 typec-portc@22 {
342 compatible = "fcs,fusb302";
343 reg = <0x22>;
344 interrupt-parent = <&gpio4>;
345 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
346 pinctrl-names = "default";
347 pinctrl-0 = <&cc_int1>;
348 vbus-supply = <&vcc_5v0_usb_c1>;
349
350 connector {
351 compatible = "usb-c-connector";
352 data-role = "dual";
353 label = "USBC-1 P11";
354 power-role = "source";
355 self-powered;
356 source-pdos =
357 <PDO_FIXED(5000, 1500, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM)>;
358 vbus-supply = <&vcc_5v0_usb_c1>;
359
360 ports {
361 #address-cells = <1>;
362 #size-cells = <0>;
363
364 port@0 {
365 reg = <0>;
366
367 usbc0_hs: endpoint {
368 remote-endpoint = <&usb_host0_xhci_drd_sw>;
369 };
370 };
371
372 port@1 {
373 reg = <1>;
374
375 usbc0_ss: endpoint {
376 remote-endpoint = <&usbdp_phy0_typec_ss>;
377 };
378 };
379
380 port@2 {
381 reg = <2>;
382
383 usbc0_sbu: endpoint {
384 remote-endpoint = <&usbdp_phy0_typec_sbu>;
385 };
386 };
387 };
388 };
389 };
390
391 vdd_npu_s0: regulator@42 {
392 compatible = "rockchip,rk8602";
393 reg = <0x42>;
394 fcs,suspend-voltage-selector = <1>;
395 regulator-name = "vdd_npu_s0";
396 regulator-boot-on;
397 regulator-min-microvolt = <550000>;
398 regulator-max-microvolt = <950000>;
399 regulator-ramp-delay = <2300>;
400 vin-supply = <&vcc5v0_sys>;
401
402 regulator-state-mem {
403 regulator-off-in-suspend;
404 };
405 };
406
407 vdd_cpu_big1_s0: regulator@43 {
408 compatible = "rockchip,rk8603", "rockchip,rk8602";
409 reg = <0x43>;
410 fcs,suspend-voltage-selector = <1>;
411 regulator-name = "vdd_cpu_big1_s0";
412 regulator-always-on;
413 regulator-boot-on;
414 regulator-min-microvolt = <550000>;
415 regulator-max-microvolt = <1050000>;
416 regulator-ramp-delay = <2300>;
417 vin-supply = <&vcc5v0_sys>;
418
419 regulator-state-mem {
420 regulator-off-in-suspend;
421 };
422 };
423 };
424
425 &i2c1 {
426 pinctrl-0 = <&i2c1m4_xfer>;
427 };
428
429 &i2c6 {
430 pinctrl-0 = <&i2c6m4_xfer>;
431 };
432
433 &i2c7 {
434 status = "okay";
435
436 /* SE050 Secure Element at 0x48; GPIO1_A4 for enable pin */
437
438 /* Also on 0x55 */
439 eeprom@54 {
440 compatible = "st,24c04", "atmel,24c04";
441 reg = <0x54>;
442 pagesize = <16>;
443 vcc-supply = <&vcc_3v3_s3>;
444 };
445 };
446
447 &i2c8 {
448 pinctrl-0 = <&i2c8m2_xfer>;
449 status = "okay";
450
451 typec-portc@22 {
452 compatible = "fcs,fusb302";
453 reg = <0x22>;
454 interrupt-parent = <&gpio4>;
455 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
456 pinctrl-names = "default";
457 pinctrl-0 = <&cc_int2>;
458 vbus-supply = <&vcc_5v0_usb_c2>;
459
460 connector {
461 compatible = "usb-c-connector";
462 data-role = "dual";
463 label = "USBC-2 P12";
464 power-role = "source";
465 self-powered;
466 source-pdos =
467 <PDO_FIXED(5000, 1500, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM)>;
468 vbus-supply = <&vcc_5v0_usb_c2>;
469
470 ports {
471 #address-cells = <1>;
472 #size-cells = <0>;
473
474 port@0 {
475 reg = <0>;
476
477 usbc1_hs: endpoint {
478 remote-endpoint = <&usb_host1_xhci_drd_sw>;
479 };
480 };
481
482 port@1 {
483 reg = <1>;
484
485 usbc1_ss: endpoint {
486 remote-endpoint = <&usbdp_phy1_typec_ss>;
487 };
488 };
489
490 port@2 {
491 reg = <2>;
492
493 usbc1_sbu: endpoint {
494 remote-endpoint = <&usbdp_phy1_typec_sbu>;
495 };
496 };
497 };
498 };
499 };
500
501 vdd_cpu_big0_s0: regulator@42 {
502 compatible = "rockchip,rk8602";
503 reg = <0x42>;
504 fcs,suspend-voltage-selector = <1>;
505 regulator-name = "vdd_cpu_big0_s0";
506 regulator-always-on;
507 regulator-boot-on;
508 regulator-min-microvolt = <550000>;
509 regulator-max-microvolt = <1050000>;
510 regulator-ramp-delay = <2300>;
511 vin-supply = <&vcc5v0_sys>;
512
513 regulator-state-mem {
514 regulator-off-in-suspend;
515 };
516 };
517 };
518
519 &i2s5_8ch {
520 status = "okay";
521 };
522
523 &mdio0 {
524 rgmii_phy: ethernet-phy@6 {
525 /* KSZ9031 or KSZ9131 */
526 compatible = "ethernet-phy-ieee802.3-c22";
527 reg = <0x6>;
528 clocks = <&cru REFCLKO25M_ETH0_OUT>;
529 };
530 };
531
532 &pcie2x1l0 {
533 reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; /* WIFI_PERST0# */
534 vpcie3v3-supply = <&vcc3v3_mdot2>;
535 status = "okay";
536 };
537
538 &pcie30phy {
539 status = "okay";
540 };
541
542 &pcie3x4 {
543 /*
544 * The board has a gpio-controlled "pcie_refclk" generator,
545 * so add it to the list of clocks.
546 */
547 clocks = <&cru ACLK_PCIE_4L_MSTR>, <&cru ACLK_PCIE_4L_SLV>,
548 <&cru ACLK_PCIE_4L_DBI>, <&cru PCLK_PCIE_4L>,
549 <&cru CLK_PCIE_AUX0>, <&cru CLK_PCIE4L_PIPE>,
550 <&pcie_refclk>;
551 clock-names = "aclk_mst", "aclk_slv",
552 "aclk_dbi", "pclk",
553 "aux", "pipe",
554 "ref";
555 pinctrl-names = "default";
556 pinctrl-0 = <&pcie30x4_waken_m0 &pcie30x4_perstn_m0>;
557 reset-gpios = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>; /* PCIE30X4_PERSTN_M0 */
558 vpcie3v3-supply = <&vcc3v3_mdot2>;
559 status = "okay";
560 };
561
562 &pd_gpu {
563 domain-supply = <&vdd_gpu_s0>;
564 };
565
566 &pd_npu {
567 domain-supply = <&vdd_npu_s0>;
568 };
569
570 &pinctrl {
571 emmc {
572 emmc_reset: emmc-reset {
573 rockchip,pins = <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
574 };
575 };
576
577 ethernet {
578 eth_reset: eth-reset {
579 rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
580 };
581 };
582
583 leds {
584 led1_pin: led1-pin {
585 rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
586 };
587 };
588
589 pcie30x4 {
590 pcie30x4_clkreqn_m0: pcie30x4-clkreqn-m0 {
591 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
592 };
593
594 pcie30x4_perstn_m0: pcie30x4-perstn-m0 {
595 rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
596 };
597
598 pcie30x4_waken_m0: pcie30x4-waken-m0 {
599 rockchip,pins = <0 RK_PC7 12 &pcfg_pull_none>;
600 };
601 };
602
603 usb3 {
604 cc_int1: cc-int1 {
605 rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
606 };
607
608 cc_int2: cc-int2 {
609 rockchip,pins = <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
610 };
611
612 typec0_sbu_dc_pins: typec0-sbu-dc-pins {
613 rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>,
614 <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_down>;
615 };
616
617 typec1_sbu_dc_pins: typec1-sbu-dc-pins {
618 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>,
619 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
620 };
621 };
622 };
623
624 &rknn_core_0 {
625 npu-supply = <&vdd_npu_s0>;
626 sram-supply = <&vdd_npu_s0>;
627 status = "okay";
628 };
629
630 &rknn_core_1 {
631 npu-supply = <&vdd_npu_s0>;
632 sram-supply = <&vdd_npu_s0>;
633 status = "okay";
634 };
635
636 &rknn_core_2 {
637 npu-supply = <&vdd_npu_s0>;
638 sram-supply = <&vdd_npu_s0>;
639 status = "okay";
640 };
641
642 &rknn_mmu_0 {
643 status = "okay";
644 };
645
646 &rknn_mmu_1 {
647 status = "okay";
648 };
649
650 &rknn_mmu_2 {
651 status = "okay";
652 };
653
654 &saradc {
655 vref-supply = <&vcc_1v8_s0>;
656 status = "okay";
657 };
658
659 &sdhci {
660 bus-width = <8>;
661 cap-mmc-highspeed;
662 mmc-ddr-1_8v;
663 mmc-hs200-1_8v;
664 mmc-hs400-1_8v;
665 mmc-hs400-enhanced-strobe;
666 mmc-pwrseq = <&emmc_pwrseq>;
667 no-sdio;
668 no-sd;
669 non-removable;
670 pinctrl-names = "default";
671 pinctrl-0 = <&emmc_bus8 &emmc_cmd &emmc_clk &emmc_data_strobe>;
672 vmmc-supply = <&vcc_3v3_s3>;
673 vqmmc-supply = <&vcc_1v8_s3>;
674 status = "okay";
675 };
676
677 &sdmmc {
678 broken-cd;
679 bus-width = <4>;
680 cap-sd-highspeed;
681 disable-wp;
682 max-frequency = <150000000>;
683 pinctrl-names = "default";
684 pinctrl-0 = <&sdmmc_bus4 &sdmmc_cmd &sdmmc_clk>;
685 sd-uhs-sdr12;
686 sd-uhs-sdr25;
687 sd-uhs-sdr50;
688 sd-uhs-ddr50;
689 sd-uhs-sdr104;
690 vmmc-supply = <&vcc_3v3_s3>;
691 vqmmc-supply = <&vccio_sd_s0>;
692 status = "okay";
693 };
694
695 &spi2 {
696 assigned-clocks = <&cru CLK_SPI2>;
697 assigned-clock-rates = <200000000>;
698 num-cs = <1>;
699 pinctrl-names = "default";
700 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
701 status = "okay";
702
703 pmic@0 {
704 compatible = "rockchip,rk806";
705 reg = <0x0>;
706 interrupt-parent = <&gpio0>;
707 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
708 gpio-controller;
709 #gpio-cells = <2>;
710 pinctrl-names = "default";
711 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
712 <&rk806_dvs2_null>, <&rk806_dvs3_null>;
713 spi-max-frequency = <1000000>;
714 system-power-controller;
715 vcc1-supply = <&vcc5v0_sys>;
716 vcc2-supply = <&vcc5v0_sys>;
717 vcc3-supply = <&vcc5v0_sys>;
718 vcc4-supply = <&vcc5v0_sys>;
719 vcc5-supply = <&vcc5v0_sys>;
720 vcc6-supply = <&vcc5v0_sys>;
721 vcc7-supply = <&vcc5v0_sys>;
722 vcc8-supply = <&vcc5v0_sys>;
723 vcc9-supply = <&vcc5v0_sys>;
724 vcc10-supply = <&vcc5v0_sys>;
725 vcc11-supply = <&vcc_2v0_pldo_s3>;
726 vcc12-supply = <&vcc5v0_sys>;
727 vcc13-supply = <&vcc_1v1_nldo_s3>;
728 vcc14-supply = <&vcc_1v1_nldo_s3>;
729 vcca-supply = <&vcc5v0_sys>;
730 rockchip,reset-mode = <RK806_RESTART>;
731
732 rk806_dvs1_null: dvs1-null-pins {
733 pins = "gpio_pwrctrl1";
734 function = "pin_fun0";
735 };
736
737 rk806_dvs2_null: dvs2-null-pins {
738 pins = "gpio_pwrctrl2";
739 function = "pin_fun0";
740 };
741
742 rk806_dvs3_null: dvs3-null-pins {
743 pins = "gpio_pwrctrl3";
744 function = "pin_fun0";
745 };
746
747 regulators {
748 vdd_gpu_s0: dcdc-reg1 {
749 regulator-boot-on;
750 regulator-min-microvolt = <550000>;
751 regulator-max-microvolt = <950000>;
752 regulator-ramp-delay = <12500>;
753 regulator-name = "vdd_gpu_s0";
754 regulator-enable-ramp-delay = <400>;
755
756 regulator-state-mem {
757 regulator-off-in-suspend;
758 };
759 };
760
761 vdd_cpu_lit_s0: dcdc-reg2 {
762 regulator-name = "vdd_cpu_lit_s0";
763 regulator-always-on;
764 regulator-boot-on;
765 regulator-min-microvolt = <550000>;
766 regulator-max-microvolt = <950000>;
767 regulator-ramp-delay = <12500>;
768
769 regulator-state-mem {
770 regulator-off-in-suspend;
771 };
772 };
773
774 vdd_log_s0: dcdc-reg3 {
775 regulator-name = "vdd_log_s0";
776 regulator-always-on;
777 regulator-boot-on;
778 regulator-min-microvolt = <675000>;
779 regulator-max-microvolt = <750000>;
780 regulator-ramp-delay = <12500>;
781
782 regulator-state-mem {
783 regulator-off-in-suspend;
784 regulator-suspend-microvolt = <750000>;
785 };
786 };
787
788 vdd_vdenc_s0: dcdc-reg4 {
789 regulator-name = "vdd_vdenc_s0";
790 regulator-always-on;
791 regulator-boot-on;
792 regulator-min-microvolt = <550000>;
793 regulator-max-microvolt = <950000>;
794 regulator-ramp-delay = <12500>;
795
796 regulator-state-mem {
797 regulator-off-in-suspend;
798 };
799 };
800
801 vdd_ddr_s0: dcdc-reg5 {
802 regulator-name = "vdd_ddr_s0";
803 regulator-always-on;
804 regulator-boot-on;
805 regulator-min-microvolt = <675000>;
806 regulator-max-microvolt = <900000>;
807 regulator-ramp-delay = <12500>;
808
809 regulator-state-mem {
810 regulator-off-in-suspend;
811 regulator-suspend-microvolt = <850000>;
812 };
813 };
814
815 vdd2_ddr_s3: dcdc-reg6 {
816 regulator-name = "vdd2_ddr_s3";
817 regulator-always-on;
818 regulator-boot-on;
819
820 regulator-state-mem {
821 regulator-on-in-suspend;
822 };
823 };
824
825 vcc_2v0_pldo_s3: dcdc-reg7 {
826 regulator-name = "vdd_2v0_pldo_s3";
827 regulator-always-on;
828 regulator-boot-on;
829 regulator-min-microvolt = <2000000>;
830 regulator-max-microvolt = <2000000>;
831 regulator-ramp-delay = <12500>;
832
833 regulator-state-mem {
834 regulator-on-in-suspend;
835 regulator-suspend-microvolt = <2000000>;
836 };
837 };
838
839 vcc_3v3_s3: dcdc-reg8 {
840 regulator-name = "vcc_3v3_s3";
841 regulator-always-on;
842 regulator-boot-on;
843 regulator-min-microvolt = <3300000>;
844 regulator-max-microvolt = <3300000>;
845
846 regulator-state-mem {
847 regulator-on-in-suspend;
848 regulator-suspend-microvolt = <3300000>;
849 };
850 };
851
852 vddq_ddr_s0: dcdc-reg9 {
853 regulator-name = "vddq_ddr_s0";
854 regulator-always-on;
855 regulator-boot-on;
856
857 regulator-state-mem {
858 regulator-off-in-suspend;
859 };
860 };
861
862 vcc_1v8_s3: dcdc-reg10 {
863 regulator-name = "vcc_1v8_s3";
864 regulator-always-on;
865 regulator-boot-on;
866 regulator-min-microvolt = <1800000>;
867 regulator-max-microvolt = <1800000>;
868
869 regulator-state-mem {
870 regulator-on-in-suspend;
871 regulator-suspend-microvolt = <1800000>;
872 };
873 };
874
875 vcca_1v8_s0: pldo-reg1 {
876 regulator-name = "vcca_1v8_s0";
877 regulator-always-on;
878 regulator-boot-on;
879 regulator-min-microvolt = <1800000>;
880 regulator-max-microvolt = <1800000>;
881
882 regulator-state-mem {
883 regulator-off-in-suspend;
884 };
885 };
886
887 vcc_1v8_s0: pldo-reg2 {
888 regulator-name = "vcc_1v8_s0";
889 regulator-always-on;
890 regulator-boot-on;
891 regulator-min-microvolt = <1800000>;
892 regulator-max-microvolt = <1800000>;
893
894 regulator-state-mem {
895 regulator-off-in-suspend;
896 regulator-suspend-microvolt = <1800000>;
897 };
898 };
899
900 vdda_1v2_s0: pldo-reg3 {
901 regulator-name = "vdda_1v2_s0";
902 regulator-always-on;
903 regulator-boot-on;
904 regulator-min-microvolt = <1200000>;
905 regulator-max-microvolt = <1200000>;
906
907 regulator-state-mem {
908 regulator-off-in-suspend;
909 };
910 };
911
912 vcca_3v3_s0: pldo-reg4 {
913 regulator-name = "vcca_3v3_s0";
914 regulator-always-on;
915 regulator-boot-on;
916 regulator-min-microvolt = <3300000>;
917 regulator-max-microvolt = <3300000>;
918 regulator-ramp-delay = <12500>;
919
920 regulator-state-mem {
921 regulator-off-in-suspend;
922 };
923 };
924
925 vccio_sd_s0: pldo-reg5 {
926 regulator-name = "vccio_sd_s0";
927 regulator-always-on;
928 regulator-boot-on;
929 regulator-min-microvolt = <1800000>;
930 regulator-max-microvolt = <3300000>;
931 regulator-ramp-delay = <12500>;
932
933 regulator-state-mem {
934 regulator-off-in-suspend;
935 };
936 };
937
938 pldo6_s3: pldo-reg6 {
939 regulator-name = "pldo6_s3";
940 regulator-always-on;
941 regulator-boot-on;
942 regulator-min-microvolt = <1800000>;
943 regulator-max-microvolt = <1800000>;
944
945 regulator-state-mem {
946 regulator-on-in-suspend;
947 regulator-suspend-microvolt = <1800000>;
948 };
949 };
950
951 vdd_0v75_s3: nldo-reg1 {
952 regulator-name = "vdd_0v75_s3";
953 regulator-always-on;
954 regulator-boot-on;
955 regulator-min-microvolt = <750000>;
956 regulator-max-microvolt = <750000>;
957
958 regulator-state-mem {
959 regulator-on-in-suspend;
960 regulator-suspend-microvolt = <750000>;
961 };
962 };
963
964 vdda_ddr_pll_s0: nldo-reg2 {
965 regulator-name = "vdda_ddr_pll_s0";
966 regulator-always-on;
967 regulator-boot-on;
968 regulator-min-microvolt = <850000>;
969 regulator-max-microvolt = <850000>;
970
971 regulator-state-mem {
972 regulator-off-in-suspend;
973 regulator-suspend-microvolt = <850000>;
974 };
975 };
976
977 vdda_0v75_s0: nldo-reg3 {
978 regulator-name = "vdda_0v75_s0";
979 regulator-always-on;
980 regulator-boot-on;
981 regulator-min-microvolt = <750000>;
982 regulator-max-microvolt = <750000>;
983
984 regulator-state-mem {
985 regulator-off-in-suspend;
986 };
987 };
988
989 vdda_0v85_s0: nldo-reg4 {
990 regulator-name = "vdda_0v85_s0";
991 regulator-always-on;
992 regulator-boot-on;
993 regulator-min-microvolt = <850000>;
994 regulator-max-microvolt = <850000>;
995
996 regulator-state-mem {
997 regulator-off-in-suspend;
998 };
999 };
1000
1001 vdd_0v75_s0: nldo-reg5 {
1002 regulator-name = "vdd_0v75_s0";
1003 regulator-always-on;
1004 regulator-boot-on;
1005 regulator-min-microvolt = <750000>;
1006 regulator-max-microvolt = <750000>;
1007
1008 regulator-state-mem {
1009 regulator-off-in-suspend;
1010 };
1011 };
1012 };
1013 };
1014 };
1015
1016 &tsadc {
1017 status = "okay";
1018 };
1019
1020 /* USB-C P11 connector */
1021 &u2phy0 {
1022 status = "okay";
1023 };
1024
1025 &u2phy0_otg {
1026 status = "okay";
1027 };
1028
1029 /* USB-C P12 connector */
1030 &u2phy1 {
1031 status = "okay";
1032 };
1033
1034 &u2phy1_otg {
1035 status = "okay";
1036 };
1037
1038 &u2phy2 {
1039 status = "okay";
1040 };
1041
1042 &u2phy2_host {
1043 phy-supply = <&vcc_5v0_usb_a>;
1044 status = "okay";
1045 };
1046
1047 &u2phy3 {
1048 status = "okay";
1049 };
1050
1051 &u2phy3_host {
1052 status = "okay";
1053 };
1054
1055 /* Mule-ATtiny debug UART; typically baudrate 9600 */
1056 &uart0 {
1057 pinctrl-0 = <&uart0m0_xfer>;
1058 status = "okay";
1059 };
1060
1061 /* Main debug interface on P20 micro-USB B port and P21 header */
1062 &uart2 {
1063 pinctrl-0 = <&uart2m0_xfer>;
1064 status = "okay";
1065 };
1066
1067 /* RS485 on P19 */
1068 &uart3 {
1069 pinctrl-0 = <&uart3m2_xfer &uart3_rtsn>;
1070 linux,rs485-enabled-at-boot-time;
1071 status = "okay";
1072 };
1073
1074 /* Mule-ATtiny UPDI flashing UART */
1075 &uart7 {
1076 pinctrl-0 = <&uart7m0_xfer>;
1077 status = "okay";
1078 };
1079
1080 /* Type-C on P11 */
1081 &usbdp_phy0 {
1082 orientation-switch;
1083 pinctrl-names = "default";
1084 pinctrl-0 = <&typec0_sbu_dc_pins>;
1085 sbu1-dc-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; /* Q7_USB_C0_SBU1_DC */
1086 sbu2-dc-gpios = <&gpio1 RK_PC3 GPIO_ACTIVE_HIGH>; /* Q7_USB_C0_SBU2_DC */
1087 status = "okay";
1088
1089 port {
1090 #address-cells = <1>;
1091 #size-cells = <0>;
1092
1093 usbdp_phy0_typec_ss: endpoint@0 {
1094 reg = <0>;
1095 remote-endpoint = <&usbc0_ss>;
1096 };
1097
1098 usbdp_phy0_typec_sbu: endpoint@1 {
1099 reg = <1>;
1100 remote-endpoint = <&usbc0_sbu>;
1101 };
1102 };
1103 };
1104
1105 /* Type-C on P12 */
1106 &usbdp_phy1 {
1107 orientation-switch;
1108 pinctrl-names = "default";
1109 pinctrl-0 = <&typec1_sbu_dc_pins>;
1110 sbu1-dc-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; /* Q7_USB_C1_SBU1_DC */
1111 sbu2-dc-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; /* Q7_USB_C1_SBU2_DC */
1112 status = "okay";
1113
1114 port {
1115 #address-cells = <1>;
1116 #size-cells = <0>;
1117
1118 usbdp_phy1_typec_ss: endpoint@0 {
1119 reg = <0>;
1120 remote-endpoint = <&usbc1_ss>;
1121 };
1122
1123 usbdp_phy1_typec_sbu: endpoint@1 {
1124 reg = <1>;
1125 remote-endpoint = <&usbc1_sbu>;
1126 };
1127 };
1128 };
1129
1130 /* host0 on P10 USB-A */
1131 &usb_host0_ehci {
1132 status = "okay";
1133 };
1134
1135 /* host0 on P10 USB-A */
1136 &usb_host0_ohci {
1137 status = "okay";
1138 };
1139
1140 /* host0 on P11 USB-C */
1141 &usb_host0_xhci {
1142 usb-role-switch;
1143 status = "okay";
1144
1145 port {
1146 #address-cells = <1>;
1147 #size-cells = <0>;
1148
1149 usb_host0_xhci_drd_sw: endpoint {
1150 remote-endpoint = <&usbc0_hs>;
1151 };
1152 };
1153 };
1154
1155 /* host1 on P12 USB-C */
1156 &usb_host1_xhci {
1157 usb-role-switch;
1158 status = "okay";
1159
1160 port {
1161 #address-cells = <1>;
1162 #size-cells = <0>;
1163
1164 usb_host1_xhci_drd_sw: endpoint {
1165 remote-endpoint = <&usbc1_hs>;
1166 };
1167 };
1168 };
1169
1170 /* host1 on M.2 E-key */
1171 &usb_host1_ehci {
1172 status = "okay";
1173 };
1174
1175 /* host1 on M.2 E-key */
1176 &usb_host1_ohci {
1177 status = "okay";
1178 };
1179
1180 &vop {
1181 status = "okay";
1182 };
1183
1184 &vop_mmu {
1185 status = "okay";
1186 };
1187
1188 &vp0 {
1189 vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
1190 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
1191 remote-endpoint = <&hdmi0_in_vp0>;
1192 };
1193 };