Date: Mon, 17 Aug 2020 10:18:20 +0800 From: Ganbold Tsagaankhuu <ganbold@gmail.com> To: =?UTF-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com> Cc: Emmanuel Vadot <manu@bidouilliste.com>, "freebsd-arm@freebsd.org" <arm@freebsd.org> Subject: Re: Pinebook Pro battery fuel-gauge driver.. Message-ID: <CAGtf9xNPROfCgT0ayAj=_YQMxhZ1hfA4ioEO1ihCQZatT-rJtQ@mail.gmail.com> In-Reply-To: <5E285422-EA34-4A8C-9BE2-6B3AEED6AD2F@gmail.com> References: <CA6993CD-66BA-49A3-9BCA-15A713637A4F@gmail.com> <20200816150217.b976cb1f516f7f09b7f35c10@bidouilliste.com> <5E285422-EA34-4A8C-9BE2-6B3AEED6AD2F@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 17, 2020 at 2:19 AM S=C3=B8ren Schmidt <soren.schmidt@gmail.com= > wrote: > On 16 Aug 2020, at 15.02, Emmanuel Vadot <manu@bidouilliste.com> wrote: > > > > On Fri, 14 Aug 2020 18:23:33 +0200 > > S=C3=B8ren Schmidt <soren.schmidt@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=E2=80=99t found any ill effects yet, I=E2=80=99ll look int= o 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 batter= y > 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=E2=80=99ll 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=E2=80=99t look around too much, con= sidered > 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" > > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xNPROfCgT0ayAj=_YQMxhZ1hfA4ioEO1ihCQZatT-rJtQ>