Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3576-evb1-v10.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2024 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7 /dts-v1/;
8
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/pinctrl/rockchip.h>
13 #include <dt-bindings/soc/rockchip,vop2.h>
14 #include "rk3576.dtsi"
15
16 / {
17 model = "Rockchip RK3576 EVB V10 Board";
18 compatible = "rockchip,rk3576-evb1-v10", "rockchip,rk3576";
19
20 aliases {
21 ethernet0 = &gmac0;
22 ethernet1 = &gmac1;
23 };
24
25 chosen: chosen {
26 stdout-path = "serial0:1500000n8";
27 };
28
29 adc_keys: adc-keys {
30 compatible = "adc-keys";
31 io-channels = <&saradc 1>;
32 io-channel-names = "buttons";
33 keyup-threshold-microvolt = <1800000>;
34 poll-interval = <100>;
35
36 button-back {
37 label = "back";
38 linux,code = <KEY_BACK>;
39 press-threshold-microvolt = <1235000>;
40 };
41
42 button-menu {
43 label = "menu";
44 linux,code = <KEY_MENU>;
45 press-threshold-microvolt = <890000>;
46 };
47
48 button-vol-down {
49 label = "volume down";
50 linux,code = <KEY_VOLUMEDOWN>;
51 press-threshold-microvolt = <417000>;
52 };
53
54 button-vol-up {
55 label = "volume up";
56 linux,code = <KEY_VOLUMEUP>;
57 press-threshold-microvolt = <17000>;
58 };
59 };
60
61 hdmi-con {
62 compatible = "hdmi-connector";
63 type = "a";
64
65 port {
66 hdmi_con_in: endpoint {
67 remote-endpoint = <&hdmi_out_con>;
68 };
69 };
70 };
71
72 leds: leds {
73 compatible = "gpio-leds";
74
75 work_led: led-0 {
76 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
77 linux,default-trigger = "heartbeat";
78 };
79 };
80
81 vbus5v0_typec: regulator-vbus5v0-typec {
82 compatible = "regulator-fixed";
83 regulator-name = "vbus5v0_typec";
84 regulator-min-microvolt = <5000000>;
85 regulator-max-microvolt = <5000000>;
86 enable-active-high;
87 gpio = <&gpio0 RK_PD1 GPIO_ACTIVE_HIGH>;
88 vin-supply = <&vcc5v0_device>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&usb_otg0_pwren>;
91 };
92
93 vcc12v_dcin: regulator-vcc12v-dcin {
94 compatible = "regulator-fixed";
95 regulator-name = "vcc12v_dcin";
96 regulator-always-on;
97 regulator-boot-on;
98 regulator-min-microvolt = <12000000>;
99 regulator-max-microvolt = <12000000>;
100 };
101
102 vcc1v2_ufs_vccq_s0: regulator-vcc1v2-ufs-vccq-s0 {
103 compatible = "regulator-fixed";
104 regulator-name = "vcc1v2_ufs_vccq_s0";
105 regulator-boot-on;
106 regulator-always-on;
107 regulator-min-microvolt = <1200000>;
108 regulator-max-microvolt = <1200000>;
109 vin-supply = <&vcc_sys>;
110 };
111
112 vcc1v8_ufs_vccq2_s0: regulator-vcc1v8-ufs-vccq2-s0 {
113 compatible = "regulator-fixed";
114 regulator-name = "vcc1v8_ufs_vccq2_s0";
115 regulator-boot-on;
116 regulator-always-on;
117 regulator-min-microvolt = <1800000>;
118 regulator-max-microvolt = <1800000>;
119 vin-supply = <&vcc_1v8_s3>;
120 };
121
122 vcc3v3_lcd_n: regulator-vcc3v3-lcd0-n {
123 compatible = "regulator-fixed";
124 regulator-name = "vcc3v3_lcd0_n";
125 regulator-boot-on;
126 enable-active-high;
127 gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
128 vin-supply = <&vcc_3v3_s0>;
129 };
130
131 vcc3v3_pcie1: regulator-vcc3v3-pcie1 {
132 compatible = "regulator-fixed";
133 regulator-name = "vcc3v3_pcie1";
134 regulator-min-microvolt = <3300000>;
135 regulator-max-microvolt = <3300000>;
136 enable-active-high;
137 gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
138 startup-delay-us = <5000>;
139 vin-supply = <&vcc12v_dcin>;
140 };
141
142 vcc3v3_rtc_s5: regulator-vcc3v3-rtc-s5 {
143 compatible = "regulator-fixed";
144 regulator-name = "vcc3v3_rtc_s5";
145 regulator-boot-on;
146 regulator-always-on;
147 regulator-min-microvolt = <3300000>;
148 regulator-max-microvolt = <3300000>;
149 vin-supply = <&vcc_sys>;
150 };
151
152 vcc5v0_device: regulator-vcc5v0-device {
153 compatible = "regulator-fixed";
154 regulator-name = "vcc5v0_device";
155 regulator-always-on;
156 regulator-boot-on;
157 regulator-min-microvolt = <5000000>;
158 regulator-max-microvolt = <5000000>;
159 vin-supply = <&vcc12v_dcin>;
160 };
161
162 vcc5v0_host: regulator-vcc5v0-host {
163 compatible = "regulator-fixed";
164 regulator-name = "vcc5v0_host";
165 regulator-boot-on;
166 regulator-always-on;
167 regulator-min-microvolt = <5000000>;
168 regulator-max-microvolt = <5000000>;
169 enable-active-high;
170 gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
171 vin-supply = <&vcc5v0_device>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&usb_host_pwren>;
174 };
175
176 vcc_sys: regulator-vcc5v0-sys {
177 compatible = "regulator-fixed";
178 regulator-name = "vcc_sys";
179 regulator-always-on;
180 regulator-boot-on;
181 regulator-min-microvolt = <5000000>;
182 regulator-max-microvolt = <5000000>;
183 vin-supply = <&vcc12v_dcin>;
184 };
185
186 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
187 compatible = "regulator-fixed";
188 regulator-name = "vcc_1v1_nldo_s3";
189 regulator-boot-on;
190 regulator-always-on;
191 regulator-min-microvolt = <1100000>;
192 regulator-max-microvolt = <1100000>;
193 vin-supply = <&vcc_sys>;
194 };
195
196 vcc_1v8_s0: regulator-vcc-1v8-s0 {
197 compatible = "regulator-fixed";
198 regulator-name = "vcc_1v8_s0";
199 regulator-boot-on;
200 regulator-always-on;
201 regulator-min-microvolt = <1800000>;
202 regulator-max-microvolt = <1800000>;
203 vin-supply = <&vcc_1v8_s3>;
204 };
205
206 vcc_2v0_pldo_s3: regulator-vcc-2v0-pldo-s3 {
207 compatible = "regulator-fixed";
208 regulator-name = "vcc_2v0_pldo_s3";
209 regulator-boot-on;
210 regulator-always-on;
211 regulator-min-microvolt = <2000000>;
212 regulator-max-microvolt = <2000000>;
213 vin-supply = <&vcc_sys>;
214 };
215
216 vcc_3v3_s0: regulator-vcc-3v3-s0 {
217 compatible = "regulator-fixed";
218 regulator-name = "vcc_3v3_s0";
219 regulator-boot-on;
220 regulator-always-on;
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
223 vin-supply = <&vcc_3v3_s3>;
224 };
225
226 vcc3v3_sd: regulator-vcc-3v3-sd {
227 compatible = "regulator-fixed";
228 enable-active-high;
229 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
230 pinctrl-names = "default";
231 pinctrl-0 = <&sdmmc_pwren>;
232 regulator-name = "vcc3v3_sd";
233 regulator-min-microvolt = <3300000>;
234 regulator-max-microvolt = <3300000>;
235 vin-supply = <&vcc_3v3_s0>;
236 };
237
238 vcc_ufs_s0: regulator-vcc-ufs-s0 {
239 compatible = "regulator-fixed";
240 regulator-name = "vcc_ufs_s0";
241 regulator-boot-on;
242 regulator-always-on;
243 regulator-min-microvolt = <3300000>;
244 regulator-max-microvolt = <3300000>;
245 vin-supply = <&vcc_sys>;
246 };
247
248 vcc_wifi_reg_on: regulator-wifi-reg-on {
249 compatible = "regulator-fixed";
250 enable-active-high;
251 gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>;
252 pinctrl-0 = <&wifi_reg_on>;
253 pinctrl-names = "default";
254 regulator-name = "wifi_reg_on";
255 regulator-always-on;
256 regulator-boot-on;
257 regulator-min-microvolt = <1800000>;
258 regulator-max-microvolt = <1800000>;
259 vin-supply = <&vcc_1v8_s3>;
260 };
261
262 sound {
263 compatible = "simple-audio-card";
264 pinctrl-names = "default";
265 pinctrl-0 = <&hp_det>;
266 simple-audio-card,name = "On-board Analog ES8388";
267 simple-audio-card,aux-devs = <&hp_power>, <&spk_power>;
268 simple-audio-card,bitclock-master = <&masterdai>;
269 simple-audio-card,format = "i2s";
270 simple-audio-card,frame-master = <&masterdai>;
271 simple-audio-card,hp-det-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
272 simple-audio-card,mclk-fs = <256>;
273 simple-audio-card,routing =
274 "Headphone Power INL", "LOUT1",
275 "Headphone Power INR", "ROUT1",
276 "Speaker Power INL", "LOUT2",
277 "Speaker Power INR", "ROUT2",
278 "Headphones", "Headphone Power OUTL",
279 "Headphones", "Headphone Power OUTR",
280 "Speaker", "Speaker Power OUTL",
281 "Speaker", "Speaker Power OUTR",
282 "LINPUT1", "Main Mic",
283 "LINPUT2", "Main Mic",
284 "RINPUT1", "Headset Mic",
285 "RINPUT2", "Headset Mic";
286 simple-audio-card,widgets =
287 "Microphone", "Main Mic",
288 "Microphone", "Headset Mic",
289 "Headphone", "Headphones",
290 "Speaker", "Speaker";
291
292 simple-audio-card,cpu {
293 sound-dai = <&sai1>;
294 };
295
296 masterdai: simple-audio-card,codec {
297 sound-dai = <&es8388>;
298 system-clock-frequency = <12288000>;
299 };
300 };
301
302 hp_power: headphone-amplifier {
303 compatible = "simple-audio-amplifier";
304 enable-gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
305 pinctrl-names = "default";
306 pinctrl-0 = <&hp_ctl>;
307 sound-name-prefix = "Headphone Power";
308 };
309
310 spk_power: speaker-amplifier {
311 compatible = "simple-audio-amplifier";
312 enable-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
313 pinctrl-names = "default";
314 pinctrl-0 = <&spk_ctl>;
315 sound-name-prefix = "Speaker Power";
316 VCC-supply = <&vcc5v0_device>;
317 };
318 };
319
320 &cpu_l0 {
321 cpu-supply = <&vdd_cpu_lit_s0>;
322 };
323
324 &cpu_b0 {
325 cpu-supply = <&vdd_cpu_big_s0>;
326 };
327
328 &combphy0_ps {
329 status = "okay";
330 };
331
332 &combphy1_psu {
333 status = "okay";
334 };
335
336 &gmac0 {
337 clock_in_out = "output";
338 phy-mode = "rgmii-rxid";
339 phy-handle = <&rgmii_phy0>;
340 pinctrl-names = "default";
341 pinctrl-0 = <&eth0m0_miim
342 &eth0m0_tx_bus2
343 &eth0m0_rx_bus2
344 &eth0m0_rgmii_clk
345 &eth0m0_rgmii_bus
346 &ethm0_clk0_25m_out>;
347 tx_delay = <0x21>;
348 status = "okay";
349 };
350
351 &gmac1 {
352 clock_in_out = "output";
353 phy-handle = <&rgmii_phy1>;
354 phy-mode = "rgmii-rxid";
355 pinctrl-names = "default";
356 pinctrl-0 = <&eth1m0_miim
357 &eth1m0_tx_bus2
358 &eth1m0_rx_bus2
359 &eth1m0_rgmii_clk
360 &eth1m0_rgmii_bus
361 &ethm0_clk1_25m_out>;
362 tx_delay = <0x20>;
363 status = "okay";
364 };
365
366 &gpu {
367 mali-supply = <&vdd_gpu_s0>;
368 status = "okay";
369 };
370
371 &hdmi {
372 status = "okay";
373 };
374
375 &hdmi_in {
376 hdmi_in_vp0: endpoint {
377 remote-endpoint = <&vp0_out_hdmi>;
378 };
379 };
380
381 &hdmi_out {
382 hdmi_out_con: endpoint {
383 remote-endpoint = <&hdmi_con_in>;
384 };
385 };
386
387 &hdmi_sound {
388 status = "okay";
389 };
390
391 &hdptxphy {
392 status = "okay";
393 };
394
395 &i2c1 {
396 status = "okay";
397
398 rk806: pmic@23 {
399 compatible = "rockchip,rk806";
400 reg = <0x23>;
401 interrupt-parent = <&gpio0>;
402 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
403 gpio-controller;
404 #gpio-cells = <2>;
405 pinctrl-names = "default";
406 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
407 <&rk806_dvs2_null>, <&rk806_dvs3_null>;
408 system-power-controller;
409
410 vcc1-supply = <&vcc_sys>;
411 vcc2-supply = <&vcc_sys>;
412 vcc3-supply = <&vcc_sys>;
413 vcc4-supply = <&vcc_sys>;
414 vcc5-supply = <&vcc_sys>;
415 vcc6-supply = <&vcc_sys>;
416 vcc7-supply = <&vcc_sys>;
417 vcc8-supply = <&vcc_sys>;
418 vcc9-supply = <&vcc_sys>;
419 vcc10-supply = <&vcc_sys>;
420 vcc11-supply = <&vcc_2v0_pldo_s3>;
421 vcc12-supply = <&vcc_sys>;
422 vcc13-supply = <&vcc_1v1_nldo_s3>;
423 vcc14-supply = <&vcc_1v1_nldo_s3>;
424 vcca-supply = <&vcc_sys>;
425
426 rk806_dvs1_null: dvs1-null-pins {
427 pins = "gpio_pwrctrl1";
428 function = "pin_fun0";
429 };
430
431 rk806_dvs2_null: dvs2-null-pins {
432 pins = "gpio_pwrctrl2";
433 function = "pin_fun0";
434 };
435
436 rk806_dvs3_null: dvs3-null-pins {
437 pins = "gpio_pwrctrl3";
438 function = "pin_fun0";
439 };
440
441 rk806_dvs1_slp: dvs1-slp-pins {
442 pins = "gpio_pwrctrl1";
443 function = "pin_fun1";
444 };
445
446 rk806_dvs1_pwrdn: dvs1-pwrdn-pins {
447 pins = "gpio_pwrctrl1";
448 function = "pin_fun2";
449 };
450
451 rk806_dvs1_rst: dvs1-rst-pins {
452 pins = "gpio_pwrctrl1";
453 function = "pin_fun3";
454 };
455
456 rk806_dvs2_slp: dvs2-slp-pins {
457 pins = "gpio_pwrctrl2";
458 function = "pin_fun1";
459 };
460
461 rk806_dvs2_pwrdn: dvs2-pwrdn-pins {
462 pins = "gpio_pwrctrl2";
463 function = "pin_fun2";
464 };
465
466 rk806_dvs2_rst: dvs2-rst-pins {
467 pins = "gpio_pwrctrl2";
468 function = "pin_fun3";
469 };
470
471 rk806_dvs2_dvs: dvs2-dvs-pins {
472 pins = "gpio_pwrctrl2";
473 function = "pin_fun4";
474 };
475
476 rk806_dvs2_gpio: dvs2-gpio-pins {
477 pins = "gpio_pwrctrl2";
478 function = "pin_fun5";
479 };
480
481 rk806_dvs3_slp: dvs3-slp-pins {
482 pins = "gpio_pwrctrl3";
483 function = "pin_fun1";
484 };
485
486 rk806_dvs3_pwrdn: dvs3-pwrdn-pins {
487 pins = "gpio_pwrctrl3";
488 function = "pin_fun2";
489 };
490
491 rk806_dvs3_rst: dvs3-rst-pins {
492 pins = "gpio_pwrctrl3";
493 function = "pin_fun3";
494 };
495
496 rk806_dvs3_dvs: dvs3-dvs-pins {
497 pins = "gpio_pwrctrl3";
498 function = "pin_fun4";
499 };
500
501 rk806_dvs3_gpio: dvs3-gpio-pins {
502 pins = "gpio_pwrctrl3";
503 function = "pin_fun5";
504 };
505
506 regulators {
507 vdd_cpu_big_s0: dcdc-reg1 {
508 regulator-always-on;
509 regulator-boot-on;
510 regulator-min-microvolt = <550000>;
511 regulator-max-microvolt = <950000>;
512 regulator-ramp-delay = <12500>;
513 regulator-name = "vdd_cpu_big_s0";
514 regulator-enable-ramp-delay = <400>;
515
516 regulator-state-mem {
517 regulator-off-in-suspend;
518 };
519 };
520
521 vdd_npu_s0: dcdc-reg2 {
522 regulator-boot-on;
523 regulator-min-microvolt = <550000>;
524 regulator-max-microvolt = <950000>;
525 regulator-ramp-delay = <12500>;
526 regulator-name = "vdd_npu_s0";
527 regulator-enable-ramp-delay = <400>;
528
529 regulator-state-mem {
530 regulator-off-in-suspend;
531 };
532 };
533
534 vdd_cpu_lit_s0: dcdc-reg3 {
535 regulator-always-on;
536 regulator-boot-on;
537 regulator-min-microvolt = <550000>;
538 regulator-max-microvolt = <950000>;
539 regulator-ramp-delay = <12500>;
540 regulator-name = "vdd_cpu_lit_s0";
541
542 regulator-state-mem {
543 regulator-off-in-suspend;
544 regulator-suspend-microvolt = <750000>;
545 };
546 };
547
548 vcc_3v3_s3: dcdc-reg4 {
549 regulator-always-on;
550 regulator-boot-on;
551 regulator-min-microvolt = <3300000>;
552 regulator-max-microvolt = <3300000>;
553 regulator-name = "vcc_3v3_s3";
554
555 regulator-state-mem {
556 regulator-on-in-suspend;
557 regulator-suspend-microvolt = <3300000>;
558 };
559 };
560
561 vdd_gpu_s0: dcdc-reg5 {
562 regulator-boot-on;
563 regulator-min-microvolt = <550000>;
564 regulator-max-microvolt = <900000>;
565 regulator-ramp-delay = <12500>;
566 regulator-name = "vdd_gpu_s0";
567 regulator-enable-ramp-delay = <400>;
568
569 regulator-state-mem {
570 regulator-off-in-suspend;
571 regulator-suspend-microvolt = <850000>;
572 };
573 };
574
575 vddq_ddr_s0: dcdc-reg6 {
576 regulator-always-on;
577 regulator-boot-on;
578 regulator-name = "vddq_ddr_s0";
579
580 regulator-state-mem {
581 regulator-off-in-suspend;
582 };
583 };
584
585 vdd_logic_s0: dcdc-reg7 {
586 regulator-always-on;
587 regulator-boot-on;
588 regulator-min-microvolt = <550000>;
589 regulator-max-microvolt = <800000>;
590 regulator-name = "vdd_logic_s0";
591
592 regulator-state-mem {
593 regulator-off-in-suspend;
594 };
595 };
596
597 vcc_1v8_s3: dcdc-reg8 {
598 regulator-always-on;
599 regulator-boot-on;
600 regulator-min-microvolt = <1800000>;
601 regulator-max-microvolt = <1800000>;
602 regulator-name = "vcc_1v8_s3";
603
604 regulator-state-mem {
605 regulator-on-in-suspend;
606 regulator-suspend-microvolt = <1800000>;
607 };
608 };
609
610 vdd2_ddr_s3: dcdc-reg9 {
611 regulator-always-on;
612 regulator-boot-on;
613 regulator-name = "vdd2_ddr_s3";
614
615 regulator-state-mem {
616 regulator-on-in-suspend;
617 };
618 };
619
620 vdd_ddr_s0: dcdc-reg10 {
621 regulator-always-on;
622 regulator-boot-on;
623 regulator-min-microvolt = <550000>;
624 regulator-max-microvolt = <1200000>;
625 regulator-name = "vdd_ddr_s0";
626
627 regulator-state-mem {
628 regulator-off-in-suspend;
629 };
630 };
631
632 vcca_1v8_s0: pldo-reg1 {
633 regulator-always-on;
634 regulator-boot-on;
635 regulator-min-microvolt = <1800000>;
636 regulator-max-microvolt = <1800000>;
637 regulator-name = "vcca_1v8_s0";
638
639 regulator-state-mem {
640 regulator-off-in-suspend;
641 };
642 };
643
644 vcca1v8_pldo2_s0: pldo-reg2 {
645 regulator-always-on;
646 regulator-boot-on;
647 regulator-min-microvolt = <1800000>;
648 regulator-max-microvolt = <1800000>;
649 regulator-name = "vcca1v8_pldo2_s0";
650
651 regulator-state-mem {
652 regulator-off-in-suspend;
653 };
654 };
655
656 vdda_1v2_s0: pldo-reg3 {
657 regulator-always-on;
658 regulator-boot-on;
659 regulator-min-microvolt = <1200000>;
660 regulator-max-microvolt = <1200000>;
661 regulator-name = "vdda_1v2_s0";
662
663 regulator-state-mem {
664 regulator-off-in-suspend;
665 };
666 };
667
668 vcca_3v3_s0: pldo-reg4 {
669 regulator-always-on;
670 regulator-boot-on;
671 regulator-min-microvolt = <3300000>;
672 regulator-max-microvolt = <3300000>;
673 regulator-name = "vcca_3v3_s0";
674
675 regulator-state-mem {
676 regulator-off-in-suspend;
677 };
678 };
679
680 vccio_sd_s0: pldo-reg5 {
681 regulator-always-on;
682 regulator-boot-on;
683 regulator-min-microvolt = <1800000>;
684 regulator-max-microvolt = <3300000>;
685 regulator-name = "vccio_sd_s0";
686
687 regulator-state-mem {
688 regulator-off-in-suspend;
689 };
690 };
691
692 vcca1v8_pldo6_s3: pldo-reg6 {
693 regulator-always-on;
694 regulator-boot-on;
695 regulator-min-microvolt = <1800000>;
696 regulator-max-microvolt = <1800000>;
697 regulator-name = "vcca1v8_pldo6_s3";
698
699 regulator-state-mem {
700 regulator-on-in-suspend;
701 regulator-suspend-microvolt = <1800000>;
702 };
703 };
704
705 vdd_0v75_s3: nldo-reg1 {
706 regulator-always-on;
707 regulator-boot-on;
708 regulator-min-microvolt = <550000>;
709 regulator-max-microvolt = <750000>;
710 regulator-name = "vdd_0v75_s3";
711
712 regulator-state-mem {
713 regulator-on-in-suspend;
714 regulator-suspend-microvolt = <750000>;
715 };
716 };
717
718 vdda_ddr_pll_s0: nldo-reg2 {
719 regulator-always-on;
720 regulator-boot-on;
721 regulator-min-microvolt = <850000>;
722 regulator-max-microvolt = <850000>;
723 regulator-name = "vdda_ddr_pll_s0";
724
725 regulator-state-mem {
726 regulator-off-in-suspend;
727 };
728 };
729
730 vdda0v75_hdmi_s0: nldo-reg3 {
731 regulator-boot-on;
732 regulator-min-microvolt = <837500>;
733 regulator-max-microvolt = <837500>;
734 regulator-name = "vdda0v75_hdmi_s0";
735
736 regulator-state-mem {
737 regulator-off-in-suspend;
738 };
739 };
740
741 vdda_0v85_s0: nldo-reg4 {
742 regulator-always-on;
743 regulator-boot-on;
744 regulator-min-microvolt = <850000>;
745 regulator-max-microvolt = <850000>;
746 regulator-name = "vdda_0v85_s0";
747
748 regulator-state-mem {
749 regulator-off-in-suspend;
750 };
751 };
752
753 vdda_0v75_s0: nldo-reg5 {
754 regulator-always-on;
755 regulator-boot-on;
756 regulator-min-microvolt = <750000>;
757 regulator-max-microvolt = <750000>;
758 regulator-name = "vdda_0v75_s0";
759
760 regulator-state-mem {
761 regulator-off-in-suspend;
762 };
763 };
764 };
765 };
766 };
767
768 &i2c2 {
769 status = "okay";
770
771 hym8563: rtc@51 {
772 compatible = "haoyu,hym8563";
773 reg = <0x51>;
774 clock-output-names = "hym8563";
775 interrupt-parent = <&gpio0>;
776 interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>;
777 pinctrl-names = "default";
778 pinctrl-0 = <&rtc_int>;
779 wakeup-source;
780 #clock-cells = <0>;
781 };
782 };
783
784 &i2c3 {
785 status = "okay";
786
787 es8388: audio-codec@10 {
788 compatible = "everest,es8388", "everest,es8328";
789 reg = <0x10>;
790 AVDD-supply = <&vcca_3v3_s0>;
791 DVDD-supply = <&vcc_1v8_s0>;
792 HPVDD-supply = <&vcca_3v3_s0>;
793 PVDD-supply = <&vcc_1v8_s0>;
794 assigned-clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>;
795 assigned-clock-rates = <12288000>;
796 clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>;
797 pinctrl-names = "default";
798 pinctrl-0 = <&sai1m0_mclk>;
799 #sound-dai-cells = <0>;
800 };
801 };
802
803 &mdio0 {
804 rgmii_phy0: ethernet-phy@1 {
805 compatible = "ethernet-phy-id001c.c916";
806 reg = <0x1>;
807 clocks = <&cru REFCLKO25M_GMAC0_OUT>;
808 assigned-clocks = <&cru REFCLKO25M_GMAC0_OUT>;
809 assigned-clock-rates = <25000000>;
810 pinctrl-names = "default";
811 pinctrl-0 = <&rgmii_phy0_rst>;
812 reset-assert-us = <20000>;
813 reset-deassert-us = <100000>;
814 reset-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
815 };
816 };
817
818 &mdio1 {
819 rgmii_phy1: ethernet-phy@1 {
820 compatible = "ethernet-phy-id001c.c916";
821 reg = <0x1>;
822 clocks = <&cru REFCLKO25M_GMAC1_OUT>;
823 assigned-clocks = <&cru REFCLKO25M_GMAC1_OUT>;
824 assigned-clock-rates = <25000000>;
825 pinctrl-names = "default";
826 pinctrl-0 = <&rgmii_phy1_rst>;
827 reset-assert-us = <20000>;
828 reset-deassert-us = <100000>;
829 reset-gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;
830 };
831 };
832
833 &pcie0 {
834 pinctrl-names = "default";
835 pinctrl-0 = <&pcie0_rst>;
836 reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
837 vpcie3v3-supply = <&vcc_3v3_s3>;
838 status = "okay";
839
840 pcie@0,0 {
841 reg = <0x0 0 0 0 0>;
842 bus-range = <0x0 0xf>;
843 device_type = "pci";
844 ranges;
845 #address-cells = <3>;
846 #size-cells = <2>;
847
848 wifi: wifi@0,0 {
849 compatible = "pci14e4,449d";
850 reg = <0x10000 0 0 0 0>;
851 clocks = <&hym8563>;
852 clock-names = "lpo";
853 };
854 };
855 };
856
857 &pcie1 {
858 reset-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
859 vpcie3v3-supply = <&vcc3v3_pcie1>;
860
861 /*
862 * Disable usb_drd1_dwc3 if enabling pcie1 and set Dial_Switch_1
863 * to low state according to the schematic of page 17.
864 */
865 status = "disabled";
866 };
867
868 &pinctrl {
869 audio {
870 hp_det: hp-det {
871 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
872 };
873
874 hp_ctl: hp-ctl {
875 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_down>;
876 };
877
878 spk_ctl: spk-ctl {
879 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
880 };
881 };
882
883 bluetooth {
884 bt_reg_on: bt-reg-on {
885 rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
886 };
887
888 bt_wake_host: bt-wake-host {
889 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>;
890 };
891
892 host_wake_bt: host-wake-bt {
893 rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
894 };
895 };
896
897 hym8563 {
898 rtc_int: rtc-int {
899 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
900 };
901 };
902
903 network {
904 rgmii_phy0_rst: rgmii-phy0-rst {
905 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
906 };
907
908 rgmii_phy1_rst: rgmii-phy1-rst {
909 rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
910 };
911 };
912
913 pcie0 {
914 pcie0_rst: pcie0-rst {
915 rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
916 };
917 };
918
919 sdmmc {
920 sdmmc_pwren: sdmmc-pwren {
921 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
922 };
923 };
924
925 usb {
926 usb_host_pwren: usb-host-pwren {
927 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
928 };
929
930 usb_otg0_pwren: usb-otg0-pwren {
931 rockchip,pins = <0 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
932 };
933
934 usbc0_int: usbc0-int {
935 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
936 };
937 };
938
939 wifi {
940 wifi_reg_on: wifi-reg-on {
941 rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
942 };
943
944 wifi_wake_host: wifi-wake-host {
945 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
946 };
947 };
948 };
949
950 &sai1 {
951 pinctrl-names = "default";
952 pinctrl-0 = <&sai1m0_lrck
953 &sai1m0_sclk
954 &sai1m0_sdi0
955 &sai1m0_sdo0>;
956 status = "okay";
957 };
958
959 &sai6 {
960 status = "okay";
961 };
962
963 &sdhci {
964 bus-width = <8>;
965 full-pwr-cycle-in-suspend;
966 max-frequency = <200000000>;
967 mmc-hs400-1_8v;
968 mmc-hs400-enhanced-strobe;
969 no-sdio;
970 no-sd;
971 non-removable;
972 status = "okay";
973 };
974
975 &sdmmc {
976 bus-width = <4>;
977 cap-mmc-highspeed;
978 cap-sd-highspeed;
979 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
980 disable-wp;
981 max-frequency = <200000000>;
982 no-sdio;
983 no-mmc;
984 pinctrl-names = "default";
985 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>;
986 sd-uhs-sdr104;
987 vmmc-supply = <&vcc3v3_sd>;
988 vqmmc-supply = <&vccio_sd_s0>;
989 status = "okay";
990 };
991
992 &saradc {
993 vref-supply = <&vcca_1v8_s0>;
994 status = "okay";
995 };
996
997 &u2phy0 {
998 status = "okay";
999 };
1000
1001 &u2phy0_otg {
1002 phy-supply = <&vbus5v0_typec>;
1003 status = "okay";
1004 };
1005
1006 &u2phy1 {
1007 status = "okay";
1008 };
1009
1010 &u2phy1_otg {
1011 phy-supply = <&vcc5v0_host>;
1012 status = "okay";
1013 };
1014
1015 &uart0 {
1016 status = "okay";
1017 };
1018
1019 &uart4 {
1020 pinctrl-0 = <&uart4m1_xfer &uart4m1_ctsn &uart4m1_rtsn>;
1021 pinctrl-names = "default";
1022 uart-has-rtscts;
1023 status = "okay";
1024
1025 bluetooth {
1026 compatible = "brcm,bcm43438-bt";
1027 clocks = <&hym8563>;
1028 clock-names = "lpo";
1029 device-wakeup-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
1030 interrupt-parent = <&gpio0>;
1031 interrupts = <RK_PB1 IRQ_TYPE_LEVEL_HIGH>;
1032 pinctrl-0 = <&bt_reg_on &bt_wake_host &host_wake_bt>;
1033 pinctrl-names = "default";
1034 shutdown-gpios = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
1035 vbat-supply = <&vcc_3v3_s3>;
1036 vddio-supply = <&vcc_1v8_s3>;
1037 };
1038 };
1039
1040 &ufshc {
1041 status = "okay";
1042 };
1043
1044 &usbdp_phy {
1045 rockchip,dp-lane-mux = <2 3>;
1046 status = "okay";
1047 };
1048
1049 &usb_drd0_dwc3 {
1050 dr_mode = "host";
1051 status = "okay";
1052 };
1053
1054 &usb_drd1_dwc3 {
1055 dr_mode = "host";
1056 status = "okay";
1057 };
1058
1059 &vop {
1060 status = "okay";
1061 };
1062
1063 &vop_mmu {
1064 status = "okay";
1065 };
1066
1067 &vp0 {
1068 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
1069 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
1070 remote-endpoint = <&hdmi_in_vp0>;
1071 };
1072 };