]> git.ipfire.org Git - thirdparty/u-boot.git/commit
power: regulator: pfuze100: support high output voltage mode
authorPeng Fan <peng.fan@nxp.com>
Sat, 18 Apr 2026 12:37:33 +0000 (20:37 +0800)
committerPeng Fan <peng.fan@nxp.com>
Wed, 6 May 2026 02:20:30 +0000 (10:20 +0800)
commitb7b7aa741f9dd37a25cf44f3a2771ec9bfd497dc
treef47522ba24f7c26b49c9edf9a131626e0f5cfff5
parent356b7598cd35833fdf5890b4fbabc76e4af17f95
power: regulator: pfuze100: support high output voltage mode

Some PFUZE regulators can operate in either low or high output voltage mode,
with different minimum voltages and voltage step sizes selected by a hardware
control bit. However, the current PFUZE100 regulator driver assumes low output
voltage mode only, resulting in incorrect voltage calculation and programming
when high voltage mode is enabled.

Extend the regulator descriptor to describe high output voltage mode by adding
a mask to detect the mode and a dedicated voltage description (min_uV and
step size). Update voltage get/set handling to dynamically select the correct
voltage parameters based on the high voltage mode bit.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/regulator/pfuze100.c