From 830ce1f69238136c0197858242f16cf44e0d6cb9 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 01 Nov 2024 03:09:37 +0000
Subject: [PATCH] gpio config

---
 kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi |   57 +++++++++++++++++++++++++++++++++------------------------
 1 files changed, 33 insertions(+), 24 deletions(-)

diff --git a/kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi b/kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
index fc812b5..0b2b4cc 100755
--- a/kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
@@ -38,7 +38,7 @@
 		io-channels = <&saradc 3>;
 		io-channel-names = "adc-detect";
 		keyup-threshold-microvolt = <1800000>;
-		pinctrl-0 = <&spk_con>;
+		//pinctrl-0 = <&spk_con>;
 		pinctrl-names = "default";
 		//hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
 		//spk-con-gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
@@ -114,7 +114,7 @@
 		regulator-max-microvolt = <1800000>;
 		vin-supply = <&avcc_1v8_s0>;
 	};
-
+#if 0
 	sdio_pwrseq: sdio-pwrseq {
 		compatible = "mmc-pwrseq-simple";
 		clocks = <&hym8563>;
@@ -132,15 +132,15 @@
 	};
 
 	rk_headset: rk-headset {
-		status = "okay";
+		status = "disabled";
 		compatible = "rockchip_headset";
-		headset_gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;//HP_DET_L_GPIO3_D5_d_3V3
-		spk_ctl_gpio  = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;//SPK_CTL_GPIO4_B4_u_3V3
+		//headset_gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;//HP_DET_L_GPIO3_D5_d_3V3
+		//spk_ctl_gpio  = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;//SPK_CTL_GPIO4_B4_u_3V3
 		pinctrl-names = "default";
 		pinctrl-0 = <&hp_det>;
 		io-channels = <&saradc 3>;
 	};
-
+#endif
 
 	vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 {
 		compatible = "regulator-fixed";
@@ -182,10 +182,10 @@
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
 		enable-active-high;
-		gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
+		//gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
 		vin-supply = <&vcc5v0_usb>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&vcc5v0_host_en>;
+		//pinctrl-names = "default";
+		//pinctrl-0 = <&vcc5v0_host_en>;
 	};
 /*
 	vcc_mipicsi0: vcc-mipicsi0-regulator {
@@ -229,10 +229,10 @@
 		clocks = <&hym8563>;
 		clock-names = "ext_clock";
 		uart_rts_gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_LOW>; //UART9_RTSn_M0_BT
-		pinctrl-names = "default", "rts_gpio";
-		pinctrl-0 = <&uart9m0_rtsn>, <&bt_reset_gpio>;
-		pinctrl-1 = <&uart9_gpios>;
-		BT,reset_gpio    = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //BT_DISABLE_GPIO0_B2_u_1V8
+		//pinctrl-names = "default", "rts_gpio";
+		//pinctrl-0 = <&uart9m0_rtsn>, <&bt_reset_gpio>;
+		//pinctrl-1 = <&uart9_gpios>;
+		//BT,reset_gpio    = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //BT_DISABLE_GPIO0_B2_u_1V8
 		//BT,wake_gpio     = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;//HOST_WAKE_BT_H
 		//BT,wake_host_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;//BT_WAKE_HOST_H
 		status = "disabled";
@@ -656,8 +656,8 @@
 	gt1x: gt1x@14 {
 		compatible = "goodix,gt1x";
 		reg = <0x14>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&touch_gpio>;
+		//pinctrl-names = "default";
+		//pinctrl-0 = <&touch_gpio>;
 		goodix,rst-gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
 		goodix,irq-gpio = <&gpio3 RK_PC0 IRQ_TYPE_LEVEL_LOW>;
 		power-supply = <&vcc3v3_lcd_n>;
@@ -899,7 +899,7 @@
 			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
-
+/*
 	headphone {
 		hp_det: hp-det {
 			rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -909,7 +909,7 @@
 			rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
 	};
-
+*/
 	hym8563 {
 		hym8563_int: hym8563-int {
 			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
@@ -927,19 +927,19 @@
 			rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
 		};
 	};
-
+/*
 	sdio-pwrseq {
 		wifi_enable_h: wifi-enable-h {
 			rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
-/*
+
 	sdmmc {
 		sd_s0_pwr: sd-s0-pwr {
 			rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
-*/
+
 	touch {
 		touch_gpio: touch-gpio {
 			rockchip,pins =
@@ -964,7 +964,7 @@
 			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
 	};
-/*
+
 	wireless-wlan {
 		wifi_host_wake_irq: wifi-host-wake-irq {
 			rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
@@ -975,8 +975,17 @@
 	ndj_io_init{
 		ndj_io_gpio: ndj_io_gpio_col{
 				rockchip,pins =
-				
-					<1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;  //SPI4_CS0_M2_1V8  35		 		
+					<1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO1_C6_d_1V8
+					<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO0_C6_u_3V3
+					<0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO0_D3_u_3V3
+					<3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_A6_d_3V3
+					<3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_C6_u_3V3
+					<3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_D5_d_3V3
+					<4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B0_d_3V3
+					<4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B4_d_3V3
+					<4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B5_d_3V3
+					<4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; //GPIO4_B6_d_3V3
+						 		
 		};
 	};
 };
@@ -1030,7 +1039,7 @@
 	cap-sd-highspeed;
 	cap-sdio-irq;
 	keep-power-in-suspend;
-	mmc-pwrseq = <&sdio_pwrseq>;
+	//mmc-pwrseq = <&sdio_pwrseq>;
 	non-removable;
 	pinctrl-names = "default";
 	pinctrl-0 = <&sdiom0_pins>;

--
Gitblit v1.6.2