Pinebook Pro battery fuel-gauge driver..

Ganbold Tsagaankhuu ganbold at gmail.com
Mon Aug 17 02:18:35 UTC 2020


On Mon, Aug 17, 2020 at 2:19 AM Søren Schmidt <soren.schmidt at gmail.com>
wrote:

> On 16 Aug 2020, at 15.02, Emmanuel Vadot <manu at bidouilliste.com> wrote:
> >
> > On Fri, 14 Aug 2020 18:23:33 +0200
> > Søren Schmidt <soren.schmidt at gmail.com> wrote:
> >
> >> Hi
> >>
> >> Now that we have display and all working
> >
> > I wouldn't say that, what you have is an hack that will probably cause
> > other problem.
>
> Sure, but havn’t found any ill effects yet, I’ll look into getting it done
> correctly, but for now it makes the pinebookpro useful and self-contained.
>
> >> 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.
> >
> > Cool, got any link for your code ? Mind to open a review ?
>
> Code was attached to the original mail, I’ll look into getting a review
> setup, need to figure out how that works on fabricator though.
>


I don't see any attachment in your original mail.

Ganbold


>
> >> Access is via sysctl, as we have no real way of handling this info on
> ARM (no acpi, apm etc) AFAIK.
> >
> > thj@ started to split battery subsystem from ACPI a while ago iirc.
>
> Any pointers to that ? I admit I didn’t look around too much, considered
> emulating APM but went with simple sysctl’s.
>
> --
> Søren Schmidt
> sos at deepcore.dk / sos at freebsd.org
> "So much code to hack, so little time"
>
>
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>


More information about the freebsd-arm mailing list