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