xref: /linux/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/leds/common.h>
7#include <dt-bindings/input/input.h>
8#include <dt-bindings/pinctrl/rockchip.h>
9#include <dt-bindings/soc/rockchip,vop2.h>
10#include <dt-bindings/usb/pd.h>
11#include "rk3588s.dtsi"
12
13/ {
14	aliases {
15		ethernet0 = &gmac1;
16		mmc0 = &sdmmc;
17	};
18
19	chosen {
20		stdout-path = "serial2:1500000n8";
21	};
22
23	adc-keys {
24		compatible = "adc-keys";
25		io-channels = <&saradc 1>;
26		io-channel-names = "buttons";
27		keyup-threshold-microvolt = <1800000>;
28		poll-interval = <100>;
29
30		button-recovery {
31			label = "Recovery";
32			linux,code = <KEY_VENDOR>;
33			press-threshold-microvolt = <1800>;
34		};
35	};
36
37	analog-sound {
38		compatible = "simple-audio-card";
39		pinctrl-names = "default";
40		pinctrl-0 = <&hp_detect>;
41		simple-audio-card,name = "rockchip,es8388";
42		simple-audio-card,bitclock-master = <&masterdai>;
43		simple-audio-card,format = "i2s";
44		simple-audio-card,frame-master = <&masterdai>;
45		simple-audio-card,hp-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
46		simple-audio-card,mclk-fs = <256>;
47		simple-audio-card,pin-switches = "Headphones";
48		simple-audio-card,routing =
49			"Headphones", "LOUT1",
50			"Headphones", "ROUT1",
51			"LINPUT1", "Microphone Jack",
52			"RINPUT1", "Microphone Jack",
53			"LINPUT2", "Onboard Microphone",
54			"RINPUT2", "Onboard Microphone";
55		simple-audio-card,widgets =
56			"Microphone", "Microphone Jack",
57			"Microphone", "Onboard Microphone",
58			"Headphone", "Headphones";
59
60		simple-audio-card,cpu {
61			sound-dai = <&i2s1_8ch>;
62		};
63
64		masterdai: simple-audio-card,codec {
65			sound-dai = <&es8388>;
66			system-clock-frequency = <12288000>;
67		};
68	};
69
70	hdmi0-con {
71		compatible = "hdmi-connector";
72		type = "a";
73
74		port {
75			hdmi0_con_in: endpoint {
76				remote-endpoint = <&hdmi0_out_con>;
77			};
78		};
79	};
80
81	pwm-leds {
82		compatible = "pwm-leds";
83
84		led {
85			color = <LED_COLOR_ID_GREEN>;
86			function = LED_FUNCTION_STATUS;
87			linux,default-trigger = "heartbeat";
88			max-brightness = <255>;
89			pwms = <&pwm0 0 25000 0>;
90		};
91	};
92
93	vbus_typec: regulator-vbus-typec {
94		compatible = "regulator-fixed";
95		enable-active-high;
96		gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
97		pinctrl-names = "default";
98		pinctrl-0 = <&typec5v_pwren>;
99		regulator-name = "vbus_typec";
100		regulator-min-microvolt = <5000000>;
101		regulator-max-microvolt = <5000000>;
102		vin-supply = <&vcc5v0_sys>;
103	};
104
105	vcc5v0_sys: regulator-vcc5v0-sys {
106		compatible = "regulator-fixed";
107		regulator-name = "vcc5v0_sys";
108		regulator-always-on;
109		regulator-boot-on;
110		regulator-min-microvolt = <5000000>;
111		regulator-max-microvolt = <5000000>;
112	};
113
114	vcc_3v3_sd_s0: regulator-vcc-3v3-sd-s0 {
115		compatible = "regulator-fixed";
116		gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>;
117		regulator-name = "vcc_3v3_sd_s0";
118		regulator-boot-on;
119		regulator-min-microvolt = <3300000>;
120		regulator-max-microvolt = <3300000>;
121		vin-supply = <&vcc_3v3_s3>;
122	};
123};
124
125&combphy0_ps {
126	status = "okay";
127};
128
129&combphy2_psu {
130	status = "okay";
131};
132
133&cpu_b0 {
134	cpu-supply = <&vdd_cpu_big0_s0>;
135};
136
137&cpu_b1 {
138	cpu-supply = <&vdd_cpu_big0_s0>;
139};
140
141&cpu_b2 {
142	cpu-supply = <&vdd_cpu_big1_s0>;
143};
144
145&cpu_b3 {
146	cpu-supply = <&vdd_cpu_big1_s0>;
147};
148
149&cpu_l0 {
150	cpu-supply = <&vdd_cpu_lit_s0>;
151};
152
153&cpu_l1 {
154	cpu-supply = <&vdd_cpu_lit_s0>;
155};
156
157&cpu_l2 {
158	cpu-supply = <&vdd_cpu_lit_s0>;
159};
160
161&cpu_l3 {
162	cpu-supply = <&vdd_cpu_lit_s0>;
163};
164
165&gmac1 {
166	clock_in_out = "output";
167	phy-handle = <&rgmii_phy1>;
168	phy-mode = "rgmii-rxid";
169	pinctrl-0 = <&gmac1_miim
170		     &gmac1_tx_bus2
171		     &gmac1_rx_bus2
172		     &gmac1_rgmii_clk
173		     &gmac1_rgmii_bus>;
174	pinctrl-names = "default";
175	tx_delay = <0x42>;
176	status = "okay";
177};
178
179&gpu {
180	mali-supply = <&vdd_gpu_s0>;
181	status = "okay";
182};
183
184&hdmi0 {
185	status = "okay";
186};
187
188&hdmi0_in {
189	hdmi0_in_vp0: endpoint {
190		remote-endpoint = <&vp0_out_hdmi0>;
191	};
192};
193
194&hdmi0_out {
195	hdmi0_out_con: endpoint {
196		remote-endpoint = <&hdmi0_con_in>;
197	};
198};
199
200&hdptxphy_hdmi0 {
201	status = "okay";
202};
203
204&i2c0 {
205	pinctrl-names = "default";
206	pinctrl-0 = <&i2c0m2_xfer>;
207	status = "okay";
208
209	vdd_cpu_big0_s0: regulator@42 {
210		compatible = "rockchip,rk8602";
211		reg = <0x42>;
212		fcs,suspend-voltage-selector = <1>;
213		regulator-name = "vdd_cpu_big0_s0";
214		regulator-always-on;
215		regulator-boot-on;
216		regulator-min-microvolt = <550000>;
217		regulator-max-microvolt = <1050000>;
218		regulator-ramp-delay = <2300>;
219		vin-supply = <&vcc5v0_sys>;
220
221		regulator-state-mem {
222			regulator-off-in-suspend;
223		};
224	};
225
226	vdd_cpu_big1_s0: regulator@43 {
227		compatible = "rockchip,rk8603", "rockchip,rk8602";
228		reg = <0x43>;
229		fcs,suspend-voltage-selector = <1>;
230		regulator-name = "vdd_cpu_big1_s0";
231		regulator-always-on;
232		regulator-boot-on;
233		regulator-min-microvolt = <550000>;
234		regulator-max-microvolt = <1050000>;
235		regulator-ramp-delay = <2300>;
236		vin-supply = <&vcc5v0_sys>;
237
238		regulator-state-mem {
239			regulator-off-in-suspend;
240		};
241	};
242};
243
244&i2c2 {
245	status = "okay";
246
247	vdd_npu_s0: regulator@42 {
248		compatible = "rockchip,rk8602";
249		reg = <0x42>;
250		fcs,suspend-voltage-selector = <1>;
251		regulator-name = "vdd_npu_s0";
252		regulator-always-on;
253		regulator-boot-on;
254		regulator-min-microvolt = <550000>;
255		regulator-max-microvolt = <950000>;
256		regulator-ramp-delay = <2300>;
257		vin-supply = <&vcc5v0_sys>;
258
259		regulator-state-mem {
260			regulator-off-in-suspend;
261		};
262	};
263};
264
265&i2c6 {
266	pinctrl-names = "default";
267	pinctrl-0 = <&i2c6m3_xfer>;
268	status = "okay";
269
270	es8388: audio-codec@10 {
271		compatible = "everest,es8388";
272		reg = <0x10>;
273		clocks = <&cru I2S1_8CH_MCLKOUT>;
274		AVDD-supply = <&vcc_3v3_s0>;
275		DVDD-supply = <&vcc_1v8_s0>;
276		HPVDD-supply = <&vcc_3v3_s0>;
277		PVDD-supply = <&vcc_3v3_s0>;
278		assigned-clocks = <&cru I2S1_8CH_MCLKOUT>;
279		assigned-clock-rates = <12288000>;
280		#sound-dai-cells = <0>;
281	};
282
283	usbc0: usb-typec@22 {
284		compatible = "fcs,fusb302";
285		reg = <0x22>;
286		interrupt-parent = <&gpio0>;
287		interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
288		pinctrl-names = "default";
289		pinctrl-0 = <&usbc0_int>;
290		vbus-supply = <&vbus_typec>;
291		status = "okay";
292
293		usb_con: connector {
294			compatible = "usb-c-connector";
295			label = "USB-C";
296			data-role = "dual";
297			op-sink-microwatt = <1000000>;
298			power-role = "dual";
299			sink-pdos =
300				<PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
301			source-pdos =
302				<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
303			try-power-role = "source";
304
305			ports {
306				#address-cells = <1>;
307				#size-cells = <0>;
308
309				port@0 {
310					reg = <0>;
311					usbc0_hs: endpoint {
312						remote-endpoint = <&usb_host0_xhci_drd_sw>;
313					};
314				};
315
316				port@1 {
317					reg = <1>;
318					usbc0_ss: endpoint {
319						remote-endpoint = <&usbdp_phy0_typec_ss>;
320					};
321				};
322
323				port@2 {
324					reg = <2>;
325					usbc0_sbu: endpoint {
326						remote-endpoint = <&usbdp_phy0_typec_sbu>;
327					};
328				};
329			};
330		};
331	};
332
333	hym8563: rtc@51 {
334		compatible = "haoyu,hym8563";
335		reg = <0x51>;
336		#clock-cells = <0>;
337		clock-output-names = "hym8563";
338		pinctrl-names = "default";
339		pinctrl-0 = <&hym8563_int>;
340		interrupt-parent = <&gpio0>;
341		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
342		wakeup-source;
343	};
344};
345
346&i2s1_8ch {
347	rockchip,i2s-tx-route = <3 2 1 0>;
348	rockchip,i2s-rx-route = <1 3 2 0>;
349	pinctrl-names = "default";
350	pinctrl-0 = <&i2s1m0_sclk
351	             &i2s1m0_mclk
352	             &i2s1m0_lrck
353	             &i2s1m0_sdi1
354	             &i2s1m0_sdo3>;
355	status = "okay";
356};
357
358&mdio1 {
359	rgmii_phy1: ethernet-phy@1 {
360		compatible = "ethernet-phy-ieee802.3-c22";
361		reg = <0x1>;
362		reset-assert-us = <20000>;
363		reset-deassert-us = <100000>;
364		reset-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>;
365	};
366};
367
368&pinctrl {
369	hym8563 {
370		hym8563_int: hym8563-int {
371			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
372		};
373	};
374
375	sound {
376		hp_detect: hp-detect {
377			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
378		};
379	};
380
381	usb-typec {
382		usbc0_int: usbc0-int {
383			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
384		};
385
386		typec5v_pwren: typec5v-pwren {
387			rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
388		};
389	};
390};
391
392&pwm0 {
393	pinctrl-0 = <&pwm0m2_pins>;
394	pinctrl-names = "default";
395	status = "okay";
396};
397
398&saradc {
399	vref-supply = <&avcc_1v8_s0>;
400	status = "okay";
401};
402
403&sdhci {
404	bus-width = <8>;
405	no-sdio;
406	no-sd;
407	non-removable;
408	max-frequency = <200000000>;
409	mmc-hs400-1_8v;
410	mmc-hs400-enhanced-strobe;
411	status = "disabled";
412};
413
414&sdmmc {
415	bus-width = <4>;
416	cap-sd-highspeed;
417	disable-wp;
418	max-frequency = <150000000>;
419	no-mmc;
420	no-sdio;
421	sd-uhs-sdr104;
422	vmmc-supply = <&vcc_3v3_sd_s0>;
423	vqmmc-supply = <&vccio_sd_s0>;
424	status = "okay";
425};
426
427&sfc {
428	pinctrl-names = "default";
429	pinctrl-0 = <&fspim0_pins>;
430	status = "disabled";
431
432	flash@0 {
433		compatible = "jedec,spi-nor";
434		reg = <0x0>;
435		spi-max-frequency = <100000000>;
436		spi-rx-bus-width = <4>;
437		spi-tx-bus-width = <1>;
438	};
439};
440
441&spi2 {
442	status = "okay";
443	assigned-clocks = <&cru CLK_SPI2>;
444	assigned-clock-rates = <200000000>;
445	num-cs = <1>;
446	pinctrl-names = "default";
447	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
448
449	pmic@0 {
450		compatible = "rockchip,rk806";
451		reg = <0x0>;
452		interrupt-parent = <&gpio0>;
453		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
454		pinctrl-names = "default";
455		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
456				<&rk806_dvs2_null>, <&rk806_dvs3_null>;
457		spi-max-frequency = <1000000>;
458		system-power-controller;
459
460		vcc1-supply = <&vcc5v0_sys>;
461		vcc2-supply = <&vcc5v0_sys>;
462		vcc3-supply = <&vcc5v0_sys>;
463		vcc4-supply = <&vcc5v0_sys>;
464		vcc5-supply = <&vcc5v0_sys>;
465		vcc6-supply = <&vcc5v0_sys>;
466		vcc7-supply = <&vcc5v0_sys>;
467		vcc8-supply = <&vcc5v0_sys>;
468		vcc9-supply = <&vcc5v0_sys>;
469		vcc10-supply = <&vcc5v0_sys>;
470		vcc11-supply = <&vcc_2v0_pldo_s3>;
471		vcc12-supply = <&vcc5v0_sys>;
472		vcc13-supply = <&vcc_1v1_nldo_s3>;
473		vcc14-supply = <&vcc_1v1_nldo_s3>;
474		vcca-supply = <&vcc5v0_sys>;
475
476		gpio-controller;
477		#gpio-cells = <2>;
478
479		rk806_dvs1_null: dvs1-null-pins {
480			pins = "gpio_pwrctrl1";
481			function = "pin_fun0";
482		};
483
484		rk806_dvs2_null: dvs2-null-pins {
485			pins = "gpio_pwrctrl2";
486			function = "pin_fun0";
487		};
488
489		rk806_dvs3_null: dvs3-null-pins {
490			pins = "gpio_pwrctrl3";
491			function = "pin_fun0";
492		};
493
494		regulators {
495			vdd_gpu_s0: dcdc-reg1 {
496				regulator-name = "vdd_gpu_s0";
497				regulator-boot-on;
498				regulator-min-microvolt = <550000>;
499				regulator-max-microvolt = <950000>;
500				regulator-ramp-delay = <12500>;
501				regulator-enable-ramp-delay = <400>;
502
503				regulator-state-mem {
504					regulator-off-in-suspend;
505				};
506			};
507
508			vdd_cpu_lit_s0: dcdc-reg2 {
509				regulator-name = "vdd_cpu_lit_s0";
510				regulator-always-on;
511				regulator-boot-on;
512				regulator-min-microvolt = <550000>;
513				regulator-max-microvolt = <950000>;
514				regulator-ramp-delay = <12500>;
515
516				regulator-state-mem {
517					regulator-off-in-suspend;
518				};
519			};
520
521			vdd_log_s0: dcdc-reg3 {
522				regulator-name = "vdd_log_s0";
523				regulator-always-on;
524				regulator-boot-on;
525				regulator-min-microvolt = <675000>;
526				regulator-max-microvolt = <750000>;
527				regulator-ramp-delay = <12500>;
528
529				regulator-state-mem {
530					regulator-off-in-suspend;
531					regulator-suspend-microvolt = <750000>;
532				};
533			};
534
535			vdd_vdenc_s0: dcdc-reg4 {
536				regulator-name = "vdd_vdenc_s0";
537				regulator-always-on;
538				regulator-boot-on;
539				regulator-min-microvolt = <550000>;
540				regulator-max-microvolt = <950000>;
541				regulator-ramp-delay = <12500>;
542
543				regulator-state-mem {
544					regulator-off-in-suspend;
545				};
546			};
547
548			vdd_ddr_s0: dcdc-reg5 {
549				regulator-name = "vdd_ddr_s0";
550				regulator-always-on;
551				regulator-boot-on;
552				regulator-min-microvolt = <675000>;
553				regulator-max-microvolt = <900000>;
554				regulator-ramp-delay = <12500>;
555
556				regulator-state-mem {
557					regulator-off-in-suspend;
558					regulator-suspend-microvolt = <850000>;
559				};
560			};
561
562			vcc_1v1_nldo_s3: vdd2_ddr_s3: dcdc-reg6 {
563				regulator-name = "vdd2_ddr_s3";
564				regulator-always-on;
565				regulator-boot-on;
566				regulator-max-microvolt = <1100000>;
567				regulator-min-microvolt = <1100000>;
568
569				regulator-state-mem {
570					regulator-on-in-suspend;
571				};
572			};
573
574			vcc_2v0_pldo_s3: dcdc-reg7 {
575				regulator-name = "vdd_2v0_pldo_s3";
576				regulator-always-on;
577				regulator-boot-on;
578				regulator-min-microvolt = <2000000>;
579				regulator-max-microvolt = <2000000>;
580				regulator-ramp-delay = <12500>;
581
582				regulator-state-mem {
583					regulator-on-in-suspend;
584					regulator-suspend-microvolt = <2000000>;
585				};
586			};
587
588			vcc_3v3_s3: dcdc-reg8 {
589				regulator-name = "vcc_3v3_s3";
590				regulator-always-on;
591				regulator-boot-on;
592				regulator-min-microvolt = <3300000>;
593				regulator-max-microvolt = <3300000>;
594
595				regulator-state-mem {
596					regulator-on-in-suspend;
597					regulator-suspend-microvolt = <3300000>;
598				};
599			};
600
601			vddq_ddr_s0: dcdc-reg9 {
602				regulator-name = "vddq_ddr_s0";
603				regulator-always-on;
604				regulator-boot-on;
605
606				regulator-state-mem {
607					regulator-off-in-suspend;
608				};
609			};
610
611			vcc_1v8_s3: dcdc-reg10 {
612				regulator-name = "vcc_1v8_s3";
613				regulator-always-on;
614				regulator-boot-on;
615				regulator-min-microvolt = <1800000>;
616				regulator-max-microvolt = <1800000>;
617
618				regulator-state-mem {
619					regulator-on-in-suspend;
620					regulator-suspend-microvolt = <1800000>;
621				};
622			};
623
624			avcc_1v8_s0: pldo-reg1 {
625				regulator-name = "avcc_1v8_s0";
626				regulator-always-on;
627				regulator-boot-on;
628				regulator-min-microvolt = <1800000>;
629				regulator-max-microvolt = <1800000>;
630
631				regulator-state-mem {
632					regulator-off-in-suspend;
633				};
634			};
635
636			vcc_1v8_s0: pldo-reg2 {
637				regulator-name = "vcc_1v8_s0";
638				regulator-always-on;
639				regulator-boot-on;
640				regulator-min-microvolt = <1800000>;
641				regulator-max-microvolt = <1800000>;
642
643				regulator-state-mem {
644					regulator-off-in-suspend;
645					regulator-suspend-microvolt = <1800000>;
646				};
647			};
648
649			avdd_1v2_s0: pldo-reg3 {
650				regulator-name = "avdd_1v2_s0";
651				regulator-always-on;
652				regulator-boot-on;
653				regulator-min-microvolt = <1200000>;
654				regulator-max-microvolt = <1200000>;
655
656				regulator-state-mem {
657					regulator-off-in-suspend;
658				};
659			};
660
661			vcc_3v3_s0: pldo-reg4 {
662				regulator-name = "vcc_3v3_s0";
663				regulator-always-on;
664				regulator-boot-on;
665				regulator-min-microvolt = <3300000>;
666				regulator-max-microvolt = <3300000>;
667				regulator-ramp-delay = <12500>;
668
669				regulator-state-mem {
670					regulator-off-in-suspend;
671				};
672			};
673
674			vccio_sd_s0: pldo-reg5 {
675				regulator-name = "vccio_sd_s0";
676				regulator-always-on;
677				regulator-boot-on;
678				regulator-min-microvolt = <1800000>;
679				regulator-max-microvolt = <3300000>;
680				regulator-ramp-delay = <12500>;
681
682				regulator-state-mem {
683					regulator-off-in-suspend;
684				};
685			};
686
687			pldo6_s3: pldo-reg6 {
688				regulator-name = "pldo6_s3";
689				regulator-always-on;
690				regulator-boot-on;
691				regulator-min-microvolt = <1800000>;
692				regulator-max-microvolt = <1800000>;
693
694				regulator-state-mem {
695					regulator-on-in-suspend;
696					regulator-suspend-microvolt = <1800000>;
697				};
698			};
699
700			vdd_0v75_s3: nldo-reg1 {
701				regulator-name = "vdd_0v75_s3";
702				regulator-always-on;
703				regulator-boot-on;
704				regulator-min-microvolt = <750000>;
705				regulator-max-microvolt = <750000>;
706
707				regulator-state-mem {
708					regulator-on-in-suspend;
709					regulator-suspend-microvolt = <750000>;
710				};
711			};
712
713			vdd_ddr_pll_s0: nldo-reg2 {
714				regulator-name = "vdd_ddr_pll_s0";
715				regulator-always-on;
716				regulator-boot-on;
717				regulator-min-microvolt = <850000>;
718				regulator-max-microvolt = <850000>;
719
720				regulator-state-mem {
721					regulator-off-in-suspend;
722					regulator-suspend-microvolt = <850000>;
723				};
724			};
725
726			avdd_0v75_s0: nldo-reg3 {
727				regulator-name = "avdd_0v75_s0";
728				regulator-always-on;
729				regulator-boot-on;
730				regulator-min-microvolt = <750000>;
731				regulator-max-microvolt = <750000>;
732
733				regulator-state-mem {
734					regulator-off-in-suspend;
735				};
736			};
737
738			vdd_0v85_s0: nldo-reg4 {
739				regulator-name = "vdd_0v85_s0";
740				regulator-always-on;
741				regulator-boot-on;
742				regulator-min-microvolt = <850000>;
743				regulator-max-microvolt = <850000>;
744
745				regulator-state-mem {
746					regulator-off-in-suspend;
747				};
748			};
749
750			vdd_0v75_s0: nldo-reg5 {
751				regulator-name = "vdd_0v75_s0";
752				regulator-always-on;
753				regulator-boot-on;
754				regulator-min-microvolt = <750000>;
755				regulator-max-microvolt = <750000>;
756
757				regulator-state-mem {
758					regulator-off-in-suspend;
759				};
760			};
761		};
762	};
763};
764
765&tsadc {
766	status = "okay";
767};
768
769&u2phy0 {
770	status = "okay";
771};
772
773&u2phy0_otg {
774	status = "okay";
775};
776
777&u2phy2 {
778	status = "okay";
779};
780
781&u2phy2_host {
782	status = "okay";
783};
784
785&u2phy3 {
786	status = "okay";
787};
788
789&u2phy3_host {
790	status = "okay";
791};
792
793&uart2 {
794	pinctrl-0 = <&uart2m0_xfer>;
795	status = "okay";
796};
797
798&usbdp_phy0 {
799	mode-switch;
800	orientation-switch;
801	sbu1-dc-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
802	sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
803	status = "okay";
804
805	port {
806		#address-cells = <1>;
807		#size-cells = <0>;
808
809		usbdp_phy0_typec_ss: endpoint@0 {
810			reg = <0>;
811			remote-endpoint = <&usbc0_ss>;
812		};
813
814		usbdp_phy0_typec_sbu: endpoint@1 {
815			reg = <1>;
816			remote-endpoint = <&usbc0_sbu>;
817		};
818	};
819};
820
821&usb_host0_ehci {
822	status = "okay";
823};
824
825&usb_host0_ohci {
826	status = "okay";
827};
828
829&usb_host0_xhci {
830	dr_mode = "otg";
831	usb-role-switch;
832	status = "okay";
833
834	port {
835		usb_host0_xhci_drd_sw: endpoint {
836			remote-endpoint = <&usbc0_hs>;
837		};
838	};
839};
840
841&usb_host1_ehci {
842	status = "okay";
843};
844
845&usb_host1_ohci {
846	status = "okay";
847};
848
849&usb_host2_xhci {
850	status = "okay";
851};
852
853&vop_mmu {
854	status = "okay";
855};
856
857&vop {
858	status = "okay";
859};
860
861&vp0 {
862	vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
863		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
864		remote-endpoint = <&hdmi0_in_vp0>;
865	};
866};
867