Commit dc5abc2f authored by Noah Wang's avatar Noah Wang Committed by Guenter Roeck
Browse files

hwmon: add MP9941 driver



Add support for MPS step-down converter mp9941. This driver exposes
telemetry and limit value readings and writtings.

Signed-off-by: default avatarNoah Wang <noahwang.wang@outlook.com>
Link: https://lore.kernel.org/r/SEYPR04MB648294005D55F70736B519F6FAC72@SEYPR04MB6482.apcprd04.prod.outlook.com


[groeck: Include bitfield.h (for FIELD_PREP) and bits.h (for GENMASK)]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 512554f6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ Hardware Monitoring Kernel Drivers
   mp2993
   mp5023
   mp5990
   mp9941
   mpq8785
   nct6683
   nct6775
+92 −0
Original line number Diff line number Diff line
.. SPDX-License-Identifier: GPL-2.0

Kernel driver mp9941
====================

Supported chips:

  * MPS mp9941

    Prefix: 'mp9941'

  * Datasheet
    https://scnbwymvp-my.sharepoint.com/:f:/g/personal/admin_scnbwy_com/Eth4kX1_J1hMsaASHiOYL4QBHU5a75r-tRfLKbHnJFdKLQ?e=vxj3DF

Author:

	Noah Wang <noahwang.wang@outlook.com>

Description
-----------

This driver implements support for Monolithic Power Systems, Inc. (MPS)
MP9941 digital step-down converter.

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_lcrit**

**in2_lcrit_alarm**

**in2_rated_max**

**in2_rated_min**

The driver provides the following attributes for input current:

**curr1_input**

**curr1_label**

**curr1_max**

**curr1_max_alarm**

The driver provides the following attributes for output current:

**curr2_input**

**curr2_label**

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**
+7 −0
Original line number Diff line number Diff line
@@ -15265,6 +15265,13 @@ S: Maintained
F:	Documentation/hwmon/mp2993.rst
F:	drivers/hwmon/pmbus/mp2993.c
MPS MP9941 DRIVER
M:	Noah Wang <noahwang.wang@outlook.com>
L:	linux-hwmon@vger.kernel.org
S:	Maintained
F:	Documentation/hwmon/mp9941.rst
F:	drivers/hwmon/pmbus/mp9941.c
MR800 AVERMEDIA USB FM RADIO DRIVER
M:	Alexey Klimov <klimov.linux@gmail.com>
L:	linux-media@vger.kernel.org
+9 −0
Original line number Diff line number Diff line
@@ -380,6 +380,15 @@ config SENSORS_MP5990
	  This driver can also be built as a module. If so, the module will
	  be called mp5990.

config SENSORS_MP9941
	tristate "MPS MP9941"
	help
	  If you say yes here you get hardware monitoring support for MPS
	  MP9941.

	  This driver can also be built as a module. If so, the module will
	  be called mp9941.

config SENSORS_MPQ7932_REGULATOR
	bool "Regulator support for MPQ7932"
	depends on SENSORS_MPQ7932 && REGULATOR
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ obj-$(CONFIG_SENSORS_MP2975) += mp2975.o
obj-$(CONFIG_SENSORS_MP2993)	+= mp2993.o
obj-$(CONFIG_SENSORS_MP5023)	+= mp5023.o
obj-$(CONFIG_SENSORS_MP5990)	+= mp5990.o
obj-$(CONFIG_SENSORS_MP9941)	+= mp9941.o
obj-$(CONFIG_SENSORS_MPQ7932)	+= mpq7932.o
obj-$(CONFIG_SENSORS_MPQ8785)	+= mpq8785.o
obj-$(CONFIG_SENSORS_PLI1209BC)	+= pli1209bc.o
Loading