From 57113df3a0e2be01232281fad9a5f2c060567981 Mon Sep 17 00:00:00 2001
From: lin <lin@kickpi.com>
Date: Mon, 25 Aug 2025 12:27:45 +0000
Subject: [PATCH] add vs6621 support in android

---
 longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts |   98 ++++++++++++++++++++++++++-----------------------
 1 files changed, 52 insertions(+), 46 deletions(-)

diff --git a/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts b/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
index b3f8d69..e64033c 100755
--- a/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
+++ b/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
@@ -409,10 +409,10 @@
 					compatible = "x-powers,axp803-usb-power-supply";
 					status = "okay";
 
-					pmu_usbpc_vol = <5000>;
-					pmu_usbpc_cur = <5000>;
-					pmu_usbad_vol = <5000>;
-					pmu_usbad_cur = <5000>;
+					pmu_usbpc_vol = <4600>;
+					pmu_usbpc_cur = <2500>;
+					pmu_usbad_vol = <4600>;
+					pmu_usbad_cur = <2500>;
 
 					wakeup_usb_in;
 					wakeup_usb_out;
@@ -423,21 +423,21 @@
 					status = "okay";
 
 					pmu_chg_ic_temp = <0>;
-					pmu_battery_rdc= <93>;
-					pmu_battery_cap = <5000>;
+					pmu_battery_rdc= <50>;
+					pmu_battery_cap = <8000>;
 					pmu_runtime_chgcur = <1000>;
 					pmu_suspend_chgcur = <2000>;
 					pmu_shutdown_chgcur = <2000>;
-					pmu_init_chgvol = <4200>;
+					pmu_init_chgvol = <4280>;
 					pmu_battery_warning_level1 = <15>;
 					pmu_battery_warning_level2 = <0>;
 					pmu_chgled_func = <1>;
 					pmu_chgled_type = <0>;
 					ocv_coulumb_100 = <1>;
 					pmu_bat_para1 = <0>;
-					pmu_bat_para2 = <0>;
-					pmu_bat_para3 = <0>;
-					pmu_bat_para4 = <0>;
+					pmu_bat_para2 = <3>;
+					pmu_bat_para3 = <4>;
+					pmu_bat_para4 = <5>;
 					pmu_bat_para5 = <6>;
 					pmu_bat_para6 = <8>;
 					pmu_bat_para7 = <9>;
@@ -455,16 +455,16 @@
 					pmu_bat_para19 = <65>;
 					pmu_bat_para20 = <70>;
 					pmu_bat_para21 = <75>;
-					pmu_bat_para22 = <80>;
-					pmu_bat_para23 = <83>;
-					pmu_bat_para24 = <88>;
-					pmu_bat_para25 = <92>;
-					pmu_bat_para26 = <97>;
-					pmu_bat_para27 = <100>;
-					pmu_bat_para28 = <100>;
-					pmu_bat_para29 = <100>;
-					pmu_bat_para30 = <100>;
-					pmu_bat_para31 = <100>;
+					pmu_bat_para22 = <76>;
+					pmu_bat_para23 = <77>;
+					pmu_bat_para24 = <78>;
+					pmu_bat_para25 = <79>;
+					pmu_bat_para26 = <80>;
+					pmu_bat_para27 = <83>;
+					pmu_bat_para28 = <85>;
+					pmu_bat_para29 = <88>;
+					pmu_bat_para30 = <90>;
+					pmu_bat_para31 = <95>;
 					pmu_bat_para32 = <100>;
 
 					pmu_bat_temp_enable = <0>;
@@ -490,7 +490,7 @@
 					pmu_bat_temp_para16 = <66>;
 
 					wakeup_bat_out;
-					/* wakeup_bat_in; */
+					wakeup_bat_in;
 					/* wakeup_bat_charging; */
 					/* wakeup_bat_charge_over; */
 					/* wakeup_low_warning1; */
@@ -504,7 +504,7 @@
 				powerkey0: powerkey@0 {
 					status = "okay";
 					compatible = "x-powers,axp2101-pek";
-					pmu_powkey_off_time = <6000>;
+					pmu_powkey_off_time = <8000>;
 					pmu_powkey_off_func = <0>;
 					pmu_powkey_off_en = <1>;
 					pmu_powkey_long_time = <1500>;
@@ -941,7 +941,7 @@
                         /*sd-uhs-sdr25*/
                         sd-uhs-sdr50;
                         sd-uhs-ddr50;
-                        sd-uhs-sdr104;
+                        //sd-uhs-sdr104;
 			// kickpi
                         //sunxi-power-save-mode;
                         /*sunxi-dis-signal-vol-sw;*/
@@ -972,9 +972,9 @@
 			lineout_vol 	= <0x1a>;
 			headphonegain	= <0x00>;
 			/* Pa enabled about */
-			pa_level 	= <0x00>;
+			pa_level 	= <0x01>;
 			pa_msleep_time 	= <0x78>;
-			//gpio-spk = <&pio PB 7 1 1 1 1>;
+			gpio-spk = <&pio PB 7 1 1 1 1>;
 			/* regulator about */
 			avcc-supply = <&reg_aldo1>;
 			cpvin-supply = <&reg_eldo1>;
@@ -1315,6 +1315,10 @@
 		uart4: uart@05001000 {
 			status = "okay";
 		};
+
+        uart7: uart@07080000 {
+            status = "okay";
+        };
 	};
 	gpu: gpu@0x01800000 {
 			gpu_idle = <1>;/*ic version ctrl*/
@@ -1336,17 +1340,17 @@
 			pinctrl-names = "default";
 			status = "okay";
 
-			sysled {
-				label = "sysled";
-				gpios = <&r_pio PL 10 1 0 1 1>;
+			work-led {
+				label = "work-led";
+				gpios = <&r_pio PL 10 1 0 1 0>;
 				linux,default_trigger = "heartbeat";
 			};
 
-            spk_en {
-                label = "spk_en";
-                gpios = <&pio PB 7 1 0 1 0>;
-				linux,default_trigger = "default-on";
-            };
+            // spk_en {
+            //     label = "spk_en";
+            //     gpios = <&pio PB 7 1 0 1 0>;
+			// 	linux,default_trigger = "default-on";
+            // };
 
 			fan_en {
 				label = "fan_en";
@@ -1390,17 +1394,17 @@
 				linux,default_trigger = "default-on";
 			};
 
-			PL2 {
-				label = "PL2";
-				gpios = <&r_pio PL 2 1 0 1 0>;
-				linux,default_trigger = "default-on";
-			};
+			// PL2 {
+			// 	label = "PL2";
+			// 	gpios = <&r_pio PL 2 1 0 1 0>;
+			// 	linux,default_trigger = "default-on";
+			// };
 
-			PL3 {
-				label = "PL3";
-				gpios = <&r_pio PL 3 1 0 1 0>;
-				linux,default_trigger = "default-on";
-			};
+			// PL3 {
+			// 	label = "PL3";
+			// 	gpios = <&r_pio PL 3 1 0 1 0>;
+			// 	linux,default_trigger = "default-on";
+			// };
 
 			PL4 {
 				label = "PL4";
@@ -1444,9 +1448,11 @@
    	rx-delay = <7>;
 };
 
-
+//#include "lcd-lvds-7-1024-600.dtsi"
 //#include "lcd-lvds-21-1920-1080.dtsi"
-#include "lcd-lvds-7-1024-600.dtsi"
-//#include "lcd-mipi-10-800-1280.dtsi"
+//#include "lcd-mipi-10-800-1280-v1.dtsi"
+#include "lcd-mipi-10-800-1280-v2.dtsi"
 //#include "lcd-mipi-8-800-1280.dtsi"
 //#include "lcd-mipi-5-720-1280.dtsi"
+
+#include "a133-kickpi-axp707-bat-5000mA.dtsi"

--
Gitblit v1.6.2