注意:VCC12V 不能接错,否则上电会损坏主板!
longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
battery_power_supply: battery-power-supply {
compatible = "x-powers,axp803-battery-power-supply";
status = "okay";
pmu_chg_ic_temp = <0>;
pmu_battery_rdc= <93>;
pmu_battery_cap = <5067>;
pmu_runtime_chgcur = <1000>;
pmu_suspend_chgcur = <2000>;
pmu_shutdown_chgcur = <2000>;
pmu_init_chgvol = <4200>;
pmu_battery_warning_level1 = <15>;
pmu_battery_warning_level2 = <0>;
pmu_chgled_func = <0>;
pmu_chgled_type = <0>;
ocv_coulumb_100 = <1>;
pmu_bat_para1 = <0>;
pmu_bat_para2 = <0>;
pmu_bat_para3 = <0>;
......
pmu_bat_para31 = <100>;
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_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; */
};
$ echo 8 > /proc/sys/kernel/printk
$ echo 0xf > /sys/class/axp/debug_mask