08-12-2019, 06:54 PM
Good news!
axppmic is now in the official repository, thanks to Mark Kettenis.
It needs device tree to contain (it's not yet in my u-boot repository):
Sample output:
axppmic is now in the official repository, thanks to Mark Kettenis.
It needs device tree to contain (it's not yet in my u-boot repository):
Code:
x-powers,axp803-battery-power-supply
Sample output:
Code:
hw.sensors.axppmic0.temp0=66.56 degC
hw.sensors.axppmic0.volt0=3.64 VDC (battery voltage)
hw.sensors.axppmic0.current0=0.00 A (battery charging current)
hw.sensors.axppmic0.current1=0.24 A (battery discharging current)
hw.sensors.axppmic0.amphour0=0.00 Ah (battery maximum capacity), WARNING
hw.sensors.axppmic0.amphour1=0.00 Ah (battery current capacity), WARNING
hw.sensors.axppmic0.indicator0=On (ACIN), OK
hw.sensors.axppmic0.indicator1=Off (VBUS)
hw.sensors.axppmic0.indicator2=On (battery present), OK
hw.sensors.axppmic0.indicator3=On (battery charging), OK
hw.sensors.axppmic0.percent0=15.00% (battery percent), WARNING