xref: /linux/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts (revision 06a130e42a5bfc84795464bff023bff4c16f58c5)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2023 Ondřej Jirman <megi@xff.cz>
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/leds/common.h>
10#include <dt-bindings/input/input.h>
11#include <dt-bindings/pinctrl/rockchip.h>
12#include <dt-bindings/usb/pd.h>
13#include "rk3588.dtsi"
14
15/ {
16	model = "Xunlong Orange Pi 5 Plus";
17	compatible = "xunlong,orangepi-5-plus", "rockchip,rk3588";
18
19	aliases {
20		mmc0 = &sdhci;
21		mmc1 = &sdmmc;
22	};
23
24	chosen {
25		stdout-path = "serial2:1500000n8";
26	};
27
28	adc-keys-0 {
29		compatible = "adc-keys";
30		io-channels = <&saradc 0>;
31		io-channel-names = "buttons";
32		keyup-threshold-microvolt = <1800000>;
33		poll-interval = <100>;
34
35		button-maskrom {
36			label = "Mask Rom";
37			linux,code = <KEY_SETUP>;
38			press-threshold-microvolt = <2000>;
39		};
40	};
41
42	adc-keys-1 {
43		compatible = "adc-keys";
44		io-channels = <&saradc 1>;
45		io-channel-names = "buttons";
46		keyup-threshold-microvolt = <1800000>;
47		poll-interval = <100>;
48
49		button-recovery {
50			label = "Recovery";
51			linux,code = <KEY_VENDOR>;
52			press-threshold-microvolt = <2000>;
53		};
54	};
55
56	speaker_amp: speaker-audio-amplifier {
57		compatible = "simple-audio-amplifier";
58		enable-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
59		sound-name-prefix = "Speaker Amp";
60	};
61
62	headphone_amp: headphones-audio-amplifier {
63		compatible = "simple-audio-amplifier";
64		enable-gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
65		sound-name-prefix = "Headphones Amp";
66	};
67
68	ir-receiver {
69		compatible = "gpio-ir-receiver";
70		gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
71		pinctrl-names = "default";
72		pinctrl-0 = <&ir_receiver_pin>;
73	};
74
75	gpio-leds {
76		compatible = "gpio-leds";
77		pinctrl-names = "default";
78		pinctrl-0 = <&blue_led_pin>;
79
80		led {
81			color = <LED_COLOR_ID_BLUE>;
82			function = LED_FUNCTION_INDICATOR;
83			function-enumerator = <1>;
84			gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;
85		};
86	};
87
88	fan: pwm-fan {
89		compatible = "pwm-fan";
90		cooling-levels = <0 70 75 80 100>;
91		fan-supply = <&vcc5v0_sys>;
92		pwms = <&pwm3 0 50000 0>;
93		#cooling-cells = <2>;
94	};
95
96	pwm-leds {
97		compatible = "pwm-leds";
98
99		led {
100			color = <LED_COLOR_ID_GREEN>;
101			function = LED_FUNCTION_INDICATOR;
102			function-enumerator = <2>;
103			max-brightness = <255>;
104			pwms = <&pwm2 0 25000 0>;
105		};
106	};
107
108	rfkill {
109		compatible = "rfkill-gpio";
110		label = "rfkill-pcie-wlan";
111		radio-type = "wlan";
112		shutdown-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
113	};
114
115	sound {
116		compatible = "simple-audio-card";
117		pinctrl-names = "default";
118		pinctrl-0 = <&hp_detect>;
119		simple-audio-card,name = "Analog";
120		simple-audio-card,aux-devs = <&speaker_amp>, <&headphone_amp>;
121		simple-audio-card,format = "i2s";
122		simple-audio-card,mclk-fs = <256>;
123		simple-audio-card,hp-det-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
124		simple-audio-card,bitclock-master = <&daicpu>;
125		simple-audio-card,frame-master = <&daicpu>;
126		/*TODO: SARADC_IN3 is used as MIC detection / key input */
127
128		simple-audio-card,widgets =
129			"Microphone", "Onboard Microphone",
130			"Microphone", "Microphone Jack",
131			"Speaker", "Speaker",
132			"Headphone", "Headphones";
133
134		simple-audio-card,routing =
135			"Headphones", "LOUT1",
136			"Headphones", "ROUT1",
137			"Speaker", "LOUT2",
138			"Speaker", "ROUT2",
139
140			"Headphones", "Headphones Amp OUTL",
141			"Headphones", "Headphones Amp OUTR",
142			"Headphones Amp INL", "LOUT1",
143			"Headphones Amp INR", "ROUT1",
144
145			"Speaker", "Speaker Amp OUTL",
146			"Speaker", "Speaker Amp OUTR",
147			"Speaker Amp INL", "LOUT2",
148			"Speaker Amp INR", "ROUT2",
149
150			/* single ended signal to LINPUT1 */
151			"LINPUT1", "Microphone Jack",
152			"RINPUT1", "Microphone Jack",
153			/* differential signal */
154			"LINPUT2", "Onboard Microphone",
155			"RINPUT2", "Onboard Microphone";
156
157		daicpu: simple-audio-card,cpu {
158			sound-dai = <&i2s0_8ch>;
159			system-clock-frequency = <12288000>;
160		};
161
162		daicodec: simple-audio-card,codec {
163			sound-dai = <&es8388>;
164			system-clock-frequency = <12288000>;
165		};
166	};
167
168	vcc3v3_pcie30: vcc3v3-pcie30-regulator {
169		compatible = "regulator-fixed";
170		enable-active-high;
171		gpios = <&gpio2 RK_PB6 GPIO_ACTIVE_HIGH>;
172		regulator-name = "vcc3v3_pcie30";
173		regulator-min-microvolt = <3300000>;
174		regulator-max-microvolt = <3300000>;
175		startup-delay-us = <5000>;
176		vin-supply = <&vcc5v0_sys>;
177	};
178
179	vcc3v3_pcie_eth: vcc3v3-pcie-eth-regulator {
180		compatible = "regulator-fixed";
181		gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>;
182		regulator-name = "vcc3v3_pcie_eth";
183		regulator-min-microvolt = <3300000>;
184		regulator-max-microvolt = <3300000>;
185		startup-delay-us = <50000>;
186		vin-supply = <&vcc5v0_sys>;
187	};
188
189	vcc3v3_wf: vcc3v3-wf-regulator {
190		compatible = "regulator-fixed";
191		enable-active-high;
192		gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>;
193		regulator-name = "vcc3v3_wf";
194		regulator-min-microvolt = <3300000>;
195		regulator-max-microvolt = <3300000>;
196		startup-delay-us = <50000>;
197		vin-supply = <&vcc5v0_sys>;
198	};
199
200	vcc5v0_sys: vcc5v0-sys-regulator {
201		compatible = "regulator-fixed";
202		regulator-name = "vcc5v0_sys";
203		regulator-always-on;
204		regulator-boot-on;
205		regulator-min-microvolt = <5000000>;
206		regulator-max-microvolt = <5000000>;
207	};
208
209	vcc5v0_usb20: vcc5v0-usb20-regulator {
210		compatible = "regulator-fixed";
211		enable-active-high;
212		gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>;
213		pinctrl-names = "default";
214		pinctrl-0 = <&vcc5v0_usb20_en>;
215		regulator-name = "vcc5v0_usb20";
216		regulator-min-microvolt = <5000000>;
217		regulator-max-microvolt = <5000000>;
218		vin-supply = <&vcc5v0_sys>;
219	};
220};
221
222&combphy0_ps {
223	status = "okay";
224};
225
226&combphy1_ps {
227	status = "okay";
228};
229
230&combphy2_psu {
231	status = "okay";
232};
233
234&cpu_b0 {
235	cpu-supply = <&vdd_cpu_big0_s0>;
236};
237
238&cpu_b1 {
239	cpu-supply = <&vdd_cpu_big0_s0>;
240};
241
242&cpu_b2 {
243	cpu-supply = <&vdd_cpu_big1_s0>;
244};
245
246&cpu_b3 {
247	cpu-supply = <&vdd_cpu_big1_s0>;
248};
249
250&cpu_l0 {
251	cpu-supply = <&vdd_cpu_lit_s0>;
252};
253
254&cpu_l1 {
255	cpu-supply = <&vdd_cpu_lit_s0>;
256};
257
258&cpu_l2 {
259	cpu-supply = <&vdd_cpu_lit_s0>;
260};
261
262&cpu_l3 {
263	cpu-supply = <&vdd_cpu_lit_s0>;
264};
265
266&i2c0 {
267	pinctrl-names = "default";
268	pinctrl-0 = <&i2c0m2_xfer>;
269	status = "okay";
270
271	vdd_cpu_big0_s0: regulator@42 {
272		compatible = "rockchip,rk8602";
273		reg = <0x42>;
274		fcs,suspend-voltage-selector = <1>;
275		regulator-name = "vdd_cpu_big0_s0";
276		regulator-always-on;
277		regulator-boot-on;
278		regulator-min-microvolt = <550000>;
279		regulator-max-microvolt = <1050000>;
280		regulator-ramp-delay = <2300>;
281		vin-supply = <&vcc5v0_sys>;
282
283		regulator-state-mem {
284			regulator-off-in-suspend;
285		};
286	};
287
288	vdd_cpu_big1_s0: regulator@43 {
289		compatible = "rockchip,rk8603", "rockchip,rk8602";
290		reg = <0x43>;
291		fcs,suspend-voltage-selector = <1>;
292		regulator-name = "vdd_cpu_big1_s0";
293		regulator-always-on;
294		regulator-boot-on;
295		regulator-min-microvolt = <550000>;
296		regulator-max-microvolt = <1050000>;
297		regulator-ramp-delay = <2300>;
298		vin-supply = <&vcc5v0_sys>;
299
300		regulator-state-mem {
301			regulator-off-in-suspend;
302		};
303	};
304};
305
306&i2c6 {
307	clock-frequency = <400000>;
308	status = "okay";
309
310	hym8563: rtc@51 {
311		compatible = "haoyu,hym8563";
312		reg = <0x51>;
313		interrupt-parent = <&gpio0>;
314		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
315		#clock-cells = <0>;
316		clock-output-names = "hym8563";
317		pinctrl-names = "default";
318		pinctrl-0 = <&hym8563_int>;
319		wakeup-source;
320	};
321};
322
323&i2c7 {
324	status = "okay";
325
326	/* PLDO2 vcca 1.8V, BUCK8 gated by PLDO2 being enabled */
327	es8388: audio-codec@11 {
328		compatible = "everest,es8388";
329		reg = <0x11>;
330		clocks = <&cru I2S0_8CH_MCLKOUT>;
331		clock-names = "mclk";
332		AVDD-supply = <&vcc_1v8_s0>;
333		DVDD-supply = <&vcc_1v8_s0>;
334		HPVDD-supply = <&vcc_3v3_s0>;
335		PVDD-supply = <&vcc_3v3_s0>;
336		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
337		assigned-clock-rates = <12288000>;
338		#sound-dai-cells = <0>;
339	};
340};
341
342&i2s0_8ch {
343	pinctrl-names = "default";
344	pinctrl-0 = <&i2s0_lrck
345		     &i2s0_mclk
346		     &i2s0_sclk
347		     &i2s0_sdi0
348		     &i2s0_sdo0>;
349	status = "okay";
350};
351
352&i2s2_2ch {
353	pinctrl-names = "default";
354	pinctrl-0 = <&i2s2m0_lrck
355		     &i2s2m0_sclk
356		     &i2s2m0_sdi
357		     &i2s2m0_sdo>;
358	status = "okay";
359};
360
361/* phy1 - M.KEY socket */
362&pcie2x1l0 {
363	reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
364	vpcie3v3-supply = <&vcc3v3_wf>;
365	status = "okay";
366};
367
368/* phy2 - right ethernet port */
369&pcie2x1l1 {
370	reset-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
371	vpcie3v3-supply = <&vcc3v3_pcie_eth>;
372	status = "okay";
373};
374
375/* phy0 - left ethernet port */
376&pcie2x1l2 {
377	reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
378	vpcie3v3-supply = <&vcc3v3_pcie_eth>;
379	status = "okay";
380};
381
382&pcie30phy {
383	status = "okay";
384};
385
386&pcie3x4 {
387	reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
388	vpcie3v3-supply = <&vcc3v3_pcie30>;
389	status = "okay";
390};
391
392&pinctrl {
393	hym8563 {
394		hym8563_int: hym8563-int {
395			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
396		};
397	};
398
399	leds {
400		blue_led_pin: blue-led {
401			rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
402		};
403	};
404
405	ir-receiver {
406		ir_receiver_pin: ir-receiver-pin {
407			rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
408		};
409	};
410
411	sound {
412		hp_detect: hp-detect {
413			rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
414		};
415	};
416
417	usb {
418		vcc5v0_usb20_en: vcc5v0-usb20-en {
419			rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
420		};
421	};
422};
423
424&pwm2 {
425	pinctrl-0 = <&pwm2m1_pins>;
426	pinctrl-names = "default";
427	status = "okay";
428};
429
430&pwm3 {
431	pinctrl-0 = <&pwm3m1_pins>;
432	status = "okay";
433};
434
435&saradc {
436	vref-supply = <&vcc_1v8_s0>;
437	status = "okay";
438};
439
440&sdhci {
441	bus-width = <8>;
442	no-sdio;
443	no-sd;
444	non-removable;
445	max-frequency = <200000000>;
446	mmc-hs400-1_8v;
447	mmc-hs400-enhanced-strobe;
448	status = "okay";
449};
450
451&sdmmc {
452	bus-width = <4>;
453	cap-sd-highspeed;
454	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
455	disable-wp;
456	max-frequency = <150000000>;
457	no-sdio;
458	no-mmc;
459	sd-uhs-sdr104;
460	vmmc-supply = <&vcc_3v3_s3>;
461	vqmmc-supply = <&vccio_sd_s0>;
462	status = "okay";
463};
464
465&sfc {
466	pinctrl-names = "default";
467	pinctrl-0 = <&fspim1_pins>;
468	status = "okay";
469
470	spi_flash: flash@0 {
471		compatible = "jedec,spi-nor";
472		reg = <0x0>;
473		spi-max-frequency = <100000000>;
474		spi-rx-bus-width = <4>;
475		spi-tx-bus-width = <1>;
476	};
477};
478
479&spi2 {
480	assigned-clocks = <&cru CLK_SPI2>;
481	assigned-clock-rates = <200000000>;
482	num-cs = <1>;
483	pinctrl-names = "default";
484	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
485	status = "okay";
486
487	pmic@0 {
488		compatible = "rockchip,rk806";
489		reg = <0x0>;
490		interrupt-parent = <&gpio0>;
491		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
492		pinctrl-names = "default";
493		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
494			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
495		spi-max-frequency = <1000000>;
496		system-power-controller;
497
498		vcc1-supply = <&vcc5v0_sys>;
499		vcc2-supply = <&vcc5v0_sys>;
500		vcc3-supply = <&vcc5v0_sys>;
501		vcc4-supply = <&vcc5v0_sys>;
502		vcc5-supply = <&vcc5v0_sys>;
503		vcc6-supply = <&vcc5v0_sys>;
504		vcc7-supply = <&vcc5v0_sys>;
505		vcc8-supply = <&vcc5v0_sys>;
506		vcc9-supply = <&vcc5v0_sys>;
507		vcc10-supply = <&vcc5v0_sys>;
508		vcc11-supply = <&vcc_2v0_pldo_s3>;
509		vcc12-supply = <&vcc5v0_sys>;
510		vcc13-supply = <&vdd2_ddr_s3>;
511		vcc14-supply = <&vdd2_ddr_s3>;
512		vcca-supply = <&vcc5v0_sys>;
513
514		gpio-controller;
515		#gpio-cells = <2>;
516
517		rk806_dvs1_null: dvs1-null-pins {
518			pins = "gpio_pwrctrl1";
519			function = "pin_fun0";
520		};
521
522		rk806_dvs2_null: dvs2-null-pins {
523			pins = "gpio_pwrctrl2";
524			function = "pin_fun0";
525		};
526
527		rk806_dvs3_null: dvs3-null-pins {
528			pins = "gpio_pwrctrl3";
529			function = "pin_fun0";
530		};
531
532		regulators {
533			vdd_gpu_s0: dcdc-reg1 {
534				regulator-name = "vdd_gpu_s0";
535				regulator-boot-on;
536				regulator-enable-ramp-delay = <400>;
537				regulator-min-microvolt = <550000>;
538				regulator-max-microvolt = <950000>;
539				regulator-ramp-delay = <12500>;
540
541				regulator-state-mem {
542					regulator-off-in-suspend;
543				};
544			};
545
546			vdd_cpu_lit_s0: dcdc-reg2 {
547				regulator-name = "vdd_cpu_lit_s0";
548				regulator-always-on;
549				regulator-boot-on;
550				regulator-min-microvolt = <550000>;
551				regulator-max-microvolt = <950000>;
552				regulator-ramp-delay = <12500>;
553
554				regulator-state-mem {
555					regulator-off-in-suspend;
556				};
557			};
558
559			vdd_log_s0: dcdc-reg3 {
560				regulator-name = "vdd_log_s0";
561				regulator-always-on;
562				regulator-boot-on;
563				regulator-min-microvolt = <675000>;
564				regulator-max-microvolt = <825000>;
565				regulator-ramp-delay = <12500>;
566
567				regulator-state-mem {
568					regulator-off-in-suspend;
569					regulator-suspend-microvolt = <750000>;
570				};
571			};
572
573			vdd_vdenc_s0: dcdc-reg4 {
574				regulator-name = "vdd_vdenc_s0";
575				regulator-always-on;
576				regulator-boot-on;
577				regulator-min-microvolt = <550000>;
578				regulator-max-microvolt = <825000>;
579				regulator-ramp-delay = <12500>;
580
581				regulator-state-mem {
582					regulator-off-in-suspend;
583				};
584			};
585
586			vdd_ddr_s0: dcdc-reg5 {
587				regulator-name = "vdd_ddr_s0";
588				regulator-always-on;
589				regulator-boot-on;
590				regulator-min-microvolt = <675000>;
591				regulator-max-microvolt = <900000>;
592				regulator-ramp-delay = <12500>;
593
594				regulator-state-mem {
595					regulator-off-in-suspend;
596					regulator-suspend-microvolt = <850000>;
597				};
598			};
599
600			vdd2_ddr_s3: dcdc-reg6 {
601				regulator-name = "vdd2_ddr_s3";
602				regulator-always-on;
603				regulator-boot-on;
604
605				regulator-state-mem {
606					regulator-on-in-suspend;
607				};
608			};
609
610			vcc_2v0_pldo_s3: dcdc-reg7 {
611				regulator-name = "vdd_2v0_pldo_s3";
612				regulator-always-on;
613				regulator-boot-on;
614				regulator-min-microvolt = <2000000>;
615				regulator-max-microvolt = <2000000>;
616				regulator-ramp-delay = <12500>;
617
618				regulator-state-mem {
619					regulator-on-in-suspend;
620					regulator-suspend-microvolt = <2000000>;
621				};
622			};
623
624			vcc_3v3_s3: dcdc-reg8 {
625				regulator-name = "vcc_3v3_s3";
626				regulator-always-on;
627				regulator-boot-on;
628				regulator-min-microvolt = <3300000>;
629				regulator-max-microvolt = <3300000>;
630
631				regulator-state-mem {
632					regulator-on-in-suspend;
633					regulator-suspend-microvolt = <3300000>;
634				};
635			};
636
637			vddq_ddr_s0: dcdc-reg9 {
638				regulator-name = "vddq_ddr_s0";
639				regulator-always-on;
640				regulator-boot-on;
641
642				regulator-state-mem {
643					regulator-off-in-suspend;
644				};
645			};
646
647			vcc_1v8_s3: dcdc-reg10 {
648				regulator-name = "vcc_1v8_s3";
649				regulator-always-on;
650				regulator-boot-on;
651				regulator-min-microvolt = <1800000>;
652				regulator-max-microvolt = <1800000>;
653
654				regulator-state-mem {
655					regulator-on-in-suspend;
656					regulator-suspend-microvolt = <1800000>;
657				};
658			};
659
660			avcc_1v8_s0: pldo-reg1 {
661				regulator-name = "avcc_1v8_s0";
662				regulator-always-on;
663				regulator-boot-on;
664				regulator-min-microvolt = <1800000>;
665				regulator-max-microvolt = <1800000>;
666
667				regulator-state-mem {
668					regulator-off-in-suspend;
669					regulator-suspend-microvolt = <1800000>;
670				};
671			};
672
673			/* shorted to avcc_1v8_s0 on the board */
674			vcc_1v8_s0: pldo-reg2 {
675				regulator-name = "vcc_1v8_s0";
676				regulator-always-on;
677				regulator-boot-on;
678				regulator-min-microvolt = <1800000>;
679				regulator-max-microvolt = <1800000>;
680
681				regulator-state-mem {
682					regulator-off-in-suspend;
683					regulator-suspend-microvolt = <1800000>;
684				};
685			};
686
687			avdd_1v2_s0: pldo-reg3 {
688				regulator-name = "avdd_1v2_s0";
689				regulator-always-on;
690				regulator-boot-on;
691				regulator-min-microvolt = <1200000>;
692				regulator-max-microvolt = <1200000>;
693
694				regulator-state-mem {
695					regulator-off-in-suspend;
696				};
697			};
698
699			vcc_3v3_s0: pldo-reg4 {
700				regulator-name = "vcc_3v3_s0";
701				regulator-always-on;
702				regulator-boot-on;
703				regulator-min-microvolt = <3300000>;
704				regulator-max-microvolt = <3300000>;
705				regulator-ramp-delay = <12500>;
706
707				regulator-state-mem {
708					regulator-off-in-suspend;
709				};
710			};
711
712			vccio_sd_s0: pldo-reg5 {
713				regulator-name = "vccio_sd_s0";
714				regulator-always-on;
715				regulator-boot-on;
716				regulator-min-microvolt = <1800000>;
717				regulator-max-microvolt = <3300000>;
718				regulator-ramp-delay = <12500>;
719
720				regulator-state-mem {
721					regulator-off-in-suspend;
722				};
723			};
724
725			pldo6_s3: pldo-reg6 {
726				regulator-name = "pldo6_s3";
727				regulator-always-on;
728				regulator-boot-on;
729				regulator-min-microvolt = <1800000>;
730				regulator-max-microvolt = <1800000>;
731
732				regulator-state-mem {
733					regulator-on-in-suspend;
734					regulator-suspend-microvolt = <1800000>;
735				};
736			};
737
738			vdd_0v75_s3: nldo-reg1 {
739				regulator-name = "vdd_0v75_s3";
740				regulator-always-on;
741				regulator-boot-on;
742				regulator-min-microvolt = <750000>;
743				regulator-max-microvolt = <750000>;
744
745				regulator-state-mem {
746					regulator-on-in-suspend;
747					regulator-suspend-microvolt = <750000>;
748				};
749			};
750
751			vdd_ddr_pll_s0: nldo-reg2 {
752				regulator-name = "vdd_ddr_pll_s0";
753				regulator-always-on;
754				regulator-boot-on;
755				regulator-min-microvolt = <850000>;
756				regulator-max-microvolt = <850000>;
757
758				regulator-state-mem {
759					regulator-off-in-suspend;
760					regulator-suspend-microvolt = <850000>;
761				};
762			};
763
764			avdd_0v75_s0: nldo-reg3 {
765				regulator-name = "avdd_0v75_s0";
766				regulator-always-on;
767				regulator-boot-on;
768				/*
769				 * The schematic mentions that actual setting
770				 * should be 0.8375V. RK3588 datasheet specifies
771				 * maximum as 0.825V. So we set datasheet max
772				 * here.
773				 */
774				regulator-min-microvolt = <825000>;
775				regulator-max-microvolt = <825000>;
776
777				regulator-state-mem {
778					regulator-off-in-suspend;
779				};
780			};
781
782			vdd_0v85_s0: nldo-reg4 {
783				regulator-name = "vdd_0v85_s0";
784				regulator-always-on;
785				regulator-boot-on;
786				regulator-min-microvolt = <850000>;
787				regulator-max-microvolt = <850000>;
788
789				regulator-state-mem {
790					regulator-off-in-suspend;
791				};
792			};
793
794			vdd_0v75_s0: nldo-reg5 {
795				regulator-name = "vdd_0v75_s0";
796				regulator-always-on;
797				regulator-boot-on;
798				regulator-min-microvolt = <750000>;
799				regulator-max-microvolt = <750000>;
800
801				regulator-state-mem {
802					regulator-off-in-suspend;
803				};
804			};
805		};
806	};
807};
808
809&tsadc {
810	status = "okay";
811};
812
813&u2phy2 {
814	status = "okay";
815};
816
817&u2phy3 {
818	status = "okay";
819};
820
821&u2phy2_host {
822	phy-supply = <&vcc5v0_usb20>;
823	status = "okay";
824};
825
826&u2phy3_host {
827	phy-supply = <&vcc5v0_usb20>;
828	status = "okay";
829};
830
831&uart2 {
832	pinctrl-0 = <&uart2m0_xfer>;
833	status = "okay";
834};
835
836&uart9 {
837	pinctrl-0 = <&uart9m0_xfer>;
838	status = "okay";
839};
840
841&usb_host0_ehci {
842	status = "okay";
843};
844
845&usb_host0_ohci {
846	status = "okay";
847};
848
849&usb_host1_ehci {
850	status = "okay";
851};
852
853&usb_host1_ohci {
854	status = "okay";
855};
856