I am using imx28evk and I have attached to it a battery with the following specs, Li-ion 3.7 1000mAh/3.7Wh,
The sequence of steps are the following:
1) Power down the EVK and attached the Li-Ion battery at the connector J86.
2) Switch the SW1 to Battery
3) Attach the power cable
4) The kernel starts up
5) I check sysfs and I get the following info:
root@imx28evk:~# cat /sys/class/power_supply/battery/uevent POWER_SUPPLY_NAME=batteryPOWER_SUPPLY_STATUS=Not chargingPOWER_SUPPLY_PRESENT=1POWER_SUPPLY_HEALTH=GoodPOWER_SUPPLY_TECHNOLOGY=Li-ionPOWER_SUPPLY_VOLTAGE_NOW=3896000POWER_SUPPLY_CURRENT_NOW=0POWER_SUPPLY_TEMP=39
6) I remove the power cable
7) I check again:
root@imx28evk:~# cat /sys/class/power_supply/battery/uevent POWER_SUPPLY_NAME=batteryPOWER_SUPPLY_STATUS=DischargingPOWER_SUPPLY_PRESENT=1POWER_SUPPLY_HEALTH=GoodPOWER_SUPPLY_TECHNOLOGY=Li-ionPOWER_SUPPLY_VOLTAGE_NOW=3864000POWER_SUPPLY_CURRENT_NOW=0POWER_SUPPLY_TEMP=41
8) I put back the power cable,
9) Check again :
I was expecting the battery to get charged when is not in use and when 5V power is available.
Any ideas how to switch to charging mode when the power cable is on? Is there any threshold that needs adjustment for my battery?
PS: I use Linux version 220.127.116.11-maintain+yocto+g903363e (firstname.lastname@example.org) (gcc version 4.8.1 (GCC) ) #1 PREEMPT Sat Nov 23 06:35:02 UTC 2013
I think it is not a problem - If the battery is fully charged or nearly fully charged the BM algorithm wont charge it.