Skip to content

hwmon: Add support for MPS mp2985

[email protected] linux-devicetree linux-doc linux-hwmon lkml 4 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesApplied
  2. v32 patches 1 replySuperseded
  3. v22 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

1. Avoid mantissa data overflow in mp2985_linear_exp_transfer() function.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: hwmon: Add MPS mp2985Documentation/devicetree/bindings/trivial-devices.yaml+2 -01 reply
2/2hwmon: add MP2985 driverDocumentation/hwmon/index.rst Documentation/hwmon/mp2985.rst MAINTAINERS +3 more+567 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] hwmon: Add support for MPS mp2985

From: Wensheng Wang <[email protected]>

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

V3 -> V4:
1. Avoid mantissa data overflow in mp2985_linear_exp_transfer() function.

V2 -> V3:
1. The shifted mantissa be clamped to the range [-1024, 1023] before being masked in mp2985_linear_exp_transfer() function.
2. The PMBUS_VOUT_OV_FAULT_LIMIT and PMBUS_VOUT_UV_FAULT_LIMIT value are clamped to 0xFFF before being written to the mp2985.
3. Fix the vout scale issue for vout linear11 mode.

v1 -> v2:
1. add Krzysztof's Acked-by
2. remove duplicate entry in mp2985.rst
3. clamp vout value to 32767
4. simplify the code for obtaining PMBUS_VOUT_MODE bit value
5. add comment for explaining MP2985 supported vout mode
6. switch back to previous page after obtaining vid scale to avoid confusing the PMBus core

Wensheng Wang (2):
dt-bindings: hwmon: Add MPS mp2985
hwmon: add MP2985 driver

 .../devicetree/bindings/trivial-devices.yaml  |   2 +
 Documentation/hwmon/index.rst                 |   1 +
 Documentation/hwmon/mp2985.rst                | 147 +++++++
 MAINTAINERS                                   |   7 +
 drivers/hwmon/pmbus/Kconfig                   |   9 +
 drivers/hwmon/pmbus/Makefile                  |   1 +
 drivers/hwmon/pmbus/mp2985.c                  | 402 ++++++++++++++++++
 7 files changed, 569 insertions(+)
 create mode 100644 Documentation/hwmon/mp2985.rst
 create mode 100644 drivers/hwmon/pmbus/mp2985.c
Signature · 1 line
2.25.1