public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH V2 0/2] power: regulator: pfuze100: Fix voltage calculation and support high-range
@ 2026-01-11  8:23 Michael Trimarchi
  2026-01-11  8:23 ` [PATCH V2 1/2] power: regulator: pfuze100: support high voltage range bit Michael Trimarchi
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Michael Trimarchi @ 2026-01-11  8:23 UTC (permalink / raw)
  To: Peng Fan, Jaehoon Chung
  Cc: Tom Rini, Dario Binacchi, u-boot, linux-amarula,
	Michael Trimarchi

This series addresses two significant issues in the pfuze100 regulator driver
regarding voltage calculation accuracy.

The first patch fixes the handling of the "high range" bit. PFUZE chips support
two voltage ranges (controlled by a register bit) with different step sizes
and base voltages. Previously, the driver assumed the low range, leading to
incorrect voltage settings on boards configured for the high range.

The second patch corrects the interpretation of min_uV. The driver was
incorrectly using the device tree's regulator-min-microvolt constraint as the
mathematical base (zero-index) for voltage calculations. This caused offset
errors whenever the DTS constraint differed from the hardware's absolute minimum.
The patch introduces physical minimums in the driver descriptors to ensure
calculations are based on the datasheet specifications, treating the DTS value
strictly as a safety constraint.

Together, these changes align the U-Boot driver logic with the Linux kernel
implementation and ensure correct voltage output.

Michael Trimarchi (2):
  power: regulator: pfuze100: support high voltage range bit
  power: regulator: pfuze100: Decouple hardware base voltage from DTS
    constraints

 drivers/power/regulator/pfuze100.c | 138 ++++++++++++++++++-----------
 1 file changed, 88 insertions(+), 50 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-13 18:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-11  8:23 [PATCH V2 0/2] power: regulator: pfuze100: Fix voltage calculation and support high-range Michael Trimarchi
2026-01-11  8:23 ` [PATCH V2 1/2] power: regulator: pfuze100: support high voltage range bit Michael Trimarchi
2026-01-11  8:23 ` [PATCH V2 2/2] power: regulator: pfuze100: Decouple hardware base voltage from DTS constraints Michael Trimarchi
2026-01-13  8:58 ` [PATCH V2 0/2] power: regulator: pfuze100: Fix voltage calculation and support high-range Peng Fan
2026-01-13 10:46   ` Michael Nazzareno Trimarchi
2026-01-13 12:16     ` Peng Fan
2026-01-13 18:16       ` Michael Nazzareno Trimarchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox