Re: axp288 on Intel HW

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Thu, 22 Nov 2018 06:17:45 +0100
 Hi,

 Allwinner PMIC on X86, interesting :)

On Fri, 16 Nov 2018 08:51:31 +0000
Johannes Lundberg <johalun0_at_gmail.com> wrote:

> Hi
> 
> I have a Lenovo Ideapad Miix 310 that has a Intel CherryTrail CPU and it
> runs FreeBSD quite nicely (with accelerated graphics). What I'm missing is
> battery life status..
> 
> I can get this information using smb (for some reason i2c just returns
> error sending start condition)
> smbmsg -f /dev/smb6 -s 0x68 -c 0xB9 -i 1 -F %d
> 
> In emergency this works but it would be nice to have a kernel driver for
> it.
> 
> I found the axp2xx driver for Allwinner in the tree. Would it be possible
> to share this with amd64 with not too much effort?

 The first step would be to add acpi attach functions (no idea how this
works), then compare the registers with the pmics supported by the
axp2xx driver to check what regulators are present and controllable (if
any) and also checking the registers for talking to the battery
controller part.
 I don't see why it wouldn't work but I haven't checked details on how
supported chips differs with this one.

> 
> If not, all I'm really interested in is battery status so I might just hack
> together a simple driver for that report values to hw.acpi.battery (because
> I don't think there is a sysctl for battery info that aggregates different
> sources?)

 We don't have a generic battery/power supply framework yes.

> 
> Datasheet for the pmic can be found here
> http://download.bbs.ickey.cn/201707/cfe88ee7ef01eed7a4586ce340165da0.pdf
> 
> Cheers
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

-- 
Emmanuel Vadot <manu_at_bidouilliste.com> <manu_at_freebsd.org>
Received on Thu Nov 22 2018 - 04:17:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC