From eb6b9ee90f50f13c5abb885ce483802d6262f2b5 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 19 Aug 2024 06:54:24 +0000
Subject: [PATCH] 设置 recovery dtb

---
 kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi |   55 +++++++++++++++++++++++++++++++++----------------------
 1 files changed, 33 insertions(+), 22 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 69b88b7..282038e 100755
--- a/kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
@@ -134,7 +134,7 @@
 	rk_headset: rk-headset {
 		status = "okay";
 		compatible = "rockchip_headset";
-		headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;//HP_DET_L_GPIO3_D5_d_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>;
@@ -273,6 +273,11 @@
 				gpio_function = <0>;
 			};//4G_PWREN_GPIO3_C7_u_3V3
 			
+			5g_power {
+				gpio_num =<&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
+				gpio_function = <0>;
+			};
+			
          	wake_wifi_bt {
 				gpio_num = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
 				gpio_function = <0>;
@@ -287,6 +292,8 @@
 				gpio_num = <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>;
 				gpio_function = <3>;
 			};	//GPIO2_C3_d_1V8_4G_RESET_N_IN
+			
+			
 		};
 		
 		
@@ -365,13 +372,13 @@
 };
 
 &backlight {
-	pwms = <&pwm10 0 25000 0>;
+	pwms = <&pwm3 0 25000 0>;
 	status = "okay";
 };
 
 &backlight1 {
 	pwms = <&pwm11 0 25000 0>;
-	status = "okay";
+	status = "disabled";
 };
 
 &combphy0_ps {
@@ -517,12 +524,12 @@
 
 /* Should work with at least 128MB cma reserved above. */
 &hdmirx_ctrler {
-	status = "disabled";
+	status = "okay";
 
 	#sound-dai-cells = <1>;
 	/* Effective level used to trigger HPD: 0-low, 1-high */
 	hpd-trigger-level = <1>;
-	hdmirx-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
+	hdmirx-det-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&hdmim1_rx &hdmirx_det>;
 };
@@ -840,7 +847,7 @@
 	phys = <&combphy2_psu PHY_TYPE_PCIE>;
 	reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;//PCIEX1_1_PERSTn_M1_L
 	vpcie3v3-supply = <&vcc3v3_pcie30>;
-	status = "okay";
+	status = "disabled";
 };//M.2 WIFI6
 
 &pcie2x1l0 {
@@ -890,13 +897,13 @@
 
 	hdmi {
 		hdmirx_det: hdmirx-det {
-			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
+			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
 
 	headphone {
 		hp_det: hp-det {
-			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
+			rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
 		
 		spk_con: spk-con {
@@ -975,23 +982,21 @@
 					<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
 					<2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,
 					<2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,
-					<4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,  //vcc_5v
-					<0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>,  //I2C4_SDA_M2_3V3
-					<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,  //I2C4_SCL_M2_3V3
-					<4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>,  //I2C5_SDA_M2_3V3
-					<4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,  //I2C5_SCL_M2_3V3
-					<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_MISO_M2_1V8
-					<1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_MISO_M2_1V8
-					<1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_CLK_M2_1V8
-					<1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_CS0_M2_1V8
-					<0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI4_MISO_M2_1V8
-					<0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;  //SPI4_MOSI_M2_1V8
+					<4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,  //vcc_5v				
+					<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_MISO_M2_1V8 41
+					<1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI4_MISO_M2_1V8 32
+					<1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_MOSI_M2_3V3 42
+					<1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI4_MOSI_M2_1V8 33
+					<1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_CLK_M2_1V8  43 
+					<1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI4_CLK_M2_1V8  34
+					<1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,  //SPI0_CS0_M2_1V8  44
+					<1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;  //SPI4_CS0_M2_1V8  35		 		
 		};
 	};
 };
 &pwm3 {
-	pinctrl-0 = <&pwm3m1_pins>;
 	status = "okay";
+	pinctrl-0 = <&pwm3m1_pins>;
 };
 
 &route_dsi0 {
@@ -1005,12 +1010,12 @@
 };
 
 &pwm10 {
-	status = "okay";
+	status = "disabled";
 	pinctrl-0 = <&pwm10m2_pins>;
 };
 
 &pwm11 {
-	status = "okay";
+	status = "disabled";
 	pinctrl-0 = <&pwm11m3_pins>;
 };
 
@@ -1024,6 +1029,10 @@
 
 &sata0 {
 	status = "disabled";
+};
+
+&sata2 {
+	status = "okay";
 };
 
 &sdio {
@@ -1153,6 +1162,8 @@
 
 &can0 {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&can0m0_pins>;
 };
 
 

--
Gitblit v1.6.2