huangcm
2025-08-30 0269911b91ed7e03c24005924cc6423abf245fb8
feat(bat): add 8000mA bat dtsi
1 files modified
1 files added
117 ■■■■■ changed files
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-8000mA.dtsi 115 ●●●●● patch | view | raw | blame | history
longan/kernel/linux-4.9/drivers/power/supply/axp803_usb_power.c 2 ●●● patch | view | raw | blame | history
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-8000mA.dtsi
....@@ -0,0 +1,115 @@
1
+&battery_power_supply {
2
+ compatible = "x-powers,axp803-battery-power-supply";
3
+ status = "okay";
4
+
5
+ pmu_chg_ic_temp = <0>;
6
+ pmu_battery_rdc= <10>;
7
+ pmu_battery_cap = <8000>;
8
+ pmu_runtime_chgcur = <2800>;
9
+ pmu_suspend_chgcur = <2800>;
10
+ pmu_shutdown_chgcur = <2800>;
11
+ pmu_init_chgvol = <4250>;
12
+ pmu_battery_warning_level1 = <15>;
13
+ pmu_battery_warning_level2 = <0>;
14
+ pmu_chgled_func = <1>;
15
+ pmu_chgled_type = <0>;
16
+ ocv_coulumb_100 = <1>;
17
+
18
+ /* 3.1328 */
19
+ pmu_bat_para1 = <0>;
20
+ /* 3.2736 */
21
+ pmu_bat_para2 = <0>;
22
+ /* 3.3440 */
23
+ pmu_bat_para3 = <0>;
24
+ /* 3.4144 */
25
+ pmu_bat_para4 = <0>;
26
+ /* 3.4848 */
27
+ pmu_bat_para5 = <1>;
28
+ /* 3.5552 */
29
+ pmu_bat_para6 = <3>;
30
+ /* 3.5904 */
31
+ pmu_bat_para7 = <6>;
32
+ /* 3.6080 */
33
+ pmu_bat_para8 = <8>;
34
+ /* 3.6256 */
35
+ pmu_bat_para9 = <10>;
36
+ /* 3.6432 */
37
+ pmu_bat_para10 = <12>;
38
+ /* 3.6608 */
39
+ pmu_bat_para11 = <15>;
40
+ /* 3.6960 */
41
+ pmu_bat_para12 = <21>;
42
+ /* 3.7312 */
43
+ pmu_bat_para13 = <29>;
44
+ /* 3.7664 */
45
+ pmu_bat_para14 = <36>;
46
+ /* 3.8016 */
47
+ pmu_bat_para15 = <41>;
48
+ /* 3.8192 */
49
+ pmu_bat_para16 = <43>;
50
+ /* 3.8368 */
51
+ pmu_bat_para17 = <45>;
52
+ /* 3.8544 */
53
+ pmu_bat_para18 = <47>;
54
+ /* 3.8720 */
55
+ pmu_bat_para19 = <49>;
56
+ /* 3.9072 */
57
+ pmu_bat_para20 = <53>;
58
+ /* 3.9424 */
59
+ pmu_bat_para21 = <57>;
60
+ /* 3.9776 */
61
+ pmu_bat_para22 = <63>;
62
+ /* 4.0128 */
63
+ pmu_bat_para23 = <70>;
64
+ /* 4.0480 */
65
+ pmu_bat_para24 = <74>;
66
+ /* 4.0832 */
67
+ pmu_bat_para25 = <79>;
68
+ /* 4.1184 */
69
+ pmu_bat_para26 = <83>;
70
+ /* 4.1360 */
71
+ pmu_bat_para27 = <87>;
72
+ /* 4.1536 */
73
+ pmu_bat_para28 = <90>;
74
+ /* 4.1888 */
75
+ pmu_bat_para29 = <94>;
76
+ /* 4.224 */
77
+ pmu_bat_para30 = <100>;
78
+ /* 4.2592 */
79
+ pmu_bat_para31 = <100>;
80
+ /* 4.2944 */
81
+ pmu_bat_para32 = <100>;
82
+
83
+ pmu_bat_temp_enable = <0>;
84
+ pmu_bat_charge_ltf = <1105>;
85
+ pmu_bat_charge_htf = <121>;
86
+ pmu_bat_shutdown_ltf = <1381>;
87
+ pmu_bat_shutdown_htf = <89>;
88
+ pmu_bat_temp_para1 = <2814>;
89
+ pmu_bat_temp_para2 = <2202>;
90
+ pmu_bat_temp_para3 = <1737>;
91
+ pmu_bat_temp_para4 = <1381>;
92
+ pmu_bat_temp_para5 = <1105>;
93
+ pmu_bat_temp_para6 = <890>;
94
+ pmu_bat_temp_para7 = <722>;
95
+ pmu_bat_temp_para8 = <484>;
96
+ pmu_bat_temp_para9 = <332>;
97
+ pmu_bat_temp_para10 = <233>;
98
+ pmu_bat_temp_para11 = <196>;
99
+ pmu_bat_temp_para12 = <166>;
100
+ pmu_bat_temp_para13 = <141>;
101
+ pmu_bat_temp_para14 = <121>;
102
+ pmu_bat_temp_para15 = <89>;
103
+ pmu_bat_temp_para16 = <66>;
104
+
105
+ wakeup_bat_out;
106
+ /* wakeup_bat_in; */
107
+ /* wakeup_bat_charging; */
108
+ /* wakeup_bat_charge_over; */
109
+ /* wakeup_low_warning1; */
110
+ /* wakeup_low_warning2; */
111
+ /* wakeup_bat_untemp_work; */
112
+ /* wakeup_bat_ovtemp_work; */
113
+ /* wakeup_bat_untemp_chg; */
114
+ /* wakeup_bat_ovtemp_chg; */
115
+};
longan/kernel/linux-4.9/drivers/power/supply/axp803_usb_power.c
....@@ -146,7 +146,7 @@
146146 pr_info("current limit setted: usb pc type\n");
147147 } else {
148148 axp803_usb_set_ihold(usb_power, axp_config->pmu_usbad_cur);
149
- pr_info("current limit not set: usb adapter type\n");
149
+ pr_info("current limit not set: usb adapter type ihold = %d\n", axp_config->pmu_usbad_cur);
150150 }
151151 }
152152