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 = &sdhci;
17		mmc1 = &sdmmc0;
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	pinctrl-names = "default";
283	pinctrl-0 = <&hdmitx_scl &hdmitx_sda &hdmitxm1_cec>;
284	status = "okay";
285};
286
287&hdmi_in {
288	hdmi_in_vp0: endpoint {
289		remote-endpoint = <&vp0_out_hdmi>;
290	};
291};
292
293&hdmi_out {
294	hdmi_out_con: endpoint {
295		remote-endpoint = <&hdmi_con_in>;
296	};
297};
298
299&hdmi_sound {
300	status = "okay";
301};
302
303&i2c0 {
304	status = "okay";
305
306	vdd_cpu: regulator@1c {
307		compatible = "tcs,tcs4525";
308		reg = <0x1c>;
309		fcs,suspend-voltage-selector = <1>;
310		regulator-name = "vdd_cpu";
311		regulator-always-on;
312		regulator-boot-on;
313		regulator-min-microvolt = <800000>;
314		regulator-max-microvolt = <1150000>;
315		regulator-ramp-delay = <2300>;
316		vin-supply = <&vcc5v0_sys>;
317
318		regulator-state-mem {
319			regulator-off-in-suspend;
320		};
321	};
322
323	rk809: pmic@20 {
324		compatible = "rockchip,rk809";
325		reg = <0x20>;
326		interrupt-parent = <&gpio0>;
327		interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
328		assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
329		assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
330		#clock-cells = <1>;
331		clock-names = "mclk";
332		clocks = <&cru I2S1_MCLKOUT_TX>;
333		pinctrl-names = "default";
334		pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>;
335		rockchip,system-power-controller;
336		#sound-dai-cells = <0>;
337		vcc1-supply = <&vcc3v3_sys>;
338		vcc2-supply = <&vcc3v3_sys>;
339		vcc3-supply = <&vcc3v3_sys>;
340		vcc4-supply = <&vcc3v3_sys>;
341		vcc5-supply = <&vcc3v3_sys>;
342		vcc6-supply = <&vcc3v3_sys>;
343		vcc7-supply = <&vcc3v3_sys>;
344		vcc8-supply = <&vcc3v3_sys>;
345		vcc9-supply = <&vcc3v3_sys>;
346		wakeup-source;
347
348		regulators {
349			vdd_logic: DCDC_REG1 {
350				regulator-name = "vdd_logic";
351				regulator-always-on;
352				regulator-boot-on;
353				regulator-initial-mode = <0x2>;
354				regulator-min-microvolt = <500000>;
355				regulator-max-microvolt = <1350000>;
356				regulator-ramp-delay = <6001>;
357
358				regulator-state-mem {
359					regulator-off-in-suspend;
360				};
361			};
362
363			vdd_gpu: DCDC_REG2 {
364				regulator-name = "vdd_gpu";
365				regulator-always-on;
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-initial-mode = <0x2>;
390				regulator-min-microvolt = <500000>;
391				regulator-max-microvolt = <1350000>;
392				regulator-ramp-delay = <6001>;
393
394				regulator-state-mem {
395					regulator-off-in-suspend;
396				};
397			};
398
399			vcc_1v8: DCDC_REG5 {
400				regulator-name = "vcc_1v8";
401				regulator-always-on;
402				regulator-boot-on;
403				regulator-min-microvolt = <1800000>;
404				regulator-max-microvolt = <1800000>;
405
406				regulator-state-mem {
407					regulator-off-in-suspend;
408				};
409			};
410
411			vdda0v9_image: LDO_REG1 {
412				regulator-name = "vdda0v9_image";
413				regulator-min-microvolt = <900000>;
414				regulator-max-microvolt = <900000>;
415
416				regulator-state-mem {
417					regulator-off-in-suspend;
418				};
419			};
420
421			vdda_0v9: LDO_REG2 {
422				regulator-name = "vdda_0v9";
423				regulator-always-on;
424				regulator-boot-on;
425				regulator-min-microvolt = <900000>;
426				regulator-max-microvolt = <900000>;
427
428				regulator-state-mem {
429					regulator-off-in-suspend;
430				};
431			};
432
433			vdda0v9_pmu: LDO_REG3 {
434				regulator-name = "vdda0v9_pmu";
435				regulator-always-on;
436				regulator-boot-on;
437				regulator-min-microvolt = <900000>;
438				regulator-max-microvolt = <900000>;
439
440				regulator-state-mem {
441					regulator-on-in-suspend;
442					regulator-suspend-microvolt = <900000>;
443				};
444			};
445
446			vccio_acodec: LDO_REG4 {
447				regulator-name = "vccio_acodec";
448				regulator-always-on;
449				regulator-min-microvolt = <3300000>;
450				regulator-max-microvolt = <3300000>;
451
452				regulator-state-mem {
453					regulator-off-in-suspend;
454				};
455			};
456
457			vccio_sd: LDO_REG5 {
458				regulator-name = "vccio_sd";
459				regulator-min-microvolt = <1800000>;
460				regulator-max-microvolt = <3300000>;
461
462				regulator-state-mem {
463					regulator-off-in-suspend;
464				};
465			};
466
467			vcc3v3_pmu: LDO_REG6 {
468				regulator-name = "vcc3v3_pmu";
469				regulator-always-on;
470				regulator-boot-on;
471				regulator-min-microvolt = <3300000>;
472				regulator-max-microvolt = <3300000>;
473
474				regulator-state-mem {
475					regulator-on-in-suspend;
476					regulator-suspend-microvolt = <3300000>;
477				};
478			};
479
480			vcca_1v8: LDO_REG7 {
481				regulator-name = "vcca_1v8";
482				regulator-always-on;
483				regulator-boot-on;
484				regulator-min-microvolt = <1800000>;
485				regulator-max-microvolt = <1800000>;
486
487				regulator-state-mem {
488					regulator-off-in-suspend;
489				};
490			};
491
492			vcca1v8_pmu: LDO_REG8 {
493				regulator-name = "vcca1v8_pmu";
494				regulator-always-on;
495				regulator-boot-on;
496				regulator-min-microvolt = <1800000>;
497				regulator-max-microvolt = <1800000>;
498
499				regulator-state-mem {
500					regulator-on-in-suspend;
501					regulator-suspend-microvolt = <1800000>;
502				};
503			};
504
505			vcca1v8_image: LDO_REG9 {
506				regulator-name = "vcca1v8_image";
507				regulator-min-microvolt = <1800000>;
508				regulator-max-microvolt = <1800000>;
509
510				regulator-state-mem {
511					regulator-off-in-suspend;
512				};
513			};
514
515			vcc_3v3: SWITCH_REG1 {
516				regulator-name = "vcc_3v3";
517				regulator-always-on;
518				regulator-boot-on;
519
520				regulator-state-mem {
521					regulator-off-in-suspend;
522				};
523			};
524
525			vcc3v3_sd: SWITCH_REG2 {
526				regulator-name = "vcc3v3_sd";
527
528				regulator-state-mem {
529					regulator-off-in-suspend;
530				};
531			};
532		};
533
534		codec {
535			mic-in-differential;
536		};
537	};
538};
539
540&i2c3 {
541	pinctrl-names = "default";
542	pinctrl-0 = <&i2c3m1_xfer>;
543	status = "disabled";
544};
545
546&i2c4 {
547	pinctrl-names = "default";
548	pinctrl-0 = <&i2c4m1_xfer>;
549	status = "disabled";
550};
551
552&i2c5 {
553	status = "okay";
554
555	hym8563: rtc@51 {
556		compatible = "haoyu,hym8563";
557		reg = <0x51>;
558		interrupt-parent = <&gpio0>;
559		interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
560		#clock-cells = <0>;
561		clock-output-names = "rtcic_32kout";
562		pinctrl-names = "default";
563		pinctrl-0 = <&hym8563_int>;
564		wakeup-source;
565	};
566};
567
568&i2s0_8ch {
569	status = "okay";
570};
571
572&i2s1_8ch {
573	pinctrl-names = "default";
574	pinctrl-0 = <&i2s1m0_sclktx &i2s1m0_lrcktx &i2s1m0_sdi0 &i2s1m0_sdo0>;
575	rockchip,trcm-sync-tx-only;
576	status = "okay";
577};
578
579&i2s2_2ch {
580	rockchip,trcm-sync-tx-only;
581	status = "okay";
582};
583
584&mdio1 {
585	rgmii_phy1: ethernet-phy@0 {
586		compatible = "ethernet-phy-ieee802.3-c22";
587		reg = <0x0>;
588		pinctrl-names = "default";
589		pinctrl-0 = <&eth_phy_rst>;
590		reset-assert-us = <20000>;
591		reset-deassert-us = <100000>;
592		reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
593	};
594};
595
596&pcie2x1 {
597	pinctrl-names = "default";
598	pinctrl-0 = <&pcie_reset_h>;
599	reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
600	vpcie3v3-supply = <&vcc3v3_pcie>;
601	status = "okay";
602};
603
604&pcie30phy {
605	phy-supply = <&vcc3v3_pi6c_03>;
606	status = "okay";
607};
608
609&pcie3x2 {
610	pinctrl-names = "default";
611	pinctrl-0 = <&pcie30x2m1_pins>;
612	reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
613	vpcie3v3-supply = <&vcc3v3_pcie>;
614	status = "okay";
615};
616
617&pinctrl {
618	cam {
619		vcc_cam_en: vcc_cam_en {
620			rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
621		};
622	};
623
624	display {
625		vcc_mipi_en: vcc_mipi_en {
626			rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
627		};
628	};
629
630	ethernet {
631		eth_phy_rst: eth_phy_rst {
632			rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
633		};
634	};
635
636	hym8563 {
637		hym8563_int: hym8563-int {
638			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
639		};
640	};
641
642	leds {
643		led_user_en: led_user_en {
644			rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
645		};
646	};
647
648	pcie {
649		pcie_enable_h: pcie-enable-h {
650			rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
651		};
652
653		pcie_reset_h: pcie-reset-h {
654			rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
655		};
656	};
657
658	pmic {
659		pmic_int: pmic_int {
660			rockchip,pins =
661				<0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
662		};
663	};
664
665	usb {
666		vcc5v0_usb_host_en: vcc5v0_usb_host_en {
667			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
668		};
669		vcc5v0_usb_hub_en: vcc5v0_usb_hub_en {
670			rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
671		};
672		vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
673			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
674		};
675	};
676
677	bt {
678		bt_enable: bt-enable {
679			rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
680		};
681
682		bt_host_wake: bt-host-wake {
683			rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
684		};
685
686		bt_wake: bt-wake {
687			rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
688		};
689	};
690
691	sdio-pwrseq {
692		wifi_enable: wifi-enable {
693			rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
694		};
695	};
696};
697
698&pmu_io_domains {
699	pmuio1-supply = <&vcc3v3_pmu>;
700	pmuio2-supply = <&vcc3v3_pmu>;
701	vccio1-supply = <&vccio_acodec>;
702	vccio2-supply = <&vcc_1v8>;
703	vccio3-supply = <&vccio_sd>;
704	vccio4-supply = <&vcc_1v8>;
705	vccio5-supply = <&vcc_3v3>;
706	vccio6-supply = <&vcc_1v8>;
707	vccio7-supply = <&vcc_3v3>;
708	status = "okay";
709};
710
711&saradc {
712	vref-supply = <&vcca_1v8>;
713	status = "okay";
714};
715
716&sdhci {
717	bus-width = <8>;
718	max-frequency = <200000000>;
719	non-removable;
720	pinctrl-names = "default";
721	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
722	vmmc-supply = <&vcc_3v3>;
723	vqmmc-supply = <&vcc_1v8>;
724	status = "okay";
725};
726
727&sdmmc0 {
728	bus-width = <4>;
729	cap-sd-highspeed;
730	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
731	disable-wp;
732	pinctrl-names = "default";
733	pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
734	sd-uhs-sdr50;
735	vmmc-supply = <&vcc3v3_sd>;
736	vqmmc-supply = <&vccio_sd>;
737	status = "okay";
738};
739
740&sdmmc2 {
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