On Saturday, December 8, 2018 at 8:12:37 PM UTC-5, Dan Julio wrote:
>
> I've configured my pocketbeagle with a 3.7v Li-ION battery and it works 
> fine.  It also charges when I power the pocketbeage via the USB connector 
> (and switches seamlessly as USB power comes and goes) .  However it won't 
> charge the battery when the computer shuts down.  I suspect something 
> disables charging on the PMIC during shutdown.  Does anyone know if it's 
> possible to tell the system not to disable charging?  Or what part of the 
> kernel handles this?
>
> I've also successfully read and written PMIC registers using the i2c 
> utilities, for example to reconfigure the upper charge voltage to 4.2v.
>
> Thanks, Dan
>

The driver is at

https://github.com/torvalds/linux/blob/master/drivers/power/supply/tps65217_charger.c
 

History: 

https://github.com/torvalds/linux/commits/master/drivers/power/tps65217_charger.c
https://github.com/torvalds/linux/commits/master/drivers/power/supply/tps65217_charger.c

Looks like it has been there since about 4.4.

Oddly, I'm not seeing anywhere it gets disabled:

https://github.com/torvalds/linux/search?q=TPS65217_CHGCONFIG1_CHG_EN&unscoped_q=TPS65217_CHGCONFIG1_CHG_EN
 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e8aaef98-e353-4ea6-abcd-3f77f56611f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to