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

Skip to content
Commit ea512b1d authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-charger: Use the BUCK_CTRL_TRIM1 to adjust VDDMAX



When the battery is charging, the buck regulates a set voltage at the
battery terminals. This is set by the software in the charger
peripheral's VDDMAX register.

The charger's VDDMAX setting has a 20 millivolt resolution. This is
not enough, as being even 10mV over the max battery voltage can cause
the battery over voltage protection circuits to disconnect the
battery.

Use the buck's BUCK_CTRL_TRIM1 MSB's VDDMAX trim to adjust the VDDMAX
instead, providing a charging voltage resolution of 10mV, resolving
this issue.

Change-Id: I5e87b996d48286e69e58335ac18ef9ffda7c6fc0
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent a6d48019
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