Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3576-nanopi-r76s.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3 * Copyright (c) 2025 FriendlyElec Computer Tech. Co., Ltd.
4 * (http://www.friendlyelec.com)
5 *
6 * Copyright (c) 2025 Tianling Shen <[email protected]>
7 */
8
9 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/pinctrl/rockchip.h>
14 #include <dt-bindings/soc/rockchip,vop2.h>
15
16 #include "rk3576.dtsi"
17
18 / {
19 model = "FriendlyElec NanoPi R76S";
20 compatible = "friendlyarm,nanopi-r76s", "rockchip,rk3576";
21
22 aliases {
23 mmc0 = &sdhci;
24 mmc1 = &sdmmc;
25 mmc2 = &sdio;
26 };
27
28 chosen {
29 stdout-path = "serial0:1500000n8";
30 };
31
32 gpio-keys {
33 compatible = "gpio-keys";
34 pinctrl-names = "default";
35 pinctrl-0 = <&user_but_pin>;
36
37 button-reset {
38 label = "reset";
39 gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_LOW>;
40 debounce-interval = <50>;
41 linux,code = <KEY_RESTART>;
42 wakeup-source;
43 };
44 };
45
46 gpio-leds {
47 compatible = "gpio-leds";
48 pinctrl-names = "default";
49 pinctrl-0 = <&led1_h>, <&led_sys_h>, <&led2_h>;
50
51 led-0 {
52 color = <LED_COLOR_ID_GREEN>;
53 function = LED_FUNCTION_LAN;
54 gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
55 };
56
57 led-1 {
58 color = <LED_COLOR_ID_RED>;
59 function = LED_FUNCTION_POWER;
60 gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "heartbeat";
62 };
63
64 led-2 {
65 color = <LED_COLOR_ID_GREEN>;
66 function = LED_FUNCTION_WAN;
67 gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
68 };
69 };
70
71 hdmi-con {
72 compatible = "hdmi-connector";
73 hdmi-pwr-supply = <&vcc5v_hdmi_tx>;
74 type = "a";
75
76 port {
77 hdmi_con_in: endpoint {
78 remote-endpoint = <&hdmi_out_con>;
79 };
80 };
81 };
82
83 sdio_pwrseq: sdio-pwrseq {
84 compatible = "mmc-pwrseq-simple";
85 clocks = <&hym8563>;
86 clock-names = "ext_clock";
87 pinctrl-names = "default";
88 pinctrl-0 = <&wifi_reg_on_h>;
89 post-power-on-delay-ms = <200>;
90 reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
91 };
92
93 vcc3v3_rtc_s5: regulator-vcc3v3-rtc-s5 {
94 compatible = "regulator-fixed";
95 regulator-always-on;
96 regulator-boot-on;
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
99 regulator-name = "vcc3v3_rtc_s5";
100 vin-supply = <&vcc5v0_sys_s5>;
101 };
102
103 vcc5v_dcin: regulator-vcc5v-dcin {
104 compatible = "regulator-fixed";
105 regulator-always-on;
106 regulator-boot-on;
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
109 regulator-name = "vcc5v_dcin";
110 };
111
112 vcc5v_hdmi_tx: regulator-vcc5v-hdmi-tx {
113 compatible = "regulator-fixed";
114 enable-active-high;
115 gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&hdmi_tx_on_h>;
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
120 regulator-name = "vcc5v_hdmi_tx";
121 vin-supply = <&vcc5v0_sys_s5>;
122 };
123
124 vcc5v0_device_s0: regulator-vcc5v0-device-s0 {
125 compatible = "regulator-fixed";
126 regulator-always-on;
127 regulator-boot-on;
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
130 regulator-name = "vcc5v0_device_s0";
131 vin-supply = <&vcc5v_dcin>;
132 };
133
134 vcc5v0_sys_s5: regulator-vcc5v0-sys-s5 {
135 compatible = "regulator-fixed";
136 regulator-always-on;
137 regulator-boot-on;
138 regulator-min-microvolt = <5000000>;
139 regulator-max-microvolt = <5000000>;
140 regulator-name = "vcc5v0_sys_s5";
141 vin-supply = <&vcc5v_dcin>;
142 };
143
144 vcc5v0_usb_otg0: regulator-vcc5v0-usb-otg0 {
145 compatible = "regulator-fixed";
146 enable-active-high;
147 gpios = <&gpio0 RK_PD1 GPIO_ACTIVE_HIGH>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&usb_otg0_pwren_h>;
150 regulator-min-microvolt = <5000000>;
151 regulator-max-microvolt = <5000000>;
152 regulator-name = "vcc5v0_usb_otg0";
153 vin-supply = <&vcc5v0_sys_s5>;
154 };
155
156 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
157 compatible = "regulator-fixed";
158 regulator-always-on;
159 regulator-boot-on;
160 regulator-min-microvolt = <1100000>;
161 regulator-max-microvolt = <1100000>;
162 regulator-name = "vcc_1v1_nldo_s3";
163 vin-supply = <&vcc5v0_sys_s5>;
164 };
165
166 vcc_1v8_s0: regulator-vcc-1v8-s0 {
167 compatible = "regulator-fixed";
168 regulator-always-on;
169 regulator-boot-on;
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <1800000>;
172 regulator-name = "vcc_1v8_s0";
173 vin-supply = <&vcc_1v8_s3>;
174 };
175
176 vcc_2v0_pldo_s3: regulator-vcc-2v0-pldo-s3 {
177 compatible = "regulator-fixed";
178 regulator-always-on;
179 regulator-boot-on;
180 regulator-min-microvolt = <2000000>;
181 regulator-max-microvolt = <2000000>;
182 regulator-name = "vcc_2v0_pldo_s3";
183 vin-supply = <&vcc5v0_sys_s5>;
184 };
185
186 vcc_3v3_s0: regulator-vcc-3v3-s0 {
187 compatible = "regulator-fixed";
188 regulator-always-on;
189 regulator-boot-on;
190 regulator-min-microvolt = <3300000>;
191 regulator-max-microvolt = <3300000>;
192 regulator-name = "vcc_3v3_s0";
193 vin-supply = <&vcc_3v3_s3>;
194 };
195
196 vcc3v3_sd: regulator-vcc-3v3-sd {
197 compatible = "regulator-fixed";
198 enable-active-high;
199 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&sdmmc_pwren>;
202 regulator-name = "vcc3v3_sd";
203 regulator-min-microvolt = <3300000>;
204 regulator-max-microvolt = <3300000>;
205 vin-supply = <&vcc_3v3_s0>;
206 };
207 };
208
209 &combphy0_ps {
210 status = "okay";
211 };
212
213 &combphy1_psu {
214 status = "okay";
215 };
216
217 &cpu_b0 {
218 cpu-supply = <&vdd_cpu_big_s0>;
219 };
220
221 &cpu_b1 {
222 cpu-supply = <&vdd_cpu_big_s0>;
223 };
224
225 &cpu_b2 {
226 cpu-supply = <&vdd_cpu_big_s0>;
227 };
228
229 &cpu_b3 {
230 cpu-supply = <&vdd_cpu_big_s0>;
231 };
232
233 &cpu_l0 {
234 cpu-supply = <&vdd_cpu_lit_s0>;
235 };
236
237 &cpu_l1 {
238 cpu-supply = <&vdd_cpu_lit_s0>;
239 };
240
241 &cpu_l2 {
242 cpu-supply = <&vdd_cpu_lit_s0>;
243 };
244
245 &cpu_l3 {
246 cpu-supply = <&vdd_cpu_lit_s0>;
247 };
248
249 &gpu {
250 mali-supply = <&vdd_gpu_s0>;
251 status = "okay";
252 };
253
254 &hdmi {
255 status = "okay";
256 };
257
258 &hdmi_in {
259 hdmi_in_vp0: endpoint {
260 remote-endpoint = <&vp0_out_hdmi>;
261 };
262 };
263
264 &hdmi_out {
265 hdmi_out_con: endpoint {
266 remote-endpoint = <&hdmi_con_in>;
267 };
268 };
269
270 &hdmi_sound {
271 status = "okay";
272 };
273
274 &hdptxphy {
275 status = "okay";
276 };
277
278 &i2c1 {
279 status = "okay";
280
281 pmic@23 {
282 compatible = "rockchip,rk806";
283 reg = <0x23>;
284 #gpio-cells = <2>;
285 gpio-controller;
286 interrupt-parent = <&gpio0>;
287 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
288 pinctrl-names = "default";
289 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
290 <&rk806_dvs2_null>, <&rk806_dvs3_null>;
291 system-power-controller;
292
293 vcc1-supply = <&vcc5v0_sys_s5>;
294 vcc2-supply = <&vcc5v0_sys_s5>;
295 vcc3-supply = <&vcc5v0_sys_s5>;
296 vcc4-supply = <&vcc5v0_sys_s5>;
297 vcc5-supply = <&vcc5v0_sys_s5>;
298 vcc6-supply = <&vcc5v0_sys_s5>;
299 vcc7-supply = <&vcc5v0_sys_s5>;
300 vcc8-supply = <&vcc5v0_sys_s5>;
301 vcc9-supply = <&vcc5v0_sys_s5>;
302 vcc10-supply = <&vcc5v0_sys_s5>;
303 vcc11-supply = <&vcc_2v0_pldo_s3>;
304 vcc12-supply = <&vcc5v0_sys_s5>;
305 vcc13-supply = <&vcc_1v1_nldo_s3>;
306 vcc14-supply = <&vcc_1v1_nldo_s3>;
307 vcca-supply = <&vcc5v0_sys_s5>;
308
309 rk806_dvs1_null: dvs1-null-pins {
310 pins = "gpio_pwrctrl1";
311 function = "pin_fun0";
312 };
313
314 rk806_dvs1_pwrdn: dvs1-pwrdn-pins {
315 pins = "gpio_pwrctrl1";
316 function = "pin_fun2";
317 };
318
319 rk806_dvs1_rst: dvs1-rst-pins {
320 pins = "gpio_pwrctrl1";
321 function = "pin_fun3";
322 };
323
324 rk806_dvs1_slp: dvs1-slp-pins {
325 pins = "gpio_pwrctrl1";
326 function = "pin_fun1";
327 };
328
329 rk806_dvs2_dvs: dvs2-dvs-pins {
330 pins = "gpio_pwrctrl2";
331 function = "pin_fun4";
332 };
333
334 rk806_dvs2_gpio: dvs2-gpio-pins {
335 pins = "gpio_pwrctrl2";
336 function = "pin_fun5";
337 };
338
339 rk806_dvs2_null: dvs2-null-pins {
340 pins = "gpio_pwrctrl2";
341 function = "pin_fun0";
342 };
343
344 rk806_dvs2_pwrdn: dvs2-pwrdn-pins {
345 pins = "gpio_pwrctrl2";
346 function = "pin_fun2";
347 };
348
349 rk806_dvs2_rst: dvs2-rst-pins {
350 pins = "gpio_pwrctrl2";
351 function = "pin_fun3";
352 };
353
354 rk806_dvs2_slp: dvs2-slp-pins {
355 pins = "gpio_pwrctrl2";
356 function = "pin_fun1";
357 };
358
359 rk806_dvs3_dvs: dvs3-dvs-pins {
360 pins = "gpio_pwrctrl3";
361 function = "pin_fun4";
362 };
363
364 rk806_dvs3_gpio: dvs3-gpio-pins {
365 pins = "gpio_pwrctrl3";
366 function = "pin_fun5";
367 };
368
369 rk806_dvs3_null: dvs3-null-pins {
370 pins = "gpio_pwrctrl3";
371 function = "pin_fun0";
372 };
373
374 rk806_dvs3_pwrdn: dvs3-pwrdn-pins {
375 pins = "gpio_pwrctrl3";
376 function = "pin_fun2";
377 };
378
379 rk806_dvs3_rst: dvs3-rst-pins {
380 pins = "gpio_pwrctrl3";
381 function = "pin_fun3";
382 };
383
384 rk806_dvs3_slp: dvs3-slp-pins {
385 pins = "gpio_pwrctrl3";
386 function = "pin_fun1";
387 };
388
389 regulators {
390 vdd_cpu_big_s0: dcdc-reg1 {
391 regulator-always-on;
392 regulator-boot-on;
393 regulator-enable-ramp-delay = <400>;
394 regulator-min-microvolt = <550000>;
395 regulator-max-microvolt = <950000>;
396 regulator-name = "vdd_cpu_big_s0";
397 regulator-ramp-delay = <12500>;
398
399 regulator-state-mem {
400 regulator-off-in-suspend;
401 };
402 };
403
404 vdd_npu_s0: dcdc-reg2 {
405 regulator-boot-on;
406 regulator-enable-ramp-delay = <400>;
407 regulator-min-microvolt = <550000>;
408 regulator-max-microvolt = <950000>;
409 regulator-name = "vdd_npu_s0";
410 regulator-ramp-delay = <12500>;
411
412 regulator-state-mem {
413 regulator-off-in-suspend;
414 };
415 };
416
417 vdd_cpu_lit_s0: dcdc-reg3 {
418 regulator-always-on;
419 regulator-boot-on;
420 regulator-min-microvolt = <550000>;
421 regulator-max-microvolt = <950000>;
422 regulator-name = "vdd_cpu_lit_s0";
423 regulator-ramp-delay = <12500>;
424
425 regulator-state-mem {
426 regulator-off-in-suspend;
427 regulator-suspend-microvolt = <750000>;
428 };
429 };
430
431 vcc_3v3_s3: dcdc-reg4 {
432 regulator-always-on;
433 regulator-boot-on;
434 regulator-min-microvolt = <3300000>;
435 regulator-max-microvolt = <3300000>;
436 regulator-name = "vcc_3v3_s3";
437
438 regulator-state-mem {
439 regulator-on-in-suspend;
440 regulator-suspend-microvolt = <3300000>;
441 };
442 };
443
444 vdd_gpu_s0: dcdc-reg5 {
445 regulator-boot-on;
446 regulator-enable-ramp-delay = <400>;
447 regulator-min-microvolt = <550000>;
448 regulator-max-microvolt = <900000>;
449 regulator-name = "vdd_gpu_s0";
450 regulator-ramp-delay = <12500>;
451
452 regulator-state-mem {
453 regulator-off-in-suspend;
454 regulator-suspend-microvolt = <850000>;
455 };
456 };
457
458 vddq_ddr_s0: dcdc-reg6 {
459 regulator-always-on;
460 regulator-boot-on;
461 regulator-name = "vddq_ddr_s0";
462
463 regulator-state-mem {
464 regulator-off-in-suspend;
465 };
466 };
467
468 vdd_logic_s0: dcdc-reg7 {
469 regulator-always-on;
470 regulator-boot-on;
471 regulator-min-microvolt = <550000>;
472 regulator-max-microvolt = <800000>;
473 regulator-name = "vdd_logic_s0";
474
475 regulator-state-mem {
476 regulator-off-in-suspend;
477 };
478 };
479
480 vcc_1v8_s3: dcdc-reg8 {
481 regulator-always-on;
482 regulator-boot-on;
483 regulator-min-microvolt = <1800000>;
484 regulator-max-microvolt = <1800000>;
485 regulator-name = "vcc_1v8_s3";
486
487 regulator-state-mem {
488 regulator-on-in-suspend;
489 regulator-suspend-microvolt = <1800000>;
490 };
491 };
492
493 vdd2_ddr_s3: dcdc-reg9 {
494 regulator-always-on;
495 regulator-boot-on;
496 regulator-name = "vdd2_ddr_s3";
497
498 regulator-state-mem {
499 regulator-on-in-suspend;
500 };
501 };
502
503 vdd_ddr_s0: dcdc-reg10 {
504 regulator-always-on;
505 regulator-boot-on;
506 regulator-min-microvolt = <550000>;
507 regulator-max-microvolt = <1200000>;
508 regulator-name = "vdd_ddr_s0";
509
510 regulator-state-mem {
511 regulator-off-in-suspend;
512 };
513 };
514
515 vcca_1v8_s0: pldo-reg1 {
516 regulator-always-on;
517 regulator-boot-on;
518 regulator-min-microvolt = <1800000>;
519 regulator-max-microvolt = <1800000>;
520 regulator-name = "vcca_1v8_s0";
521
522 regulator-state-mem {
523 regulator-off-in-suspend;
524 };
525 };
526
527 vcca1v8_pldo2_s0: pldo-reg2 {
528 regulator-always-on;
529 regulator-boot-on;
530 regulator-min-microvolt = <1800000>;
531 regulator-max-microvolt = <1800000>;
532 regulator-name = "vcca1v8_pldo2_s0";
533
534 regulator-state-mem {
535 regulator-off-in-suspend;
536 };
537 };
538
539 vdda_1v2_s0: pldo-reg3 {
540 regulator-always-on;
541 regulator-boot-on;
542 regulator-min-microvolt = <1200000>;
543 regulator-max-microvolt = <1200000>;
544 regulator-name = "vdda_1v2_s0";
545
546 regulator-state-mem {
547 regulator-off-in-suspend;
548 };
549 };
550
551 vcca_3v3_s0: pldo-reg4 {
552 regulator-always-on;
553 regulator-boot-on;
554 regulator-min-microvolt = <3300000>;
555 regulator-max-microvolt = <3300000>;
556 regulator-name = "vcca_3v3_s0";
557
558 regulator-state-mem {
559 regulator-off-in-suspend;
560 };
561 };
562
563 vccio_sd_s0: pldo-reg5 {
564 regulator-always-on;
565 regulator-boot-on;
566 regulator-min-microvolt = <1800000>;
567 regulator-max-microvolt = <3300000>;
568 regulator-name = "vccio_sd_s0";
569
570 regulator-state-mem {
571 regulator-off-in-suspend;
572 };
573 };
574
575 vcca1v8_pldo6_s3: pldo-reg6 {
576 regulator-always-on;
577 regulator-boot-on;
578 regulator-min-microvolt = <1800000>;
579 regulator-max-microvolt = <1800000>;
580 regulator-name = "vcca1v8_pldo6_s3";
581
582 regulator-state-mem {
583 regulator-on-in-suspend;
584 regulator-suspend-microvolt = <1800000>;
585 };
586 };
587
588 vdd_0v75_s3: nldo-reg1 {
589 regulator-always-on;
590 regulator-boot-on;
591 regulator-min-microvolt = <750000>;
592 regulator-max-microvolt = <750000>;
593 regulator-name = "vdd_0v75_s3";
594
595 regulator-state-mem {
596 regulator-on-in-suspend;
597 regulator-suspend-microvolt = <750000>;
598 };
599 };
600
601 vdda_ddr_pll_s0: nldo-reg2 {
602 regulator-always-on;
603 regulator-boot-on;
604 regulator-min-microvolt = <850000>;
605 regulator-max-microvolt = <850000>;
606 regulator-name = "vdda_ddr_pll_s0";
607
608 regulator-state-mem {
609 regulator-off-in-suspend;
610 };
611 };
612
613 vdda0v75_hdmi_s0: nldo-reg3 {
614 regulator-always-on;
615 regulator-boot-on;
616 regulator-min-microvolt = <837500>;
617 regulator-max-microvolt = <837500>;
618 regulator-name = "vdda0v75_hdmi_s0";
619
620 regulator-state-mem {
621 regulator-off-in-suspend;
622 };
623 };
624
625 vdda_0v85_s0: nldo-reg4 {
626 regulator-always-on;
627 regulator-boot-on;
628 regulator-min-microvolt = <850000>;
629 regulator-max-microvolt = <850000>;
630 regulator-name = "vdda_0v85_s0";
631
632 regulator-state-mem {
633 regulator-off-in-suspend;
634 };
635 };
636
637 vdda_0v75_s0: nldo-reg5 {
638 regulator-always-on;
639 regulator-boot-on;
640 regulator-min-microvolt = <750000>;
641 regulator-max-microvolt = <750000>;
642 regulator-name = "vdda_0v75_s0";
643
644 regulator-state-mem {
645 regulator-off-in-suspend;
646 };
647 };
648 };
649 };
650 };
651
652 &i2c2 {
653 status = "okay";
654
655 hym8563: rtc@51 {
656 compatible = "haoyu,hym8563";
657 reg = <0x51>;
658 #clock-cells = <0>;
659 clock-output-names = "hym8563";
660 interrupt-parent = <&gpio0>;
661 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
662 pinctrl-names = "default";
663 pinctrl-0 = <&rtc_int_l>;
664 wakeup-source;
665 };
666 };
667
668 &pcie0 {
669 pinctrl-names = "default";
670 pinctrl-0 = <&pcie0_perstn>;
671 reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
672 vpcie3v3-supply = <&vcc_3v3_s3>;
673 status = "okay";
674 };
675
676 &pcie1 {
677 pinctrl-names = "default";
678 pinctrl-0 = <&pcie1_perstn>;
679 reset-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
680 vpcie3v3-supply = <&vcc_3v3_s3>;
681 status = "okay";
682 };
683
684 &pinctrl {
685 bt {
686 bt_reg_on_h: bt-reg-on-h {
687 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
688 };
689
690 bt_wake_host_h: bt-wake-host-h {
691 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>;
692 };
693
694 host_wake_bt_h: host-wake-bt-h {
695 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
696 };
697 };
698
699 gpio-keys {
700 user_but_pin: user-but-pin {
701 rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
702 };
703 };
704
705 gpio-leds {
706 led_sys_h: led-sys-h {
707 rockchip,pins = <2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
708 };
709
710 led1_h: led1-h {
711 rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
712 };
713
714 led2_h: led2-h {
715 rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
716 };
717 };
718
719 hdmi {
720 hdmi_tx_on_h: hdmi-tx-on-h {
721 rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
722 };
723 };
724
725 hym8563 {
726 rtc_int_l: rtc-int-l {
727 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
728 };
729 };
730
731 pcie {
732 pcie0_perstn: pcie0-perstn {
733 rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
734 };
735
736 pcie1_perstn: pcie1-perstn {
737 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
738 };
739 };
740
741 sdmmc {
742 sdmmc_pwren: sdmmc-pwren {
743 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
744 };
745 };
746
747 usb {
748 usb_otg0_pwren_h: usb-otg0-pwren-h {
749 rockchip,pins = <0 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
750 };
751 };
752
753 wifi {
754 wifi_wake_host_h: wifi-wake-host-h {
755 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
756 };
757
758 wifi_reg_on_h: wifi-reg-on-h {
759 rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
760 };
761 };
762 };
763
764 &sai6 {
765 status = "okay";
766 };
767
768 &sdmmc {
769 bus-width = <4>;
770 cap-mmc-highspeed;
771 cap-sd-highspeed;
772 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
773 disable-wp;
774 no-mmc;
775 no-sdio;
776 pinctrl-names = "default";
777 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>;
778 sd-uhs-sdr104;
779 vmmc-supply = <&vcc3v3_sd>;
780 vqmmc-supply = <&vccio_sd_s0>;
781 status = "okay";
782 };
783
784 &sdio {
785 #address-cells = <1>;
786 #size-cells = <0>;
787 bus-width = <4>;
788 cap-sd-highspeed;
789 cap-sdio-irq;
790 disable-wp;
791 keep-power-in-suspend;
792 mmc-pwrseq = <&sdio_pwrseq>;
793 no-mmc;
794 no-sd;
795 non-removable;
796 sd-uhs-sdr104;
797 vmmc-supply = <&vcc_3v3_s3>;
798 vqmmc-supply = <&vcc_1v8_s3>;
799 wakeup-source;
800 status = "okay";
801
802 rtl8822cs: wifi@1 {
803 reg = <1>;
804 interrupt-parent = <&gpio0>;
805 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_HIGH>;
806 interrupt-names = "host-wake";
807 pinctrl-names = "default";
808 pinctrl-0 = <&wifi_wake_host_h>;
809 };
810 };
811
812 &sdhci {
813 bus-width = <8>;
814 cap-mmc-highspeed;
815 full-pwr-cycle-in-suspend;
816 mmc-hs400-1_8v;
817 mmc-hs400-enhanced-strobe;
818 no-sdio;
819 no-sd;
820 non-removable;
821 status = "okay";
822 };
823
824 &saradc {
825 vref-supply = <&vcca_1v8_s0>;
826 status = "okay";
827 };
828
829 &u2phy0 {
830 status = "okay";
831 };
832
833 &u2phy0_otg {
834 phy-supply = <&vcc5v0_usb_otg0>;
835 status = "okay";
836 };
837
838 &uart0 {
839 status = "okay";
840 };
841
842 &uart5 {
843 pinctrl-names = "default";
844 pinctrl-0 = <&uart5m0_xfer &uart5m0_ctsn &uart5m0_rtsn>;
845 uart-has-rtscts;
846 status = "okay";
847
848 bluetooth {
849 compatible = "realtek,rtl8822cs-bt";
850 enable-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
851 device-wake-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
852 host-wake-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
853 pinctrl-names = "default";
854 pinctrl-0 = <&bt_wake_host_h &host_wake_bt_h &bt_reg_on_h>;
855 };
856 };
857
858 &usbdp_phy {
859 status = "okay";
860 };
861
862 &usb_drd0_dwc3 {
863 dr_mode = "host";
864 extcon = <&u2phy0>;
865 status = "okay";
866 };
867
868 &vop {
869 status = "okay";
870 };
871
872 &vop_mmu {
873 status = "okay";
874 };
875
876 &vp0 {
877 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
878 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
879 remote-endpoint = <&hdmi_in_vp0>;
880 };
881 };