This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ25895M: Battery charge remaining status with BQ25895M

Part Number: BQ25895M
Other Parts Discussed in Thread: BQ25895, BQ27220

Hi,

 We are developing a eNote Paper Tablet and running Linux . We have used BQ25895M as battery charging circuit and enabled the driver which seems works fine. When the system is connected with charger it shows the value of POWER_SUPPLY_VOLTAGE_NOW and POWER_SUPPLY_CURRENT_NOW. My requirement is also to know the remaining battery life, but I do not see any field that indicates the status. Below is the op for both cases battery only and battery with charger. Is there an option to see the battery charge remaining ? The POWER_SUPPLY_VOLTAGE_NOW in case of battery only is always 2304000

Battery Only

root@imx7dsabresd:~# cat /sys/class/power_supply/bq25890-charger/uevent
POWER_SUPPLY_NAME=bq25890-charger
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_MANUFACTURER=Texas Instruments
POWER_SUPPLY_MODEL_NAME=BQ25895
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_CHARGE_TYPE=N/A
POWER_SUPPLY_ONLINE=0
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX=2048000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE=0
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE_MAX=4352000
POWER_SUPPLY_PRECHARGE_CURRENT=128000
POWER_SUPPLY_CHARGE_TERM_CURRENT=256000
POWER_SUPPLY_INPUT_CURRENT_LIMIT=500000
POWER_SUPPLY_VOLTAGE_NOW=2304000
POWER_SUPPLY_CURRENT_NOW=0

Battery with Charger

root@imx7dsabresd:~# cat /sys/class/power_supply/bq25890-charger/uevent
POWER_SUPPLY_NAME=bq25890-charger
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_MANUFACTURER=Texas Instruments
POWER_SUPPLY_MODEL_NAME=BQ25895
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_CHARGE_TYPE=Fast
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX=2048000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE=4344000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE_MAX=4352000
POWER_SUPPLY_PRECHARGE_CURRENT=128000
POWER_SUPPLY_CHARGE_TERM_CURRENT=256000
POWER_SUPPLY_INPUT_CURRENT_LIMIT=3250000
POWER_SUPPLY_VOLTAGE_NOW=4344000
POWER_SUPPLY_CURRENT_NOW=-500000

Below is connection diagram

Thanks and Best Regards,

Surajit

+91 9886677508