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