Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2020 18:23:33 +0200
From:      =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>
To:        "freebsd-arm@freebsd.org" <arm@freebsd.org>
Subject:   Pinebook Pro battery fuel-gauge driver..
Message-ID:  <CA6993CD-66BA-49A3-9BCA-15A713637A4F@gmail.com>

next in thread | raw e-mail | index | archive | help
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=C3=B8ren Schmidt
sos@deepcore.dk / sos@freebsd.org
"So much code to hack, so little time"






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA6993CD-66BA-49A3-9BCA-15A713637A4F>