1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4#include <dt-bindings/gpio/gpio.h>
5#include <dt-bindings/leds/common.h>
6#include <dt-bindings/pinctrl/rockchip.h>
7#include <dt-bindings/soc/rockchip,vop2.h>
8#include "rk3568.dtsi"
9
10/ {
11	model = "Radxa ROCK3 Model A";
12	compatible = "radxa,rock3a", "rockchip,rk3568";
13
14	aliases {
15		ethernet0 = &gmac1;
16		mmc0 = &sdmmc0;
17		mmc1 = &sdhci;
18	};
19
20	chosen: chosen {
21		stdout-path = "serial2:1500000n8";
22	};
23
24	hdmi-con {
25		compatible = "hdmi-connector";
26		type = "a";
27
28		port {
29			hdmi_con_in: endpoint {
30				remote-endpoint = <&hdmi_out_con>;
31			};
32		};
33	};
34
35	gmac1_clkin: external-gmac1-clock {
36		compatible = "fixed-clock";
37		clock-frequency = <125000000>;
38		clock-output-names = "gmac1_clkin";
39		#clock-cells = <0>;
40	};
41
42	leds {
43		compatible = "gpio-leds";
44
45		led_user: led-0 {
46			gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
47			function = LED_FUNCTION_HEARTBEAT;
48			color = <LED_COLOR_ID_BLUE>;
49			linux,default-trigger = "heartbeat";
50			pinctrl-names = "default";
51			pinctrl-0 = <&led_user_en>;
52		};
53	};
54
55	rk809-sound {
56		compatible = "simple-audio-card";
57		simple-audio-card,format = "i2s";
58		simple-audio-card,name = "Analog RK809";
59		simple-audio-card,mclk-fs = <256>;
60
61		simple-audio-card,cpu {
62			sound-dai = <&i2s1_8ch>;
63		};
64
65		simple-audio-card,codec {
66			sound-dai = <&rk809>;
67		};
68	};
69
70	sdio_pwrseq: sdio-pwrseq {
71		compatible = "mmc-pwrseq-simple";
72		clocks = <&rk809 1>;
73		clock-names = "ext_clock";
74		pinctrl-names = "default";
75		pinctrl-0 = <&wifi_enable>;
76		post-power-on-delay-ms = <100>;
77		power-off-delay-us = <5000000>;
78		reset-gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>;
79	};
80
81	vcc12v_dcin: vcc12v-dcin-regulator {
82		compatible = "regulator-fixed";
83		regulator-name = "vcc12v_dcin";
84		regulator-always-on;
85		regulator-boot-on;
86	};
87
88	pcie30_avdd0v9: pcie30-avdd0v9-regulator {
89		compatible = "regulator-fixed";
90		regulator-name = "pcie30_avdd0v9";
91		regulator-always-on;
92		regulator-boot-on;
93		regulator-min-microvolt = <900000>;
94		regulator-max-microvolt = <900000>;
95		vin-supply = <&vcc3v3_sys>;
96	};
97
98	pcie30_avdd1v8: pcie30-avdd1v8-regulator {
99		compatible = "regulator-fixed";
100		regulator-name = "pcie30_avdd1v8";
101		regulator-always-on;
102		regulator-boot-on;
103		regulator-min-microvolt = <1800000>;
104		regulator-max-microvolt = <1800000>;
105		vin-supply = <&vcc3v3_sys>;
106	};
107
108	/* pi6c pcie clock generator */
109	vcc3v3_pi6c_03: vcc3v3-pi6c-03-regulator {
110		compatible = "regulator-fixed";
111		regulator-name = "vcc3v3_pi6c_03";
112		regulator-always-on;
113		regulator-boot-on;
114		regulator-min-microvolt = <3300000>;
115		regulator-max-microvolt = <3300000>;
116		vin-supply = <&vcc5v0_sys>;
117	};
118
119	vcc3v3_pcie: vcc3v3-pcie-regulator {
120		compatible = "regulator-fixed";
121		enable-active-high;
122		gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
123		pinctrl-names = "default";
124		pinctrl-0 = <&pcie_enable_h>;
125		regulator-name = "vcc3v3_pcie";
126		regulator-min-microvolt = <3300000>;
127		regulator-max-microvolt = <3300000>;
128		vin-supply = <&vcc5v0_sys>;
129	};
130
131	vcc3v3_sys: vcc3v3-sys-regulator {
132		compatible = "regulator-fixed";
133		regulator-name = "vcc3v3_sys";
134		regulator-always-on;
135		regulator-boot-on;
136		regulator-min-microvolt = <3300000>;
137		regulator-max-microvolt = <3300000>;
138		vin-supply = <&vcc12v_dcin>;
139	};
140
141	vcc5v0_sys: vcc5v0-sys-regulator {
142		compatible = "regulator-fixed";
143		regulator-name = "vcc5v0_sys";
144		regulator-always-on;
145		regulator-boot-on;
146		regulator-min-microvolt = <5000000>;
147		regulator-max-microvolt = <5000000>;
148		vin-supply = <&vcc12v_dcin>;
149	};
150
151	vcc5v0_usb: vcc5v0-usb-regulator {
152		compatible = "regulator-fixed";
153		regulator-name = "vcc5v0_usb";
154		regulator-always-on;
155		regulator-boot-on;
156		regulator-min-microvolt = <5000000>;
157		regulator-max-microvolt = <5000000>;
158		vin-supply = <&vcc12v_dcin>;
159	};
160
161	vcc5v0_usb_host: vcc5v0-usb-host-regulator {
162		compatible = "regulator-fixed";
163		enable-active-high;
164		gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
165		pinctrl-names = "default";
166		pinctrl-0 = <&vcc5v0_usb_host_en>;
167		regulator-name = "vcc5v0_usb_host";
168		regulator-min-microvolt = <5000000>;
169		regulator-max-microvolt = <5000000>;
170		vin-supply = <&vcc5v0_usb>;
171	};
172
173	vcc5v0_usb_hub: vcc5v0-usb-hub-regulator {
174		compatible = "regulator-fixed";
175		enable-active-high;
176		gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
177		pinctrl-names = "default";
178		pinctrl-0 = <&vcc5v0_usb_hub_en>;
179		regulator-name = "vcc5v0_usb_hub";
180		regulator-always-on;
181		vin-supply = <&vcc5v0_usb>;
182	};
183
184	vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
185		compatible = "regulator-fixed";
186		enable-active-high;
187		gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
188		pinctrl-names = "default";
189		pinctrl-0 = <&vcc5v0_usb_otg_en>;
190		regulator-name = "vcc5v0_usb_otg";
191		regulator-min-microvolt = <5000000>;
192		regulator-max-microvolt = <5000000>;
193		vin-supply = <&vcc5v0_usb>;
194	};
195
196	vcc_cam: vcc-cam-regulator {
197		compatible = "regulator-fixed";
198		enable-active-high;
199		gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
200		pinctrl-names = "default";
201		pinctrl-0 = <&vcc_cam_en>;
202		regulator-name = "vcc_cam";
203		regulator-min-microvolt = <3300000>;
204		regulator-max-microvolt = <3300000>;
205		vin-supply = <&vcc3v3_sys>;
206
207		regulator-state-mem {
208			regulator-off-in-suspend;
209		};
210	};
211
212	vcc_mipi: vcc-mipi-regulator {
213		compatible = "regulator-fixed";
214		enable-active-high;
215		gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
216		pinctrl-names = "default";
217		pinctrl-0 = <&vcc_mipi_en>;
218		regulator-name = "vcc_mipi";
219		regulator-min-microvolt = <3300000>;
220		regulator-max-microvolt = <3300000>;
221		vin-supply = <&vcc3v3_sys>;
222
223		regulator-state-mem {
224			regulator-off-in-suspend;
225		};
226	};
227};
228
229&combphy0 {
230	status = "okay";
231};
232
233&combphy1 {
234	status = "okay";
235};
236
237&combphy2 {
238	status = "okay";
239};
240
241&cpu0 {
242	cpu-supply = <&vdd_cpu>;
243};
244
245&cpu1 {
246	cpu-supply = <&vdd_cpu>;
247};
248
249&cpu2 {
250	cpu-supply = <&vdd_cpu>;
251};
252
253&cpu3 {
254	cpu-supply = <&vdd_cpu>;
255};
256
257&gmac1 {
258	assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
259	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>;
260	clock_in_out = "input";
261	phy-handle = <&rgmii_phy1>;
262	phy-mode = "rgmii-id";
263	phy-supply = <&vcc_3v3>;
264	pinctrl-names = "default";
265	pinctrl-0 = <&gmac1m1_miim
266		     &gmac1m1_tx_bus2
267		     &gmac1m1_rx_bus2
268		     &gmac1m1_rgmii_clk
269		     &gmac1m1_clkinout
270		     &gmac1m1_rgmii_bus>;
271	status = "okay";
272};
273
274&gpu {
275	mali-supply = <&vdd_gpu>;
276	status = "okay";
277};
278
279&hdmi {
280	avdd-0v9-supply = <&vdda0v9_image>;
281	avdd-1v8-supply = <&vcca1v8_image>;
282	status = "okay";
283};
284
285&hdmi_in {
286	hdmi_in_vp0: endpoint {
287		remote-endpoint = <&vp0_out_hdmi>;
288	};
289};
290
291&hdmi_out {
292	hdmi_out_con: endpoint {
293		remote-endpoint = <&hdmi_con_in>;
294	};
295};
296
297&hdmi_sound {
298	status = "okay";
299};
300
301&i2c0 {
302	status = "okay";
303
304	vdd_cpu: regulator@1c {
305		compatible = "tcs,tcs4525";
306		reg = <0x1c>;
307		fcs,suspend-voltage-selector = <1>;
308		regulator-name = "vdd_cpu";
309		regulator-always-on;
310		regulator-boot-on;
311		regulator-min-microvolt = <800000>;
312		regulator-max-microvolt = <1150000>;
313		regulator-ramp-delay = <2300>;
314		vin-supply = <&vcc5v0_sys>;
315
316		regulator-state-mem {
317			regulator-off-in-suspend;
318		};
319	};
320
321	rk809: pmic@20 {
322		compatible = "rockchip,rk809";
323		reg = <0x20>;
324		interrupt-parent = <&gpio0>;
325		interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
326		assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
327		assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
328		#clock-cells = <1>;
329		clock-names = "mclk";
330		clocks = <&cru I2S1_MCLKOUT_TX>;
331		pinctrl-names = "default";
332		pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>;
333		rockchip,system-power-controller;
334		#sound-dai-cells = <0>;
335		vcc1-supply = <&vcc3v3_sys>;
336		vcc2-supply = <&vcc3v3_sys>;
337		vcc3-supply = <&vcc3v3_sys>;
338		vcc4-supply = <&vcc3v3_sys>;
339		vcc5-supply = <&vcc3v3_sys>;
340		vcc6-supply = <&vcc3v3_sys>;
341		vcc7-supply = <&vcc3v3_sys>;
342		vcc8-supply = <&vcc3v3_sys>;
343		vcc9-supply = <&vcc3v3_sys>;
344		wakeup-source;
345
346		regulators {
347			vdd_logic: DCDC_REG1 {
348				regulator-name = "vdd_logic";
349				regulator-always-on;
350				regulator-boot-on;
351				regulator-init-microvolt = <900000>;
352				regulator-initial-mode = <0x2>;
353				regulator-min-microvolt = <500000>;
354				regulator-max-microvolt = <1350000>;
355				regulator-ramp-delay = <6001>;
356
357				regulator-state-mem {
358					regulator-off-in-suspend;
359				};
360			};
361
362			vdd_gpu: DCDC_REG2 {
363				regulator-name = "vdd_gpu";
364				regulator-always-on;
365				regulator-init-microvolt = <900000>;
366				regulator-initial-mode = <0x2>;
367				regulator-min-microvolt = <500000>;
368				regulator-max-microvolt = <1350000>;
369				regulator-ramp-delay = <6001>;
370
371				regulator-state-mem {
372					regulator-off-in-suspend;
373				};
374			};
375
376			vcc_ddr: DCDC_REG3 {
377				regulator-name = "vcc_ddr";
378				regulator-always-on;
379				regulator-boot-on;
380				regulator-initial-mode = <0x2>;
381
382				regulator-state-mem {
383					regulator-on-in-suspend;
384				};
385			};
386
387			vdd_npu: DCDC_REG4 {
388				regulator-name = "vdd_npu";
389				regulator-init-microvolt = <900000>;
390				regulator-initial-mode = <0x2>;
391				regulator-min-microvolt = <500000>;
392				regulator-max-microvolt = <1350000>;
393				regulator-ramp-delay = <6001>;
394
395				regulator-state-mem {
396					regulator-off-in-suspend;
397				};
398			};
399
400			vcc_1v8: DCDC_REG5 {
401				regulator-name = "vcc_1v8";
402				regulator-always-on;
403				regulator-boot-on;
404				regulator-min-microvolt = <1800000>;
405				regulator-max-microvolt = <1800000>;
406
407				regulator-state-mem {
408					regulator-off-in-suspend;
409				};
410			};
411
412			vdda0v9_image: LDO_REG1 {
413				regulator-name = "vdda0v9_image";
414				regulator-min-microvolt = <900000>;
415				regulator-max-microvolt = <900000>;
416
417				regulator-state-mem {
418					regulator-off-in-suspend;
419				};
420			};
421
422			vdda_0v9: LDO_REG2 {
423				regulator-name = "vdda_0v9";
424				regulator-always-on;
425				regulator-boot-on;
426				regulator-min-microvolt = <900000>;
427				regulator-max-microvolt = <900000>;
428
429				regulator-state-mem {
430					regulator-off-in-suspend;
431				};
432			};
433
434			vdda0v9_pmu: LDO_REG3 {
435				regulator-name = "vdda0v9_pmu";
436				regulator-always-on;
437				regulator-boot-on;
438				regulator-min-microvolt = <900000>;
439				regulator-max-microvolt = <900000>;
440
441				regulator-state-mem {
442					regulator-on-in-suspend;
443					regulator-suspend-microvolt = <900000>;
444				};
445			};
446
447			vccio_acodec: LDO_REG4 {
448				regulator-name = "vccio_acodec";
449				regulator-always-on;
450				regulator-min-microvolt = <3300000>;
451				regulator-max-microvolt = <3300000>;
452
453				regulator-state-mem {
454					regulator-off-in-suspend;
455				};
456			};
457
458			vccio_sd: LDO_REG5 {
459				regulator-name = "vccio_sd";
460				regulator-min-microvolt = <1800000>;
461				regulator-max-microvolt = <3300000>;
462
463				regulator-state-mem {
464					regulator-off-in-suspend;
465				};
466			};
467
468			vcc3v3_pmu: LDO_REG6 {
469				regulator-name = "vcc3v3_pmu";
470				regulator-always-on;
471				regulator-boot-on;
472				regulator-min-microvolt = <3300000>;
473				regulator-max-microvolt = <3300000>;
474
475				regulator-state-mem {
476					regulator-on-in-suspend;
477					regulator-suspend-microvolt = <3300000>;
478				};
479			};
480
481			vcca_1v8: LDO_REG7 {
482				regulator-name = "vcca_1v8";
483				regulator-always-on;
484				regulator-boot-on;
485				regulator-min-microvolt = <1800000>;
486				regulator-max-microvolt = <1800000>;
487
488				regulator-state-mem {
489					regulator-off-in-suspend;
490				};
491			};
492
493			vcca1v8_pmu: LDO_REG8 {
494				regulator-name = "vcca1v8_pmu";
495				regulator-always-on;
496				regulator-boot-on;
497				regulator-min-microvolt = <1800000>;
498				regulator-max-microvolt = <1800000>;
499
500				regulator-state-mem {
501					regulator-on-in-suspend;
502					regulator-suspend-microvolt = <1800000>;
503				};
504			};
505
506			vcca1v8_image: LDO_REG9 {
507				regulator-name = "vcca1v8_image";
508				regulator-min-microvolt = <1800000>;
509				regulator-max-microvolt = <1800000>;
510
511				regulator-state-mem {
512					regulator-off-in-suspend;
513				};
514			};
515
516			vcc_3v3: SWITCH_REG1 {
517				regulator-name = "vcc_3v3";
518				regulator-always-on;
519				regulator-boot-on;
520
521				regulator-state-mem {
522					regulator-off-in-suspend;
523				};
524			};
525
526			vcc3v3_sd: SWITCH_REG2 {
527				regulator-name = "vcc3v3_sd";
528
529				regulator-state-mem {
530					regulator-off-in-suspend;
531				};
532			};
533		};
534
535		codec {
536			mic-in-differential;
537		};
538	};
539};
540
541&i2c3 {
542	pinctrl-names = "default";
543	pinctrl-0 = <&i2c3m1_xfer>;
544	status = "disabled";
545};
546
547&i2c4 {
548	pinctrl-names = "default";
549	pinctrl-0 = <&i2c4m1_xfer>;
550	status = "disabled";
551};
552
553&i2c5 {
554	status = "okay";
555
556	hym8563: rtc@51 {
557		compatible = "haoyu,hym8563";
558		reg = <0x51>;
559		interrupt-parent = <&gpio0>;
560		interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
561		#clock-cells = <0>;
562		clock-output-names = "rtcic_32kout";
563		pinctrl-names = "default";
564		pinctrl-0 = <&hym8563_int>;
565		wakeup-source;
566	};
567};
568
569&i2s0_8ch {
570	status = "okay";
571};
572
573&i2s1_8ch {
574	rockchip,trcm-sync-tx-only;
575	status = "okay";
576};
577
578&i2s2_2ch {
579	rockchip,trcm-sync-tx-only;
580	status = "okay";
581};
582
583&mdio1 {
584	rgmii_phy1: ethernet-phy@0 {
585		compatible = "ethernet-phy-ieee802.3-c22";
586		reg = <0x0>;
587		pinctrl-names = "default";
588		pinctrl-0 = <&eth_phy_rst>;
589		reset-assert-us = <20000>;
590		reset-deassert-us = <100000>;
591		reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
592	};
593};
594
595&pcie2x1 {
596	pinctrl-names = "default";
597	pinctrl-0 = <&pcie_reset_h>;
598	reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
599	vpcie3v3-supply = <&vcc3v3_pcie>;
600	status = "okay";
601};
602
603&pcie30phy {
604	phy-supply = <&vcc3v3_pi6c_03>;
605	status = "okay";
606};
607
608&pcie3x2 {
609	pinctrl-names = "default";
610	pinctrl-0 = <&pcie30x2m1_pins>;
611	reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
612	vpcie3v3-supply = <&vcc3v3_pcie>;
613	status = "okay";
614};
615
616&pinctrl {
617	cam {
618		vcc_cam_en: vcc_cam_en {
619			rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
620		};
621	};
622
623	display {
624		vcc_mipi_en: vcc_mipi_en {
625			rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
626		};
627	};
628
629	ethernet {
630		eth_phy_rst: eth_phy_rst {
631			rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
632		};
633	};
634
635	hym8563 {
636		hym8563_int: hym8563-int {
637			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
638		};
639	};
640
641	leds {
642		led_user_en: led_user_en {
643			rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
644		};
645	};
646
647	pcie {
648		pcie_enable_h: pcie-enable-h {
649			rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
650		};
651
652		pcie_reset_h: pcie-reset-h {
653			rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
654		};
655	};
656
657	pmic {
658		pmic_int: pmic_int {
659			rockchip,pins =
660				<0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
661		};
662	};
663
664	usb {
665		vcc5v0_usb_host_en: vcc5v0_usb_host_en {
666			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
667		};
668		vcc5v0_usb_hub_en: vcc5v0_usb_hub_en {
669			rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
670		};
671		vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
672			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
673		};
674	};
675
676	bt {
677		bt_enable: bt-enable {
678			rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
679		};
680
681		bt_host_wake: bt-host-wake {
682			rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
683		};
684
685		bt_wake: bt-wake {
686			rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
687		};
688	};
689
690	sdio-pwrseq {
691		wifi_enable: wifi-enable {
692			rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
693		};
694	};
695};
696
697&pmu_io_domains {
698	pmuio1-supply = <&vcc3v3_pmu>;
699	pmuio2-supply = <&vcc3v3_pmu>;
700	vccio1-supply = <&vccio_acodec>;
701	vccio2-supply = <&vcc_1v8>;
702	vccio3-supply = <&vccio_sd>;
703	vccio4-supply = <&vcc_1v8>;
704	vccio5-supply = <&vcc_3v3>;
705	vccio6-supply = <&vcc_1v8>;
706	vccio7-supply = <&vcc_3v3>;
707	status = "okay";
708};
709
710&saradc {
711	vref-supply = <&vcca_1v8>;
712	status = "okay";
713};
714
715&sdhci {
716	bus-width = <8>;
717	max-frequency = <200000000>;
718	non-removable;
719	pinctrl-names = "default";
720	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
721	vmmc-supply = <&vcc_3v3>;
722	vqmmc-supply = <&vcc_1v8>;
723	status = "okay";
724};
725
726&sdmmc0 {
727	bus-width = <4>;
728	cap-sd-highspeed;
729	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
730	disable-wp;
731	pinctrl-names = "default";
732	pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
733	sd-uhs-sdr104;
734	vmmc-supply = <&vcc3v3_sd>;
735	vqmmc-supply = <&vccio_sd>;
736	status = "okay";
737};
738
739&sdmmc2 {
740	supports-sdio;
741	bus-width = <4>;
742	disable-wp;
743	cap-sd-highspeed;
744	cap-sdio-irq;
745	keep-power-in-suspend;
746	mmc-pwrseq = <&sdio_pwrseq>;
747	non-removable;
748	pinctrl-names = "default";
749	pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
750	sd-uhs-sdr104;
751	vmmc-supply = <&vcc3v3_sys>;
752	vqmmc-supply = <&vcc_1v8>;
753	status = "okay";
754};
755
756&tsadc {
757	rockchip,hw-tshut-mode = <1>;
758	rockchip,hw-tshut-polarity = <0>;
759	status = "okay";
760};
761
762&uart1 {
763	pinctrl-names = "default";
764	pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
765	uart-has-rtscts;
766	status = "okay";
767
768	bluetooth {
769		compatible = "brcm,bcm43438-bt";
770		clocks = <&rk809 1>;
771		clock-names = "lpo";
772		device-wakeup-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
773		host-wakeup-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
774		shutdown-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
775		pinctrl-names = "default";
776		pinctrl-0 = <&bt_host_wake &bt_wake &bt_enable>;
777		vbat-supply = <&vcc3v3_sys>;
778		vddio-supply = <&vcc_1v8>;
779		/* vddio comes from regulator on module, use IO bank voltage instead */
780	};
781};
782
783&uart2 {
784	status = "okay";
785};
786
787&usb_host0_ehci {
788	status = "okay";
789};
790
791&usb_host0_ohci {
792	status = "okay";
793};
794
795&usb_host0_xhci {
796	extcon = <&usb2phy0>;
797	status = "okay";
798};
799
800&usb_host1_ehci {
801	status = "okay";
802};
803
804&usb_host1_ohci {
805	status = "okay";
806};
807
808&usb_host1_xhci {
809	status = "okay";
810};
811
812&usb2phy0 {
813	status = "okay";
814};
815
816&usb2phy0_host {
817	phy-supply = <&vcc5v0_usb_host>;
818	status = "okay";
819};
820
821&usb2phy0_otg {
822	phy-supply = <&vcc5v0_usb_otg>;
823	status = "okay";
824};
825
826&usb2phy1 {
827	status = "okay";
828};
829
830&usb2phy1_host {
831	phy-supply = <&vcc5v0_usb_host>;
832	status = "okay";
833};
834
835&usb2phy1_otg {
836	phy-supply = <&vcc5v0_usb_host>;
837	status = "okay";
838};
839
840&vop {
841	assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
842	assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
843	status = "okay";
844};
845
846&vop_mmu {
847	status = "okay";
848};
849
850&vp0 {
851	vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
852		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
853		remote-endpoint = <&hdmi_in_vp0>;
854	};
855};
856