Lines Matching +full:gpio +full:- +full:ir +full:- +full:receiver
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/soc/rockchip,vop2.h>
14 #include <dt-bindings/usb/pd.h>
18 model = "FriendlyElec NanoPC-T6";
19 compatible = "friendlyarm,nanopc-t6", "rockchip,rk3588";
26 adc-keys-0 {
27 compatible = "adc-keys";
28 io-channels = <&saradc 0>;
29 io-channel-names = "buttons";
30 keyup-threshold-microvolt = <1800000>;
31 poll-interval = <100>;
33 button-maskrom {
36 press-threshold-microvolt = <2000>;
41 stdout-path = "serial2:1500000n8";
44 hdmi0-con {
45 compatible = "hdmi-connector";
50 remote-endpoint = <&hdmi0_out_con>;
55 ir-receiver {
56 compatible = "gpio-ir-receiver";
58 pinctrl-names = "default";
59 pinctrl-0 = <&ir_receiver_pin>;
63 compatible = "gpio-leds";
65 sys_led: led-0 {
67 label = "system-led";
68 linux,default-trigger = "heartbeat";
69 pinctrl-names = "default";
70 pinctrl-0 = <&sys_led_pin>;
73 usr_led: led-1 {
75 label = "user-led";
76 pinctrl-names = "default";
77 pinctrl-0 = <&usr_led_pin>;
82 compatible = "simple-audio-card";
83 pinctrl-names = "default";
84 pinctrl-0 = <&hp_det>;
86 simple-audio-card,name = "realtek,rt5616-codec";
87 simple-audio-card,format = "i2s";
88 simple-audio-card,mclk-fs = <256>;
90 simple-audio-card,hp-det-gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_LOW>;
92 simple-audio-card,widgets =
95 simple-audio-card,routing =
101 simple-audio-card,cpu {
102 sound-dai = <&i2s0_8ch>;
104 simple-audio-card,codec {
105 sound-dai = <&rt5616>;
109 vcc12v_dcin: regulator-vcc12v-dcin {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc12v_dcin";
112 regulator-always-on;
113 regulator-boot-on;
114 regulator-min-microvolt = <12000000>;
115 regulator-max-microvolt = <12000000>;
119 vcc5v0_sys: regulator-vcc5v0-sys {
120 compatible = "regulator-fixed";
121 regulator-name = "vcc5v0_sys";
122 regulator-always-on;
123 regulator-boot-on;
124 regulator-min-microvolt = <5000000>;
125 regulator-max-microvolt = <5000000>;
126 vin-supply = <&vcc12v_dcin>;
130 vcc4v0_sys: regulator-vcc4v0-sys {
131 compatible = "regulator-fixed";
132 regulator-name = "vcc4v0_sys";
133 regulator-always-on;
134 regulator-boot-on;
135 regulator-min-microvolt = <4000000>;
136 regulator-max-microvolt = <4000000>;
137 vin-supply = <&vcc12v_dcin>;
140 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
141 compatible = "regulator-fixed";
142 regulator-name = "vcc-1v1-nldo-s3";
143 regulator-always-on;
144 regulator-boot-on;
145 regulator-min-microvolt = <1100000>;
146 regulator-max-microvolt = <1100000>;
147 vin-supply = <&vcc4v0_sys>;
150 vcc_3v3_pcie20: regulator-vcc3v3-pcie20 {
151 compatible = "regulator-fixed";
152 regulator-name = "vcc_3v3_pcie20";
153 regulator-always-on;
154 regulator-boot-on;
155 regulator-min-microvolt = <3300000>;
156 regulator-max-microvolt = <3300000>;
157 vin-supply = <&vcc_3v3_s3>;
160 vbus5v0_typec: regulator-vbus5v0-typec {
161 compatible = "regulator-fixed";
162 enable-active-high;
163 gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&typec5v_pwren>;
166 regulator-always-on;
167 regulator-boot-on;
168 regulator-name = "vbus5v0_typec";
169 regulator-min-microvolt = <5000000>;
170 regulator-max-microvolt = <5000000>;
171 vin-supply = <&vcc5v0_sys>;
174 vbus5v0_usb: regulator-vbus5v0-usb {
175 compatible = "regulator-fixed";
176 enable-active-high;
177 gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&usb5v_pwren>;
180 regulator-always-on;
181 regulator-boot-on;
182 regulator-name = "vbus5v0_usb";
183 regulator-min-microvolt = <5000000>;
184 regulator-max-microvolt = <5000000>;
185 vin-supply = <&vcc5v0_sys>;
188 vcc3v3_pcie2x1l0: regulator-vcc3v3-pcie2x1l0 {
189 compatible = "regulator-fixed";
190 enable-active-high;
191 gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&pcie_m2_1_pwren>;
194 regulator-name = "vcc3v3_pcie2x1l0";
195 regulator-min-microvolt = <3300000>;
196 regulator-max-microvolt = <3300000>;
197 vin-supply = <&vcc5v0_sys>;
200 vcc3v3_pcie30: regulator-vcc3v3-pcie30 {
201 compatible = "regulator-fixed";
202 enable-active-high;
204 pinctrl-names = "default";
205 pinctrl-0 = <&pcie_m2_0_pwren>;
206 regulator-name = "vcc3v3_pcie30";
207 regulator-min-microvolt = <3300000>;
208 regulator-max-microvolt = <3300000>;
209 vin-supply = <&vcc5v0_sys>;
212 vcc3v3_sd_s0: regulator-vcc3v3-sd-s0 {
213 compatible = "regulator-fixed";
214 gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_LOW>;
215 regulator-boot-on;
216 regulator-max-microvolt = <3300000>;
217 regulator-min-microvolt = <3300000>;
218 regulator-name = "vcc3v3_sd_s0";
219 vin-supply = <&vcc_3v3_s3>;
236 cpu-supply = <&vdd_cpu_lit_s0>;
240 cpu-supply = <&vdd_cpu_lit_s0>;
244 cpu-supply = <&vdd_cpu_lit_s0>;
248 cpu-supply = <&vdd_cpu_lit_s0>;
252 cpu-supply = <&vdd_cpu_big0_s0>;
256 cpu-supply = <&vdd_cpu_big0_s0>;
260 cpu-supply = <&vdd_cpu_big1_s0>;
264 cpu-supply = <&vdd_cpu_big1_s0>;
268 gpio-line-names = /* GPIO0 A0-A7 */
271 /* GPIO0 B0-B7 */
274 /* GPIO0 C0-C7 */
277 /* GPIO0 D0-D7 */
279 "IR receiver [PWM3_IR_M0]", "", "", "";
283 gpio-line-names = /* GPIO1 A0-A7 */
286 /* GPIO1 B0-B7 */
289 /* GPIO1 C0-C7 */
292 /* GPIO1 D0-D7 */
298 gpio-line-names = /* GPIO2 A0-A7 */
301 /* GPIO2 B0-B7 */
304 /* GPIO2 C0-C7 */
307 /* GPIO2 D0-D7 */
313 gpio-line-names = /* GPIO3 A0-A7 */
316 /* GPIO3 B0-B7 */
319 /* GPIO3 C0-C7 */
322 /* GPIO3 D0-D7 */
328 gpio-line-names = /* GPIO4 A0-A7 */
331 /* GPIO4 B0-B7 */
334 /* GPIO4 C0-C7 */
337 /* GPIO4 D0-D7 */
343 mali-supply = <&vdd_gpu_s0>;
353 remote-endpoint = <&vp0_out_hdmi0>;
359 remote-endpoint = <&hdmi0_con_in>;
368 pinctrl-names = "default";
369 pinctrl-0 = <&i2c0m2_xfer>;
375 fcs,suspend-voltage-selector = <1>;
376 regulator-name = "vdd_cpu_big0_s0";
377 regulator-always-on;
378 regulator-boot-on;
379 regulator-min-microvolt = <550000>;
380 regulator-max-microvolt = <1050000>;
381 regulator-ramp-delay = <2300>;
382 vin-supply = <&vcc4v0_sys>;
384 regulator-state-mem {
385 regulator-off-in-suspend;
392 fcs,suspend-voltage-selector = <1>;
393 regulator-name = "vdd_cpu_big1_s0";
394 regulator-always-on;
395 regulator-boot-on;
396 regulator-min-microvolt = <550000>;
397 regulator-max-microvolt = <1050000>;
398 regulator-ramp-delay = <2300>;
399 vin-supply = <&vcc4v0_sys>;
401 regulator-state-mem {
402 regulator-off-in-suspend;
413 fcs,suspend-voltage-selector = <1>;
414 regulator-name = "vdd_npu_s0";
415 regulator-always-on;
416 regulator-boot-on;
417 regulator-min-microvolt = <550000>;
418 regulator-max-microvolt = <950000>;
419 regulator-ramp-delay = <2300>;
420 vin-supply = <&vcc4v0_sys>;
422 regulator-state-mem {
423 regulator-off-in-suspend;
429 clock-frequency = <200000>;
432 fusb302: typec-portc@22 {
435 interrupt-parent = <&gpio0>;
437 pinctrl-0 = <&usbc0_int>;
438 pinctrl-names = "default";
439 vbus-supply = <&vbus5v0_typec>;
442 compatible = "usb-c-connector";
443 data-role = "dual";
444 label = "USB-C";
445 power-role = "source";
446 source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
449 #address-cells = <1>;
450 #size-cells = <0>;
455 remote-endpoint = <&usb_host0_xhci_drd_sw>;
462 remote-endpoint = <&usbdp_phy0_typec_ss>;
469 remote-endpoint = <&usbdp_phy0_typec_sbu>;
479 #clock-cells = <0>;
480 clock-output-names = "hym8563";
481 pinctrl-names = "default";
482 pinctrl-0 = <&hym8563_int>;
483 interrupt-parent = <&gpio0>;
485 wakeup-source;
490 clock-frequency = <200000>;
497 clock-names = "mclk";
498 #sound-dai-cells = <0>;
499 assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
500 assigned-clock-rates = <12288000>;
504 remote-endpoint = <&i2s0_8ch_p0_0>;
509 /* connected with MIPI-CSI1 */
513 pinctrl-0 = <&i2c8m2_xfer>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&i2s0_lrck
527 dai-format = "i2s";
528 mclk-fs = <256>;
529 remote-endpoint = <&rt5616_p0_0>;
535 reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
536 vpcie3v3-supply = <&vcc_3v3_pcie20>;
537 pinctrl-names = "default";
538 pinctrl-0 = <&pcie2_0_rst>;
543 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
544 vpcie3v3-supply = <&vcc3v3_pcie2x1l0>;
545 pinctrl-names = "default";
546 pinctrl-0 = <&pcie2_1_rst>;
551 reset-gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
552 vpcie3v3-supply = <&vcc_3v3_pcie20>;
553 pinctrl-names = "default";
554 pinctrl-0 = <&pcie2_2_rst>;
563 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
564 vpcie3v3-supply = <&vcc3v3_pcie30>;
569 gpio-leds {
570 sys_led_pin: sys-led-pin {
574 usr_led_pin: usr-led-pin {
580 hp_det: hp-det {
586 hym8563_int: hym8563-int {
591 ir-receiver {
592 ir_receiver_pin: ir-receiver-pin {
598 pcie2_0_rst: pcie2-0-rst {
602 pcie2_1_rst: pcie2-1-rst {
606 pcie2_2_rst: pcie2-2-rst {
610 pcie_m2_0_pwren: pcie-m20-pwren {
614 pcie_m2_1_pwren: pcie-m21-pwren {
620 typec5v_pwren: typec5v-pwren {
628 usbc0_int: usbc0-int {
635 pinctrl-0 = <&pwm1m1_pins>;
640 vref-supply = <&avcc_1v8_s0>;
645 bus-width = <8>;
646 no-sdio;
647 no-sd;
648 non-removable;
649 max-frequency = <200000000>;
650 mmc-hs400-1_8v;
651 mmc-hs400-enhanced-strobe;
656 bus-width = <4>;
657 cap-mmc-highspeed;
658 cap-sd-highspeed;
659 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
660 disable-wp;
661 no-mmc;
662 no-sdio;
663 sd-uhs-sdr104;
664 vmmc-supply = <&vcc3v3_sd_s0>;
665 vqmmc-supply = <&vccio_sd_s0>;
669 /* optional on non-LTS, populated on LTS version */
671 pinctrl-names = "default";
672 pinctrl-0 = <&fspim1_pins>;
676 compatible = "jedec,spi-nor";
678 spi-max-frequency = <104000000>;
679 spi-rx-bus-width = <4>;
680 spi-tx-bus-width = <1>;
686 assigned-clocks = <&cru CLK_SPI2>;
687 assigned-clock-rates = <200000000>;
688 pinctrl-names = "default";
689 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
690 num-cs = <1>;
694 spi-max-frequency = <1000000>;
697 interrupt-parent = <&gpio0>;
700 pinctrl-names = "default";
701 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
704 system-power-controller;
706 vcc1-supply = <&vcc4v0_sys>;
707 vcc2-supply = <&vcc4v0_sys>;
708 vcc3-supply = <&vcc4v0_sys>;
709 vcc4-supply = <&vcc4v0_sys>;
710 vcc5-supply = <&vcc4v0_sys>;
711 vcc6-supply = <&vcc4v0_sys>;
712 vcc7-supply = <&vcc4v0_sys>;
713 vcc8-supply = <&vcc4v0_sys>;
714 vcc9-supply = <&vcc4v0_sys>;
715 vcc10-supply = <&vcc4v0_sys>;
716 vcc11-supply = <&vcc_2v0_pldo_s3>;
717 vcc12-supply = <&vcc4v0_sys>;
718 vcc13-supply = <&vcc_1v1_nldo_s3>;
719 vcc14-supply = <&vcc_1v1_nldo_s3>;
720 vcca-supply = <&vcc4v0_sys>;
722 gpio-controller;
723 #gpio-cells = <2>;
725 rk806_dvs1_null: dvs1-null-pins {
730 rk806_dvs2_null: dvs2-null-pins {
735 rk806_dvs3_null: dvs3-null-pins {
741 vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 {
742 regulator-boot-on;
743 regulator-min-microvolt = <550000>;
744 regulator-max-microvolt = <950000>;
745 regulator-ramp-delay = <12500>;
746 regulator-name = "vdd_gpu_s0";
747 regulator-enable-ramp-delay = <400>;
749 regulator-state-mem {
750 regulator-off-in-suspend;
754 vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 {
755 regulator-always-on;
756 regulator-boot-on;
757 regulator-min-microvolt = <550000>;
758 regulator-max-microvolt = <950000>;
759 regulator-ramp-delay = <12500>;
760 regulator-name = "vdd_cpu_lit_s0";
762 regulator-state-mem {
763 regulator-off-in-suspend;
767 vdd_log_s0: dcdc-reg3 {
768 regulator-always-on;
769 regulator-boot-on;
770 regulator-min-microvolt = <675000>;
771 regulator-max-microvolt = <750000>;
772 regulator-ramp-delay = <12500>;
773 regulator-name = "vdd_log_s0";
775 regulator-state-mem {
776 regulator-off-in-suspend;
777 regulator-suspend-microvolt = <750000>;
781 vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 {
782 regulator-always-on;
783 regulator-boot-on;
784 regulator-min-microvolt = <550000>;
785 regulator-max-microvolt = <950000>;
786 regulator-ramp-delay = <12500>;
787 regulator-name = "vdd_vdenc_s0";
789 regulator-state-mem {
790 regulator-off-in-suspend;
794 vdd_ddr_s0: dcdc-reg5 {
795 regulator-always-on;
796 regulator-boot-on;
797 regulator-min-microvolt = <675000>;
798 regulator-max-microvolt = <900000>;
799 regulator-ramp-delay = <12500>;
800 regulator-name = "vdd_ddr_s0";
802 regulator-state-mem {
803 regulator-off-in-suspend;
804 regulator-suspend-microvolt = <850000>;
808 vdd2_ddr_s3: dcdc-reg6 {
809 regulator-always-on;
810 regulator-boot-on;
811 regulator-name = "vdd2_ddr_s3";
813 regulator-state-mem {
814 regulator-on-in-suspend;
818 vcc_2v0_pldo_s3: dcdc-reg7 {
819 regulator-always-on;
820 regulator-boot-on;
821 regulator-min-microvolt = <2000000>;
822 regulator-max-microvolt = <2000000>;
823 regulator-ramp-delay = <12500>;
824 regulator-name = "vdd_2v0_pldo_s3";
826 regulator-state-mem {
827 regulator-on-in-suspend;
828 regulator-suspend-microvolt = <2000000>;
832 vcc_3v3_s3: dcdc-reg8 {
833 regulator-always-on;
834 regulator-boot-on;
835 regulator-min-microvolt = <3300000>;
836 regulator-max-microvolt = <3300000>;
837 regulator-name = "vcc_3v3_s3";
839 regulator-state-mem {
840 regulator-on-in-suspend;
841 regulator-suspend-microvolt = <3300000>;
845 vddq_ddr_s0: dcdc-reg9 {
846 regulator-always-on;
847 regulator-boot-on;
848 regulator-name = "vddq_ddr_s0";
850 regulator-state-mem {
851 regulator-off-in-suspend;
855 vcc_1v8_s3: dcdc-reg10 {
856 regulator-always-on;
857 regulator-boot-on;
858 regulator-min-microvolt = <1800000>;
859 regulator-max-microvolt = <1800000>;
860 regulator-name = "vcc_1v8_s3";
862 regulator-state-mem {
863 regulator-on-in-suspend;
864 regulator-suspend-microvolt = <1800000>;
868 avcc_1v8_s0: pldo-reg1 {
869 regulator-always-on;
870 regulator-boot-on;
871 regulator-min-microvolt = <1800000>;
872 regulator-max-microvolt = <1800000>;
873 regulator-name = "avcc_1v8_s0";
875 regulator-state-mem {
876 regulator-off-in-suspend;
880 vcc_1v8_s0: pldo-reg2 {
881 regulator-always-on;
882 regulator-boot-on;
883 regulator-min-microvolt = <1800000>;
884 regulator-max-microvolt = <1800000>;
885 regulator-name = "vcc_1v8_s0";
887 regulator-state-mem {
888 regulator-off-in-suspend;
889 regulator-suspend-microvolt = <1800000>;
893 avdd_1v2_s0: pldo-reg3 {
894 regulator-always-on;
895 regulator-boot-on;
896 regulator-min-microvolt = <1200000>;
897 regulator-max-microvolt = <1200000>;
898 regulator-name = "avdd_1v2_s0";
900 regulator-state-mem {
901 regulator-off-in-suspend;
905 vcc_3v3_s0: pldo-reg4 {
906 regulator-always-on;
907 regulator-boot-on;
908 regulator-min-microvolt = <3300000>;
909 regulator-max-microvolt = <3300000>;
910 regulator-ramp-delay = <12500>;
911 regulator-name = "vcc_3v3_s0";
913 regulator-state-mem {
914 regulator-off-in-suspend;
918 vccio_sd_s0: pldo-reg5 {
919 regulator-always-on;
920 regulator-boot-on;
921 regulator-min-microvolt = <1800000>;
922 regulator-max-microvolt = <3300000>;
923 regulator-ramp-delay = <12500>;
924 regulator-name = "vccio_sd_s0";
926 regulator-state-mem {
927 regulator-off-in-suspend;
931 pldo6_s3: pldo-reg6 {
932 regulator-always-on;
933 regulator-boot-on;
934 regulator-min-microvolt = <1800000>;
935 regulator-max-microvolt = <1800000>;
936 regulator-name = "pldo6_s3";
938 regulator-state-mem {
939 regulator-on-in-suspend;
940 regulator-suspend-microvolt = <1800000>;
944 vdd_0v75_s3: nldo-reg1 {
945 regulator-always-on;
946 regulator-boot-on;
947 regulator-min-microvolt = <750000>;
948 regulator-max-microvolt = <750000>;
949 regulator-name = "vdd_0v75_s3";
951 regulator-state-mem {
952 regulator-on-in-suspend;
953 regulator-suspend-microvolt = <750000>;
957 vdd_ddr_pll_s0: nldo-reg2 {
958 regulator-always-on;
959 regulator-boot-on;
960 regulator-min-microvolt = <850000>;
961 regulator-max-microvolt = <850000>;
962 regulator-name = "vdd_ddr_pll_s0";
964 regulator-state-mem {
965 regulator-off-in-suspend;
966 regulator-suspend-microvolt = <850000>;
970 avdd_0v75_s0: nldo-reg3 {
971 regulator-always-on;
972 regulator-boot-on;
973 regulator-min-microvolt = <750000>;
974 regulator-max-microvolt = <750000>;
975 regulator-name = "avdd_0v75_s0";
977 regulator-state-mem {
978 regulator-off-in-suspend;
982 vdd_0v85_s0: nldo-reg4 {
983 regulator-always-on;
984 regulator-boot-on;
985 regulator-min-microvolt = <850000>;
986 regulator-max-microvolt = <850000>;
987 regulator-name = "vdd_0v85_s0";
989 regulator-state-mem {
990 regulator-off-in-suspend;
994 vdd_0v75_s0: nldo-reg5 {
995 regulator-always-on;
996 regulator-boot-on;
997 regulator-min-microvolt = <750000>;
998 regulator-max-microvolt = <750000>;
999 regulator-name = "vdd_0v75_s0";
1001 regulator-state-mem {
1002 regulator-off-in-suspend;
1014 pinctrl-0 = <&uart2m0_xfer>;
1051 mode-switch;
1052 orientation-switch;
1053 sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
1054 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
1058 #address-cells = <1>;
1059 #size-cells = <0>;
1063 remote-endpoint = <&usbc0_ss>;
1068 remote-endpoint = <&usbc0_sbu>;
1074 phy-supply = <&vbus5v0_usb>;
1089 usb-role-switch;
1093 remote-endpoint = <&usbc0_hs>;
1122 remote-endpoint = <&hdmi0_in_vp0>;