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

Skip to content
Commit a9b0c3b3 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: qpnp-charger: IBAT calibration/re-trimming



1% of PM8941 devices have a IBAT_TRIM error, due to which
these parts may show IBAT_MAX out of spec. This can lead to
charging of the battery with higher current, thus degrading its
life.

Fix this by re-trimming IBAT_MAX using the below procedure. This
process needs to be carried out for every DCP insertion until
the TRIM_GOOD bit is set.

1. After AICL is complete, force IBAT_MAX to 500mA
2. If ibat_loop has triggered, read the battery current
3. Calculate the difference in the expected and observed current
4. Accordingly adjust IBAT_TRIM value
5. Set TRIM_GOOD bit if the trimming is successfull

CRs-Fixed: 561116
Change-Id: I239c0ea4510ffefbab86f43a3703e63868f19616
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent a886a52e
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