xref: /linux/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi (revision 2f24482304ebd32c5aa374f31465b9941a860b92)
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&hdmi0_sound {
201	status = "okay";
202};
203
204&hdptxphy0 {
205	status = "okay";
206};
207
208&i2c0 {
209	pinctrl-names = "default";
210	pinctrl-0 = <&i2c0m2_xfer>;
211	status = "okay";
212
213	vdd_cpu_big0_s0: regulator@42 {
214		compatible = "rockchip,rk8602";
215		reg = <0x42>;
216		fcs,suspend-voltage-selector = <1>;
217		regulator-name = "vdd_cpu_big0_s0";
218		regulator-always-on;
219		regulator-boot-on;
220		regulator-min-microvolt = <550000>;
221		regulator-max-microvolt = <1050000>;
222		regulator-ramp-delay = <2300>;
223		vin-supply = <&vcc5v0_sys>;
224
225		regulator-state-mem {
226			regulator-off-in-suspend;
227		};
228	};
229
230	vdd_cpu_big1_s0: regulator@43 {
231		compatible = "rockchip,rk8603", "rockchip,rk8602";
232		reg = <0x43>;
233		fcs,suspend-voltage-selector = <1>;
234		regulator-name = "vdd_cpu_big1_s0";
235		regulator-always-on;
236		regulator-boot-on;
237		regulator-min-microvolt = <550000>;
238		regulator-max-microvolt = <1050000>;
239		regulator-ramp-delay = <2300>;
240		vin-supply = <&vcc5v0_sys>;
241
242		regulator-state-mem {
243			regulator-off-in-suspend;
244		};
245	};
246};
247
248&i2c2 {
249	status = "okay";
250
251	vdd_npu_s0: regulator@42 {
252		compatible = "rockchip,rk8602";
253		reg = <0x42>;
254		fcs,suspend-voltage-selector = <1>;
255		regulator-name = "vdd_npu_s0";
256		regulator-always-on;
257		regulator-boot-on;
258		regulator-min-microvolt = <550000>;
259		regulator-max-microvolt = <950000>;
260		regulator-ramp-delay = <2300>;
261		vin-supply = <&vcc5v0_sys>;
262
263		regulator-state-mem {
264			regulator-off-in-suspend;
265		};
266	};
267};
268
269&i2c6 {
270	pinctrl-names = "default";
271	pinctrl-0 = <&i2c6m3_xfer>;
272	status = "okay";
273
274	es8388: audio-codec@10 {
275		compatible = "everest,es8388", "everest,es8328";
276		reg = <0x10>;
277		clocks = <&cru I2S1_8CH_MCLKOUT>;
278		AVDD-supply = <&vcc_3v3_s0>;
279		DVDD-supply = <&vcc_1v8_s0>;
280		HPVDD-supply = <&vcc_3v3_s0>;
281		PVDD-supply = <&vcc_3v3_s0>;
282		assigned-clocks = <&cru I2S1_8CH_MCLKOUT>;
283		assigned-clock-rates = <12288000>;
284		#sound-dai-cells = <0>;
285	};
286
287	usbc0: usb-typec@22 {
288		compatible = "fcs,fusb302";
289		reg = <0x22>;
290		interrupt-parent = <&gpio0>;
291		interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
292		pinctrl-names = "default";
293		pinctrl-0 = <&usbc0_int>;
294		vbus-supply = <&vbus_typec>;
295		status = "okay";
296
297		usb_con: connector {
298			compatible = "usb-c-connector";
299			label = "USB-C";
300			data-role = "dual";
301			op-sink-microwatt = <1000000>;
302			power-role = "dual";
303			sink-pdos =
304				<PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
305			source-pdos =
306				<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
307			try-power-role = "source";
308
309			ports {
310				#address-cells = <1>;
311				#size-cells = <0>;
312
313				port@0 {
314					reg = <0>;
315					usbc0_hs: endpoint {
316						remote-endpoint = <&usb_host0_xhci_drd_sw>;
317					};
318				};
319
320				port@1 {
321					reg = <1>;
322					usbc0_ss: endpoint {
323						remote-endpoint = <&usbdp_phy0_typec_ss>;
324					};
325				};
326
327				port@2 {
328					reg = <2>;
329					usbc0_sbu: endpoint {
330						remote-endpoint = <&usbdp_phy0_typec_sbu>;
331					};
332				};
333			};
334		};
335	};
336
337	hym8563: rtc@51 {
338		compatible = "haoyu,hym8563";
339		reg = <0x51>;
340		#clock-cells = <0>;
341		clock-output-names = "hym8563";
342		pinctrl-names = "default";
343		pinctrl-0 = <&hym8563_int>;
344		interrupt-parent = <&gpio0>;
345		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
346		wakeup-source;
347	};
348};
349
350&i2s1_8ch {
351	rockchip,i2s-tx-route = <3 2 1 0>;
352	rockchip,i2s-rx-route = <1 3 2 0>;
353	pinctrl-names = "default";
354	pinctrl-0 = <&i2s1m0_sclk
355	             &i2s1m0_mclk
356	             &i2s1m0_lrck
357	             &i2s1m0_sdi1
358	             &i2s1m0_sdo3>;
359	status = "okay";
360};
361
362&i2s5_8ch {
363	status = "okay";
364};
365
366&mdio1 {
367	rgmii_phy1: ethernet-phy@1 {
368		compatible = "ethernet-phy-ieee802.3-c22";
369		reg = <0x1>;
370		reset-assert-us = <20000>;
371		reset-deassert-us = <100000>;
372		reset-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>;
373	};
374};
375
376&pd_gpu {
377	domain-supply = <&vdd_gpu_s0>;
378};
379
380&pinctrl {
381	hym8563 {
382		hym8563_int: hym8563-int {
383			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
384		};
385	};
386
387	sound {
388		hp_detect: hp-detect {
389			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
390		};
391	};
392
393	usb-typec {
394		usbc0_int: usbc0-int {
395			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
396		};
397
398		typec5v_pwren: typec5v-pwren {
399			rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
400		};
401	};
402};
403
404&pwm0 {
405	pinctrl-0 = <&pwm0m2_pins>;
406	pinctrl-names = "default";
407	status = "okay";
408};
409
410&saradc {
411	vref-supply = <&avcc_1v8_s0>;
412	status = "okay";
413};
414
415&sdhci {
416	bus-width = <8>;
417	no-sdio;
418	no-sd;
419	non-removable;
420	max-frequency = <200000000>;
421	mmc-hs400-1_8v;
422	mmc-hs400-enhanced-strobe;
423	status = "disabled";
424};
425
426&sdmmc {
427	bus-width = <4>;
428	cap-sd-highspeed;
429	disable-wp;
430	max-frequency = <150000000>;
431	no-mmc;
432	no-sdio;
433	sd-uhs-sdr104;
434	vmmc-supply = <&vcc_3v3_sd_s0>;
435	vqmmc-supply = <&vccio_sd_s0>;
436	status = "okay";
437};
438
439&sfc {
440	pinctrl-names = "default";
441	pinctrl-0 = <&fspim0_pins>;
442	status = "disabled";
443
444	flash@0 {
445		compatible = "jedec,spi-nor";
446		reg = <0x0>;
447		spi-max-frequency = <100000000>;
448		spi-rx-bus-width = <4>;
449		spi-tx-bus-width = <1>;
450	};
451};
452
453&spi2 {
454	status = "okay";
455	assigned-clocks = <&cru CLK_SPI2>;
456	assigned-clock-rates = <200000000>;
457	num-cs = <1>;
458	pinctrl-names = "default";
459	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
460
461	pmic@0 {
462		compatible = "rockchip,rk806";
463		reg = <0x0>;
464		interrupt-parent = <&gpio0>;
465		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
466		pinctrl-names = "default";
467		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
468				<&rk806_dvs2_null>, <&rk806_dvs3_null>;
469		spi-max-frequency = <1000000>;
470		system-power-controller;
471
472		vcc1-supply = <&vcc5v0_sys>;
473		vcc2-supply = <&vcc5v0_sys>;
474		vcc3-supply = <&vcc5v0_sys>;
475		vcc4-supply = <&vcc5v0_sys>;
476		vcc5-supply = <&vcc5v0_sys>;
477		vcc6-supply = <&vcc5v0_sys>;
478		vcc7-supply = <&vcc5v0_sys>;
479		vcc8-supply = <&vcc5v0_sys>;
480		vcc9-supply = <&vcc5v0_sys>;
481		vcc10-supply = <&vcc5v0_sys>;
482		vcc11-supply = <&vcc_2v0_pldo_s3>;
483		vcc12-supply = <&vcc5v0_sys>;
484		vcc13-supply = <&vcc_1v1_nldo_s3>;
485		vcc14-supply = <&vcc_1v1_nldo_s3>;
486		vcca-supply = <&vcc5v0_sys>;
487
488		gpio-controller;
489		#gpio-cells = <2>;
490
491		rk806_dvs1_null: dvs1-null-pins {
492			pins = "gpio_pwrctrl1";
493			function = "pin_fun0";
494		};
495
496		rk806_dvs2_null: dvs2-null-pins {
497			pins = "gpio_pwrctrl2";
498			function = "pin_fun0";
499		};
500
501		rk806_dvs3_null: dvs3-null-pins {
502			pins = "gpio_pwrctrl3";
503			function = "pin_fun0";
504		};
505
506		regulators {
507			vdd_gpu_s0: dcdc-reg1 {
508				regulator-name = "vdd_gpu_s0";
509				regulator-boot-on;
510				regulator-min-microvolt = <550000>;
511				regulator-max-microvolt = <950000>;
512				regulator-ramp-delay = <12500>;
513				regulator-enable-ramp-delay = <400>;
514
515				regulator-state-mem {
516					regulator-off-in-suspend;
517				};
518			};
519
520			vdd_cpu_lit_s0: dcdc-reg2 {
521				regulator-name = "vdd_cpu_lit_s0";
522				regulator-always-on;
523				regulator-boot-on;
524				regulator-min-microvolt = <550000>;
525				regulator-max-microvolt = <950000>;
526				regulator-ramp-delay = <12500>;
527
528				regulator-state-mem {
529					regulator-off-in-suspend;
530				};
531			};
532
533			vdd_log_s0: dcdc-reg3 {
534				regulator-name = "vdd_log_s0";
535				regulator-always-on;
536				regulator-boot-on;
537				regulator-min-microvolt = <675000>;
538				regulator-max-microvolt = <750000>;
539				regulator-ramp-delay = <12500>;
540
541				regulator-state-mem {
542					regulator-off-in-suspend;
543					regulator-suspend-microvolt = <750000>;
544				};
545			};
546
547			vdd_vdenc_s0: dcdc-reg4 {
548				regulator-name = "vdd_vdenc_s0";
549				regulator-always-on;
550				regulator-boot-on;
551				regulator-min-microvolt = <550000>;
552				regulator-max-microvolt = <950000>;
553				regulator-ramp-delay = <12500>;
554
555				regulator-state-mem {
556					regulator-off-in-suspend;
557				};
558			};
559
560			vdd_ddr_s0: dcdc-reg5 {
561				regulator-name = "vdd_ddr_s0";
562				regulator-always-on;
563				regulator-boot-on;
564				regulator-min-microvolt = <675000>;
565				regulator-max-microvolt = <900000>;
566				regulator-ramp-delay = <12500>;
567
568				regulator-state-mem {
569					regulator-off-in-suspend;
570					regulator-suspend-microvolt = <850000>;
571				};
572			};
573
574			vcc_1v1_nldo_s3: vdd2_ddr_s3: dcdc-reg6 {
575				regulator-name = "vdd2_ddr_s3";
576				regulator-always-on;
577				regulator-boot-on;
578				regulator-max-microvolt = <1100000>;
579				regulator-min-microvolt = <1100000>;
580
581				regulator-state-mem {
582					regulator-on-in-suspend;
583				};
584			};
585
586			vcc_2v0_pldo_s3: dcdc-reg7 {
587				regulator-name = "vdd_2v0_pldo_s3";
588				regulator-always-on;
589				regulator-boot-on;
590				regulator-min-microvolt = <2000000>;
591				regulator-max-microvolt = <2000000>;
592				regulator-ramp-delay = <12500>;
593
594				regulator-state-mem {
595					regulator-on-in-suspend;
596					regulator-suspend-microvolt = <2000000>;
597				};
598			};
599
600			vcc_3v3_s3: dcdc-reg8 {
601				regulator-name = "vcc_3v3_s3";
602				regulator-always-on;
603				regulator-boot-on;
604				regulator-min-microvolt = <3300000>;
605				regulator-max-microvolt = <3300000>;
606
607				regulator-state-mem {
608					regulator-on-in-suspend;
609					regulator-suspend-microvolt = <3300000>;
610				};
611			};
612
613			vddq_ddr_s0: dcdc-reg9 {
614				regulator-name = "vddq_ddr_s0";
615				regulator-always-on;
616				regulator-boot-on;
617
618				regulator-state-mem {
619					regulator-off-in-suspend;
620				};
621			};
622
623			vcc_1v8_s3: dcdc-reg10 {
624				regulator-name = "vcc_1v8_s3";
625				regulator-always-on;
626				regulator-boot-on;
627				regulator-min-microvolt = <1800000>;
628				regulator-max-microvolt = <1800000>;
629
630				regulator-state-mem {
631					regulator-on-in-suspend;
632					regulator-suspend-microvolt = <1800000>;
633				};
634			};
635
636			avcc_1v8_s0: pldo-reg1 {
637				regulator-name = "avcc_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				};
646			};
647
648			vcc_1v8_s0: pldo-reg2 {
649				regulator-name = "vcc_1v8_s0";
650				regulator-always-on;
651				regulator-boot-on;
652				regulator-min-microvolt = <1800000>;
653				regulator-max-microvolt = <1800000>;
654
655				regulator-state-mem {
656					regulator-off-in-suspend;
657					regulator-suspend-microvolt = <1800000>;
658				};
659			};
660
661			avdd_1v2_s0: pldo-reg3 {
662				regulator-name = "avdd_1v2_s0";
663				regulator-always-on;
664				regulator-boot-on;
665				regulator-min-microvolt = <1200000>;
666				regulator-max-microvolt = <1200000>;
667
668				regulator-state-mem {
669					regulator-off-in-suspend;
670				};
671			};
672
673			vcc_3v3_s0: pldo-reg4 {
674				regulator-name = "vcc_3v3_s0";
675				regulator-always-on;
676				regulator-boot-on;
677				regulator-min-microvolt = <3300000>;
678				regulator-max-microvolt = <3300000>;
679				regulator-ramp-delay = <12500>;
680
681				regulator-state-mem {
682					regulator-off-in-suspend;
683				};
684			};
685
686			vccio_sd_s0: pldo-reg5 {
687				regulator-name = "vccio_sd_s0";
688				regulator-always-on;
689				regulator-boot-on;
690				regulator-min-microvolt = <1800000>;
691				regulator-max-microvolt = <3300000>;
692				regulator-ramp-delay = <12500>;
693
694				regulator-state-mem {
695					regulator-off-in-suspend;
696				};
697			};
698
699			pldo6_s3: pldo-reg6 {
700				regulator-name = "pldo6_s3";
701				regulator-always-on;
702				regulator-boot-on;
703				regulator-min-microvolt = <1800000>;
704				regulator-max-microvolt = <1800000>;
705
706				regulator-state-mem {
707					regulator-on-in-suspend;
708					regulator-suspend-microvolt = <1800000>;
709				};
710			};
711
712			vdd_0v75_s3: nldo-reg1 {
713				regulator-name = "vdd_0v75_s3";
714				regulator-always-on;
715				regulator-boot-on;
716				regulator-min-microvolt = <750000>;
717				regulator-max-microvolt = <750000>;
718
719				regulator-state-mem {
720					regulator-on-in-suspend;
721					regulator-suspend-microvolt = <750000>;
722				};
723			};
724
725			vdd_ddr_pll_s0: nldo-reg2 {
726				regulator-name = "vdd_ddr_pll_s0";
727				regulator-always-on;
728				regulator-boot-on;
729				regulator-min-microvolt = <850000>;
730				regulator-max-microvolt = <850000>;
731
732				regulator-state-mem {
733					regulator-off-in-suspend;
734					regulator-suspend-microvolt = <850000>;
735				};
736			};
737
738			avdd_0v75_s0: nldo-reg3 {
739				regulator-name = "avdd_0v75_s0";
740				regulator-always-on;
741				regulator-boot-on;
742				regulator-min-microvolt = <750000>;
743				regulator-max-microvolt = <750000>;
744
745				regulator-state-mem {
746					regulator-off-in-suspend;
747				};
748			};
749
750			vdd_0v85_s0: nldo-reg4 {
751				regulator-name = "vdd_0v85_s0";
752				regulator-always-on;
753				regulator-boot-on;
754				regulator-min-microvolt = <850000>;
755				regulator-max-microvolt = <850000>;
756
757				regulator-state-mem {
758					regulator-off-in-suspend;
759				};
760			};
761
762			vdd_0v75_s0: nldo-reg5 {
763				regulator-name = "vdd_0v75_s0";
764				regulator-always-on;
765				regulator-boot-on;
766				regulator-min-microvolt = <750000>;
767				regulator-max-microvolt = <750000>;
768
769				regulator-state-mem {
770					regulator-off-in-suspend;
771				};
772			};
773		};
774	};
775};
776
777&tsadc {
778	status = "okay";
779};
780
781&u2phy0 {
782	status = "okay";
783};
784
785&u2phy0_otg {
786	status = "okay";
787};
788
789&u2phy2 {
790	status = "okay";
791};
792
793&u2phy2_host {
794	status = "okay";
795};
796
797&u2phy3 {
798	status = "okay";
799};
800
801&u2phy3_host {
802	status = "okay";
803};
804
805&uart2 {
806	pinctrl-0 = <&uart2m0_xfer>;
807	status = "okay";
808};
809
810&usbdp_phy0 {
811	mode-switch;
812	orientation-switch;
813	sbu1-dc-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
814	sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
815	status = "okay";
816
817	port {
818		#address-cells = <1>;
819		#size-cells = <0>;
820
821		usbdp_phy0_typec_ss: endpoint@0 {
822			reg = <0>;
823			remote-endpoint = <&usbc0_ss>;
824		};
825
826		usbdp_phy0_typec_sbu: endpoint@1 {
827			reg = <1>;
828			remote-endpoint = <&usbc0_sbu>;
829		};
830	};
831};
832
833&usb_host0_ehci {
834	status = "okay";
835};
836
837&usb_host0_ohci {
838	status = "okay";
839};
840
841&usb_host0_xhci {
842	dr_mode = "otg";
843	usb-role-switch;
844	status = "okay";
845
846	port {
847		usb_host0_xhci_drd_sw: endpoint {
848			remote-endpoint = <&usbc0_hs>;
849		};
850	};
851};
852
853&usb_host1_ehci {
854	status = "okay";
855};
856
857&usb_host1_ohci {
858	status = "okay";
859};
860
861&usb_host2_xhci {
862	status = "okay";
863};
864
865&vop_mmu {
866	status = "okay";
867};
868
869&vop {
870	status = "okay";
871};
872
873&vp0 {
874	vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
875		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
876		remote-endpoint = <&hdmi0_in_vp0>;
877	};
878};
879