Date: Sun, 16 Aug 2020 20:19:44 +0200 From: =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com> To: Emmanuel Vadot <manu@bidouilliste.com> Cc: "freebsd-arm@freebsd.org" <arm@freebsd.org> Subject: Re: Pinebook Pro battery fuel-gauge driver.. Message-ID: <5E285422-EA34-4A8C-9BE2-6B3AEED6AD2F@gmail.com> In-Reply-To: <20200816150217.b976cb1f516f7f09b7f35c10@bidouilliste.com> References: <CA6993CD-66BA-49A3-9BCA-15A713637A4F@gmail.com> <20200816150217.b976cb1f516f7f09b7f35c10@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16 Aug 2020, at 15.02, Emmanuel Vadot <manu@bidouilliste.com> wrote: >=20 > On Fri, 14 Aug 2020 18:23:33 +0200 > S=C3=B8ren Schmidt <soren.schmidt@gmail.com> wrote: >=20 >> Hi >>=20 >> Now that we have display and all working=20 >=20 > I wouldn't say that, what you have is an hack that will probably cause > other problem. Sure, but havn=E2=80=99t found any ill effects yet, I=E2=80=99ll 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 :) >>=20 >> It consists of a patch to the dts (from linux) where all I need is = the chiplocation but for compats sake, and the driver. >=20 > Cool, got any link for your code ? Mind to open a review ? Code was attached to the original mail, I=E2=80=99ll look into getting a = review setup, need to figure out how that works on fabricator though. >> Access is via sysctl, as we have no real way of handling this info on = ARM (no acpi, apm etc) AFAIK. >=20 > thj@ started to split battery subsystem from ACPI a while ago iirc. Any pointers to that ? I admit I didn=E2=80=99t look around too much, = considered emulating APM but went with simple sysctl=E2=80=99s. -- 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?5E285422-EA34-4A8C-9BE2-6B3AEED6AD2F>