Support ROHM BD12780(A) and BD12790 The BD12780 and BD12780A hot-swap controllers are very similar to Analog Devices ADM1278. There are only some minor differences in the registers. The BD12790 is largely similar to the ADM1272, with slightly different coefficients and minor register changes. This series adds basic support for these ROHM ICs. Additionally, this series contains couple of fixes, which can be applied independently from the bd127x0 support patches. Fixes are: Patch 2/9: Prevent read from uninitialized stack (found by Sashiko) Patch 3/9: Prevent coefficient overflow with larget shunt resistor (found by Sashiko) Patch 4/9: Support module auto-loading when DT is used. Revision history: v1 => v2: dt-bindings: - Fix compatible list as suggested by Krzysztof adm1275: - Add patches to fix issues pointed by Sashiko. - Add of_device_ids for all supported devices. - Add own switch 'case's for the new ICs instead of overloading existing ones - Drop i2c_device_id for bd12780a - Don't use IC-wildcard in macro name. --- Matti Vaittinen (9): dt-bindings: adm1275: ROHM BD12780 hot-swap controller hwmon: adm1275: Prevent reading uninitialized stack hwmon: adm1275: Detect coefficient overflow hwmon: adm1275: Support module auto-loading doc: Add ROHM BD12780 and BD12780A hwmon: adm1275: Support ROHM BD12780 dt-bindings: adm1275: ROHM BD12790 hot-swap controller doc: adm1275: Add ROHM BD12790 hwmon: adm1275: Support ROHM BD12790 .../bindings/hwmon/adi,adm1275.yaml | 43 +++-- Documentation/hwmon/adm1275.rst | 24 +++ drivers/hwmon/pmbus/Kconfig | 4 +- drivers/hwmon/pmbus/adm1275.c | 162 ++++++++++++++++-- 4 files changed, 208 insertions(+), 25 deletions(-) base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 -- 2.54.0