From 0269911b91ed7e03c24005924cc6423abf245fb8 Mon Sep 17 00:00:00 2001
From: huangcm <1263938474@qq.com>
Date: Sat, 30 Aug 2025 03:04:39 +0000
Subject: [PATCH] feat(bat): add 8000mA bat dtsi

---
 longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-8000mA.dtsi |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 longan/kernel/linux-4.9/drivers/power/supply/axp803_usb_power.c                      |    2 
 2 files changed, 116 insertions(+), 1 deletions(-)

diff --git a/longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-8000mA.dtsi b/longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-8000mA.dtsi
new file mode 100644
index 0000000..d841605
--- /dev/null
+++ b/longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-8000mA.dtsi
@@ -0,0 +1,115 @@
+&battery_power_supply {
+    compatible = "x-powers,axp803-battery-power-supply";
+    status = "okay";
+
+    pmu_chg_ic_temp = <0>;
+    pmu_battery_rdc= <10>;
+    pmu_battery_cap = <8000>;
+    pmu_runtime_chgcur = <2800>;
+    pmu_suspend_chgcur = <2800>;
+    pmu_shutdown_chgcur = <2800>;
+    pmu_init_chgvol = <4250>;
+    pmu_battery_warning_level1 = <15>;
+    pmu_battery_warning_level2 = <0>;
+    pmu_chgled_func = <1>;
+    pmu_chgled_type = <0>;
+    ocv_coulumb_100 = <1>;
+
+    /* 3.1328 */
+    pmu_bat_para1 = <0>;
+    /* 3.2736 */
+    pmu_bat_para2 = <0>;
+    /* 3.3440 */
+    pmu_bat_para3 = <0>;
+    /* 3.4144 */
+    pmu_bat_para4 = <0>;
+    /* 3.4848 */
+    pmu_bat_para5 = <1>;
+    /* 3.5552 */
+    pmu_bat_para6 = <3>;
+    /* 3.5904 */
+    pmu_bat_para7 = <6>;
+    /* 3.6080 */
+    pmu_bat_para8 = <8>;
+    /* 3.6256 */
+    pmu_bat_para9 = <10>;
+    /* 3.6432 */
+    pmu_bat_para10 = <12>;
+    /* 3.6608 */
+    pmu_bat_para11 = <15>;
+    /* 3.6960 */
+    pmu_bat_para12 = <21>;
+    /* 3.7312 */
+    pmu_bat_para13 = <29>;
+    /* 3.7664 */
+    pmu_bat_para14 = <36>;
+    /* 3.8016 */
+    pmu_bat_para15 = <41>;
+    /* 3.8192 */
+    pmu_bat_para16 = <43>;
+    /* 3.8368 */
+    pmu_bat_para17 = <45>;
+    /* 3.8544 */
+    pmu_bat_para18 = <47>;
+    /* 3.8720 */
+    pmu_bat_para19 = <49>;
+    /* 3.9072 */
+    pmu_bat_para20 = <53>;
+    /* 3.9424 */
+    pmu_bat_para21 = <57>;
+    /* 3.9776 */
+    pmu_bat_para22 = <63>;
+    /* 4.0128 */
+    pmu_bat_para23 = <70>;
+    /* 4.0480 */
+    pmu_bat_para24 = <74>;
+    /* 4.0832 */
+    pmu_bat_para25 = <79>;
+    /* 4.1184 */
+    pmu_bat_para26 = <83>;
+    /* 4.1360 */
+    pmu_bat_para27 = <87>;
+    /* 4.1536 */
+    pmu_bat_para28 = <90>;
+    /* 4.1888 */
+    pmu_bat_para29 = <94>;
+    /* 4.224 */
+    pmu_bat_para30 = <100>;
+    /* 4.2592 */
+    pmu_bat_para31 = <100>;
+    /* 4.2944 */
+    pmu_bat_para32 = <100>;
+
+    pmu_bat_temp_enable = <0>;
+    pmu_bat_charge_ltf = <1105>;
+    pmu_bat_charge_htf = <121>;
+    pmu_bat_shutdown_ltf = <1381>;
+    pmu_bat_shutdown_htf = <89>;
+    pmu_bat_temp_para1 = <2814>;
+    pmu_bat_temp_para2 = <2202>;
+    pmu_bat_temp_para3 = <1737>;
+    pmu_bat_temp_para4 = <1381>;
+    pmu_bat_temp_para5 = <1105>;
+    pmu_bat_temp_para6 = <890>;
+    pmu_bat_temp_para7 = <722>;
+    pmu_bat_temp_para8 = <484>;
+    pmu_bat_temp_para9 = <332>;
+    pmu_bat_temp_para10 = <233>;
+    pmu_bat_temp_para11 = <196>;
+    pmu_bat_temp_para12 = <166>;
+    pmu_bat_temp_para13 = <141>;
+    pmu_bat_temp_para14 = <121>;
+    pmu_bat_temp_para15 = <89>;
+    pmu_bat_temp_para16 = <66>;
+
+    wakeup_bat_out;
+    /* wakeup_bat_in; */
+    /* wakeup_bat_charging; */
+    /* wakeup_bat_charge_over; */
+    /* wakeup_low_warning1; */
+    /* wakeup_low_warning2; */
+    /* wakeup_bat_untemp_work; */
+    /* wakeup_bat_ovtemp_work; */
+    /* wakeup_bat_untemp_chg; */
+    /* wakeup_bat_ovtemp_chg; */
+};
diff --git a/longan/kernel/linux-4.9/drivers/power/supply/axp803_usb_power.c b/longan/kernel/linux-4.9/drivers/power/supply/axp803_usb_power.c
index 73bf211..ff13bb5 100644
--- a/longan/kernel/linux-4.9/drivers/power/supply/axp803_usb_power.c
+++ b/longan/kernel/linux-4.9/drivers/power/supply/axp803_usb_power.c
@@ -146,7 +146,7 @@
 		pr_info("current limit setted: usb pc type\n");
 	} else {
 		axp803_usb_set_ihold(usb_power, axp_config->pmu_usbad_cur);
-		pr_info("current limit not set: usb adapter type\n");
+		pr_info("current limit not set: usb adapter type ihold = %d\n", axp_config->pmu_usbad_cur);
 	}
 }
 

--
Gitblit v1.6.2