Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 43e07248 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power: qpnp-linear-charger: disable vbatdet irq based recharge



It is observed that VBAT_DET irq gets triggered just after 100% SOC
due to fluctuation in battery voltage after charging is disabled
causing multiple enabling/disabling of charging.

Add an option to disable VBAT_DET irq and VBAT_DET based recharge
and only use resume_soc based recharge.

The properties which enable this feature are:
1. "qcom,force-bms-active-on-charger": This BMS property ensures that
BMS FSM remains active as long as charger is present. This ensures
that post EOC charging starts when SOC < resume_soc.
2. "qcom,disable-vbatdet-based-recharge": This charger property disables
VBAT_DET irq and always keeps VBAT_DET comparator overriden to low.

When VBAT_DET comparator is overriden to 0, recharge doesnot depend on
battery voltage. The driver will then charge/recharge based on either
charger insertion or BMS reporting a SOC equal/lower than resume soc
threshold.

Thic configuration is not enabled by default.

CRs-Fixed: 679886
Change-Id: Ia7e419285e87669c16c9d055a714a82e59271f35
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 30bb37f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment