Skip to contentSkip to conversation

hwmon: Add support for MPS mp2869,mp29502 chip

PATCH Superseded [email protected] 2 participants 5 messages Jul 9, 2025 – Jul 16, 2025

Subsystems (5)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

v3 cover hwmon: Add support for MPS mp2869,mp29502 chip

From: Wensheng Wang <[email protected]>

Add mp2869,mp29502 driver in hwmon and add dt-bindings for them.

V2 -> V3:
merge patches for MP29502 and MP2869

V1 -> V2:
add Rob's Acked-by

Wensheng Wang (2):
dt-bindings: hwmon: Add MPS mp2869 series and mp29502
hwmon: add MP2869 series and MP29502 driver

 .../devicetree/bindings/trivial-devices.yaml  |  10 +
 Documentation/hwmon/index.rst                 |   2 +
 Documentation/hwmon/mp2869.rst                | 175 +++++
 Documentation/hwmon/mp29502.rst               |  93 +++
 MAINTAINERS                                   |   9 +
 drivers/hwmon/pmbus/Kconfig                   |  18 +
 drivers/hwmon/pmbus/Makefile                  |   2 +
 drivers/hwmon/pmbus/mp2869.c                  | 711 ++++++++++++++++++
 drivers/hwmon/pmbus/mp29502.c                 | 670 +++++++++++++++++
 9 files changed, 1690 insertions(+)
 create mode 100644 Documentation/hwmon/mp2869.rst
 create mode 100644 Documentation/hwmon/mp29502.rst
 create mode 100644 drivers/hwmon/pmbus/mp2869.c
 create mode 100644 drivers/hwmon/pmbus/mp29502.c
Signature · 1 line
2.25.1
author maintainer
#1 lore raw

PATCH v3 1/2 dt-bindings: hwmon: Add MPS mp2869 series and mp29502

From: Wensheng Wang <[email protected]>

Add support for MPS mp2869 series and mp29502 controller

---
V2 -> V3:
merge patches for MP29502 and MP2869

V1 -> V2:
add Rob's Acked-by

 Documentation/devicetree/bindings/trivial-devices.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +10 -0
index 27930708ccd5..2066696ecff4 100644
@@ -285,10 +285,20 @@ properties:
           - mps,mp2856
             # Monolithic Power Systems Inc. multi-phase controller mp2857
           - mps,mp2857
+            # Monolithic Power Systems Inc. multi-phase controller mp2869
+          - mps,mp2869
             # Monolithic Power Systems Inc. multi-phase controller mp2888
           - mps,mp2888
             # Monolithic Power Systems Inc. multi-phase controller mp2891
           - mps,mp2891
+            # Monolithic Power Systems Inc. multi-phase controller mp29502
+          - mps,mp29502
+            # Monolithic Power Systems Inc. multi-phase controller mp29608
+          - mps,mp29608
+            # Monolithic Power Systems Inc. multi-phase controller mp29612
+          - mps,mp29612
+            # Monolithic Power Systems Inc. multi-phase controller mp29816
+          - mps,mp29816
             # Monolithic Power Systems Inc. multi-phase controller mp2993
           - mps,mp2993
             # Monolithic Power Systems Inc. multi-phase hot-swap controller mp5920
Signature · 1 line
2.25.1
author maintainer
#2 lore raw

PATCH v3 2/2 hwmon: add MP2869 series and MP29502 driver

From: Wensheng Wang <[email protected]>

Add support for MPS VR mp2869 series and mp29502 controller. The driver exposes telemetry and limit value readings and writtings.

---
V2 -> V3:
merge patches for MP29502 and MP2869

V1 -> V2:
add Rob's Acked-by

 Documentation/hwmon/index.rst   |   2 +
 Documentation/hwmon/mp2869.rst  | 175 ++++++++
 Documentation/hwmon/mp29502.rst |  93 +++++
 MAINTAINERS                     |   9 +
 drivers/hwmon/pmbus/Kconfig     |  18 +
 drivers/hwmon/pmbus/Makefile    |   2 +
 drivers/hwmon/pmbus/mp2869.c    | 711 ++++++++++++++++++++++++++++++++
 drivers/hwmon/pmbus/mp29502.c   | 670 ++++++++++++++++++++++++++++++
 8 files changed, 1680 insertions(+)
 create mode 100644 Documentation/hwmon/mp2869.rst
 create mode 100644 Documentation/hwmon/mp29502.rst
 create mode 100644 drivers/hwmon/pmbus/mp2869.c
 create mode 100644 drivers/hwmon/pmbus/mp29502.c
Documentation/hwmon/index.rst +2 -0
index b45bfb4ebf30..ebc5c92e50b0 100644
@@ -172,8 +172,10 @@ Hardware Monitoring Kernel Drivers
    menf21bmc
    mlxreg-fan
    mp2856
+   mp2869
    mp2888
    mp2891
+   mp29502
    mp2975
    mp2993
    mp5023
Documentation/hwmon/mp2869.rst new file +175 -0

175 lines not on this page · raw message

Documentation/hwmon/mp29502.rst new file +93 -0

93 lines not on this page · raw message

MAINTAINERS +9 -0
index 240793fbe64b..b4377f0eb3a1 100644
@@ -16839,6 +16839,15 @@ F:	scripts/module*
 F:	tools/testing/selftests/kmod/
 F:	tools/testing/selftests/module/
 
+MONOLITHIC POWER SYSTEM MULTI-PHASE CONTROLLER DRIVER
+M:	Wensheng Wang <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/hwmon/mp2869.rst
+F:	Documentation/hwmon/mp29502.rst
+F:	drivers/hwmon/pmbus/mp2869.c
+F:	drivers/hwmon/pmbus/mp29502.c
+
 MONOLITHIC POWER SYSTEM PMIC DRIVER
 M:	Saravanan Sekar <[email protected]>
 S:	Maintained
drivers/hwmon/pmbus/Kconfig +18 -0
index 441f984a859d..d0bdd1b5feb6 100644
@@ -364,6 +364,15 @@ config SENSORS_MP2856
 	  This driver can also be built as a module. If so, the module will
 	  be called mp2856.
 
+config SENSORS_MP2869
+	tristate "MPS MP2869"
+	help
+	  If you say yes here you get hardware monitoring support for MPS
+	  MP2869 Dual Loop Digital Multi-Phase Controller.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called mp2869.
+
 config SENSORS_MP2888
 	tristate "MPS MP2888"
 	help
@@ -382,6 +391,15 @@ config SENSORS_MP2891
       This driver can also be built as a module. If so, the module will
       be called mp2891.
 
+config SENSORS_MP29502
+	tristate "MPS MP29502"
+	help
+	  If you say yes here you get hardware monitoring support for MPS
+	  MP29502 Dual Loop Digital Multi-Phase Controller.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called mp29502.
+
 config SENSORS_MP2975
 	tristate "MPS MP2975"
 	help
drivers/hwmon/pmbus/Makefile +2 -0
index 29cd8a3317d2..4c5ff3f32c5e 100644
@@ -37,8 +37,10 @@ obj-$(CONFIG_SENSORS_MAX31785)	+= max31785.o
 obj-$(CONFIG_SENSORS_MAX34440)	+= max34440.o
 obj-$(CONFIG_SENSORS_MAX8688)	+= max8688.o
 obj-$(CONFIG_SENSORS_MP2856)	+= mp2856.o
+obj-$(CONFIG_SENSORS_MP2869)	+= mp2869.o
 obj-$(CONFIG_SENSORS_MP2888)	+= mp2888.o
 obj-$(CONFIG_SENSORS_MP2891)	+= mp2891.o
+obj-$(CONFIG_SENSORS_MP29502)	+= mp29502.o
 obj-$(CONFIG_SENSORS_MP2975)	+= mp2975.o
 obj-$(CONFIG_SENSORS_MP2993)	+= mp2993.o
 obj-$(CONFIG_SENSORS_MP5023)	+= mp5023.o
drivers/hwmon/pmbus/mp2869.c new file +711 -0

711 lines not on this page · raw message

drivers/hwmon/pmbus/mp29502.c new file +670 -0

670 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#3 lore raw

Re: [PATCH v3 2/2] hwmon: add MP2869 series and MP29502 driver

Quoted 403 lines · On 7/9/25 02:34, [email protected] wrote:

From: Wensheng Wang <[email protected]>

Add support for MPS VR mp2869 series and mp29502 controller. The driver exposes telemetry and limit value readings and writtings.

---
V2 -> V3:
merge patches for MP29502 and MP2869

V1 -> V2:
add Rob's Acked-by

  Documentation/hwmon/index.rst   |   2 +
  Documentation/hwmon/mp2869.rst  | 175 ++++++++
  Documentation/hwmon/mp29502.rst |  93 +++++
  MAINTAINERS                     |   9 +
  drivers/hwmon/pmbus/Kconfig     |  18 +
  drivers/hwmon/pmbus/Makefile    |   2 +
  drivers/hwmon/pmbus/mp2869.c    | 711 ++++++++++++++++++++++++++++++++
  drivers/hwmon/pmbus/mp29502.c   | 670 ++++++++++++++++++++++++++++++
  8 files changed, 1680 insertions(+)

create mode 100644 Documentation/hwmon/mp2869.rst create mode 100644 Documentation/hwmon/mp29502.rst create mode 100644 drivers/hwmon/pmbus/mp2869.c create mode 100644 drivers/hwmon/pmbus/mp29502.c

Documentation/hwmon/index.rst +2 -0
index b45bfb4ebf30..ebc5c92e50b0 100644
@@ -172,8 +172,10 @@ Hardware Monitoring Kernel Drivers
     menf21bmc
     mlxreg-fan
     mp2856
+   mp2869
     mp2888
     mp2891
+   mp29502
     mp2975
     mp2993
     mp5023
Documentation/hwmon/mp2869.rst new file +175 -0
new file mode 100644
index 000000000000..2d9d65fc86b6
@@ -0,0 +1,175 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Kernel driver mp2869
+====================
+
+Supported chips:
+
+  * MPS mp2869
+
+    Prefix: 'mp2869'
+
+  * MPS mp29608
+
+    Prefix: 'mp29608'
+
+  * MPS mp29612
+
+    Prefix: 'mp29612'
+
+  * MPS mp29816
+
+    Prefix: 'mp29816'
+
+Author:
+
+	Wensheng Wang <[email protected]>
+
+Description
+-----------
+
+This driver implements support for Monolithic Power Systems, Inc. (MPS)
+MP2869 Dual Loop Digital Multi-phase Controller.
+
+Device compliant with:
+
+- PMBus rev 1.3 interface.
+
+The driver exports the following attributes via the 'sysfs' files
+for input voltage:
+
+**in1_input**
+
+**in1_label**
+
+**in1_crit**
+
+**in1_crit_alarm**
+
+**in1_lcrit**
+
+**in1_lcrit_alarm**
+
+**in1_min**
+
+**in1_min_alarm**
+
+The driver provides the following attributes for output voltage:
+
+**in2_input**
+
+**in2_label**
+
+**in2_crit**
+
+**in2_crit_alarm**
+
+**in2_lcrit**
+
+**in2_lcrit_alarm**
+
+**in3_input**
+
+**in3_label**
+
+**in3_crit**
+
+**in3_crit_alarm**
+
+**in3_lcrit**
+
+**in3_lcrit_alarm**
+
+The driver provides the following attributes for input current:
+
+**curr1_input**
+
+**curr1_label**
+
+**curr2_input**
+
+**curr2_label**
+
+The driver provides the following attributes for output current:
+
+**curr3_input**
+
+**curr3_label**
+
+**curr3_crit**
+
+**curr3_crit_alarm**
+
+**curr3_max**
+
+**curr3_max_alarm**
+
+**curr4_input**
+
+**curr4_label**
+
+**curr4_crit**
+
+**curr4_crit_alarm**
+
+**curr4_max**
+
+**curr4_max_alarm**
+
+The driver provides the following attributes for input power:
+
+**power1_input**
+
+**power1_label**
+
+**power2_input**
+
+**power2_label**
+
+The driver provides the following attributes for output power:
+
+**power3_input**
+
+**power3_label**
+
+**power3_input**
+
+**power3_label**
+
+**power3_max**
+
+**power3_max_alarm**
+
+**power4_input**
+
+**power4_label**
+
+**power4_input**
+
+**power4_label**
+
+**power4_max**
+
+**power4_max_alarm**
+
+The driver provides the following attributes for temperature:
+
+**temp1_input**
+
+**temp1_crit**
+
+**temp1_crit_alarm**
+
+**temp1_max**
+
+**temp1_max_alarm**
+
+**temp2_input**
+
+**temp2_crit**
+
+**temp2_crit_alarm**
+
+**temp2_max**
+
+**temp2_max_alarm**
Documentation/hwmon/mp29502.rst new file +93 -0
new file mode 100644
index 000000000000..7743056f0aa6
@@ -0,0 +1,93 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Kernel driver mp29502
+====================
+
+Supported chips:
+
+  * MPS mp29502
+
+    Prefix: 'mp29502'
+
+Author:
+
+	Wensheng Wang <[email protected]>
+
+Description
+-----------
+
+This driver implements support for Monolithic Power Systems, Inc. (MPS)
+MP29502 Digital Multi-phase Controller.
+
+Device compliant with:
+
+- PMBus rev 1.3 interface.
+
+The driver exports the following attributes via the 'sysfs' files
+for input voltage:
+
+**in1_input**
+
+**in1_label**
+
+**in1_crit**
+
+**in1_crit_alarm**
+
+The driver provides the following attributes for output voltage:
+
+**in2_input**
+
+**in2_label**
+
+**in2_crit**
+
+**in2_crit_alarm**
+
+**in2_lcrit**
+
+**in2_lcrit_alarm**
+
+The driver provides the following attributes for input current:
+
+**curr1_input**
+
+**curr1_label**
+
+The driver provides the following attributes for output current:
+
+**curr2_input**
+
+**curr2_label**
+
+**curr2_crit**
+
+**curr2_crit_alarm**
+
+**curr2_max**
+
+**curr2_max_alarm**
+
+The driver provides the following attributes for input power:
+
+**power1_input**
+
+**power1_label**
+
+The driver provides the following attributes for output power:
+
+**power2_input**
+
+**power2_label**
+
+The driver provides the following attributes for temperature:
+
+**temp1_input**
+
+**temp1_crit**
+
+**temp1_crit_alarm**
+
+**temp1_max**
+
+**temp1_max_alarm**
MAINTAINERS +9 -0
index 240793fbe64b..b4377f0eb3a1 100644
@@ -16839,6 +16839,15 @@ F:	scripts/module*
  F:	tools/testing/selftests/kmod/
  F:	tools/testing/selftests/module/
 
+MONOLITHIC POWER SYSTEM MULTI-PHASE CONTROLLER DRIVER
+M:	Wensheng Wang <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/hwmon/mp2869.rst
+F:	Documentation/hwmon/mp29502.rst
+F:	drivers/hwmon/pmbus/mp2869.c
+F:	drivers/hwmon/pmbus/mp29502.c
+
  MONOLITHIC POWER SYSTEM PMIC DRIVER
  M:	Saravanan Sekar <[email protected]>
  S:	Maintained
drivers/hwmon/pmbus/Kconfig +18 -0
index 441f984a859d..d0bdd1b5feb6 100644
@@ -364,6 +364,15 @@ config SENSORS_MP2856
  	  This driver can also be built as a module. If so, the module will
  	  be called mp2856.
 
+config SENSORS_MP2869
+	tristate "MPS MP2869"
+	help
+	  If you say yes here you get hardware monitoring support for MPS
+	  MP2869 Dual Loop Digital Multi-Phase Controller.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called mp2869.
+
  config SENSORS_MP2888
  	tristate "MPS MP2888"
  	help
@@ -382,6 +391,15 @@ config SENSORS_MP2891
        This driver can also be built as a module. If so, the module will
        be called mp2891.
 
+config SENSORS_MP29502
+	tristate "MPS MP29502"
+	help
+	  If you say yes here you get hardware monitoring support for MPS
+	  MP29502 Dual Loop Digital Multi-Phase Controller.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called mp29502.
+
  config SENSORS_MP2975
  	tristate "MPS MP2975"
  	help
drivers/hwmon/pmbus/Makefile +2 -0
index 29cd8a3317d2..4c5ff3f32c5e 100644
@@ -37,8 +37,10 @@ obj-$(CONFIG_SENSORS_MAX31785)	+= max31785.o
  obj-$(CONFIG_SENSORS_MAX34440)	+= max34440.o
  obj-$(CONFIG_SENSORS_MAX8688)	+= max8688.o
  obj-$(CONFIG_SENSORS_MP2856)	+= mp2856.o
+obj-$(CONFIG_SENSORS_MP2869)	+= mp2869.o
  obj-$(CONFIG_SENSORS_MP2888)	+= mp2888.o
  obj-$(CONFIG_SENSORS_MP2891)	+= mp2891.o
+obj-$(CONFIG_SENSORS_MP29502)	+= mp29502.o
  obj-$(CONFIG_SENSORS_MP2975)	+= mp2975.o
  obj-$(CONFIG_SENSORS_MP2993)	+= mp2993.o
  obj-$(CONFIG_SENSORS_MP5023)	+= mp5023.o
drivers/hwmon/pmbus/mp2869.c new file +4 -0
new file mode 100644
index 000000000000..af233ffd5230
@@ -0,0 +1,711 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers(MP2869)
+ */

drivers/hwmon/pmbus/mp2869.c line 14

Quoted 10 lines
drivers/hwmon/pmbus/mp2869.c new file +10 -0
+
+#include <linux/bitfield.h>
+#include <linux/i2c.h>
+#include <linux/module.h>
+#include <linux/of_device.h>
+#include "pmbus.h"
+
+#define MFR_READ_PIN_EST	0x94
+#define MFR_READ_IIN_EST	0x95
+#define MFR_VOUT_SCALE_LOOP	0x29

This is a standard register.

drivers/hwmon/pmbus/mp2869.c line 16

Quoted 2 lines
drivers/hwmon/pmbus/mp2869.c new file +2 -0
+#define MFR_SVI3_IOUT_PRT	0x67
+#define STATUS_MFR_SPECIFIC	0x80

This is a standard register.

Guenter

maintainer
#4 lore raw
In reply to [email protected]
Quoted 6 lines · On 7/9/25 02:27, [email protected] wrote:

From: Wensheng Wang <[email protected]>

Add mp2869,mp29502 driver in hwmon and add dt-bindings for them.

V2 -> V3:
merge patches for MP29502 and MP2869

Why ? It only makes review more difficult.

Either case, I now have submissions for two drivers supporting MP2869 (or MP2869). One of them also supports MP29612A. That needs to be consolidated, and I guess I'll need to spend a lot of time trying to figure out if separate drivers for all those chips are really needed. That is going to take a while.

Guenter

Quoted 23 lines

V1 -> V2:
add Rob's Acked-by

Wensheng Wang (2):
dt-bindings: hwmon: Add MPS mp2869 series and mp29502
hwmon: add MP2869 series and MP29502 driver

  .../devicetree/bindings/trivial-devices.yaml  |  10 +
  Documentation/hwmon/index.rst                 |   2 +
  Documentation/hwmon/mp2869.rst                | 175 +++++
  Documentation/hwmon/mp29502.rst               |  93 +++
  MAINTAINERS                                   |   9 +
  drivers/hwmon/pmbus/Kconfig                   |  18 +
  drivers/hwmon/pmbus/Makefile                  |   2 +
  drivers/hwmon/pmbus/mp2869.c                  | 711 ++++++++++++++++++
  drivers/hwmon/pmbus/mp29502.c                 | 670 +++++++++++++++++
  9 files changed, 1690 insertions(+)

create mode 100644 Documentation/hwmon/mp2869.rst create mode 100644 Documentation/hwmon/mp29502.rst create mode 100644 drivers/hwmon/pmbus/mp2869.c create mode 100644 drivers/hwmon/pmbus/mp29502.c