Page MenuHomeFreeBSD

Expose AXP803 related sensors values via sysctl
ClosedPublic

Authored by ganbold on Feb 11 2019, 12:57 PM.
Tags
None
Referenced Files
F167717887: D19145.id53773.diff
Sun, Aug 23, 11:36 PM
Unknown Object (File)
Fri, Aug 21, 7:12 AM
Unknown Object (File)
Mon, Aug 10, 10:53 AM
Unknown Object (File)
Mon, Aug 10, 10:52 AM
Unknown Object (File)
Thu, Jul 30, 7:19 PM
Unknown Object (File)
Tue, Jul 28, 8:41 AM
Unknown Object (File)
Jul 22 2026, 6:03 PM
Unknown Object (File)
Jul 22 2026, 12:48 PM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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.

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.