xref: /linux/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts (revision a1c3be890440a1769ed6f822376a3e3ab0d42994)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
4 */
5
6/dts-v1/;
7
8#include "dt-bindings/pwm/pwm.h"
9#include "dt-bindings/input/input.h"
10#include "dt-bindings/usb/pd.h"
11#include "rk3399.dtsi"
12#include "rk3399-opp.dtsi"
13
14/ {
15	model = "Orange Pi RK3399 Board";
16	compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399";
17
18	chosen {
19		stdout-path = "serial2:1500000n8";
20	};
21
22	clkin_gmac: external-gmac-clock {
23		compatible = "fixed-clock";
24		clock-frequency = <125000000>;
25		clock-output-names = "clkin_gmac";
26		#clock-cells = <0>;
27	};
28
29	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-up {
37			label = "Volume Up";
38			linux,code = <KEY_VOLUMEUP>;
39			press-threshold-microvolt = <100000>;
40		};
41
42		button-down {
43			label = "Volume Down";
44			linux,code = <KEY_VOLUMEDOWN>;
45			press-threshold-microvolt = <300000>;
46		};
47
48		back {
49			label = "Back";
50			linux,code = <KEY_BACK>;
51			press-threshold-microvolt = <985000>;
52		};
53
54		menu {
55			label = "Menu";
56			linux,code = <KEY_MENU>;
57			press-threshold-microvolt = <1314000>;
58		};
59	};
60
61	dc_12v: dc-12v {
62		compatible = "regulator-fixed";
63		regulator-name = "dc_12v";
64		regulator-always-on;
65		regulator-boot-on;
66		regulator-min-microvolt = <12000000>;
67		regulator-max-microvolt = <12000000>;
68	};
69
70	keys: gpio-keys {
71		compatible = "gpio-keys";
72		autorepeat;
73
74		power {
75			debounce-interval = <100>;
76			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
77			label = "GPIO Power";
78			linux,code = <KEY_POWER>;
79			linux,input-type = <1>;
80			pinctrl-names = "default";
81			pinctrl-0 = <&pwr_btn>;
82			wakeup-source;
83		};
84	};
85
86	sdio_pwrseq: sdio-pwrseq {
87		compatible = "mmc-pwrseq-simple";
88		clocks = <&rk808 1>;
89		clock-names = "ext_clock";
90		pinctrl-names = "default";
91		pinctrl-0 = <&wifi_reg_on_h>;
92		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
93	};
94
95	/* switched by pmic_sleep */
96	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
97		compatible = "regulator-fixed";
98		regulator-name = "vcc1v8_s3";
99		regulator-always-on;
100		regulator-boot-on;
101		regulator-min-microvolt = <1800000>;
102		regulator-max-microvolt = <1800000>;
103		vin-supply = <&vcc_1v8>;
104	};
105
106	vcc3v0_sd: vcc3v0-sd {
107		compatible = "regulator-fixed";
108		enable-active-high;
109		gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
110		pinctrl-names = "default";
111		pinctrl-0 = <&sdmmc0_pwr_h>;
112		regulator-boot-on;
113		regulator-max-microvolt = <3000000>;
114		regulator-min-microvolt = <3000000>;
115		regulator-name = "vcc3v0_sd";
116		vin-supply = <&vcc3v3_sys>;
117	};
118
119	vcc3v3_sys: vcc3v3-sys {
120		compatible = "regulator-fixed";
121		regulator-name = "vcc3v3_sys";
122		regulator-always-on;
123		regulator-boot-on;
124		regulator-min-microvolt = <3300000>;
125		regulator-max-microvolt = <3300000>;
126		vin-supply = <&vcc_sys>;
127	};
128
129	vcc5v0_host: vcc5v0-host-regulator {
130		compatible = "regulator-fixed";
131		enable-active-high;
132		gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
133		pinctrl-names = "default";
134		pinctrl-0 = <&vcc5v0_host_en>;
135		regulator-name = "vcc5v0_host";
136		regulator-always-on;
137		vin-supply = <&vcc_sys>;
138	};
139
140	vbus_typec: vbus-typec-regulator {
141		compatible = "regulator-fixed";
142		enable-active-high;
143		gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
144		pinctrl-names = "default";
145		pinctrl-0 = <&vcc5v0_typec_en>;
146		regulator-name = "vbus_typec";
147		vin-supply = <&vcc_sys>;
148	};
149
150	vcc_sys: vcc-sys {
151		compatible = "regulator-fixed";
152		regulator-name = "vcc_sys";
153		regulator-always-on;
154		regulator-boot-on;
155		regulator-min-microvolt = <5000000>;
156		regulator-max-microvolt = <5000000>;
157		vin-supply = <&dc_12v>;
158	};
159
160	vdd_log: vdd-log {
161		compatible = "pwm-regulator";
162		pwms = <&pwm2 0 25000 1>;
163		regulator-name = "vdd_log";
164		regulator-always-on;
165		regulator-boot-on;
166		regulator-min-microvolt = <800000>;
167		regulator-max-microvolt = <1400000>;
168		vin-supply = <&vcc_sys>;
169	};
170};
171
172&cpu_l0 {
173	cpu-supply = <&vdd_cpu_l>;
174};
175
176&cpu_l1 {
177	cpu-supply = <&vdd_cpu_l>;
178};
179
180&cpu_l2 {
181	cpu-supply = <&vdd_cpu_l>;
182};
183
184&cpu_l3 {
185	cpu-supply = <&vdd_cpu_l>;
186};
187
188&cpu_b0 {
189	cpu-supply = <&vdd_cpu_b>;
190};
191
192&cpu_b1 {
193	cpu-supply = <&vdd_cpu_b>;
194};
195
196&emmc_phy {
197	status = "okay";
198};
199
200&gmac {
201	assigned-clocks = <&cru SCLK_RMII_SRC>;
202	assigned-clock-parents = <&clkin_gmac>;
203	clock_in_out = "input";
204	phy-supply = <&vcc3v3_s3>;
205	phy-mode = "rgmii";
206	phy-handle = <&rtl8211e>;
207	pinctrl-names = "default";
208	pinctrl-0 = <&rgmii_pins>, <&phy_intb>, <&phy_rstb>;
209	tx_delay = <0x28>;
210	rx_delay = <0x11>;
211	status = "okay";
212
213	mdio {
214		compatible = "snps,dwmac-mdio";
215		#address-cells = <1>;
216		#size-cells = <0>;
217
218		rtl8211e: ethernet-phy@1 {
219			reg = <1>;
220			interrupt-parent = <&gpio3>;
221			interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>;
222			reset-assert-us = <10000>;
223			reset-deassert-us = <30000>;
224			reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
225		};
226	};
227};
228
229&gpu {
230	mali-supply = <&vdd_gpu>;
231	status = "okay";
232};
233
234&hdmi {
235	ddc-i2c-bus = <&i2c3>;
236	status = "okay";
237};
238
239&hdmi_sound {
240	status = "okay";
241};
242
243&i2c0 {
244	clock-frequency = <400000>;
245	i2c-scl-rising-time-ns = <168>;
246	i2c-scl-falling-time-ns = <4>;
247	status = "okay";
248
249	rk808: pmic@1b {
250		compatible = "rockchip,rk808";
251		reg = <0x1b>;
252		interrupt-parent = <&gpio1>;
253		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
254		#clock-cells = <1>;
255		clock-output-names = "rtc_clko_soc", "rtc_clko_wifi";
256		pinctrl-names = "default";
257		pinctrl-0 = <&pmic_int_l>;
258		rockchip,system-power-controller;
259		wakeup-source;
260
261		vcc1-supply = <&vcc3v3_sys>;
262		vcc2-supply = <&vcc3v3_sys>;
263		vcc3-supply = <&vcc3v3_sys>;
264		vcc4-supply = <&vcc3v3_sys>;
265		vcc6-supply = <&vcc3v3_sys>;
266		vcc7-supply = <&vcc3v3_sys>;
267		vcc8-supply = <&vcc3v3_sys>;
268		vcc9-supply = <&vcc3v3_sys>;
269		vcc10-supply = <&vcc3v3_sys>;
270		vcc11-supply = <&vcc3v3_sys>;
271		vcc12-supply = <&vcc3v3_sys>;
272		vddio-supply = <&vcc_3v0>;
273
274		regulators {
275			vdd_center: DCDC_REG1 {
276				regulator-name = "vdd_center";
277				regulator-always-on;
278				regulator-boot-on;
279				regulator-min-microvolt = <700000>;
280				regulator-max-microvolt = <1500000>;
281				regulator-ramp-delay = <6001>;
282				regulator-state-mem {
283					regulator-off-in-suspend;
284				};
285			};
286
287			vdd_cpu_l: DCDC_REG2 {
288				regulator-name = "vdd_cpu_l";
289				regulator-always-on;
290				regulator-boot-on;
291				regulator-min-microvolt = <700000>;
292				regulator-max-microvolt = <1500000>;
293				regulator-ramp-delay = <6001>;
294				regulator-state-mem {
295					regulator-off-in-suspend;
296				};
297			};
298
299			vcc_ddr: DCDC_REG3 {
300				regulator-name = "vcc_ddr";
301				regulator-always-on;
302				regulator-boot-on;
303				regulator-state-mem {
304					regulator-on-in-suspend;
305				};
306			};
307
308			vcc_1v8: DCDC_REG4 {
309				regulator-name = "vcc_1v8";
310				regulator-always-on;
311				regulator-boot-on;
312				regulator-min-microvolt = <1800000>;
313				regulator-max-microvolt = <3300000>;
314				regulator-state-mem {
315					regulator-on-in-suspend;
316					regulator-suspend-microvolt = <1800000>;
317				};
318			};
319
320			vcc1v8_dvp: LDO_REG1 {
321				regulator-name = "vcc1v8_dvp";
322				regulator-always-on;
323				regulator-boot-on;
324				regulator-min-microvolt = <1800000>;
325				regulator-max-microvolt = <3400000>;
326				regulator-state-mem {
327					regulator-off-in-suspend;
328				};
329			};
330
331			vcc3v0_tp: LDO_REG2 {
332				regulator-name = "vcc3v0_tp";
333				regulator-always-on;
334				regulator-boot-on;
335				regulator-min-microvolt = <1800000>;
336				regulator-max-microvolt = <3400000>;
337				regulator-state-mem {
338					regulator-off-in-suspend;
339				};
340			};
341
342			vcc1v8_pmupll: LDO_REG3 {
343				regulator-name = "vcc1v8_pmupll";
344				regulator-always-on;
345				regulator-boot-on;
346				regulator-min-microvolt = <800000>;
347				regulator-max-microvolt = <2500000>;
348				regulator-state-mem {
349					regulator-on-in-suspend;
350					regulator-suspend-microvolt = <1800000>;
351				};
352			};
353
354			vcc_sdio: LDO_REG4 {
355				regulator-name = "vcc_sdio";
356				regulator-always-on;
357				regulator-boot-on;
358				regulator-min-microvolt = <1800000>;
359				regulator-max-microvolt = <3400000>;
360				regulator-state-mem {
361					regulator-on-in-suspend;
362					regulator-suspend-microvolt = <3000000>;
363				};
364			};
365
366			vcca3v0_codec: LDO_REG5 {
367				regulator-name = "vcca3v0_codec";
368				regulator-always-on;
369				regulator-boot-on;
370				regulator-min-microvolt = <1800000>;
371				regulator-max-microvolt = <3400000>;
372				regulator-state-mem {
373					regulator-off-in-suspend;
374				};
375			};
376
377			vcc_1v5: LDO_REG6 {
378				regulator-name = "vcc_1v5";
379				regulator-always-on;
380				regulator-boot-on;
381				regulator-min-microvolt = <800000>;
382				regulator-max-microvolt = <2500000>;
383				regulator-state-mem {
384					regulator-on-in-suspend;
385					regulator-suspend-microvolt = <1500000>;
386				};
387			};
388
389			vcca1v8_codec: LDO_REG7 {
390				regulator-name = "vcca1v8_codec";
391				regulator-always-on;
392				regulator-boot-on;
393				regulator-min-microvolt = <800000>;
394				regulator-max-microvolt = <2500000>;
395				regulator-state-mem {
396					regulator-off-in-suspend;
397				};
398			};
399
400			vcc_3v0: LDO_REG8 {
401				regulator-name = "vcc_3v0";
402				regulator-always-on;
403				regulator-boot-on;
404				regulator-min-microvolt = <1800000>;
405				regulator-max-microvolt = <3400000>;
406				regulator-state-mem {
407					regulator-on-in-suspend;
408					regulator-suspend-microvolt = <3000000>;
409				};
410			};
411
412			vcc3v3_s3: SWITCH_REG1 {
413				regulator-name = "vcc3v3_s3";
414				regulator-always-on;
415				regulator-boot-on;
416				regulator-state-mem {
417					regulator-off-in-suspend;
418				};
419			};
420
421			vcc3v3_s0: SWITCH_REG2 {
422				regulator-name = "vcc3v3_s0";
423				regulator-always-on;
424				regulator-boot-on;
425				regulator-state-mem {
426					regulator-off-in-suspend;
427				};
428			};
429		};
430	};
431
432	vdd_cpu_b: regulator@40 {
433		compatible = "silergy,syr827";
434		reg = <0x40>;
435		fcs,suspend-voltage-selector = <1>;
436		pinctrl-names = "default";
437		pinctrl-0 = <&cpu_b_sleep>;
438		regulator-name = "vdd_cpu_b";
439		regulator-min-microvolt = <712500>;
440		regulator-max-microvolt = <1500000>;
441		regulator-ramp-delay = <1000>;
442		regulator-always-on;
443		regulator-boot-on;
444		vin-supply = <&vcc3v3_sys>;
445
446		regulator-state-mem {
447			regulator-off-in-suspend;
448		};
449	};
450
451	vdd_gpu: regulator@41 {
452		compatible = "silergy,syr828";
453		reg = <0x41>;
454		fcs,suspend-voltage-selector = <1>;
455		pinctrl-names = "default";
456		pinctrl-0 = <&gpu_sleep>;
457		regulator-name = "vdd_gpu";
458		regulator-min-microvolt = <712500>;
459		regulator-max-microvolt = <1500000>;
460		regulator-ramp-delay = <1000>;
461		regulator-always-on;
462		regulator-boot-on;
463		vin-supply = <&vcc3v3_sys>;
464
465		regulator-state-mem {
466			regulator-off-in-suspend;
467		};
468	};
469};
470
471&i2c1 {
472	i2c-scl-rising-time-ns = <450>;
473	i2c-scl-falling-time-ns = <15>;
474	status = "okay";
475};
476
477&i2c3 {
478	i2c-scl-rising-time-ns = <450>;
479	i2c-scl-falling-time-ns = <15>;
480	status = "okay";
481};
482
483&i2c4 {
484	clock-frequency = <400000>;
485	i2c-scl-rising-time-ns = <450>;
486	i2c-scl-falling-time-ns = <15>;
487	status = "okay";
488
489	ak09911@c {
490		compatible = "asahi-kasei,ak09911";
491		reg = <0x0c>;
492		vdd-supply = <&vcc3v3_s3>;
493		vid-supply = <&vcc3v3_s3>;
494	};
495
496	mpu6500@68 {
497		compatible = "invensense,mpu6500";
498		reg = <0x68>;
499		interrupt-parent = <&gpio1>;
500		interrupts = <RK_PC6 IRQ_TYPE_EDGE_RISING>;
501		pinctrl-names = "default";
502		pinctrl-0 = <&gsensor_int_l>;
503		vddio-supply = <&vcc3v3_s3>;
504	};
505
506	lsm6ds3@6a {
507		compatible = "st,lsm6ds3";
508		reg = <0x6a>;
509		interrupt-parent = <&gpio1>;
510		interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>;
511		pinctrl-names = "default";
512		pinctrl-0 = <&gyr_int_l>;
513		vdd-supply = <&vcc3v3_s3>;
514		vddio-supply = <&vcc3v3_s3>;
515	};
516
517	cm32181@10 {
518		compatible = "capella,cm32181";
519		reg = <0x10>;
520		interrupt-parent = <&gpio4>;
521		interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>;
522		pinctrl-names = "default";
523		pinctrl-0 = <&light_int_l>;
524		vdd-supply = <&vcc3v3_s3>;
525	};
526
527	fusb302@22 {
528		compatible = "fcs,fusb302";
529		reg = <0x22>;
530		interrupt-parent = <&gpio1>;
531		interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
532		pinctrl-names = "default";
533		pinctrl-0 = <&chg_cc_int_l>;
534		vbus-supply = <&vbus_typec>;
535
536		typec_con: connector {
537			compatible = "usb-c-connector";
538			data-role = "host";
539			label = "USB-C";
540			op-sink-microwatt = <1000000>;
541			power-role = "dual";
542			sink-pdos =
543				<PDO_FIXED(5000, 2500, PDO_FIXED_USB_COMM)>;
544			source-pdos =
545				<PDO_FIXED(5000, 1400, PDO_FIXED_USB_COMM)>;
546			try-power-role = "sink";
547
548			ports {
549				#address-cells = <1>;
550				#size-cells = <0>;
551
552				port@0 {
553					reg = <0>;
554					typec_hs: endpoint {
555						remote-endpoint = <&u2phy0_typec_hs>;
556					};
557				};
558				port@1 {
559					reg = <1>;
560					typec_ss: endpoint {
561						remote-endpoint = <&tcphy0_typec_ss>;
562					};
563				};
564				port@2 {
565					reg = <2>;
566					typec_dp: endpoint {
567						remote-endpoint = <&tcphy0_typec_dp>;
568					};
569				};
570			};
571		};
572	};
573};
574
575&io_domains {
576	status = "okay";
577	bt656-supply = <&vcc_3v0>;
578	audio-supply = <&vcca1v8_codec>;
579	sdmmc-supply = <&vcc_sdio>;
580	gpio1830-supply = <&vcc_3v0>;
581};
582
583&pmu_io_domains {
584	status = "okay";
585	pmu1830-supply = <&vcc_3v0>;
586};
587
588&pinctrl {
589	buttons {
590		pwr_btn: pwr-btn {
591			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
592		};
593	};
594
595	gmac {
596		phy_intb: phy-intb {
597			rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
598		};
599
600		phy_rstb: phy-rstb {
601			rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
602		};
603	};
604
605	pmic {
606		cpu_b_sleep: cpu-b-sleep {
607			rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
608		};
609
610		gpu_sleep: gpu-sleep {
611			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
612		};
613
614		pmic_int_l: pmic-int-l {
615			rockchip,pins =
616				<1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
617		};
618	};
619
620	sd {
621		sdmmc0_pwr_h: sdmmc0-pwr-h {
622			rockchip,pins =
623				<0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
624		};
625	};
626
627	usb2 {
628		vcc5v0_host_en: vcc5v0-host-en {
629			rockchip,pins =
630				<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
631		};
632
633		vcc5v0_typec_en: vcc5v0-typec-en {
634			rockchip,pins =
635				<1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
636		};
637	};
638
639	sdio-pwrseq {
640		wifi_reg_on_h: wifi-reg-on-h {
641			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
642		};
643	};
644
645	wifi {
646		wifi_host_wake_l: wifi-host-wake-l {
647			rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
648		};
649	};
650
651	bluetooth {
652		bt_reg_on_h: bt-enable-h {
653			rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
654		};
655
656		bt_host_wake_l: bt-host-wake-l {
657			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
658		};
659
660		bt_wake_l: bt-wake-l {
661			rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
662		};
663	};
664
665	mpu6500 {
666		gsensor_int_l: gsensor-int-l {
667			rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
668		};
669	};
670
671	lsm6ds3 {
672		gyr_int_l: gyr-int-l {
673			rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
674		};
675	};
676
677	cm32181 {
678		light_int_l: light-int-l {
679			rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
680		};
681	};
682
683	fusb302 {
684		chg_cc_int_l: chg-cc-int-l {
685			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
686		};
687	};
688};
689
690&pwm0 {
691	status = "okay";
692};
693
694&pwm2 {
695	status = "okay";
696};
697
698&saradc {
699	vref-supply = <&vcca1v8_s3>;
700	status = "okay";
701};
702
703&sdhci {
704	bus-width = <8>;
705	mmc-hs400-1_8v;
706	mmc-hs400-enhanced-strobe;
707	non-removable;
708	status = "okay";
709};
710
711&sdio0 {
712	bus-width = <4>;
713	cap-sd-highspeed;
714	cap-sdio-irq;
715	clock-frequency = <50000000>;
716	disable-wp;
717	keep-power-in-suspend;
718	max-frequency = <50000000>;
719	mmc-pwrseq = <&sdio_pwrseq>;
720	non-removable;
721	pinctrl-names = "default";
722	pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
723	sd-uhs-sdr104;
724	#address-cells = <1>;
725	#size-cells = <0>;
726	status = "okay";
727
728	brcmf: wifi@1 {
729		reg = <1>;
730		compatible = "brcm,bcm4329-fmac";
731		interrupt-parent = <&gpio0>;
732		interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
733		interrupt-names = "host-wake";
734		pinctrl-names = "default";
735		pinctrl-0 = <&wifi_host_wake_l>;
736	};
737};
738
739&sdmmc {
740	bus-width = <4>;
741	cap-mmc-highspeed;
742	cap-sd-highspeed;
743	cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
744	clock-frequency = <150000000>;
745	disable-wp;
746	max-frequency = <150000000>;
747	pinctrl-names = "default";
748	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
749	vmmc-supply = <&vcc3v0_sd>;
750	vqmmc-supply = <&vcc_sdio>;
751	status = "okay";
752};
753
754&tcphy0 {
755	status = "okay";
756};
757
758&tcphy0_dp {
759	port {
760		tcphy0_typec_dp: endpoint {
761			remote-endpoint = <&typec_dp>;
762		};
763	};
764};
765
766&tcphy0_usb3 {
767	port {
768		tcphy0_typec_ss: endpoint {
769			remote-endpoint = <&typec_ss>;
770		};
771	};
772};
773
774&tcphy1 {
775	status = "okay";
776};
777
778&tsadc {
779	rockchip,hw-tshut-mode = <1>;
780	rockchip,hw-tshut-polarity = <1>;
781	status = "okay";
782};
783
784&u2phy0 {
785	status = "okay";
786
787	u2phy0_otg: otg-port {
788		phy-supply = <&vbus_typec>;
789		status = "okay";
790	};
791
792	u2phy0_host: host-port {
793		phy-supply = <&vcc5v0_host>;
794		status = "okay";
795	};
796
797	port {
798		u2phy0_typec_hs: endpoint {
799			remote-endpoint = <&typec_hs>;
800		};
801	};
802};
803
804&u2phy1 {
805	status = "okay";
806
807	u2phy1_otg: otg-port {
808		status = "okay";
809	};
810
811	u2phy1_host: host-port {
812		phy-supply = <&vcc5v0_host>;
813		status = "okay";
814	};
815};
816
817&uart0 {
818	pinctrl-names = "default";
819	pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
820	status = "okay";
821
822	bluetooth {
823		compatible = "brcm,bcm43438-bt";
824		clocks = <&rk808 1>;
825		clock-names = "lpo";
826		device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
827		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
828		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
829		pinctrl-names = "default";
830		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_reg_on_h>;
831		vbat-supply = <&vcc3v3_sys>;
832		vddio-supply = <&vcc_1v8>;
833	};
834};
835
836&uart2 {
837	status = "okay";
838};
839
840&usb_host0_ehci {
841	status = "okay";
842};
843
844&usb_host0_ohci {
845	status = "okay";
846};
847
848&usb_host1_ehci {
849	status = "okay";
850};
851
852&usb_host1_ohci {
853	status = "okay";
854};
855
856&usbdrd3_0 {
857	status = "okay";
858};
859
860&usbdrd_dwc3_0 {
861	status = "okay";
862	dr_mode = "host";
863};
864
865&usbdrd3_1 {
866	status = "okay";
867};
868
869&usbdrd_dwc3_1 {
870	status = "okay";
871	dr_mode = "host";
872};
873
874&vopb {
875	status = "okay";
876};
877
878&vopb_mmu {
879	status = "okay";
880};
881
882&vopl {
883	status = "okay";
884};
885
886&vopl_mmu {
887	status = "okay";
888};
889