Page MenuHomeFreeBSD

Expose AXP803 related sensors values via sysctl

Authored by ganbold on Feb 11 2019, 12:57 PM.



Add sensors support for AXP803/AXP813. Sensor values such as
battery charging, charge state, voltage, charging current, discharging current,
battery capacity etc. can be obtained via sysctl.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ganbold created this revision.Feb 11 2019, 12:57 PM
manu added inline comments.Feb 11 2019, 1:44 PM
649 ↗(On Diff #53773)

has_battery and has_fuel_gauge is always true. Don't think those variable are necessary.

677 ↗(On Diff #53773)

Does AXP813 and AXP803 differs in battery management?
I remember that there is a few subtle different between them but I can't remember what.
If not just adding one config would be enough.

ganbold updated this revision to Diff 53776.Feb 11 2019, 2:03 PM

Updated accordingly.

manu accepted this revision.Feb 11 2019, 2:23 PM
This revision is now accepted and ready to land.Feb 11 2019, 2:23 PM
This revision was automatically updated to reflect the committed changes.