(06-19-2016, 06:19 AM)xalius Wrote: The AXP803 seems to support one other communications mode according to the datasheet which is proprietary to Allwinner. It uses the I2C pins but a different protocol. Maybe that is the reason it doesnt turn up on the I2C Bus scan or the particular I2C bus is not exposed to userspace, I haven't found out yet. The linux kernel driver fot he PMIC has all the function to set/get registers and control the battery charger as well as the programmable regulators and monitor the different voltages.
As far as the default definition from the dts for the battery goes, I am also pretty sure it does not fit the 8Ah battery sold via the Pine store? Maybe someone with the exact battery specs should have a look at this asap... especially people could also be connecting random other Lithium chemistry batteries to the port, a safe setting there should be the default... if a certain charge current limit is set, that means there has to be a certain minimum battery size connected to not exceed the battery's safe operating area...
Thanks for that xalius... looks like I'll need to go digging around in the datasheet now and see what is what.. :-O Are all the set/get bits under /sys/class/power_supply and /sys/class/power_supply or do I need to know something else to go forraging around in the murky depths?
Well, I'm pretty sure it isn't the "8000mAH 4.7V Lithium Polymer battery that plugs right into the PINE64 board. Compatible with A64 and A64+ " that is described on the Pine64 shop page - tllim might want to look into getting that fixed! He has said on another post that it is 3.7v type LiPo battery, with the middle connection on the three pin header there for a thermistor. Hence why I think the voltage settings are correct, but 'technology' is wrong :-O