xref: /linux/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/input.h>
11#include <dt-bindings/pinctrl/rockchip.h>
12#include "rk3588.dtsi"
13
14/ {
15	model = "Rockchip RK3588 EVB1 V10 Board";
16	compatible = "rockchip,rk3588-evb1-v10", "rockchip,rk3588";
17
18	aliases {
19		ethernet0 = &gmac0;
20		mmc0 = &sdhci;
21	};
22
23	chosen {
24		stdout-path = "serial2:1500000n8";
25	};
26
27	adc-keys {
28		compatible = "adc-keys";
29		io-channels = <&saradc 1>;
30		io-channel-names = "buttons";
31		keyup-threshold-microvolt = <1800000>;
32		poll-interval = <100>;
33
34		button-vol-up {
35			label = "Volume Up";
36			linux,code = <KEY_VOLUMEUP>;
37			press-threshold-microvolt = <17000>;
38		};
39
40		button-vol-down {
41			label = "Volume Down";
42			linux,code = <KEY_VOLUMEDOWN>;
43			press-threshold-microvolt = <417000>;
44		};
45
46		button-menu {
47			label = "Menu";
48			linux,code = <KEY_MENU>;
49			press-threshold-microvolt = <890000>;
50		};
51
52		button-escape {
53			label = "Escape";
54			linux,code = <KEY_ESC>;
55			press-threshold-microvolt = <1235000>;
56		};
57	};
58
59	analog-sound {
60		compatible = "simple-audio-card";
61		pinctrl-names = "default";
62		pinctrl-0 = <&hp_detect>;
63		simple-audio-card,name = "RK3588 EVB1 Audio";
64		simple-audio-card,aux-devs = <&amp_headphone>, <&amp_speaker>;
65		simple-audio-card,bitclock-master = <&masterdai>;
66		simple-audio-card,format = "i2s";
67		simple-audio-card,frame-master = <&masterdai>;
68		simple-audio-card,hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
69		simple-audio-card,mclk-fs = <256>;
70		simple-audio-card,pin-switches = "Headphones", "Speaker";
71		simple-audio-card,routing =
72			"Speaker Amplifier INL", "LOUT2",
73			"Speaker Amplifier INR", "ROUT2",
74			"Speaker", "Speaker Amplifier OUTL",
75			"Speaker", "Speaker Amplifier OUTR",
76			"Headphones Amplifier INL", "LOUT1",
77			"Headphones Amplifier INR", "ROUT1",
78			"Headphones", "Headphones Amplifier OUTL",
79			"Headphones", "Headphones Amplifier OUTR",
80			"LINPUT1", "Onboard Microphone",
81			"RINPUT1", "Onboard Microphone",
82			"LINPUT2", "Microphone Jack",
83			"RINPUT2", "Microphone Jack";
84		simple-audio-card,widgets =
85			"Microphone", "Microphone Jack",
86			"Microphone", "Onboard Microphone",
87			"Headphone", "Headphones",
88			"Speaker", "Speaker";
89
90		simple-audio-card,cpu {
91			sound-dai = <&i2s0_8ch>;
92		};
93
94		masterdai: simple-audio-card,codec {
95			sound-dai = <&es8388>;
96			system-clock-frequency = <12288000>;
97		};
98	};
99
100	amp_headphone: headphone-amplifier {
101		compatible = "simple-audio-amplifier";
102		enable-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
103		pinctrl-names = "default";
104		pinctrl-0 = <&headphone_amplifier_en>;
105		sound-name-prefix = "Headphones Amplifier";
106	};
107
108	amp_speaker: speaker-amplifier {
109		compatible = "simple-audio-amplifier";
110		enable-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
111		pinctrl-names = "default";
112		pinctrl-0 = <&speaker_amplifier_en>;
113		sound-name-prefix = "Speaker Amplifier";
114	};
115
116	backlight: backlight {
117		compatible = "pwm-backlight";
118		power-supply = <&vcc12v_dcin>;
119		pwms = <&pwm2 0 25000 0>;
120	};
121
122	pcie20_avdd0v85: pcie20-avdd0v85-regulator {
123		compatible = "regulator-fixed";
124		regulator-name = "pcie20_avdd0v85";
125		regulator-always-on;
126		regulator-boot-on;
127		regulator-min-microvolt = <850000>;
128		regulator-max-microvolt = <850000>;
129		vin-supply = <&avdd_0v85_s0>;
130	};
131
132	pcie20_avdd1v8: pcie20-avdd1v8-regulator {
133		compatible = "regulator-fixed";
134		regulator-name = "pcie20_avdd1v8";
135		regulator-always-on;
136		regulator-boot-on;
137		regulator-min-microvolt = <1800000>;
138		regulator-max-microvolt = <1800000>;
139		vin-supply = <&avcc_1v8_s0>;
140	};
141
142	pcie30_avdd0v75: pcie30-avdd0v75-regulator {
143		compatible = "regulator-fixed";
144		regulator-name = "pcie30_avdd0v75";
145		regulator-always-on;
146		regulator-boot-on;
147		regulator-min-microvolt = <750000>;
148		regulator-max-microvolt = <750000>;
149		vin-supply = <&avdd_0v75_s0>;
150	};
151
152	pcie30_avdd1v8: pcie30-avdd1v8-regulator {
153		compatible = "regulator-fixed";
154		regulator-name = "pcie30_avdd1v8";
155		regulator-always-on;
156		regulator-boot-on;
157		regulator-min-microvolt = <1800000>;
158		regulator-max-microvolt = <1800000>;
159		vin-supply = <&avcc_1v8_s0>;
160	};
161
162	vcc12v_dcin: vcc12v-dcin-regulator {
163		compatible = "regulator-fixed";
164		regulator-name = "vcc12v_dcin";
165		regulator-always-on;
166		regulator-boot-on;
167		regulator-min-microvolt = <12000000>;
168		regulator-max-microvolt = <12000000>;
169	};
170
171	vcc3v3_pcie30: vcc3v3-pcie30-regulator {
172		compatible = "regulator-fixed";
173		regulator-name = "vcc3v3_pcie30";
174		regulator-min-microvolt = <3300000>;
175		regulator-max-microvolt = <3300000>;
176		enable-active-high;
177		gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
178		startup-delay-us = <5000>;
179		vin-supply = <&vcc12v_dcin>;
180		pinctrl-names = "default";
181		pinctrl-0 = <&vcc3v3_pcie30_en>;
182	};
183
184	vcc5v0_host: vcc5v0-host-regulator {
185		compatible = "regulator-fixed";
186		regulator-name = "vcc5v0_host";
187		regulator-boot-on;
188		regulator-always-on;
189		regulator-min-microvolt = <5000000>;
190		regulator-max-microvolt = <5000000>;
191		enable-active-high;
192		gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
193		pinctrl-names = "default";
194		pinctrl-0 = <&vcc5v0_host_en>;
195		vin-supply = <&vcc5v0_usb>;
196	};
197
198	vcc5v0_sys: vcc5v0-sys-regulator {
199		compatible = "regulator-fixed";
200		regulator-name = "vcc5v0_sys";
201		regulator-always-on;
202		regulator-boot-on;
203		regulator-min-microvolt = <5000000>;
204		regulator-max-microvolt = <5000000>;
205		vin-supply = <&vcc12v_dcin>;
206	};
207
208	vcc5v0_usbdcin: vcc5v0-usbdcin-regulator {
209		compatible = "regulator-fixed";
210		regulator-name = "vcc5v0_usbdcin";
211		regulator-always-on;
212		regulator-boot-on;
213		regulator-min-microvolt = <5000000>;
214		regulator-max-microvolt = <5000000>;
215		vin-supply = <&vcc12v_dcin>;
216	};
217
218	vcc5v0_usb: vcc5v0-usb-regulator {
219		compatible = "regulator-fixed";
220		regulator-name = "vcc5v0_usb";
221		regulator-always-on;
222		regulator-boot-on;
223		regulator-min-microvolt = <5000000>;
224		regulator-max-microvolt = <5000000>;
225		vin-supply = <&vcc5v0_usbdcin>;
226	};
227};
228
229&combphy0_ps {
230	status = "okay";
231};
232
233&combphy2_psu {
234	status = "okay";
235};
236
237&cpu_b0 {
238	cpu-supply = <&vdd_cpu_big0_s0>;
239};
240
241&cpu_b1 {
242	cpu-supply = <&vdd_cpu_big0_s0>;
243};
244
245&cpu_b2 {
246	cpu-supply = <&vdd_cpu_big1_s0>;
247};
248
249&cpu_b3 {
250	cpu-supply = <&vdd_cpu_big1_s0>;
251};
252
253&cpu_l0 {
254	cpu-supply = <&vdd_cpu_lit_s0>;
255};
256
257&cpu_l1 {
258	cpu-supply = <&vdd_cpu_lit_s0>;
259};
260
261&cpu_l2 {
262	cpu-supply = <&vdd_cpu_lit_s0>;
263};
264
265&cpu_l3 {
266	cpu-supply = <&vdd_cpu_lit_s0>;
267};
268
269&gmac0 {
270	clock_in_out = "output";
271	phy-handle = <&rgmii_phy>;
272	phy-mode = "rgmii-rxid";
273	pinctrl-0 = <&gmac0_miim
274		     &gmac0_tx_bus2
275		     &gmac0_rx_bus2
276		     &gmac0_rgmii_clk
277		     &gmac0_rgmii_bus>;
278	pinctrl-names = "default";
279	rx_delay = <0x00>;
280	tx_delay = <0x43>;
281	status = "okay";
282};
283
284&i2c2 {
285	status = "okay";
286
287	hym8563: rtc@51 {
288		compatible = "haoyu,hym8563";
289		reg = <0x51>;
290		#clock-cells = <0>;
291		clock-output-names = "hym8563";
292		pinctrl-names = "default";
293		pinctrl-0 = <&hym8563_int>;
294		interrupt-parent = <&gpio0>;
295		interrupts = <RK_PD4 IRQ_TYPE_LEVEL_LOW>;
296		wakeup-source;
297	};
298};
299
300&i2c7 {
301	status = "okay";
302
303	es8388: audio-codec@11 {
304		compatible = "everest,es8388";
305		reg = <0x11>;
306		clocks = <&cru I2S0_8CH_MCLKOUT>;
307		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
308		assigned-clock-rates = <12288000>;
309		AVDD-supply = <&avcc_1v8_codec_s0>;
310		DVDD-supply = <&avcc_1v8_codec_s0>;
311		HPVDD-supply = <&vcc_3v3_s0>;
312		PVDD-supply = <&vcc_3v3_s0>;
313		#sound-dai-cells = <0>;
314	};
315};
316
317&i2s0_8ch {
318	pinctrl-0 = <&i2s0_lrck
319		     &i2s0_mclk
320		     &i2s0_sclk
321		     &i2s0_sdi0
322		     &i2s0_sdo0>;
323	status = "okay";
324};
325
326&mdio0 {
327	rgmii_phy: ethernet-phy@1 {
328		/* RTL8211F */
329		compatible = "ethernet-phy-id001c.c916";
330		reg = <0x1>;
331		pinctrl-names = "default";
332		pinctrl-0 = <&rtl8211f_rst>;
333		reset-assert-us = <20000>;
334		reset-deassert-us = <100000>;
335		reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
336	};
337};
338
339&pcie2x1l1 {
340	reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
341	pinctrl-names = "default";
342	pinctrl-0 = <&pcie2_1_rst>, <&rtl8111_isolate>;
343	status = "okay";
344};
345
346&pcie30phy {
347	status = "okay";
348};
349
350&pcie3x4 {
351	pinctrl-names = "default";
352	pinctrl-0 = <&pcie3_reset>;
353	reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
354	vpcie3v3-supply = <&vcc3v3_pcie30>;
355	status = "okay";
356};
357
358&pinctrl {
359	audio {
360		hp_detect: headphone-detect {
361			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
362		};
363
364		headphone_amplifier_en: headphone-amplifier-en {
365			rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
366		};
367
368		speaker_amplifier_en: speaker-amplifier-en {
369			rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
370		};
371	};
372
373	rtl8111 {
374		rtl8111_isolate: rtl8111-isolate {
375			rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
376		};
377	};
378
379	rtl8211f {
380		rtl8211f_rst: rtl8211f-rst {
381			rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
382		};
383
384	};
385
386	hym8563 {
387		hym8563_int: hym8563-int {
388			rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
389		};
390	};
391
392	pcie2 {
393		pcie2_1_rst: pcie2-1-rst {
394			rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
395		};
396	};
397
398	pcie3 {
399		pcie3_reset: pcie3-reset {
400			rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
401		};
402
403		vcc3v3_pcie30_en: vcc3v3-pcie30-en {
404			rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
405		};
406	};
407
408	usb {
409		vcc5v0_host_en: vcc5v0-host-en {
410			rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
411		};
412	};
413};
414
415&pwm2 {
416	status = "okay";
417};
418
419&saradc {
420	vref-supply = <&vcc_1v8_s0>;
421	status = "okay";
422};
423
424&sdhci {
425	bus-width = <8>;
426	no-sdio;
427	no-sd;
428	non-removable;
429	mmc-hs400-1_8v;
430	mmc-hs400-enhanced-strobe;
431	status = "okay";
432};
433
434&spi2 {
435	status = "okay";
436	assigned-clocks = <&cru CLK_SPI2>;
437	assigned-clock-rates = <200000000>;
438	num-cs = <2>;
439
440	pmic@0 {
441		compatible = "rockchip,rk806";
442		reg = <0x0>;
443		#gpio-cells = <2>;
444		gpio-controller;
445		interrupt-parent = <&gpio0>;
446		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
447		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
448			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
449		pinctrl-names = "default";
450		spi-max-frequency = <1000000>;
451		system-power-controller;
452
453		vcc1-supply = <&vcc5v0_sys>;
454		vcc2-supply = <&vcc5v0_sys>;
455		vcc3-supply = <&vcc5v0_sys>;
456		vcc4-supply = <&vcc5v0_sys>;
457		vcc5-supply = <&vcc5v0_sys>;
458		vcc6-supply = <&vcc5v0_sys>;
459		vcc7-supply = <&vcc5v0_sys>;
460		vcc8-supply = <&vcc5v0_sys>;
461		vcc9-supply = <&vcc5v0_sys>;
462		vcc10-supply = <&vcc5v0_sys>;
463		vcc11-supply = <&vcc_2v0_pldo_s3>;
464		vcc12-supply = <&vcc5v0_sys>;
465		vcc13-supply = <&vcc5v0_sys>;
466		vcc14-supply = <&vcc_1v1_nldo_s3>;
467		vcca-supply = <&vcc5v0_sys>;
468
469		rk806_dvs1_null: dvs1-null-pins {
470			pins = "gpio_pwrctrl1";
471			function = "pin_fun0";
472		};
473
474		rk806_dvs2_null: dvs2-null-pins {
475			pins = "gpio_pwrctrl2";
476			function = "pin_fun0";
477		};
478
479		rk806_dvs3_null: dvs3-null-pins {
480			pins = "gpio_pwrctrl3";
481			function = "pin_fun0";
482		};
483
484
485		regulators {
486			vdd_gpu_s0: dcdc-reg1 {
487				regulator-boot-on;
488				regulator-min-microvolt = <550000>;
489				regulator-max-microvolt = <950000>;
490				regulator-ramp-delay = <12500>;
491				regulator-name = "vdd_gpu_s0";
492				regulator-enable-ramp-delay = <400>;
493				regulator-state-mem {
494					regulator-off-in-suspend;
495				};
496			};
497
498			vdd_npu_s0: dcdc-reg2 {
499				regulator-always-on;
500				regulator-boot-on;
501				regulator-min-microvolt = <550000>;
502				regulator-max-microvolt = <950000>;
503				regulator-ramp-delay = <12500>;
504				regulator-name = "vdd_npu_s0";
505				regulator-state-mem {
506					regulator-off-in-suspend;
507				};
508			};
509
510			vdd_log_s0: dcdc-reg3 {
511				regulator-always-on;
512				regulator-boot-on;
513				regulator-min-microvolt = <675000>;
514				regulator-max-microvolt = <750000>;
515				regulator-ramp-delay = <12500>;
516				regulator-name = "vdd_log_s0";
517				regulator-state-mem {
518					regulator-off-in-suspend;
519					regulator-suspend-microvolt = <750000>;
520				};
521			};
522
523			vdd_vdenc_s0: dcdc-reg4 {
524				regulator-always-on;
525				regulator-boot-on;
526				regulator-min-microvolt = <550000>;
527				regulator-max-microvolt = <950000>;
528				regulator-ramp-delay = <12500>;
529				regulator-name = "vdd_vdenc_s0";
530				regulator-state-mem {
531					regulator-off-in-suspend;
532				};
533
534			};
535
536			vdd_gpu_mem_s0: dcdc-reg5 {
537				regulator-boot-on;
538				regulator-min-microvolt = <675000>;
539				regulator-max-microvolt = <950000>;
540				regulator-ramp-delay = <12500>;
541				regulator-enable-ramp-delay = <400>;
542				regulator-name = "vdd_gpu_mem_s0";
543				regulator-state-mem {
544					regulator-off-in-suspend;
545				};
546
547			};
548
549			vdd_npu_mem_s0: dcdc-reg6 {
550				regulator-always-on;
551				regulator-boot-on;
552				regulator-min-microvolt = <675000>;
553				regulator-max-microvolt = <950000>;
554				regulator-ramp-delay = <12500>;
555				regulator-name = "vdd_npu_mem_s0";
556				regulator-state-mem {
557					regulator-off-in-suspend;
558				};
559
560			};
561
562			vcc_2v0_pldo_s3: dcdc-reg7 {
563				regulator-always-on;
564				regulator-boot-on;
565				regulator-min-microvolt = <2000000>;
566				regulator-max-microvolt = <2000000>;
567				regulator-ramp-delay = <12500>;
568				regulator-name = "vdd_2v0_pldo_s3";
569				regulator-state-mem {
570					regulator-on-in-suspend;
571					regulator-suspend-microvolt = <2000000>;
572				};
573			};
574
575			vdd_vdenc_mem_s0: dcdc-reg8 {
576				regulator-always-on;
577				regulator-boot-on;
578				regulator-min-microvolt = <675000>;
579				regulator-max-microvolt = <950000>;
580				regulator-ramp-delay = <12500>;
581				regulator-name = "vdd_vdenc_mem_s0";
582				regulator-state-mem {
583					regulator-off-in-suspend;
584				};
585			};
586
587			vdd2_ddr_s3: dcdc-reg9 {
588				regulator-always-on;
589				regulator-boot-on;
590				regulator-name = "vdd2_ddr_s3";
591				regulator-state-mem {
592					regulator-on-in-suspend;
593				};
594			};
595
596			vcc_1v1_nldo_s3: dcdc-reg10 {
597				regulator-always-on;
598				regulator-boot-on;
599				regulator-min-microvolt = <1100000>;
600				regulator-max-microvolt = <1100000>;
601				regulator-ramp-delay = <12500>;
602				regulator-name = "vcc_1v1_nldo_s3";
603				regulator-state-mem {
604					regulator-on-in-suspend;
605					regulator-suspend-microvolt = <1100000>;
606				};
607			};
608
609			avcc_1v8_s0: pldo-reg1 {
610				regulator-always-on;
611				regulator-boot-on;
612				regulator-min-microvolt = <1800000>;
613				regulator-max-microvolt = <1800000>;
614				regulator-ramp-delay = <12500>;
615				regulator-name = "avcc_1v8_s0";
616				regulator-state-mem {
617					regulator-off-in-suspend;
618				};
619			};
620
621			vdd1_1v8_ddr_s3: pldo-reg2 {
622				regulator-always-on;
623				regulator-boot-on;
624				regulator-min-microvolt = <1800000>;
625				regulator-max-microvolt = <1800000>;
626				regulator-ramp-delay = <12500>;
627				regulator-name = "vdd1_1v8_ddr_s3";
628				regulator-state-mem {
629					regulator-on-in-suspend;
630					regulator-suspend-microvolt = <1800000>;
631				};
632			};
633
634			avcc_1v8_codec_s0: pldo-reg3 {
635				regulator-always-on;
636				regulator-boot-on;
637				regulator-min-microvolt = <1800000>;
638				regulator-max-microvolt = <1800000>;
639				regulator-ramp-delay = <12500>;
640				regulator-name = "avcc_1v8_codec_s0";
641				regulator-state-mem {
642					regulator-off-in-suspend;
643				};
644			};
645
646			vcc_3v3_s3: pldo-reg4 {
647				regulator-always-on;
648				regulator-boot-on;
649				regulator-min-microvolt = <3300000>;
650				regulator-max-microvolt = <3300000>;
651				regulator-ramp-delay = <12500>;
652				regulator-name = "vcc_3v3_s3";
653				regulator-state-mem {
654					regulator-on-in-suspend;
655					regulator-suspend-microvolt = <3300000>;
656				};
657			};
658
659			vccio_sd_s0: pldo-reg5 {
660				regulator-always-on;
661				regulator-boot-on;
662				regulator-min-microvolt = <1800000>;
663				regulator-max-microvolt = <3300000>;
664				regulator-ramp-delay = <12500>;
665				regulator-name = "vccio_sd_s0";
666				regulator-state-mem {
667					regulator-off-in-suspend;
668				};
669			};
670
671			vccio_1v8_s3: pldo-reg6 {
672				regulator-always-on;
673				regulator-boot-on;
674				regulator-min-microvolt = <1800000>;
675				regulator-max-microvolt = <1800000>;
676				regulator-ramp-delay = <12500>;
677				regulator-name = "vccio_1v8_s3";
678				regulator-state-mem {
679					regulator-on-in-suspend;
680					regulator-suspend-microvolt = <1800000>;
681				};
682			};
683
684			vdd_0v75_s3: nldo-reg1 {
685				regulator-always-on;
686				regulator-boot-on;
687				regulator-min-microvolt = <750000>;
688				regulator-max-microvolt = <750000>;
689				regulator-ramp-delay = <12500>;
690				regulator-name = "vdd_0v75_s3";
691				regulator-state-mem {
692					regulator-on-in-suspend;
693					regulator-suspend-microvolt = <750000>;
694				};
695			};
696
697			vdd2l_0v9_ddr_s3: nldo-reg2 {
698				regulator-always-on;
699				regulator-boot-on;
700				regulator-min-microvolt = <900000>;
701				regulator-max-microvolt = <900000>;
702				regulator-name = "vdd2l_0v9_ddr_s3";
703				regulator-state-mem {
704					regulator-on-in-suspend;
705					regulator-suspend-microvolt = <900000>;
706				};
707			};
708
709			vdd_0v75_hdmi_edp_s0: nldo-reg3 {
710				regulator-always-on;
711				regulator-boot-on;
712				regulator-min-microvolt = <750000>;
713				regulator-max-microvolt = <750000>;
714				regulator-name = "vdd_0v75_hdmi_edp_s0";
715				regulator-state-mem {
716					regulator-off-in-suspend;
717				};
718			};
719
720			avdd_0v75_s0: nldo-reg4 {
721				regulator-always-on;
722				regulator-boot-on;
723				regulator-min-microvolt = <750000>;
724				regulator-max-microvolt = <750000>;
725				regulator-name = "avdd_0v75_s0";
726				regulator-state-mem {
727					regulator-off-in-suspend;
728				};
729			};
730
731			vdd_0v85_s0: nldo-reg5 {
732				regulator-always-on;
733				regulator-boot-on;
734				regulator-min-microvolt = <850000>;
735				regulator-max-microvolt = <850000>;
736				regulator-name = "vdd_0v85_s0";
737				regulator-state-mem {
738					regulator-off-in-suspend;
739				};
740			};
741		};
742	};
743
744	pmic@1 {
745		compatible = "rockchip,rk806";
746		reg = <0x01>;
747		#gpio-cells = <2>;
748		gpio-controller;
749		interrupt-parent = <&gpio0>;
750		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
751		pinctrl-0 = <&rk806_slave_dvs1_null>, <&rk806_slave_dvs2_null>,
752			    <&rk806_slave_dvs3_null>;
753		pinctrl-names = "default";
754		spi-max-frequency = <1000000>;
755
756		vcc1-supply = <&vcc5v0_sys>;
757		vcc2-supply = <&vcc5v0_sys>;
758		vcc3-supply = <&vcc5v0_sys>;
759		vcc4-supply = <&vcc5v0_sys>;
760		vcc5-supply = <&vcc5v0_sys>;
761		vcc6-supply = <&vcc5v0_sys>;
762		vcc7-supply = <&vcc5v0_sys>;
763		vcc8-supply = <&vcc5v0_sys>;
764		vcc9-supply = <&vcc5v0_sys>;
765		vcc10-supply = <&vcc5v0_sys>;
766		vcc11-supply = <&vcc_2v0_pldo_s3>;
767		vcc12-supply = <&vcc5v0_sys>;
768		vcc13-supply = <&vcc_1v1_nldo_s3>;
769		vcc14-supply = <&vcc_2v0_pldo_s3>;
770		vcca-supply = <&vcc5v0_sys>;
771
772		rk806_slave_dvs1_null: dvs1-null-pins {
773			pins = "gpio_pwrctrl1";
774			function = "pin_fun0";
775		};
776
777		rk806_slave_dvs2_null: dvs2-null-pins {
778			pins = "gpio_pwrctrl2";
779			function = "pin_fun0";
780		};
781
782		rk806_slave_dvs3_null: dvs3-null-pins {
783			pins = "gpio_pwrctrl3";
784			function = "pin_fun0";
785		};
786
787		regulators {
788			vdd_cpu_big1_s0: dcdc-reg1 {
789				regulator-always-on;
790				regulator-boot-on;
791				regulator-min-microvolt = <550000>;
792				regulator-max-microvolt = <1050000>;
793				regulator-ramp-delay = <12500>;
794				regulator-name = "vdd_cpu_big1_s0";
795				regulator-state-mem {
796					regulator-off-in-suspend;
797				};
798			};
799
800			vdd_cpu_big0_s0: dcdc-reg2 {
801				regulator-always-on;
802				regulator-boot-on;
803				regulator-min-microvolt = <550000>;
804				regulator-max-microvolt = <1050000>;
805				regulator-ramp-delay = <12500>;
806				regulator-name = "vdd_cpu_big0_s0";
807				regulator-state-mem {
808					regulator-off-in-suspend;
809				};
810			};
811
812			vdd_cpu_lit_s0: dcdc-reg3 {
813				regulator-always-on;
814				regulator-boot-on;
815				regulator-min-microvolt = <550000>;
816				regulator-max-microvolt = <950000>;
817				regulator-ramp-delay = <12500>;
818				regulator-name = "vdd_cpu_lit_s0";
819				regulator-state-mem {
820					regulator-off-in-suspend;
821				};
822			};
823
824			vcc_3v3_s0: dcdc-reg4 {
825				regulator-always-on;
826				regulator-boot-on;
827				regulator-min-microvolt = <3300000>;
828				regulator-max-microvolt = <3300000>;
829				regulator-ramp-delay = <12500>;
830				regulator-name = "vcc_3v3_s0";
831				regulator-state-mem {
832					regulator-off-in-suspend;
833				};
834			};
835
836			vdd_cpu_big1_mem_s0: dcdc-reg5 {
837				regulator-always-on;
838				regulator-boot-on;
839				regulator-min-microvolt = <675000>;
840				regulator-max-microvolt = <1050000>;
841				regulator-ramp-delay = <12500>;
842				regulator-name = "vdd_cpu_big1_mem_s0";
843				regulator-state-mem {
844					regulator-off-in-suspend;
845				};
846			};
847
848
849			vdd_cpu_big0_mem_s0: dcdc-reg6 {
850				regulator-always-on;
851				regulator-boot-on;
852				regulator-min-microvolt = <675000>;
853				regulator-max-microvolt = <1050000>;
854				regulator-ramp-delay = <12500>;
855				regulator-name = "vdd_cpu_big0_mem_s0";
856				regulator-state-mem {
857					regulator-off-in-suspend;
858				};
859			};
860
861			vcc_1v8_s0: dcdc-reg7 {
862				regulator-always-on;
863				regulator-boot-on;
864				regulator-min-microvolt = <1800000>;
865				regulator-max-microvolt = <1800000>;
866				regulator-ramp-delay = <12500>;
867				regulator-name = "vcc_1v8_s0";
868				regulator-state-mem {
869					regulator-off-in-suspend;
870				};
871			};
872
873			vdd_cpu_lit_mem_s0: dcdc-reg8 {
874				regulator-always-on;
875				regulator-boot-on;
876				regulator-min-microvolt = <675000>;
877				regulator-max-microvolt = <950000>;
878				regulator-ramp-delay = <12500>;
879				regulator-name = "vdd_cpu_lit_mem_s0";
880				regulator-state-mem {
881					regulator-off-in-suspend;
882				};
883			};
884
885			vddq_ddr_s0: dcdc-reg9 {
886				regulator-always-on;
887				regulator-boot-on;
888				regulator-name = "vddq_ddr_s0";
889				regulator-state-mem {
890					regulator-off-in-suspend;
891				};
892			};
893
894			vdd_ddr_s0: dcdc-reg10 {
895				regulator-always-on;
896				regulator-boot-on;
897				regulator-min-microvolt = <675000>;
898				regulator-max-microvolt = <900000>;
899				regulator-ramp-delay = <12500>;
900				regulator-name = "vdd_ddr_s0";
901				regulator-state-mem {
902					regulator-off-in-suspend;
903				};
904			};
905
906			vcc_1v8_cam_s0: pldo-reg1 {
907				regulator-always-on;
908				regulator-boot-on;
909				regulator-min-microvolt = <1800000>;
910				regulator-max-microvolt = <1800000>;
911				regulator-ramp-delay = <12500>;
912				regulator-name = "vcc_1v8_cam_s0";
913				regulator-state-mem {
914					regulator-off-in-suspend;
915				};
916			};
917
918			avdd1v8_ddr_pll_s0: pldo-reg2 {
919				regulator-always-on;
920				regulator-boot-on;
921				regulator-min-microvolt = <1800000>;
922				regulator-max-microvolt = <1800000>;
923				regulator-ramp-delay = <12500>;
924				regulator-name = "avdd1v8_ddr_pll_s0";
925				regulator-state-mem {
926					regulator-off-in-suspend;
927				};
928			};
929
930			vdd_1v8_pll_s0: pldo-reg3 {
931				regulator-always-on;
932				regulator-boot-on;
933				regulator-min-microvolt = <1800000>;
934				regulator-max-microvolt = <1800000>;
935				regulator-ramp-delay = <12500>;
936				regulator-name = "vdd_1v8_pll_s0";
937				regulator-state-mem {
938					regulator-off-in-suspend;
939				};
940			};
941
942			vcc_3v3_sd_s0: pldo-reg4 {
943				regulator-always-on;
944				regulator-boot-on;
945				regulator-min-microvolt = <3300000>;
946				regulator-max-microvolt = <3300000>;
947				regulator-ramp-delay = <12500>;
948				regulator-name = "vcc_3v3_sd_s0";
949				regulator-state-mem {
950					regulator-off-in-suspend;
951				};
952			};
953
954			vcc_2v8_cam_s0: pldo-reg5 {
955				regulator-always-on;
956				regulator-boot-on;
957				regulator-min-microvolt = <2800000>;
958				regulator-max-microvolt = <2800000>;
959				regulator-ramp-delay = <12500>;
960				regulator-name = "vcc_2v8_cam_s0";
961				regulator-state-mem {
962					regulator-off-in-suspend;
963				};
964			};
965
966			pldo6_s3: pldo-reg6 {
967				regulator-always-on;
968				regulator-boot-on;
969				regulator-min-microvolt = <1800000>;
970				regulator-max-microvolt = <1800000>;
971				regulator-name = "pldo6_s3";
972				regulator-state-mem {
973					regulator-on-in-suspend;
974					regulator-suspend-microvolt = <1800000>;
975				};
976			};
977
978			vdd_0v75_pll_s0: nldo-reg1 {
979				regulator-always-on;
980				regulator-boot-on;
981				regulator-min-microvolt = <750000>;
982				regulator-max-microvolt = <750000>;
983				regulator-ramp-delay = <12500>;
984				regulator-name = "vdd_0v75_pll_s0";
985				regulator-state-mem {
986					regulator-off-in-suspend;
987				};
988			};
989
990			vdd_ddr_pll_s0: nldo-reg2 {
991				regulator-always-on;
992				regulator-boot-on;
993				regulator-min-microvolt = <850000>;
994				regulator-max-microvolt = <850000>;
995				regulator-name = "vdd_ddr_pll_s0";
996				regulator-state-mem {
997					regulator-off-in-suspend;
998				};
999			};
1000
1001			avdd_0v85_s0: nldo-reg3 {
1002				regulator-always-on;
1003				regulator-boot-on;
1004				regulator-min-microvolt = <850000>;
1005				regulator-max-microvolt = <850000>;
1006				regulator-ramp-delay = <12500>;
1007				regulator-name = "avdd_0v85_s0";
1008				regulator-state-mem {
1009					regulator-off-in-suspend;
1010				};
1011			};
1012
1013			avdd_1v2_cam_s0: nldo-reg4 {
1014				regulator-always-on;
1015				regulator-boot-on;
1016				regulator-min-microvolt = <1200000>;
1017				regulator-max-microvolt = <1200000>;
1018				regulator-ramp-delay = <12500>;
1019				regulator-name = "avdd_1v2_cam_s0";
1020				regulator-state-mem {
1021					regulator-off-in-suspend;
1022				};
1023			};
1024
1025			avdd_1v2_s0: nldo-reg5 {
1026				regulator-always-on;
1027				regulator-boot-on;
1028				regulator-min-microvolt = <1200000>;
1029				regulator-max-microvolt = <1200000>;
1030				regulator-ramp-delay = <12500>;
1031				regulator-name = "avdd_1v2_s0";
1032				regulator-state-mem {
1033					regulator-off-in-suspend;
1034				};
1035			};
1036		};
1037	};
1038};
1039
1040&sata0 {
1041	status = "okay";
1042};
1043
1044&u2phy2 {
1045	status = "okay";
1046};
1047
1048&u2phy2_host {
1049	phy-supply = <&vcc5v0_host>;
1050	status = "okay";
1051};
1052
1053&u2phy3 {
1054	status = "okay";
1055};
1056
1057&u2phy3_host {
1058	phy-supply = <&vcc5v0_host>;
1059	status = "okay";
1060};
1061
1062&uart2 {
1063	pinctrl-0 = <&uart2m0_xfer>;
1064	status = "okay";
1065};
1066
1067&usb_host0_ehci {
1068	status = "okay";
1069};
1070
1071&usb_host0_ohci {
1072	status = "okay";
1073};
1074
1075&usb_host1_ehci {
1076	status = "okay";
1077};
1078
1079&usb_host1_ohci {
1080	status = "okay";
1081};
1082