hc
2024-11-01 830ce1f69238136c0197858242f16cf44e0d6cb9
gpio config
1 files modified
57 ■■■■■ changed files
kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi 57 ●●●●● patch | view | raw | blame | history
kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
....@@ -38,7 +38,7 @@
3838 io-channels = <&saradc 3>;
3939 io-channel-names = "adc-detect";
4040 keyup-threshold-microvolt = <1800000>;
41
- pinctrl-0 = <&spk_con>;
41
+ //pinctrl-0 = <&spk_con>;
4242 pinctrl-names = "default";
4343 //hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
4444 //spk-con-gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
....@@ -114,7 +114,7 @@
114114 regulator-max-microvolt = <1800000>;
115115 vin-supply = <&avcc_1v8_s0>;
116116 };
117
-
117
+#if 0
118118 sdio_pwrseq: sdio-pwrseq {
119119 compatible = "mmc-pwrseq-simple";
120120 clocks = <&hym8563>;
....@@ -132,15 +132,15 @@
132132 };
133133
134134 rk_headset: rk-headset {
135
- status = "okay";
135
+ status = "disabled";
136136 compatible = "rockchip_headset";
137
- headset_gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;//HP_DET_L_GPIO3_D5_d_3V3
138
- spk_ctl_gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;//SPK_CTL_GPIO4_B4_u_3V3
137
+ //headset_gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;//HP_DET_L_GPIO3_D5_d_3V3
138
+ //spk_ctl_gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;//SPK_CTL_GPIO4_B4_u_3V3
139139 pinctrl-names = "default";
140140 pinctrl-0 = <&hp_det>;
141141 io-channels = <&saradc 3>;
142142 };
143
-
143
+#endif
144144
145145 vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 {
146146 compatible = "regulator-fixed";
....@@ -182,10 +182,10 @@
182182 regulator-min-microvolt = <5000000>;
183183 regulator-max-microvolt = <5000000>;
184184 enable-active-high;
185
- gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
185
+ //gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
186186 vin-supply = <&vcc5v0_usb>;
187
- pinctrl-names = "default";
188
- pinctrl-0 = <&vcc5v0_host_en>;
187
+ //pinctrl-names = "default";
188
+ //pinctrl-0 = <&vcc5v0_host_en>;
189189 };
190190 /*
191191 vcc_mipicsi0: vcc-mipicsi0-regulator {
....@@ -229,10 +229,10 @@
229229 clocks = <&hym8563>;
230230 clock-names = "ext_clock";
231231 uart_rts_gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_LOW>; //UART9_RTSn_M0_BT
232
- pinctrl-names = "default", "rts_gpio";
233
- pinctrl-0 = <&uart9m0_rtsn>, <&bt_reset_gpio>;
234
- pinctrl-1 = <&uart9_gpios>;
235
- BT,reset_gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //BT_DISABLE_GPIO0_B2_u_1V8
232
+ //pinctrl-names = "default", "rts_gpio";
233
+ //pinctrl-0 = <&uart9m0_rtsn>, <&bt_reset_gpio>;
234
+ //pinctrl-1 = <&uart9_gpios>;
235
+ //BT,reset_gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //BT_DISABLE_GPIO0_B2_u_1V8
236236 //BT,wake_gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;//HOST_WAKE_BT_H
237237 //BT,wake_host_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;//BT_WAKE_HOST_H
238238 status = "disabled";
....@@ -656,8 +656,8 @@
656656 gt1x: gt1x@14 {
657657 compatible = "goodix,gt1x";
658658 reg = <0x14>;
659
- pinctrl-names = "default";
660
- pinctrl-0 = <&touch_gpio>;
659
+ //pinctrl-names = "default";
660
+ //pinctrl-0 = <&touch_gpio>;
661661 goodix,rst-gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
662662 goodix,irq-gpio = <&gpio3 RK_PC0 IRQ_TYPE_LEVEL_LOW>;
663663 power-supply = <&vcc3v3_lcd_n>;
....@@ -899,7 +899,7 @@
899899 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>;
900900 };
901901 };
902
-
902
+/*
903903 headphone {
904904 hp_det: hp-det {
905905 rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
....@@ -909,7 +909,7 @@
909909 rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
910910 };
911911 };
912
-
912
+*/
913913 hym8563 {
914914 hym8563_int: hym8563-int {
915915 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
....@@ -927,19 +927,19 @@
927927 rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
928928 };
929929 };
930
-
930
+/*
931931 sdio-pwrseq {
932932 wifi_enable_h: wifi-enable-h {
933933 rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
934934 };
935935 };
936
-/*
936
+
937937 sdmmc {
938938 sd_s0_pwr: sd-s0-pwr {
939939 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
940940 };
941941 };
942
-*/
942
+
943943 touch {
944944 touch_gpio: touch-gpio {
945945 rockchip,pins =
....@@ -964,7 +964,7 @@
964964 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
965965 };
966966 };
967
-/*
967
+
968968 wireless-wlan {
969969 wifi_host_wake_irq: wifi-host-wake-irq {
970970 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
....@@ -975,8 +975,17 @@
975975 ndj_io_init{
976976 ndj_io_gpio: ndj_io_gpio_col{
977977 rockchip,pins =
978
-
979
- <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; //SPI4_CS0_M2_1V8 35
978
+ <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO1_C6_d_1V8
979
+ <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO0_C6_u_3V3
980
+ <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO0_D3_u_3V3
981
+ <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_A6_d_3V3
982
+ <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_C6_u_3V3
983
+ <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_D5_d_3V3
984
+ <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B0_d_3V3
985
+ <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B4_d_3V3
986
+ <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B5_d_3V3
987
+ <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; //GPIO4_B6_d_3V3
988
+
980989 };
981990 };
982991 };
....@@ -1030,7 +1039,7 @@
10301039 cap-sd-highspeed;
10311040 cap-sdio-irq;
10321041 keep-power-in-suspend;
1033
- mmc-pwrseq = <&sdio_pwrseq>;
1042
+ //mmc-pwrseq = <&sdio_pwrseq>;
10341043 non-removable;
10351044 pinctrl-names = "default";
10361045 pinctrl-0 = <&sdiom0_pins>;