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/pinctrl/rockchip.h>
7#include <dt-bindings/soc/rockchip,vop2.h>
8#include "rk3566.dtsi"
9
10/ {
11	model = "Pine64 RK3566 Quartz64-A Board";
12	compatible = "pine64,quartz64-a", "rockchip,rk3566";
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	gmac1_clkin: external-gmac1-clock {
25		compatible = "fixed-clock";
26		clock-frequency = <125000000>;
27		clock-output-names = "gmac1_clkin";
28		#clock-cells = <0>;
29	};
30
31	fan: gpio_fan {
32		compatible = "gpio-fan";
33		gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
34		gpio-fan,speed-map = <0    0
35				      4500 1>;
36		pinctrl-names = "default";
37		pinctrl-0 = <&fan_en_h>;
38		#cooling-cells = <2>;
39	};
40
41	hdmi-con {
42		compatible = "hdmi-connector";
43		type = "a";
44
45		port {
46			hdmi_con_in: endpoint {
47				remote-endpoint = <&hdmi_out_con>;
48			};
49		};
50	};
51
52	leds {
53		compatible = "gpio-leds";
54
55		led-work {
56			label = "work-led";
57			default-state = "off";
58			gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
59			pinctrl-names = "default";
60			pinctrl-0 = <&work_led_enable_h>;
61			retain-state-suspended;
62		};
63
64		led-diy {
65			label = "diy-led";
66			default-state = "on";
67			gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
68			linux,default-trigger = "heartbeat";
69			pinctrl-names = "default";
70			pinctrl-0 = <&diy_led_enable_h>;
71			retain-state-suspended;
72		};
73	};
74
75	rk817-sound {
76		compatible = "simple-audio-card";
77		simple-audio-card,format = "i2s";
78		simple-audio-card,name = "Analog RK817";
79		simple-audio-card,mclk-fs = <256>;
80
81		simple-audio-card,cpu {
82			sound-dai = <&i2s1_8ch>;
83		};
84
85		simple-audio-card,codec {
86			sound-dai = <&rk817>;
87		};
88	};
89
90	sdio_pwrseq: sdio-pwrseq {
91		compatible = "mmc-pwrseq-simple";
92		clocks = <&rk817 1>;
93		clock-names = "ext_clock";
94		pinctrl-names = "default";
95		pinctrl-0 = <&wifi_enable_h>;
96		post-power-on-delay-ms = <100>;
97		power-off-delay-us = <5000000>;
98		reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>;
99	};
100
101	spdif_dit: spdif-dit {
102		compatible = "linux,spdif-dit";
103		#sound-dai-cells = <0>;
104	};
105
106	spdif_sound: spdif-sound {
107		compatible = "simple-audio-card";
108		simple-audio-card,name = "SPDIF";
109
110		simple-audio-card,cpu {
111			sound-dai = <&spdif>;
112		};
113
114		simple-audio-card,codec {
115			sound-dai = <&spdif_dit>;
116		};
117	};
118
119	vcc12v_dcin: vcc12v_dcin {
120		compatible = "regulator-fixed";
121		regulator-name = "vcc12v_dcin";
122		regulator-always-on;
123		regulator-boot-on;
124		regulator-min-microvolt = <12000000>;
125		regulator-max-microvolt = <12000000>;
126	};
127
128	/* vbus feeds the rk817 usb input.
129	 * With no battery attached, also feeds vcc_bat+
130	 * via ON/OFF_BAT jumper
131	 */
132	vbus: vbus {
133		compatible = "regulator-fixed";
134		regulator-name = "vbus";
135		regulator-always-on;
136		regulator-boot-on;
137		regulator-min-microvolt = <5000000>;
138		regulator-max-microvolt = <5000000>;
139		vin-supply = <&vcc12v_dcin>;
140	};
141
142	vcc3v3_pcie_p: vcc3v3-pcie-p-regulator {
143		compatible = "regulator-fixed";
144		enable-active-high;
145		gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
146		pinctrl-names = "default";
147		pinctrl-0 = <&pcie_enable_h>;
148		regulator-name = "vcc3v3_pcie_p";
149		regulator-min-microvolt = <3300000>;
150		regulator-max-microvolt = <3300000>;
151		vin-supply = <&vcc_3v3>;
152	};
153
154	vcc5v0_usb: vcc5v0_usb {
155		compatible = "regulator-fixed";
156		regulator-name = "vcc5v0_usb";
157		regulator-always-on;
158		regulator-boot-on;
159		regulator-min-microvolt = <5000000>;
160		regulator-max-microvolt = <5000000>;
161		vin-supply = <&vcc12v_dcin>;
162	};
163
164	/* all four ports are controlled by one gpio
165	 * the host ports are sourced from vcc5v0_usb
166	 * the otg port is sourced from vcc5v0_midu
167	 */
168	vcc5v0_usb20_host: vcc5v0_usb20_host {
169		compatible = "regulator-fixed";
170		enable-active-high;
171		gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
172		pinctrl-names = "default";
173		pinctrl-0 = <&vcc5v0_usb20_host_en>;
174		regulator-name = "vcc5v0_usb20_host";
175		regulator-min-microvolt = <5000000>;
176		regulator-max-microvolt = <5000000>;
177		vin-supply = <&vcc5v0_usb>;
178	};
179
180	vcc5v0_usb20_otg: vcc5v0_usb20_otg {
181		compatible = "regulator-fixed";
182		enable-active-high;
183		gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
184		regulator-name = "vcc5v0_usb20_otg";
185		regulator-min-microvolt = <5000000>;
186		regulator-max-microvolt = <5000000>;
187		vin-supply = <&dcdc_boost>;
188	};
189
190	vcc3v3_sd: vcc3v3_sd {
191		compatible = "regulator-fixed";
192		enable-active-low;
193		gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
194		pinctrl-names = "default";
195		pinctrl-0 = <&vcc_sd_h>;
196		regulator-boot-on;
197		regulator-name = "vcc3v3_sd";
198		regulator-min-microvolt = <3300000>;
199		regulator-max-microvolt = <3300000>;
200		vin-supply = <&vcc_3v3>;
201	};
202
203	/* sourced from vbus and vcc_bat+ via rk817 sw5 */
204	vcc_sys: vcc_sys {
205		compatible = "regulator-fixed";
206		regulator-name = "vcc_sys";
207		regulator-always-on;
208		regulator-boot-on;
209		regulator-min-microvolt = <4400000>;
210		regulator-max-microvolt = <4400000>;
211		vin-supply = <&vbus>;
212	};
213
214	/* sourced from vcc_sys, sdio module operates internally at 3.3v */
215	vcc_wl: vcc_wl {
216		compatible = "regulator-fixed";
217		regulator-name = "vcc_wl";
218		regulator-always-on;
219		regulator-boot-on;
220		regulator-min-microvolt = <3300000>;
221		regulator-max-microvolt = <3300000>;
222		vin-supply = <&vcc_sys>;
223	};
224};
225
226&combphy1 {
227	status = "okay";
228};
229
230&combphy2 {
231	status = "okay";
232};
233
234&cpu0 {
235	cpu-supply = <&vdd_cpu>;
236};
237
238&cpu1 {
239	cpu-supply = <&vdd_cpu>;
240};
241
242&cpu2 {
243	cpu-supply = <&vdd_cpu>;
244};
245
246&cpu3 {
247	cpu-supply = <&vdd_cpu>;
248};
249
250&cpu_thermal {
251	trips {
252		cpu_hot: cpu_hot {
253			temperature = <55000>;
254			hysteresis = <2000>;
255			type = "active";
256		};
257	};
258
259	cooling-maps {
260		map1 {
261			trip = <&cpu_hot>;
262			cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
263		};
264	};
265};
266
267&gmac1 {
268	assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>;
269	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>, <&gmac1_clkin>;
270	clock_in_out = "input";
271	phy-supply = <&vcc_3v3>;
272	phy-mode = "rgmii";
273	pinctrl-names = "default";
274	pinctrl-0 = <&gmac1m0_miim
275		     &gmac1m0_tx_bus2
276		     &gmac1m0_rx_bus2
277		     &gmac1m0_rgmii_clk
278		     &gmac1m0_clkinout
279		     &gmac1m0_rgmii_bus>;
280	snps,reset-gpio = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>;
281	snps,reset-active-low;
282	/* Reset time is 20ms, 100ms for rtl8211f */
283	snps,reset-delays-us = <0 20000 100000>;
284	tx_delay = <0x30>;
285	rx_delay = <0x10>;
286	phy-handle = <&rgmii_phy1>;
287	status = "okay";
288};
289
290&gpu {
291	mali-supply = <&vdd_gpu>;
292	status = "okay";
293};
294
295&hdmi {
296	avdd-0v9-supply = <&vdda_0v9>;
297	avdd-1v8-supply = <&vcc_1v8>;
298	status = "okay";
299};
300
301&hdmi_in {
302	hdmi_in_vp0: endpoint {
303		remote-endpoint = <&vp0_out_hdmi>;
304	};
305};
306
307&hdmi_out {
308	hdmi_out_con: endpoint {
309		remote-endpoint = <&hdmi_con_in>;
310	};
311};
312
313&hdmi_sound {
314	status = "okay";
315};
316
317&i2c0 {
318	status = "okay";
319
320	vdd_cpu: regulator@1c {
321		compatible = "tcs,tcs4525";
322		reg = <0x1c>;
323		fcs,suspend-voltage-selector = <1>;
324		regulator-name = "vdd_cpu";
325		regulator-min-microvolt = <800000>;
326		regulator-max-microvolt = <1150000>;
327		regulator-ramp-delay = <2300>;
328		regulator-always-on;
329		regulator-boot-on;
330		vin-supply = <&vcc_sys>;
331
332		regulator-state-mem {
333			regulator-off-in-suspend;
334		};
335	};
336
337	rk817: pmic@20 {
338		compatible = "rockchip,rk817";
339		reg = <0x20>;
340		interrupt-parent = <&gpio0>;
341		interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
342		assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
343		assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
344		clock-names = "mclk";
345		clocks = <&cru I2S1_MCLKOUT_TX>;
346		clock-output-names = "rk808-clkout1", "rk808-clkout2";
347		#clock-cells = <1>;
348		pinctrl-names = "default";
349		pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>;
350		rockchip,system-power-controller;
351		#sound-dai-cells = <0>;
352		wakeup-source;
353
354		vcc1-supply = <&vcc_sys>;
355		vcc2-supply = <&vcc_sys>;
356		vcc3-supply = <&vcc_sys>;
357		vcc4-supply = <&vcc_sys>;
358		vcc5-supply = <&vcc_sys>;
359		vcc6-supply = <&vcc_sys>;
360		vcc7-supply = <&vcc_sys>;
361		vcc8-supply = <&vcc_sys>;
362		vcc9-supply = <&dcdc_boost>;
363
364		regulators {
365			vdd_logic: DCDC_REG1 {
366				regulator-always-on;
367				regulator-boot-on;
368				regulator-min-microvolt = <500000>;
369				regulator-max-microvolt = <1350000>;
370				regulator-init-microvolt = <900000>;
371				regulator-ramp-delay = <6001>;
372				regulator-initial-mode = <0x2>;
373				regulator-name = "vdd_logic";
374				regulator-state-mem {
375					regulator-on-in-suspend;
376					regulator-suspend-microvolt = <900000>;
377				};
378			};
379
380			vdd_gpu: DCDC_REG2 {
381				regulator-always-on;
382				regulator-boot-on;
383				regulator-min-microvolt = <500000>;
384				regulator-max-microvolt = <1350000>;
385				regulator-init-microvolt = <900000>;
386				regulator-ramp-delay = <6001>;
387				regulator-initial-mode = <0x2>;
388				regulator-name = "vdd_gpu";
389					regulator-state-mem {
390					regulator-off-in-suspend;
391				};
392			};
393
394			vcc_ddr: DCDC_REG3 {
395				regulator-always-on;
396				regulator-boot-on;
397				regulator-initial-mode = <0x2>;
398				regulator-name = "vcc_ddr";
399				regulator-state-mem {
400					regulator-on-in-suspend;
401				};
402			};
403
404			vcc_3v3: DCDC_REG4 {
405				regulator-always-on;
406				regulator-boot-on;
407				regulator-min-microvolt = <3300000>;
408				regulator-max-microvolt = <3300000>;
409				regulator-initial-mode = <0x2>;
410				regulator-name = "vcc_3v3";
411				regulator-state-mem {
412					regulator-off-in-suspend;
413				};
414			};
415
416			vcca1v8_pmu: LDO_REG1 {
417				regulator-always-on;
418				regulator-boot-on;
419				regulator-min-microvolt = <1800000>;
420				regulator-max-microvolt = <1800000>;
421				regulator-name = "vcca1v8_pmu";
422				regulator-state-mem {
423					regulator-on-in-suspend;
424					regulator-suspend-microvolt = <1800000>;
425				};
426			};
427
428			vdda_0v9: LDO_REG2 {
429				regulator-always-on;
430				regulator-boot-on;
431				regulator-min-microvolt = <900000>;
432				regulator-max-microvolt = <900000>;
433				regulator-name = "vdda_0v9";
434				regulator-state-mem {
435					regulator-off-in-suspend;
436				};
437			};
438
439			vdda0v9_pmu: LDO_REG3 {
440				regulator-always-on;
441				regulator-boot-on;
442				regulator-min-microvolt = <900000>;
443				regulator-max-microvolt = <900000>;
444				regulator-name = "vdda0v9_pmu";
445				regulator-state-mem {
446					regulator-on-in-suspend;
447					regulator-suspend-microvolt = <900000>;
448				};
449			};
450
451			vccio_acodec: LDO_REG4 {
452				regulator-always-on;
453				regulator-boot-on;
454				regulator-min-microvolt = <3300000>;
455				regulator-max-microvolt = <3300000>;
456				regulator-name = "vccio_acodec";
457				regulator-state-mem {
458					regulator-off-in-suspend;
459				};
460			};
461
462			vccio_sd: LDO_REG5 {
463				regulator-always-on;
464				regulator-boot-on;
465				regulator-min-microvolt = <1800000>;
466				regulator-max-microvolt = <3300000>;
467				regulator-name = "vccio_sd";
468				regulator-state-mem {
469					regulator-off-in-suspend;
470				};
471			};
472
473			vcc3v3_pmu: LDO_REG6 {
474				regulator-always-on;
475				regulator-boot-on;
476				regulator-min-microvolt = <3300000>;
477				regulator-max-microvolt = <3300000>;
478				regulator-name = "vcc3v3_pmu";
479				regulator-state-mem {
480					regulator-on-in-suspend;
481					regulator-suspend-microvolt = <3300000>;
482				};
483			};
484
485			vcc_1v8: LDO_REG7 {
486				regulator-always-on;
487				regulator-boot-on;
488				regulator-min-microvolt = <1800000>;
489				regulator-max-microvolt = <1800000>;
490				regulator-name = "vcc_1v8";
491				regulator-state-mem {
492					regulator-off-in-suspend;
493				};
494			};
495
496			vcc1v8_dvp: LDO_REG8 {
497				regulator-always-on;
498				regulator-boot-on;
499				regulator-min-microvolt = <1800000>;
500				regulator-max-microvolt = <1800000>;
501				regulator-name = "vcc1v8_dvp";
502				regulator-state-mem {
503					regulator-off-in-suspend;
504				};
505			};
506
507			vcc2v8_dvp: LDO_REG9 {
508				regulator-always-on;
509				regulator-boot-on;
510				regulator-min-microvolt = <2800000>;
511				regulator-max-microvolt = <2800000>;
512				regulator-name = "vcc2v8_dvp";
513				regulator-state-mem {
514					regulator-off-in-suspend;
515				};
516			};
517
518			dcdc_boost: BOOST {
519				regulator-always-on;
520				regulator-boot-on;
521				regulator-min-microvolt = <5000000>;
522				regulator-max-microvolt = <5000000>;
523				regulator-name = "boost";
524				regulator-state-mem {
525					regulator-off-in-suspend;
526				};
527			};
528
529			otg_switch: OTG_SWITCH {
530				regulator-name = "otg_switch";
531				regulator-state-mem {
532					regulator-off-in-suspend;
533				};
534			};
535		};
536	};
537};
538
539/* i2c3 is exposed on con40
540 * pin 3 - i2c3_sda_m0, pullup to vcc_3v3
541 * pin 5 - i2c3_scl_m0, pullup to vcc_3v3
542 */
543&i2c3 {
544	status = "okay";
545};
546
547&i2s0_8ch {
548	status = "okay";
549};
550
551&i2s1_8ch {
552	pinctrl-names = "default";
553	pinctrl-0 = <&i2s1m0_sclktx
554		     &i2s1m0_lrcktx
555		     &i2s1m0_sdi0
556		     &i2s1m0_sdo0>;
557	rockchip,trcm-sync-tx-only;
558	status = "okay";
559};
560
561&mdio1 {
562	rgmii_phy1: ethernet-phy@0 {
563		compatible = "ethernet-phy-ieee802.3-c22";
564		reg = <0>;
565	};
566};
567
568&pcie2x1 {
569	pinctrl-names = "default";
570	pinctrl-0 = <&pcie_reset_h>;
571	reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
572	vpcie3v3-supply = <&vcc3v3_pcie_p>;
573	status = "okay";
574};
575
576&pinctrl {
577	bt {
578		bt_enable_h: bt-enable-h {
579			rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
580		};
581
582		bt_host_wake_l: bt-host-wake-l {
583			rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
584		};
585
586		bt_wake_l: bt-wake-l {
587			rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
588		};
589	};
590
591	fan {
592		fan_en_h: fan-en-h {
593			rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
594		};
595	};
596
597	leds {
598		work_led_enable_h: work-led-enable-h {
599			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
600		};
601
602		diy_led_enable_h: diy-led-enable-h {
603			rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
604		};
605	};
606
607	pcie {
608		pcie_enable_h: pcie-enable-h {
609			rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
610		};
611
612		pcie_reset_h: pcie-reset-h {
613			rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
614		};
615	};
616
617	pmic {
618		pmic_int_l: pmic-int-l {
619			rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
620		};
621	};
622
623	usb2 {
624		vcc5v0_usb20_host_en: vcc5v0-usb20-host-en {
625			rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
626		};
627	};
628
629	sdio-pwrseq {
630		wifi_enable_h: wifi-enable-h {
631			rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
632		};
633	};
634
635	vcc_sd {
636		vcc_sd_h: vcc-sd-h {
637			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
638		};
639	};
640};
641
642&pmu_io_domains {
643	pmuio1-supply = <&vcc3v3_pmu>;
644	pmuio2-supply = <&vcc3v3_pmu>;
645	vccio1-supply = <&vccio_acodec>;
646	vccio2-supply = <&vcc_1v8>;
647	vccio3-supply = <&vccio_sd>;
648	vccio4-supply = <&vcc_1v8>;
649	vccio5-supply = <&vcc_3v3>;
650	vccio6-supply = <&vcc1v8_dvp>;
651	vccio7-supply = <&vcc_3v3>;
652	status = "okay";
653};
654
655&sdhci {
656	bus-width = <8>;
657	mmc-hs200-1_8v;
658	non-removable;
659	vmmc-supply = <&vcc_3v3>;
660	vqmmc-supply = <&vcc_1v8>;
661	status = "okay";
662};
663
664&sdmmc0 {
665	bus-width = <4>;
666	cap-sd-highspeed;
667	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
668	disable-wp;
669	pinctrl-names = "default";
670	pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
671	sd-uhs-sdr104;
672	vmmc-supply = <&vcc3v3_sd>;
673	vqmmc-supply = <&vccio_sd>;
674	status = "okay";
675};
676
677&sdmmc1 {
678	bus-width = <4>;
679	cap-sd-highspeed;
680	cap-sdio-irq;
681	keep-power-in-suspend;
682	mmc-pwrseq = <&sdio_pwrseq>;
683	non-removable;
684	pinctrl-names = "default";
685	pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
686	sd-uhs-sdr104;
687	vmmc-supply = <&vcc_wl>;
688	vqmmc-supply = <&vcc_1v8>;
689	status = "okay";
690};
691
692&sfc {
693	pinctrl-0 = <&fspi_pins>;
694	pinctrl-names = "default";
695	#address-cells = <1>;
696	#size-cells = <0>;
697	status = "disabled";
698
699	flash@0 {
700		compatible = "jedec,spi-nor";
701		reg = <0>;
702		spi-max-frequency = <24000000>;
703		spi-rx-bus-width = <4>;
704		spi-tx-bus-width = <1>;
705	};
706};
707
708/* spdif is exposed on con40 pin 18 */
709&spdif {
710	status = "okay";
711};
712
713/* spi1 is exposed on con40
714 * pin 11 - spi1_mosi_m1
715 * pin 13 - spi1_miso_m1
716 * pin 15 - spi1_clk_m1
717 * pin 17 - spi1_cs0_m1
718 */
719&spi1 {
720	pinctrl-names = "default";
721	pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>;
722};
723
724&tsadc {
725	/* tshut mode 0:CRU 1:GPIO */
726	rockchip,hw-tshut-mode = <1>;
727	/* tshut polarity 0:LOW 1:HIGH */
728	rockchip,hw-tshut-polarity = <0>;
729	status = "okay";
730};
731
732/* uart0 is exposed on con40
733 * pin 12 - uart0_tx
734 * pin 14 - uart0_rx
735 */
736&uart0 {
737	pinctrl-names = "default";
738	pinctrl-0 = <&uart0_xfer>;
739	status = "okay";
740};
741
742&uart1 {
743	pinctrl-names = "default";
744	pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
745	status = "okay";
746	uart-has-rtscts;
747
748	bluetooth {
749		compatible = "brcm,bcm43438-bt";
750		clocks = <&rk817 1>;
751		clock-names = "lpo";
752		device-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
753		host-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
754		shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
755		pinctrl-names = "default";
756		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
757		vbat-supply = <&vcc_sys>;
758		vddio-supply = <&vcca1v8_pmu>;
759	};
760};
761
762/* uart2 is exposed on con40
763 * pin 8 - uart2_tx_m0_debug
764 * pin 10 - uart2_rx_m0_debug
765 */
766&uart2 {
767	status = "okay";
768};
769
770&usb_host0_ehci {
771	status = "okay";
772};
773
774&usb_host0_ohci {
775	status = "okay";
776};
777
778&usb_host1_ehci {
779	status = "okay";
780};
781
782&usb_host1_ohci {
783	status = "okay";
784};
785
786&usb_host0_xhci {
787	dr_mode = "host";
788	status = "okay";
789};
790
791/* usb3 controller is muxed with sata1 */
792&usb_host1_xhci {
793	status = "okay";
794};
795
796&usb2phy0 {
797	status = "okay";
798};
799
800&usb2phy0_host {
801	phy-supply = <&vcc5v0_usb20_host>;
802	status = "okay";
803};
804
805&usb2phy0_otg {
806	phy-supply = <&vcc5v0_usb20_otg>;
807	status = "okay";
808};
809
810&usb2phy1 {
811	status = "okay";
812};
813
814&usb2phy1_host {
815	phy-supply = <&vcc5v0_usb20_host>;
816	status = "okay";
817};
818
819&usb2phy1_otg {
820	phy-supply = <&vcc5v0_usb20_host>;
821	status = "okay";
822};
823
824&vop {
825	assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
826	assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
827	status = "okay";
828};
829
830&vop_mmu {
831	status = "okay";
832};
833
834&vp0 {
835	vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
836		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
837		remote-endpoint = <&hdmi_in_vp0>;
838	};
839};
840