Lines Matching +full:suspend +full:- +full:gpios
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/pinctrl/rockchip.h>
13 #include <dt-bindings/usb/pd.h>
17 model = "FriendlyElec NanoPC-T6";
18 compatible = "friendlyarm,nanopc-t6", "rockchip,rk3588";
25 adc-keys-0 {
26 compatible = "adc-keys";
27 io-channels = <&saradc 0>;
28 io-channel-names = "buttons";
29 keyup-threshold-microvolt = <1800000>;
30 poll-interval = <100>;
32 button-maskrom {
35 press-threshold-microvolt = <2000>;
40 stdout-path = "serial2:1500000n8";
43 ir-receiver {
44 compatible = "gpio-ir-receiver";
45 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_LOW>;
46 pinctrl-names = "default";
47 pinctrl-0 = <&ir_receiver_pin>;
51 compatible = "gpio-leds";
53 sys_led: led-0 {
54 gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
55 label = "system-led";
56 linux,default-trigger = "heartbeat";
57 pinctrl-names = "default";
58 pinctrl-0 = <&sys_led_pin>;
61 usr_led: led-1 {
62 gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
63 label = "user-led";
64 pinctrl-names = "default";
65 pinctrl-0 = <&usr_led_pin>;
70 compatible = "simple-audio-card";
71 pinctrl-names = "default";
72 pinctrl-0 = <&hp_det>;
74 simple-audio-card,name = "realtek,rt5616-codec";
75 simple-audio-card,format = "i2s";
76 simple-audio-card,mclk-fs = <256>;
78 simple-audio-card,hp-det-gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_LOW>;
80 simple-audio-card,widgets =
83 simple-audio-card,routing =
89 simple-audio-card,cpu {
90 sound-dai = <&i2s0_8ch>;
92 simple-audio-card,codec {
93 sound-dai = <&rt5616>;
97 vcc12v_dcin: vcc12v-dcin-regulator {
98 compatible = "regulator-fixed";
99 regulator-name = "vcc12v_dcin";
100 regulator-always-on;
101 regulator-boot-on;
102 regulator-min-microvolt = <12000000>;
103 regulator-max-microvolt = <12000000>;
107 vcc5v0_sys: vcc5v0-sys-regulator {
108 compatible = "regulator-fixed";
109 regulator-name = "vcc5v0_sys";
110 regulator-always-on;
111 regulator-boot-on;
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
114 vin-supply = <&vcc12v_dcin>;
118 vcc4v0_sys: vcc4v0-sys-regulator {
119 compatible = "regulator-fixed";
120 regulator-name = "vcc4v0_sys";
121 regulator-always-on;
122 regulator-boot-on;
123 regulator-min-microvolt = <4000000>;
124 regulator-max-microvolt = <4000000>;
125 vin-supply = <&vcc12v_dcin>;
128 vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator {
129 compatible = "regulator-fixed";
130 regulator-name = "vcc-1v1-nldo-s3";
131 regulator-always-on;
132 regulator-boot-on;
133 regulator-min-microvolt = <1100000>;
134 regulator-max-microvolt = <1100000>;
135 vin-supply = <&vcc4v0_sys>;
138 vcc_3v3_pcie20: vcc3v3-pcie20-regulator {
139 compatible = "regulator-fixed";
140 regulator-name = "vcc_3v3_pcie20";
141 regulator-always-on;
142 regulator-boot-on;
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
145 vin-supply = <&vcc_3v3_s3>;
148 vbus5v0_typec: vbus5v0-typec-regulator {
149 compatible = "regulator-fixed";
150 enable-active-high;
152 pinctrl-names = "default";
153 pinctrl-0 = <&typec5v_pwren>;
154 regulator-always-on;
155 regulator-boot-on;
156 regulator-name = "vbus5v0_typec";
157 regulator-min-microvolt = <5000000>;
158 regulator-max-microvolt = <5000000>;
159 vin-supply = <&vcc5v0_sys>;
162 vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator {
163 compatible = "regulator-fixed";
164 enable-active-high;
166 pinctrl-names = "default";
167 pinctrl-0 = <&pcie_m2_1_pwren>;
168 regulator-name = "vcc3v3_pcie2x1l0";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
171 vin-supply = <&vcc5v0_sys>;
174 vcc3v3_pcie30: vcc3v3-pcie30-regulator {
175 compatible = "regulator-fixed";
176 enable-active-high;
177 gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&pcie_m2_0_pwren>;
180 regulator-name = "vcc3v3_pcie30";
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
183 vin-supply = <&vcc5v0_sys>;
186 vcc3v3_sd_s0: vcc3v3-sd-s0-regulator {
187 compatible = "regulator-fixed";
189 regulator-boot-on;
190 regulator-max-microvolt = <3300000>;
191 regulator-min-microvolt = <3300000>;
192 regulator-name = "vcc3v3_sd_s0";
193 vin-supply = <&vcc_3v3_s3>;
210 cpu-supply = <&vdd_cpu_lit_s0>;
214 cpu-supply = <&vdd_cpu_lit_s0>;
218 cpu-supply = <&vdd_cpu_lit_s0>;
222 cpu-supply = <&vdd_cpu_lit_s0>;
226 cpu-supply = <&vdd_cpu_big0_s0>;
230 cpu-supply = <&vdd_cpu_big0_s0>;
234 cpu-supply = <&vdd_cpu_big1_s0>;
238 cpu-supply = <&vdd_cpu_big1_s0>;
242 gpio-line-names = /* GPIO0 A0-A7 */
245 /* GPIO0 B0-B7 */
248 /* GPIO0 C0-C7 */
251 /* GPIO0 D0-D7 */
257 gpio-line-names = /* GPIO1 A0-A7 */
260 /* GPIO1 B0-B7 */
263 /* GPIO1 C0-C7 */
266 /* GPIO1 D0-D7 */
272 gpio-line-names = /* GPIO2 A0-A7 */
275 /* GPIO2 B0-B7 */
278 /* GPIO2 C0-C7 */
281 /* GPIO2 D0-D7 */
287 gpio-line-names = /* GPIO3 A0-A7 */
290 /* GPIO3 B0-B7 */
293 /* GPIO3 C0-C7 */
296 /* GPIO3 D0-D7 */
302 gpio-line-names = /* GPIO4 A0-A7 */
305 /* GPIO4 B0-B7 */
308 /* GPIO4 C0-C7 */
311 /* GPIO4 D0-D7 */
317 mali-supply = <&vdd_gpu_s0>;
322 pinctrl-names = "default";
323 pinctrl-0 = <&i2c0m2_xfer>;
329 fcs,suspend-voltage-selector = <1>;
330 regulator-name = "vdd_cpu_big0_s0";
331 regulator-always-on;
332 regulator-boot-on;
333 regulator-min-microvolt = <550000>;
334 regulator-max-microvolt = <1050000>;
335 regulator-ramp-delay = <2300>;
336 vin-supply = <&vcc4v0_sys>;
338 regulator-state-mem {
339 regulator-off-in-suspend;
346 fcs,suspend-voltage-selector = <1>;
347 regulator-name = "vdd_cpu_big1_s0";
348 regulator-always-on;
349 regulator-boot-on;
350 regulator-min-microvolt = <550000>;
351 regulator-max-microvolt = <1050000>;
352 regulator-ramp-delay = <2300>;
353 vin-supply = <&vcc4v0_sys>;
355 regulator-state-mem {
356 regulator-off-in-suspend;
367 fcs,suspend-voltage-selector = <1>;
368 regulator-name = "vdd_npu_s0";
369 regulator-always-on;
370 regulator-boot-on;
371 regulator-min-microvolt = <550000>;
372 regulator-max-microvolt = <950000>;
373 regulator-ramp-delay = <2300>;
374 vin-supply = <&vcc4v0_sys>;
376 regulator-state-mem {
377 regulator-off-in-suspend;
383 clock-frequency = <200000>;
386 fusb302: typec-portc@22 {
389 interrupt-parent = <&gpio0>;
391 pinctrl-0 = <&usbc0_int>;
392 pinctrl-names = "default";
393 vbus-supply = <&vbus5v0_typec>;
396 compatible = "usb-c-connector";
397 data-role = "dual";
398 label = "USB-C";
399 power-role = "source";
400 source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
403 #address-cells = <1>;
404 #size-cells = <0>;
409 remote-endpoint = <&usb_host0_xhci_drd_sw>;
416 remote-endpoint = <&usbdp_phy0_typec_ss>;
423 remote-endpoint = <&usbdp_phy0_typec_sbu>;
433 #clock-cells = <0>;
434 clock-output-names = "hym8563";
435 pinctrl-names = "default";
436 pinctrl-0 = <&hym8563_int>;
437 interrupt-parent = <&gpio0>;
439 wakeup-source;
444 clock-frequency = <200000>;
451 clock-names = "mclk";
452 #sound-dai-cells = <0>;
453 assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
454 assigned-clock-rates = <12288000>;
458 remote-endpoint = <&i2s0_8ch_p0_0>;
463 /* connected with MIPI-CSI1 */
467 pinctrl-0 = <&i2c8m2_xfer>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&i2s0_lrck
481 dai-format = "i2s";
482 mclk-fs = <256>;
483 remote-endpoint = <&rt5616_p0_0>;
489 reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
490 vpcie3v3-supply = <&vcc_3v3_pcie20>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&pcie2_0_rst>;
497 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
498 vpcie3v3-supply = <&vcc3v3_pcie2x1l0>;
499 pinctrl-names = "default";
500 pinctrl-0 = <&pcie2_1_rst>;
505 reset-gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
506 vpcie3v3-supply = <&vcc_3v3_pcie20>;
507 pinctrl-names = "default";
508 pinctrl-0 = <&pcie2_2_rst>;
517 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
518 vpcie3v3-supply = <&vcc3v3_pcie30>;
523 gpio-leds {
524 sys_led_pin: sys-led-pin {
528 usr_led_pin: usr-led-pin {
534 hp_det: hp-det {
540 hym8563_int: hym8563-int {
545 ir-receiver {
546 ir_receiver_pin: ir-receiver-pin {
552 pcie2_0_rst: pcie2-0-rst {
556 pcie2_1_rst: pcie2-1-rst {
560 pcie2_2_rst: pcie2-2-rst {
564 pcie_m2_0_pwren: pcie-m20-pwren {
568 pcie_m2_1_pwren: pcie-m21-pwren {
574 typec5v_pwren: typec5v-pwren {
578 usbc0_int: usbc0-int {
585 pinctrl-0 = <&pwm1m1_pins>;
590 vref-supply = <&avcc_1v8_s0>;
595 bus-width = <8>;
596 no-sdio;
597 no-sd;
598 non-removable;
599 max-frequency = <200000000>;
600 mmc-hs400-1_8v;
601 mmc-hs400-enhanced-strobe;
606 bus-width = <4>;
607 cap-mmc-highspeed;
608 cap-sd-highspeed;
609 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
610 disable-wp;
611 no-mmc;
612 no-sdio;
613 sd-uhs-sdr104;
614 vmmc-supply = <&vcc3v3_sd_s0>;
615 vqmmc-supply = <&vccio_sd_s0>;
619 /* optional on non-LTS, populated on LTS version */
621 pinctrl-names = "default";
622 pinctrl-0 = <&fspim1_pins>;
626 compatible = "jedec,spi-nor";
628 spi-max-frequency = <104000000>;
629 spi-rx-bus-width = <4>;
630 spi-tx-bus-width = <1>;
636 assigned-clocks = <&cru CLK_SPI2>;
637 assigned-clock-rates = <200000000>;
638 pinctrl-names = "default";
639 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
640 num-cs = <1>;
644 spi-max-frequency = <1000000>;
647 interrupt-parent = <&gpio0>;
650 pinctrl-names = "default";
651 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
654 system-power-controller;
656 vcc1-supply = <&vcc4v0_sys>;
657 vcc2-supply = <&vcc4v0_sys>;
658 vcc3-supply = <&vcc4v0_sys>;
659 vcc4-supply = <&vcc4v0_sys>;
660 vcc5-supply = <&vcc4v0_sys>;
661 vcc6-supply = <&vcc4v0_sys>;
662 vcc7-supply = <&vcc4v0_sys>;
663 vcc8-supply = <&vcc4v0_sys>;
664 vcc9-supply = <&vcc4v0_sys>;
665 vcc10-supply = <&vcc4v0_sys>;
666 vcc11-supply = <&vcc_2v0_pldo_s3>;
667 vcc12-supply = <&vcc4v0_sys>;
668 vcc13-supply = <&vcc_1v1_nldo_s3>;
669 vcc14-supply = <&vcc_1v1_nldo_s3>;
670 vcca-supply = <&vcc4v0_sys>;
672 gpio-controller;
673 #gpio-cells = <2>;
675 rk806_dvs1_null: dvs1-null-pins {
680 rk806_dvs2_null: dvs2-null-pins {
685 rk806_dvs3_null: dvs3-null-pins {
691 vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 {
692 regulator-boot-on;
693 regulator-min-microvolt = <550000>;
694 regulator-max-microvolt = <950000>;
695 regulator-ramp-delay = <12500>;
696 regulator-name = "vdd_gpu_s0";
697 regulator-enable-ramp-delay = <400>;
699 regulator-state-mem {
700 regulator-off-in-suspend;
704 vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 {
705 regulator-always-on;
706 regulator-boot-on;
707 regulator-min-microvolt = <550000>;
708 regulator-max-microvolt = <950000>;
709 regulator-ramp-delay = <12500>;
710 regulator-name = "vdd_cpu_lit_s0";
712 regulator-state-mem {
713 regulator-off-in-suspend;
717 vdd_log_s0: dcdc-reg3 {
718 regulator-always-on;
719 regulator-boot-on;
720 regulator-min-microvolt = <675000>;
721 regulator-max-microvolt = <750000>;
722 regulator-ramp-delay = <12500>;
723 regulator-name = "vdd_log_s0";
725 regulator-state-mem {
726 regulator-off-in-suspend;
727 regulator-suspend-microvolt = <750000>;
731 vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 {
732 regulator-always-on;
733 regulator-boot-on;
734 regulator-min-microvolt = <550000>;
735 regulator-max-microvolt = <950000>;
736 regulator-ramp-delay = <12500>;
737 regulator-name = "vdd_vdenc_s0";
739 regulator-state-mem {
740 regulator-off-in-suspend;
744 vdd_ddr_s0: dcdc-reg5 {
745 regulator-always-on;
746 regulator-boot-on;
747 regulator-min-microvolt = <675000>;
748 regulator-max-microvolt = <900000>;
749 regulator-ramp-delay = <12500>;
750 regulator-name = "vdd_ddr_s0";
752 regulator-state-mem {
753 regulator-off-in-suspend;
754 regulator-suspend-microvolt = <850000>;
758 vdd2_ddr_s3: dcdc-reg6 {
759 regulator-always-on;
760 regulator-boot-on;
761 regulator-name = "vdd2_ddr_s3";
763 regulator-state-mem {
764 regulator-on-in-suspend;
768 vcc_2v0_pldo_s3: dcdc-reg7 {
769 regulator-always-on;
770 regulator-boot-on;
771 regulator-min-microvolt = <2000000>;
772 regulator-max-microvolt = <2000000>;
773 regulator-ramp-delay = <12500>;
774 regulator-name = "vdd_2v0_pldo_s3";
776 regulator-state-mem {
777 regulator-on-in-suspend;
778 regulator-suspend-microvolt = <2000000>;
782 vcc_3v3_s3: dcdc-reg8 {
783 regulator-always-on;
784 regulator-boot-on;
785 regulator-min-microvolt = <3300000>;
786 regulator-max-microvolt = <3300000>;
787 regulator-name = "vcc_3v3_s3";
789 regulator-state-mem {
790 regulator-on-in-suspend;
791 regulator-suspend-microvolt = <3300000>;
795 vddq_ddr_s0: dcdc-reg9 {
796 regulator-always-on;
797 regulator-boot-on;
798 regulator-name = "vddq_ddr_s0";
800 regulator-state-mem {
801 regulator-off-in-suspend;
805 vcc_1v8_s3: dcdc-reg10 {
806 regulator-always-on;
807 regulator-boot-on;
808 regulator-min-microvolt = <1800000>;
809 regulator-max-microvolt = <1800000>;
810 regulator-name = "vcc_1v8_s3";
812 regulator-state-mem {
813 regulator-on-in-suspend;
814 regulator-suspend-microvolt = <1800000>;
818 avcc_1v8_s0: pldo-reg1 {
819 regulator-always-on;
820 regulator-boot-on;
821 regulator-min-microvolt = <1800000>;
822 regulator-max-microvolt = <1800000>;
823 regulator-name = "avcc_1v8_s0";
825 regulator-state-mem {
826 regulator-off-in-suspend;
830 vcc_1v8_s0: pldo-reg2 {
831 regulator-always-on;
832 regulator-boot-on;
833 regulator-min-microvolt = <1800000>;
834 regulator-max-microvolt = <1800000>;
835 regulator-name = "vcc_1v8_s0";
837 regulator-state-mem {
838 regulator-off-in-suspend;
839 regulator-suspend-microvolt = <1800000>;
843 avdd_1v2_s0: pldo-reg3 {
844 regulator-always-on;
845 regulator-boot-on;
846 regulator-min-microvolt = <1200000>;
847 regulator-max-microvolt = <1200000>;
848 regulator-name = "avdd_1v2_s0";
850 regulator-state-mem {
851 regulator-off-in-suspend;
855 vcc_3v3_s0: pldo-reg4 {
856 regulator-always-on;
857 regulator-boot-on;
858 regulator-min-microvolt = <3300000>;
859 regulator-max-microvolt = <3300000>;
860 regulator-ramp-delay = <12500>;
861 regulator-name = "vcc_3v3_s0";
863 regulator-state-mem {
864 regulator-off-in-suspend;
868 vccio_sd_s0: pldo-reg5 {
869 regulator-always-on;
870 regulator-boot-on;
871 regulator-min-microvolt = <1800000>;
872 regulator-max-microvolt = <3300000>;
873 regulator-ramp-delay = <12500>;
874 regulator-name = "vccio_sd_s0";
876 regulator-state-mem {
877 regulator-off-in-suspend;
881 pldo6_s3: pldo-reg6 {
882 regulator-always-on;
883 regulator-boot-on;
884 regulator-min-microvolt = <1800000>;
885 regulator-max-microvolt = <1800000>;
886 regulator-name = "pldo6_s3";
888 regulator-state-mem {
889 regulator-on-in-suspend;
890 regulator-suspend-microvolt = <1800000>;
894 vdd_0v75_s3: nldo-reg1 {
895 regulator-always-on;
896 regulator-boot-on;
897 regulator-min-microvolt = <750000>;
898 regulator-max-microvolt = <750000>;
899 regulator-name = "vdd_0v75_s3";
901 regulator-state-mem {
902 regulator-on-in-suspend;
903 regulator-suspend-microvolt = <750000>;
907 vdd_ddr_pll_s0: nldo-reg2 {
908 regulator-always-on;
909 regulator-boot-on;
910 regulator-min-microvolt = <850000>;
911 regulator-max-microvolt = <850000>;
912 regulator-name = "vdd_ddr_pll_s0";
914 regulator-state-mem {
915 regulator-off-in-suspend;
916 regulator-suspend-microvolt = <850000>;
920 avdd_0v75_s0: nldo-reg3 {
921 regulator-always-on;
922 regulator-boot-on;
923 regulator-min-microvolt = <750000>;
924 regulator-max-microvolt = <750000>;
925 regulator-name = "avdd_0v75_s0";
927 regulator-state-mem {
928 regulator-off-in-suspend;
932 vdd_0v85_s0: nldo-reg4 {
933 regulator-always-on;
934 regulator-boot-on;
935 regulator-min-microvolt = <850000>;
936 regulator-max-microvolt = <850000>;
937 regulator-name = "vdd_0v85_s0";
939 regulator-state-mem {
940 regulator-off-in-suspend;
944 vdd_0v75_s0: nldo-reg5 {
945 regulator-always-on;
946 regulator-boot-on;
947 regulator-min-microvolt = <750000>;
948 regulator-max-microvolt = <750000>;
949 regulator-name = "vdd_0v75_s0";
951 regulator-state-mem {
952 regulator-off-in-suspend;
964 pinctrl-0 = <&uart2m0_xfer>;
993 mode-switch;
994 orientation-switch;
995 sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
996 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
1000 #address-cells = <1>;
1001 #size-cells = <0>;
1005 remote-endpoint = <&usbc0_ss>;
1010 remote-endpoint = <&usbc0_sbu>;
1026 usb-role-switch;
1030 remote-endpoint = <&usbc0_hs>;