]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: pmbus: mpq8785: Implement VOUT feedback resistor divider ratio configuration
authorPawel Dembicki <paweldembicki@gmail.com>
Sun, 11 May 2025 03:55:46 +0000 (05:55 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 12 May 2025 16:43:17 +0000 (09:43 -0700)
commitdc1a4bab48d513e426118e42b9c371d942ddb04b
tree7a61e0d6de427e40835dee142b86ef9fa5f2aa29
parent1bc6020dc400ea8290a7b26aa4365d4568e23e27
hwmon: pmbus: mpq8785: Implement VOUT feedback resistor divider ratio configuration

Implement support for setting the VOUT_SCALE_LOOP PMBus register
based on an optional device tree property
"mps,vout-fb-divider-ratio-permille".

This allows the driver to provide the correct VOUT value depending
on the feedback voltage divider configuration for chips where the
bootloader does not configure the VOUT_SCALE_LOOP register.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://lore.kernel.org/r/20250511035701.2607947-4-paweldembicki@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/mpq8785.c