Pinebook Pro battery fuel-gauge driver..

Søren Schmidt soren.schmidt at gmail.com
Fri Aug 14 16:23:37 UTC 2020


Hi

Now that we have display and all working I hacked up a driver for the cw2015 chip that can tell how much battery is left so I know when to seek an outlet :)

It consists of a patch to the dts (from linux) where all I need is the chiplocation but for compats sake, and the driver.

Access is via sysctl, as we have no real way of handling this info on ARM (no acpi, apm etc) AFAIK.

Enjoy!



--
Søren Schmidt
sos at deepcore.dk / sos at freebsd.org
"So much code to hack, so little time"





More information about the freebsd-arm mailing list