Hi, On Thu, Mar 31, 2016 at 2:18 PM, Michael Haas <[email protected]> wrote: > Hello all, > > I'd like to monitor the battery and charging status connected to my axp209. > Is anyone working on that? Currently, there is only USB power supply > support via > drivers/power/axp20x_usb_power.c. > > Adding support for the charging/battery/ACIN bits should be rather > straightforward. > There is a rather nasty bash script which polls the axp20x via i2cget. > I'd rather have a proper solution. > > Is anyone working on that? If not, I'll get started.
There was an attempt some time ago: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/295547.html > Or is there an existing driver implemented by Allwinner which can be > re-used? It probably won't fit in with the mfd driver in mainline. > > CC'ing Hans as he implemented axp20x_usb_power.c. IIRC, Hans previously said that the acin and vbus supplies should be handled by separate power supply drivers. ACIN is easy to do. Just port the VBUS one. The charger would likely be another separate driver, either combined or separate from the fuel gauge (charge level) driver. You could also take a look at the AXP288 power supply driver, though they are doing it in a monolithic driver handling all the supplies and charging. Regards ChenYu -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
