public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] hwmon: Add support for MPS mp2985
@ 2026-04-14  9:28 wenswang
  2026-04-14  9:29 ` [PATCH v4 1/2] dt-bindings: hwmon: Add " wenswang
  0 siblings, 1 reply; 3+ messages in thread
From: wenswang @ 2026-04-14  9:28 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, linux, corbet, skhan
  Cc: devicetree, linux-kernel, linux-hwmon, linux-doc, Wensheng Wang

From: Wensheng Wang <wenswang@yeah.net>

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

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-14  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14  9:28 [PATCH v4 0/2] hwmon: Add support for MPS mp2985 wenswang
2026-04-14  9:29 ` [PATCH v4 1/2] dt-bindings: hwmon: Add " wenswang
2026-04-14  9:29   ` [PATCH v4 2/2] hwmon: add MP2985 driver wenswang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox