[PATCH v5 0/2] hwmon: Add support for MPS mp2891 chip

From: Noah Wang
Date: Wed Jun 26 2024 - 05:42:11 EST


Add mp2891 driver in hwmon and add dt-bindings for it.

v4 -> v5:
1. remove useless code in mp2891_identify()
2. add Rob's Acked-by

v3 -> v4:
1. add mp2891 to Makefile, Kconfig and MAINTAINERS file
in alpha order
2. sort include files in alpha order
3. fix some issue in annotation
4. remove info variable in mp2891_probe()
5. add const attribute to mp2891_info variable
6. add mp2891 in alpha order

v2 -> v3:
1. change PSC_VOLTAGE_IN, PSC_CURRENT_IN, PSC_TEMPERATURE,
and PSC_POWER format from linear to direct
2. add limit register writtings.
3. fix some coding style issues
4. move mp2891 dt-bindings to trivial devices

V1 -> V2:
1. add limit register readings
2. add status register readings
3. change PSC_CURRENT_OUT format from linear to direct
4. add more detailed explanation for special processing
5. remove useless code
6. move identify vout_scale, iout_scale function to
identify() callback
7. update MP2891 datasheet
8. add mp2891 dt-bindings

Noah Wang (2):
dt-bindings: hwmon: Add MPS mp2891
hwmon: add MP2891 driver

.../devicetree/bindings/trivial-devices.yaml | 2 +
Documentation/hwmon/index.rst | 1 +
Documentation/hwmon/mp2891.rst | 179 ++++++
MAINTAINERS | 7 +
drivers/hwmon/pmbus/Kconfig | 9 +
drivers/hwmon/pmbus/Makefile | 1 +
drivers/hwmon/pmbus/mp2891.c | 600 ++++++++++++++++++
7 files changed, 799 insertions(+)
create mode 100644 Documentation/hwmon/mp2891.rst
create mode 100644 drivers/hwmon/pmbus/mp2891.c

--
2.25.1