xref: /linux/arch/arm64/boot/dts/rockchip/rk3568-lincstation-e1.dts (revision cbe8aadf1551f3f4a853f24b3b96d9f0eea49c53)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3/dts-v1/;
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/input/input.h>
7#include <dt-bindings/leds/common.h>
8#include <dt-bindings/pinctrl/rockchip.h>
9#include <dt-bindings/soc/rockchip,vop2.h>
10
11#include "rk3568.dtsi"
12
13/ {
14	model = "LincPlus LincStation E1";
15	compatible = "techvision,tvd8322r", "rockchip,rk3568";
16
17	aliases {
18		mmc0 = &sdhci;
19		mmc1 = &sdmmc1;
20		rtc0 = &hym8563;
21	};
22
23	chosen {
24		stdout-path = "serial2:1500000n8";
25	};
26
27	/* This device is only available when reset-button-mux is driven high */
28	adc-keys {
29		compatible = "adc-keys";
30		io-channels = <&saradc 5>;
31		io-channel-names = "buttons";
32		keyup-threshold-microvolt = <1800000>;
33		poll-interval = <100>;
34		status = "disabled";
35
36		button-reset {
37			label = "reset";
38			linux,code = <KEY_RESTART>;
39			press-threshold-microvolt = <0>;
40		};
41	};
42
43	gpio-leds {
44		compatible = "gpio-leds";
45		pinctrl-names = "default";
46		pinctrl-0 = <&gpio_leds &sata1_detect &sata2_detect>;
47
48		led-2 {
49			color = <LED_COLOR_ID_WHITE>;
50			function = LED_FUNCTION_LAN;
51			gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
52			linux,default-trigger = "netdev";
53		};
54
55		led-3 {
56			color = <LED_COLOR_ID_AMBER>;
57			function = LED_FUNCTION_LAN;
58			gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
59			linux,default-trigger = "netdev";
60		};
61
62		led-4 {
63			color = <LED_COLOR_ID_WHITE>;
64			function = "m1";
65			gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
66		};
67
68		led-5 {
69			color = <LED_COLOR_ID_AMBER>;
70			function = "m1";
71			gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_HIGH>;
72		};
73
74		led-6 {
75			color = <LED_COLOR_ID_WHITE>;
76			function = "m2";
77			gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
78		};
79
80		led-7 {
81			color = <LED_COLOR_ID_AMBER>;
82			function = "m2";
83			gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
84		};
85
86		led-8 {
87			color = <LED_COLOR_ID_WHITE>;
88			function = "s1";
89			gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
90			linux,default-trigger = "disk-activity";
91		};
92
93		led-9 {
94			color = <LED_COLOR_ID_AMBER>;
95			function = "s1";
96			gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
97			linux,default-trigger = "gpio";
98			trigger-sources = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
99		};
100
101		led-a {
102			color = <LED_COLOR_ID_WHITE>;
103			function = "s2";
104			gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
105			linux,default-trigger = "disk-activity";
106		};
107
108		led-b {
109			color = <LED_COLOR_ID_AMBER>;
110			function = "s2";
111			gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
112			linux,default-trigger = "gpio";
113			trigger-sources = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
114		};
115	};
116
117	hdmi-con {
118		compatible = "hdmi-connector";
119		type = "a";
120
121		port {
122			hdmi_con_in: endpoint {
123				remote-endpoint = <&hdmi_out_con>;
124			};
125		};
126	};
127
128	fan: pwm-fan {
129		compatible = "pwm-fan";
130		interrupt-parent = <&gpio0>;
131		interrupts = <RK_PC6 IRQ_TYPE_EDGE_RISING>;
132		#cooling-cells = <2>;
133		cooling-levels = <0 20 50 90 130 170 210 225 240 255>;
134		fan-supply = <&vcc12v0_sys>;
135		fan-stop-to-start-percent = <8>;
136		pinctrl-names = "default";
137		pinctrl-0 = <&fan_tach>;
138		pulses-per-revolution = <2>;
139		pwms = <&pwm0 0 50000 0>;
140	};
141
142	pwm-leds {
143		compatible = "pwm-leds";
144
145		led-0 {
146			color = <LED_COLOR_ID_AMBER>;
147			default-state = "off";
148			function = LED_FUNCTION_STANDBY;
149			max-brightness = <255>;
150			pwms = <&pwm4 0 25000 0>;
151		};
152
153		led-1 {
154			color = <LED_COLOR_ID_WHITE>;
155			default-brightness = <127>;
156			default-state = "on";
157			function = LED_FUNCTION_POWER;
158			max-brightness = <255>;
159			pwms = <&pwm5 0 25000 0>;
160		};
161	};
162
163	dc_12v: regulator-dc-12v {
164		compatible = "regulator-fixed";
165		regulator-name = "dc_12v";
166		regulator-always-on;
167		regulator-boot-on;
168		regulator-min-microvolt = <12000000>;
169		regulator-max-microvolt = <12000000>;
170	};
171
172	vcc12v0_sys: regulator-vcc12v0-sys {
173		compatible = "regulator-fixed";
174		enable-active-high;
175		gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
176		pinctrl-names = "default";
177		pinctrl-0 = <&vcc12v0_sys_en>;
178		regulator-name = "vcc12v0_sys";
179		regulator-always-on;
180		regulator-boot-on;
181		regulator-min-microvolt = <12000000>;
182		regulator-max-microvolt = <12000000>;
183		vin-supply = <&dc_12v>;
184	};
185
186	vcc3v3_lan: regulator-vcc3v3-lan {
187		compatible = "regulator-fixed";
188		enable-active-high;
189		gpio = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
190		pinctrl-names = "default";
191		pinctrl-0 = <&vcc3v3_lan_en>;
192		regulator-name = "vcc3v3_lan";
193		regulator-min-microvolt = <3300000>;
194		regulator-max-microvolt = <3300000>;
195		vin-supply = <&vcc5v0_sys>;
196	};
197
198	vcc3v3_pcie: regulator-vcc3v3-pcie {
199		compatible = "regulator-fixed";
200		enable-active-high;
201		gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
202		pinctrl-names = "default";
203		pinctrl-0 = <&vcc3v3_pcie_en>;
204		off-on-delay-us = <500000>;
205		regulator-name = "vcc3v3_pcie";
206		regulator-min-microvolt = <3300000>;
207		regulator-max-microvolt = <3300000>;
208		startup-delay-us = <5000>;
209		vin-supply = <&dc_12v>;
210	};
211
212	vcc3v3_sys: regulator-vcc3v3-sys {
213		compatible = "regulator-fixed";
214		regulator-name = "vcc3v3_sys";
215		regulator-always-on;
216		regulator-boot-on;
217		regulator-min-microvolt = <3300000>;
218		regulator-max-microvolt = <3300000>;
219		vin-supply = <&dc_12v>;
220	};
221
222	vcc5v0_sata: regulator-vcc5v0-sata {
223		compatible = "regulator-fixed";
224		enable-active-high;
225		gpio = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
226		pinctrl-names = "default";
227		pinctrl-0 = <&vcc5v0_sata_en>;
228		regulator-name = "vcc5v0_sata";
229		regulator-min-microvolt = <5000000>;
230		regulator-max-microvolt = <5000000>;
231		vin-supply = <&dc_12v>;
232	};
233
234	vcc5v0_sys: regulator-vcc5v0-sys {
235		compatible = "regulator-fixed";
236		regulator-name = "vcc5v0_sys";
237		regulator-always-on;
238		regulator-boot-on;
239		regulator-min-microvolt = <5000000>;
240		regulator-max-microvolt = <5000000>;
241		vin-supply = <&dc_12v>;
242	};
243
244	vcc5v0_usb: regulator-vcc5v0-usb {
245		compatible = "regulator-fixed";
246		regulator-name = "vcc5v0_usb";
247		regulator-always-on;
248		regulator-boot-on;
249		regulator-min-microvolt = <5000000>;
250		regulator-max-microvolt = <5000000>;
251		vin-supply = <&dc_12v>;
252	};
253
254	vcc5v0_usb_host: regulator-vcc5v0-usb-host {
255		compatible = "regulator-fixed";
256		enable-active-high;
257		gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
258		pinctrl-names = "default";
259		pinctrl-0 = <&vcc5v0_usb_host_en>;
260		regulator-name = "vcc5v0_usb_host";
261		regulator-min-microvolt = <5000000>;
262		regulator-max-microvolt = <5000000>;
263		vin-supply = <&vcc5v0_usb>;
264	};
265
266	vcc5v0_usb_otg: regulator-vcc5v0-usb-otg {
267		compatible = "regulator-fixed";
268		enable-active-high;
269		gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
270		pinctrl-names = "default";
271		pinctrl-0 = <&vcc5v0_usb_otg_en>;
272		regulator-name = "vcc5v0_usb_otg";
273		regulator-min-microvolt = <5000000>;
274		regulator-max-microvolt = <5000000>;
275		vin-supply = <&vcc5v0_usb>;
276	};
277
278	vcc_wl: regulator-vcc-wl {
279		compatible = "regulator-fixed";
280		enable-active-high;
281		gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
282		pinctrl-names = "default";
283		pinctrl-0 = <&vcc_wl_en>;
284		regulator-name = "vcc_wl";
285		regulator-min-microvolt = <3300000>;
286		regulator-max-microvolt = <3300000>;
287		vin-supply = <&vcc5v0_sys>;
288	};
289
290	vccio_wl: regulator-vccio-wl {
291		compatible = "regulator-fixed";
292		enable-active-high;
293		gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
294		pinctrl-names = "default";
295		pinctrl-0 = <&vccio_wl_en>;
296		regulator-name = "vccio_wl";
297		regulator-min-microvolt = <1800000>;
298		regulator-max-microvolt = <1800000>;
299		vin-supply = <&vcc5v0_sys>;
300	};
301
302	sdio_pwrseq: sdio-pwrseq {
303		compatible = "mmc-pwrseq-simple";
304		clocks = <&rk809 1>;
305		clock-names = "ext_clock";
306		pinctrl-names = "default";
307		pinctrl-0 = <&wifi_enable_h>;
308		post-power-on-delay-ms = <200>;
309		reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
310	};
311};
312
313&combphy0 {
314	status = "okay";
315};
316
317&combphy1 {
318	status = "okay";
319};
320
321&combphy2 {
322	status = "okay";
323};
324
325&cpu0 {
326	cpu-supply = <&vdd_cpu>;
327};
328
329&cpu1 {
330	cpu-supply = <&vdd_cpu>;
331};
332
333&cpu2 {
334	cpu-supply = <&vdd_cpu>;
335};
336
337&cpu3 {
338	cpu-supply = <&vdd_cpu>;
339};
340
341/*
342 * The fan pulls hot air from the CPU and m.2 slot heat sinks and blows it
343 * across the hard disks. To keep the disks from overheating (below 50 °C),
344 * their ambient air, and thus the CPU heat sink, must be kept quite cool.
345 */
346&cpu_thermal {
347	trips {
348		sys_fan1: sys-fan1 {
349			hysteresis = <2000>;
350			temperature = <25000>;
351			type = "active";
352		};
353
354		sys_fan2: sys-fan2 {
355			hysteresis = <2000>;
356			temperature = <35000>;
357			type = "active";
358		};
359
360		sys_fan3: sys-fan3 {
361			hysteresis = <2000>;
362			temperature = <45000>;
363			type = "active";
364		};
365	};
366
367	cooling-maps {
368		map1 {
369			cooling-device = <&fan 1 3>;
370			trip = <&sys_fan1>;
371		};
372
373		map2 {
374			cooling-device = <&fan 4 5>;
375			trip = <&sys_fan2>;
376		};
377
378		map3 {
379			cooling-device = <&fan 6 THERMAL_NO_LIMIT>;
380			trip = <&sys_fan3>;
381		};
382	};
383};
384
385&gpio1 {
386	/* ata1.01 is the slot labeled HDD2 */
387	sata1-power-control-hog {
388		gpio-hog;
389		gpios = <RK_PD7 GPIO_ACTIVE_LOW>;
390		line-name = "sata1-power-control";
391		output-high;
392	};
393};
394
395&gpio2 {
396	/* ata1.02 is the slot labeled HDD1 */
397	sata2-power-control-hog {
398		gpio-hog;
399		gpios = <RK_PA0 GPIO_ACTIVE_LOW>;
400		line-name = "sata2-power-control";
401		output-high;
402	};
403};
404
405&gpio4 {
406	/* low = SoC reset, high = saradc input */
407	reset-button-mux-hog {
408		gpio-hog;
409		gpios = <RK_PB7 GPIO_ACTIVE_HIGH>;
410		line-name = "reset-button-mux";
411		output-low;
412	};
413
414	sata-pm-reset-hog {
415		gpio-hog;
416		gpios = <RK_PD2 GPIO_ACTIVE_LOW>;
417		line-name = "sata-pm-reset";
418		output-low;
419	};
420};
421
422&gpu {
423	mali-supply = <&vdd_gpu>;
424	status = "okay";
425};
426
427&hdmi {
428	avdd-0v9-supply = <&vdda0v9_image>;
429	avdd-1v8-supply = <&vcca1v8_image>;
430	status = "okay";
431};
432
433&hdmi_in {
434	hdmi_in_vp0: endpoint {
435		remote-endpoint = <&vp0_out_hdmi>;
436	};
437};
438
439&hdmi_out {
440	hdmi_out_con: endpoint {
441		remote-endpoint = <&hdmi_con_in>;
442	};
443};
444
445&hdmi_sound {
446	status = "okay";
447};
448
449&i2c0 {
450	status = "okay";
451
452	vdd_cpu: regulator@40 {
453		compatible = "silergy,syr827";
454		reg = <0x40>;
455		fcs,suspend-voltage-selector = <1>;
456		regulator-name = "vdd_cpu";
457		regulator-always-on;
458		regulator-boot-on;
459		regulator-min-microvolt = <712500>;
460		regulator-max-microvolt = <1500000>;
461		regulator-ramp-delay = <1000>;
462		vin-supply = <&vcc5v0_sys>;
463
464		regulator-state-mem {
465			regulator-off-in-suspend;
466		};
467	};
468
469	rk809: pmic@20 {
470		compatible = "rockchip,rk809";
471		reg = <0x20>;
472		interrupt-parent = <&gpio0>;
473		interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
474		#clock-cells = <1>;
475		pinctrl-names = "default";
476		pinctrl-0 = <&pmic_int>;
477		system-power-controller;
478		vcc1-supply = <&vcc3v3_sys>;
479		vcc2-supply = <&vcc3v3_sys>;
480		vcc3-supply = <&vcc3v3_sys>;
481		vcc4-supply = <&vcc3v3_sys>;
482		vcc5-supply = <&vcc3v3_sys>;
483		vcc6-supply = <&vcc5v0_sys>;
484		vcc7-supply = <&vcc3v3_sys>;
485		vcc8-supply = <&vcc3v3_sys>;
486		vcc9-supply = <&vcc3v3_sys>;
487		wakeup-source;
488
489		regulators {
490			vdd_logic: DCDC_REG1 {
491				regulator-name = "vdd_logic";
492				regulator-always-on;
493				regulator-boot-on;
494				regulator-initial-mode = <0x2>;
495				regulator-min-microvolt = <500000>;
496				regulator-max-microvolt = <1350000>;
497				regulator-ramp-delay = <6001>;
498
499				regulator-state-mem {
500					regulator-off-in-suspend;
501				};
502			};
503
504			vdd_gpu: DCDC_REG2 {
505				regulator-name = "vdd_gpu";
506				regulator-always-on;
507				regulator-boot-on;
508				regulator-initial-mode = <0x2>;
509				regulator-min-microvolt = <500000>;
510				regulator-max-microvolt = <1350000>;
511				regulator-ramp-delay = <6001>;
512
513				regulator-state-mem {
514					regulator-off-in-suspend;
515				};
516			};
517
518			vcc_ddr: DCDC_REG3 {
519				regulator-name = "vcc_ddr";
520				regulator-always-on;
521				regulator-boot-on;
522				regulator-initial-mode = <0x2>;
523
524				regulator-state-mem {
525					regulator-on-in-suspend;
526				};
527			};
528
529			vdd_npu: DCDC_REG4 {
530				regulator-name = "vdd_npu";
531				regulator-initial-mode = <0x2>;
532				regulator-min-microvolt = <500000>;
533				regulator-max-microvolt = <1350000>;
534				regulator-ramp-delay = <6001>;
535
536				regulator-state-mem {
537					regulator-off-in-suspend;
538				};
539			};
540
541			vcc_1v8: DCDC_REG5 {
542				regulator-name = "vcc_1v8";
543				regulator-always-on;
544				regulator-boot-on;
545				regulator-min-microvolt = <1800000>;
546				regulator-max-microvolt = <1800000>;
547
548				regulator-state-mem {
549					regulator-on-in-suspend;
550				};
551			};
552
553			vdda0v9_image: LDO_REG1 {
554				regulator-name = "vdda0v9_image";
555				regulator-always-on;
556				regulator-boot-on;
557				regulator-min-microvolt = <900000>;
558				regulator-max-microvolt = <900000>;
559
560				regulator-state-mem {
561					regulator-off-in-suspend;
562				};
563			};
564
565			vdda_0v9: LDO_REG2 {
566				regulator-name = "vdda_0v9";
567				regulator-always-on;
568				regulator-boot-on;
569				regulator-min-microvolt = <900000>;
570				regulator-max-microvolt = <900000>;
571
572				regulator-state-mem {
573					regulator-off-in-suspend;
574				};
575			};
576
577			vdda0v9_pmu: LDO_REG3 {
578				regulator-name = "vdda0v9_pmu";
579				regulator-always-on;
580				regulator-boot-on;
581				regulator-min-microvolt = <900000>;
582				regulator-max-microvolt = <900000>;
583
584				regulator-state-mem {
585					regulator-on-in-suspend;
586				};
587			};
588
589			vccio_acodec: LDO_REG4 {
590				regulator-name = "vccio_acodec";
591				regulator-always-on;
592				regulator-boot-on;
593				regulator-min-microvolt = <3300000>;
594				regulator-max-microvolt = <3300000>;
595
596				regulator-state-mem {
597					regulator-off-in-suspend;
598				};
599			};
600
601			vccio_sd: LDO_REG5 {
602				regulator-name = "vccio_sd";
603				regulator-always-on;
604				regulator-boot-on;
605				regulator-min-microvolt = <1800000>;
606				regulator-max-microvolt = <3300000>;
607
608				regulator-state-mem {
609					regulator-off-in-suspend;
610				};
611			};
612
613			vcc3v3_pmu: LDO_REG6 {
614				regulator-name = "vcc3v3_pmu";
615				regulator-always-on;
616				regulator-boot-on;
617				regulator-min-microvolt = <3300000>;
618				regulator-max-microvolt = <3300000>;
619
620				regulator-state-mem {
621					regulator-on-in-suspend;
622				};
623			};
624
625			vcca_1v8: LDO_REG7 {
626				regulator-name = "vcca_1v8";
627				regulator-always-on;
628				regulator-boot-on;
629				regulator-min-microvolt = <1800000>;
630				regulator-max-microvolt = <1800000>;
631
632				regulator-state-mem {
633					regulator-off-in-suspend;
634				};
635			};
636
637			vcca1v8_pmu: LDO_REG8 {
638				regulator-name = "vcca1v8_pmu";
639				regulator-always-on;
640				regulator-boot-on;
641				regulator-min-microvolt = <1800000>;
642				regulator-max-microvolt = <1800000>;
643
644				regulator-state-mem {
645					regulator-on-in-suspend;
646				};
647			};
648
649			vcca1v8_image: LDO_REG9 {
650				regulator-name = "vcca1v8_image";
651				regulator-always-on;
652				regulator-boot-on;
653				regulator-min-microvolt = <1800000>;
654				regulator-max-microvolt = <1800000>;
655
656				regulator-state-mem {
657					regulator-off-in-suspend;
658				};
659			};
660
661			vcc_3v3: SWITCH_REG1 {
662				regulator-name = "vcc_3v3";
663				regulator-always-on;
664				regulator-boot-on;
665
666				regulator-state-mem {
667					regulator-off-in-suspend;
668				};
669			};
670
671			vcc3v3_sd: SWITCH_REG2 {
672				regulator-name = "vcc3v3_sd";
673				regulator-always-on;
674				regulator-boot-on;
675
676				regulator-state-mem {
677					regulator-off-in-suspend;
678				};
679			};
680		};
681	};
682};
683
684&i2c1 {
685	status = "okay";
686
687	hym8563: rtc@51 {
688		compatible = "haoyu,hym8563";
689		reg = <0x51>;
690		interrupt-parent = <&gpio0>;
691		interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
692		#clock-cells = <0>;
693		clock-output-names = "rtcic_32kout";
694		pinctrl-names = "default";
695		pinctrl-0 = <&hym8563_int>;
696		wakeup-source;
697	};
698};
699
700&i2s0_8ch {
701	status = "okay";
702};
703
704&pcie2x1 {
705	pinctrl-names = "default";
706	pinctrl-0 = <&pcie2x1_rst>;
707	reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
708	vpcie3v3-supply = <&vcc3v3_lan>;
709	status = "okay";
710};
711
712&pcie30phy {
713	data-lanes = <1 2>;
714	status = "okay";
715};
716
717&pcie3x1 {
718	reset-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
719	vpcie3v3-supply = <&vcc3v3_pcie>;
720	status = "okay";
721};
722
723&pcie3x2 {
724	num-lanes = <1>;
725	reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
726	vpcie3v3-supply = <&vcc3v3_pcie>;
727	status = "okay";
728};
729
730&pinctrl {
731	bluetooth {
732		bt_device_wake_h: bt-device-wake-h {
733			rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
734		};
735
736		bt_enable_h: bt-enable-h {
737			rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
738		};
739
740		bt_host_wake_h: bt-host-wake-h {
741			rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
742		};
743	};
744
745	gpio-leds {
746		gpio_leds: gpio-leds {
747			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>,
748					<1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>,
749					<1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
750					<1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
751					<1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
752					<1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>,
753					<1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
754					<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
755					<1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
756					<1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
757		};
758	};
759
760	hym8563 {
761		hym8563_int: hym8563-int {
762			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
763		};
764	};
765
766	pcie {
767		pcie2x1_rst: pcie2x1-rst {
768			rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
769		};
770
771		vcc3v3_lan_en: vcc3v3-lan-en {
772			rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
773		};
774
775		vcc3v3_pcie_en: vcc3v3-pcie-en {
776			rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
777		};
778	};
779
780	pmic {
781		pmic_int: pmic-int {
782			rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
783		};
784	};
785
786	pwm-fan {
787		fan_tach: fan-tach {
788			rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
789		};
790
791		vcc12v0_sys_en: vcc12v0-sys-en {
792			rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
793		};
794	};
795
796	sata {
797		sata1_detect: sata1-detect {
798			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
799		};
800
801		sata2_detect: sata2-detect {
802			rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
803		};
804
805		vcc5v0_sata_en: vcc5v0-sata-en {
806			rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
807		};
808	};
809
810	usb {
811		vcc5v0_usb_host_en: vcc5v0-usb-host-en {
812			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
813		};
814
815		vcc5v0_usb_otg_en: vcc5v0-usb-otg-en {
816			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
817		};
818	};
819
820	wlan {
821		vcc_wl_en: vcc-wl-en {
822			rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
823		};
824
825		vccio_wl_en: vccio-wl-en {
826			rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
827		};
828
829		wifi_enable_h: wifi-enable-h {
830			rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
831		};
832
833		wifi_host_wake_h: wifi-host-wake-h {
834			rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
835		};
836	};
837};
838
839&pmu_io_domains {
840	pmuio1-supply = <&vcc3v3_pmu>;
841	pmuio2-supply = <&vcc3v3_pmu>;
842	vccio1-supply = <&vccio_acodec>;
843	vccio2-supply = <&vcc_1v8>;
844	vccio3-supply = <&vccio_sd>;
845	vccio4-supply = <&vcc_1v8>;
846	vccio5-supply = <&vcc_3v3>;
847	vccio6-supply = <&vcc_1v8>;
848	vccio7-supply = <&vcc_3v3>;
849	status = "okay";
850};
851
852&pwm0 {
853	status = "okay";
854};
855
856&pwm4 {
857	status = "okay";
858};
859
860&pwm5 {
861	status = "okay";
862};
863
864&saradc {
865	vref-supply = <&vcca_1v8>;
866	status = "disabled";
867};
868
869&sata1 {
870	target-supply = <&vcc5v0_sata>;
871	status = "okay";
872};
873
874&sdhci {
875	bus-width = <8>;
876	max-frequency = <200000000>;
877	non-removable;
878	pinctrl-names = "default";
879	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
880	status = "okay";
881};
882
883&sdmmc1 {
884	#address-cells = <1>;
885	#size-cells = <0>;
886	bus-width = <4>;
887	cap-sd-highspeed;
888	cap-sdio-irq;
889	disable-wp;
890	keep-power-in-suspend;
891	max-frequency = <208000000>;
892	mmc-pwrseq = <&sdio_pwrseq>;
893	no-mmc;
894	no-sd;
895	non-removable;
896	pinctrl-names = "default";
897	pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_clk &sdmmc1_cmd>;
898	sd-uhs-sdr104;
899	vmmc-supply = <&vcc_wl>;
900	vqmmc-supply = <&vccio_wl>;
901	status = "okay";
902
903	rtl8822cs: wifi@1 {
904		reg = <1>;
905		interrupt-parent = <&gpio2>;
906		interrupts = <RK_PB2 IRQ_TYPE_LEVEL_HIGH>;
907		interrupt-names = "host-wake";
908		pinctrl-names = "default";
909		pinctrl-0 = <&wifi_host_wake_h>;
910	};
911};
912
913&tsadc {
914	rockchip,hw-tshut-mode = <0>;
915	rockchip,hw-tshut-polarity = <0>;
916	status = "okay";
917};
918
919&uart1 {
920	dma-names = "tx", "rx";
921	pinctrl-names = "default";
922	pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
923	uart-has-rtscts;
924	status = "okay";
925
926	bluetooth {
927		compatible = "realtek,rtl8822cs-bt";
928		device-wake-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
929		enable-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
930		host-wake-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
931		pinctrl-names = "default";
932		pinctrl-0 = <&bt_device_wake_h &bt_enable_h &bt_host_wake_h>;
933	};
934};
935
936&uart2 {
937	status = "okay";
938};
939
940&usb_host0_ehci {
941	status = "okay";
942};
943
944&usb_host0_ohci {
945	status = "okay";
946};
947
948&usb_host0_xhci {
949	dr_mode = "host";
950	extcon = <&usb2phy0>;
951	status = "okay";
952};
953
954&usb_host1_ehci {
955	status = "okay";
956};
957
958&usb_host1_ohci {
959	status = "okay";
960};
961
962&usb2phy0 {
963	status = "okay";
964};
965
966&usb2phy0_otg {
967	phy-supply = <&vcc5v0_usb_otg>;
968	status = "okay";
969};
970
971&usb2phy1 {
972	status = "okay";
973};
974
975&usb2phy1_host {
976	phy-supply = <&vcc5v0_usb_host>;
977	status = "okay";
978};
979
980&usb2phy1_otg {
981	phy-supply = <&vcc5v0_usb_host>;
982	status = "okay";
983};
984
985&vop {
986	assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
987	assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
988	status = "okay";
989};
990
991&vop_mmu {
992	status = "okay";
993};
994
995&vp0 {
996	vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
997		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
998		remote-endpoint = <&hdmi_in_vp0>;
999	};
1000};
1001