Page MenuHomeFreeBSD

Expose AXP803 related sensors values via sysctl
ClosedPublic

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

Details

Summary

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

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

Event Timeline

ganbold created this revision.Mon, Feb 11, 12:57 PM
manu added inline comments.Mon, Feb 11, 1:44 PM
sys/arm/allwinner/axp81x.c
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.Mon, Feb 11, 2:03 PM

Updated accordingly.

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