Re: [PATCH 4/6] hwmon: (pmbus/max20830): add VOUT feedback resistor scaling support

From: Guenter Roeck

Date: Tue Jun 30 2026 - 00:53:58 EST


On 6/29/26 19:46, Alexis Czezar Torreno wrote:
Implement support for external voltage divider scaling using the
adi,vout-rfb1-ohms and adi,vout-rfb2-ohms device tree properties.

When the desired output voltage exceeds VREF, a resistor divider
(RFB1 and RFB2) is used to scale down the feedback voltage. The
driver reads these resistor values from device tree and applies
the scaling formula: VOUT_actual = VOUT_measured × (1 + RFB1/RFB2)

The properties are optional. If not specified, the driver assumes
no voltage divider is present and reports the raw VOUT reading.


This will require a detailed explanation why only PMBUS_READ_VOUT
would require scaling but not any of the other vout related commands.

Guenter