1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/pinctrl/rockchip.h>
7 #include <dt-bindings/usb/pd.h>
8 #include "rk3588s.dtsi"
11 model = "Indiedroid Nova";
12 compatible = "indiedroid,nova", "rockchip,rk3588s";
22 stdout-path = "serial2:1500000n8";
25 sdio_pwrseq: sdio-pwrseq {
26 compatible = "mmc-pwrseq-simple";
27 clock-names = "ext_clock";
28 clocks = <&rtc_hym8563>;
29 pinctrl-0 = <&wifi_enable_h>;
30 pinctrl-names = "default";
31 post-power-on-delay-ms = <200>;
32 reset-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
36 compatible = "audio-graph-card";
37 label = "rockchip,es8388-codec";
38 widgets = "Microphone", "Mic Jack",
39 "Headphone", "Headphones";
40 routing = "LINPUT2", "Mic Jack",
41 "Headphones", "LOUT1",
42 "Headphones", "ROUT1";
43 dais = <&i2s0_8ch_p0>;
46 vbus5v0_typec: vbus5v0-typec-regulator {
47 compatible = "regulator-fixed";
49 gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
50 pinctrl-0 = <&typec5v_pwren>;
51 pinctrl-names = "default";
52 regulator-name = "vbus5v0_typec";
53 regulator-min-microvolt = <5000000>;
54 regulator-max-microvolt = <5000000>;
55 vin-supply = <&vcc5v0_usb>;
58 vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator {
59 compatible = "regulator-fixed";
62 regulator-max-microvolt = <1100000>;
63 regulator-min-microvolt = <1100000>;
64 regulator-name = "vcc_1v1_nldo_s3";
65 vin-supply = <&vcc5v0_sys>;
68 /* Regulator is enabled whenever vcc_1v8_s0 is above 1.6v */
69 vcc_3v3_s0: vcc-3v3-s0-regulator {
70 compatible = "regulator-fixed";
73 regulator-max-microvolt = <3300000>;
74 regulator-min-microvolt = <3300000>;
75 regulator-name = "vcc_3v3_s0";
76 vin-supply = <&vcc_3v3_s3>;
79 regulator-off-in-suspend;
83 vcc5v0_sys: vcc5v0-sys-regulator {
84 compatible = "regulator-fixed";
87 regulator-max-microvolt = <5000000>;
88 regulator-min-microvolt = <5000000>;
89 regulator-name = "vcc5v0_sys";
92 vcc5v0_usb: vcc5v0-usb-regulator {
93 compatible = "regulator-fixed";
96 regulator-max-microvolt = <5000000>;
97 regulator-min-microvolt = <5000000>;
98 regulator-name = "vcc5v0_usb";
99 vin-supply = <&vcc5v0_usbdcin>;
102 vcc5v0_usbdcin: vcc5v0-usbdcin-regulator {
103 compatible = "regulator-fixed";
106 regulator-max-microvolt = <5000000>;
107 regulator-min-microvolt = <5000000>;
108 regulator-name = "vcc5v0_usbdcin";
113 cpu-supply = <&vdd_cpu_lit_s0>;
117 cpu-supply = <&vdd_cpu_lit_s0>;
121 cpu-supply = <&vdd_cpu_lit_s0>;
125 cpu-supply = <&vdd_cpu_lit_s0>;
129 cpu-supply = <&vdd_cpu_big0_s0>;
133 cpu-supply = <&vdd_cpu_big0_s0>;
137 cpu-supply = <&vdd_cpu_big1_s0>;
141 cpu-supply = <&vdd_cpu_big1_s0>;
145 * Add labels for each GPIO pin exposed on the 40 pin header. Note that
146 * voltage of each GPIO pin could be either 3.3v or 1.8v (as noted by
150 gpio-line-names = /* GPIO0 A0-A7 */
160 "HEADER_12_1v8", "", "", "HEADER_24_1v8",
165 gpio-line-names = /* GPIO1 A0-A7 */
166 "HEADER_27_3v3", "HEADER_28_3v3", "", "",
167 "HEADER_29_1v8", "", "HEADER_7_1v8", "",
169 "", "HEADER_31_1v8", "HEADER_33_1v8", "",
170 "HEADER_11_1v8", "HEADER_13_1v8", "", "",
176 "", "", "HEADER_5_3v3", "HEADER_3_3v3";
180 gpio-line-names = /* GPIO3 A0-A7 */
184 "HEADER_16_1v8", "HEADER_18_1v8", "", "",
185 "", "", "", "HEADER_19_1v8",
187 "HEADER_21_1v8", "HEADER_23_1v8", "", "HEADER_26_1v8",
188 "HEADER_15_1v8", "HEADER_22_1v8", "", "",
195 gpio-line-names = /* GPIO4 A0-A7 */
196 "", "", "HEADER_37_3v3", "HEADER_32_3v3",
197 "HEADER_36_3v3", "", "HEADER_35_3v3", "HEADER_38_3v3",
199 "", "", "", "HEADER_40_3v3",
200 "HEADER_8_3v3", "HEADER_10_3v3", "", "",
210 pinctrl-0 = <&i2c0m2_xfer>;
211 pinctrl-names = "default";
214 vdd_cpu_big0_s0: regulator@42 {
215 compatible = "rockchip,rk8602";
219 regulator-max-microvolt = <1050000>;
220 regulator-min-microvolt = <550000>;
221 regulator-name = "vdd_cpu_big0_s0";
222 regulator-ramp-delay = <2300>;
223 fcs,suspend-voltage-selector = <1>;
224 vin-supply = <&vcc5v0_sys>;
226 regulator-state-mem {
227 regulator-off-in-suspend;
231 vdd_cpu_big1_s0: regulator@43 {
232 compatible = "rockchip,rk8603", "rockchip,rk8602";
236 regulator-max-microvolt = <1050000>;
237 regulator-min-microvolt = <550000>;
238 regulator-name = "vdd_cpu_big1_s0";
239 regulator-ramp-delay = <2300>;
240 fcs,suspend-voltage-selector = <1>;
241 vin-supply = <&vcc5v0_sys>;
243 regulator-state-mem {
244 regulator-off-in-suspend;
252 vdd_npu_s0: regulator@42 {
253 compatible = "rockchip,rk8602";
257 regulator-max-microvolt = <950000>;
258 regulator-min-microvolt = <550000>;
259 regulator-name = "vdd_npu_s0";
260 regulator-ramp-delay = <2300>;
261 fcs,suspend-voltage-selector = <1>;
262 vin-supply = <&vcc5v0_sys>;
264 regulator-state-mem {
265 regulator-off-in-suspend;
271 pinctrl-0 = <&i2c6m3_xfer>;
274 fusb302: typec-portc@22 {
275 compatible = "fcs,fusb302";
277 interrupt-parent = <&gpio0>;
278 interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>;
279 pinctrl-0 = <&usbc0_int>;
280 pinctrl-names = "default";
281 vbus-supply = <&vbus5v0_typec>;
284 compatible = "usb-c-connector";
288 try-power-role = "sink";
289 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
290 sink-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
291 op-sink-microwatt = <1000000>;
295 rtc_hym8563: rtc@51 {
296 compatible = "haoyu,hym8563";
299 clock-output-names = "hym8563";
300 interrupt-parent = <&gpio0>;
301 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
302 pinctrl-0 = <&hym8563_int>;
303 pinctrl-names = "default";
309 pinctrl-0 = <&i2c7m0_xfer>;
312 es8388: audio-codec@11 {
313 compatible = "everest,es8388";
315 assigned-clock-rates = <12288000>;
316 assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
317 AVDD-supply = <&vcc_3v3_s3>;
318 clock-names = "mclk";
319 clocks = <&cru I2S0_8CH_MCLKOUT>;
320 DVDD-supply = <&vcc_1v8_s3>;
321 HPVDD-supply = <&vcc_3v3_s3>;
322 PVDD-supply = <&vcc_1v8_s3>;
323 #sound-dai-cells = <0>;
326 es8388_p0_0: endpoint {
327 remote-endpoint = <&i2s0_8ch_p0_0>;
334 pinctrl-names = "default";
335 pinctrl-0 = <&i2s0_lrck
343 i2s0_8ch_p0_0: endpoint {
346 remote-endpoint = <&es8388_p0_0>;
355 <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
358 bt_wake_dev: bt-wake-dev {
360 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
363 bt_wake_host: bt-wake-host {
365 <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
371 hym8563_int: hym8563-int {
373 <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
378 wifi_enable_h: wifi-enable-h {
380 <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
385 usbc0_int: usbc0-int {
387 <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
390 typec5v_pwren: typec5v-pwren {
392 <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
397 /* HS400 modes seemed to cause io errors. */
404 max-frequency = <200000000>;
405 vmmc-supply = <&vcc_3v3_s0>;
406 vqmmc-supply = <&vcc_1v8_s3>;
415 keep-power-in-suspend;
416 max-frequency = <100000000>;
417 mmc-pwrseq = <&sdio_pwrseq>;
422 vmmc-supply = <&vcc_3v3_s3>;
423 vqmmc-supply = <&vcc_1v8_s3>;
432 max-frequency = <200000000>;
436 vmmc-supply = <&vcc_3v3_s3>;
437 vqmmc-supply = <&vccio_sd_s0>;
442 #address-cells = <1>;
443 assigned-clocks = <&cru CLK_SPI2>;
444 assigned-clock-rates = <200000000>;
446 pinctrl-0 = <&spi2m2_pins>, <&spi2m2_cs0>;
447 pinctrl-names = "default";
452 compatible = "rockchip,rk806";
456 interrupt-parent = <&gpio0>;
457 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
458 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
459 <&rk806_dvs2_null>, <&rk806_dvs3_null>;
460 pinctrl-names = "default";
461 spi-max-frequency = <1000000>;
463 vcc1-supply = <&vcc5v0_sys>;
464 vcc2-supply = <&vcc5v0_sys>;
465 vcc3-supply = <&vcc5v0_sys>;
466 vcc4-supply = <&vcc5v0_sys>;
467 vcc5-supply = <&vcc5v0_sys>;
468 vcc6-supply = <&vcc5v0_sys>;
469 vcc7-supply = <&vcc5v0_sys>;
470 vcc8-supply = <&vcc5v0_sys>;
471 vcc9-supply = <&vcc5v0_sys>;
472 vcc10-supply = <&vcc5v0_sys>;
473 vcc11-supply = <&vcc_2v0_pldo_s3>;
474 vcc12-supply = <&vcc5v0_sys>;
475 vcc13-supply = <&vcc_1v1_nldo_s3>;
476 vcc14-supply = <&vcc_1v1_nldo_s3>;
477 vcca-supply = <&vcc5v0_sys>;
479 rk806_dvs1_null: dvs1-null-pins {
480 pins = "gpio_pwrctrl2";
481 function = "pin_fun0";
484 rk806_dvs2_null: dvs2-null-pins {
485 pins = "gpio_pwrctrl2";
486 function = "pin_fun0";
489 rk806_dvs3_null: dvs3-null-pins {
490 pins = "gpio_pwrctrl3";
491 function = "pin_fun0";
495 vdd_gpu_s0: dcdc-reg1 {
497 regulator-enable-ramp-delay = <400>;
498 regulator-max-microvolt = <950000>;
499 regulator-min-microvolt = <550000>;
500 regulator-name = "vdd_gpu_s0";
501 regulator-ramp-delay = <12500>;
502 regulator-state-mem {
503 regulator-off-in-suspend;
507 vdd_cpu_lit_s0: dcdc-reg2 {
510 regulator-max-microvolt = <950000>;
511 regulator-min-microvolt = <550000>;
512 regulator-ramp-delay = <12500>;
513 regulator-name = "vdd_cpu_lit_s0";
514 regulator-state-mem {
515 regulator-off-in-suspend;
519 vdd_logic_s0: dcdc-reg3 {
522 regulator-max-microvolt = <750000>;
523 regulator-min-microvolt = <675000>;
524 regulator-name = "vdd_logic_s0";
525 regulator-ramp-delay = <12500>;
526 regulator-state-mem {
527 regulator-on-in-suspend;
528 regulator-suspend-microvolt = <750000>;
532 vdd_vdenc_s0: dcdc-reg4 {
535 regulator-max-microvolt = <950000>;
536 regulator-min-microvolt = <550000>;
537 regulator-name = "vdd_vdenc_s0";
538 regulator-ramp-delay = <12500>;
539 regulator-state-mem {
540 regulator-off-in-suspend;
544 vdd_ddr_s0: dcdc-reg5 {
547 regulator-min-microvolt = <750000>;
548 regulator-max-microvolt = <850000>;
549 regulator-ramp-delay = <12500>;
550 regulator-name = "vdd_ddr_s0";
551 regulator-state-mem {
552 regulator-off-in-suspend;
553 regulator-suspend-microvolt = <850000>;
557 vdd2_ddr_s3: dcdc-reg6 {
560 regulator-max-microvolt = <1100000>;
561 regulator-min-microvolt = <1100000>;
562 regulator-name = "vdd2_ddr_s3";
563 regulator-state-mem {
564 regulator-on-in-suspend;
568 vcc_2v0_pldo_s3: dcdc-reg7 {
571 regulator-max-microvolt = <2000000>;
572 regulator-min-microvolt = <2000000>;
573 regulator-name = "vdd_2v0_pldo_s3";
574 regulator-state-mem {
575 regulator-on-in-suspend;
576 regulator-suspend-microvolt = <2000000>;
580 vcc_3v3_s3: dcdc-reg8 {
583 regulator-max-microvolt = <3300000>;
584 regulator-min-microvolt = <3300000>;
585 regulator-name = "vcc_3v3_s3";
586 regulator-state-mem {
587 regulator-on-in-suspend;
588 regulator-suspend-microvolt = <3300000>;
592 vddq_ddr_s0: dcdc-reg9 {
595 regulator-max-microvolt = <600000>;
596 regulator-min-microvolt = <600000>;
597 regulator-name = "vddq_ddr_s0";
598 regulator-state-mem {
599 regulator-off-in-suspend;
603 vcc_1v8_s3: dcdc-reg10 {
606 regulator-max-microvolt = <1800000>;
607 regulator-min-microvolt = <1800000>;
608 regulator-name = "vcc_1v8_s3";
609 regulator-state-mem {
610 regulator-on-in-suspend;
611 regulator-suspend-microvolt = <1800000>;
615 vcc_1v8_s0: pldo-reg1 {
618 regulator-max-microvolt = <1800000>;
619 regulator-min-microvolt = <1800000>;
620 regulator-name = "vcc_1v8_s0";
621 regulator-state-mem {
622 regulator-off-in-suspend;
626 vcca_1v8_s0: pldo-reg2 {
629 regulator-max-microvolt = <1800000>;
630 regulator-min-microvolt = <1800000>;
631 regulator-name = "vcca_1v8_s0";
632 regulator-state-mem {
633 regulator-off-in-suspend;
634 regulator-suspend-microvolt = <1800000>;
638 vdda_1v2_s0: pldo-reg3 {
641 regulator-max-microvolt = <1200000>;
642 regulator-min-microvolt = <1200000>;
643 regulator-name = "vdda_1v2_s0";
644 regulator-state-mem {
645 regulator-off-in-suspend;
649 vcca_3v3_s0: pldo-reg4 {
652 regulator-max-microvolt = <3300000>;
653 regulator-min-microvolt = <3300000>;
654 regulator-name = "vcca_3v3_s0";
655 regulator-state-mem {
656 regulator-off-in-suspend;
660 vccio_sd_s0: pldo-reg5 {
663 regulator-max-microvolt = <3300000>;
664 regulator-min-microvolt = <1800000>;
665 regulator-name = "vccio_sd_s0";
666 regulator-state-mem {
667 regulator-off-in-suspend;
671 vcc_1v8_s3_pldo6: pldo-reg6 {
674 regulator-max-microvolt = <1800000>;
675 regulator-min-microvolt = <1800000>;
676 regulator-name = "vcc_1v8_s3_pldo6";
677 regulator-state-mem {
678 regulator-on-in-suspend;
679 regulator-suspend-microvolt = <1800000>;
683 vdd_0v75_s3: nldo-reg1 {
686 regulator-max-microvolt = <750000>;
687 regulator-min-microvolt = <750000>;
688 regulator-name = "vdd_0v75_s3";
689 regulator-state-mem {
690 regulator-on-in-suspend;
691 regulator-suspend-microvolt = <750000>;
695 vdda_ddr_pll_s0: nldo-reg2 {
698 regulator-max-microvolt = <850000>;
699 regulator-min-microvolt = <850000>;
700 regulator-name = "vdda_ddr_pll_s0";
701 regulator-state-mem {
702 regulator-off-in-suspend;
703 regulator-suspend-microvolt = <850000>;
707 avdd_0v75_s0: nldo-reg3 {
710 regulator-max-microvolt = <750000>;
711 regulator-min-microvolt = <750000>;
712 regulator-name = "avdd_0v75_s0";
713 regulator-state-mem {
714 regulator-off-in-suspend;
718 vdda_0v85_s0: nldo-reg4 {
721 regulator-min-microvolt = <850000>;
722 regulator-max-microvolt = <850000>;
723 regulator-name = "vdda_0v85_s0";
724 regulator-state-mem {
725 regulator-off-in-suspend;
729 /* Schematics show not in use */
741 pinctrl-0 = <&uart2m0_xfer>;
745 /* DMA seems to interfere with bluetooth device normal operation. */
747 pinctrl-0 = <&uart9m2_xfer>, <&uart9m2_ctsn>, <&uart9m2_rtsn>;
748 pinctrl-names = "default";
749 /delete-property/ dma-names;
750 /delete-property/ dmas;
755 compatible = "realtek,rtl8821cs-bt",
756 "realtek,rtl8723bs-bt";
757 device-wake-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
758 enable-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
759 host-wake-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
760 pinctrl-0 = <&bt_reset>, <&bt_wake_dev>, <&bt_wake_host>;
761 pinctrl-names = "default";