Skip to contentSkip to conversation

hwmon: (pmbus) Driver for Maxim MAX16601

PATCH In review Guenter Roeck 2 participants 2 messages May 9, 2020 – May 10, 2020

Subsystems (2)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH v2 1/1 hwmon: (pmbus) Driver for Maxim MAX16601

MAX16601 is a VR13.HC Dual-Output Voltage Regulator Chipset, implementing a (8+1) multiphase synchronous buck converter.

---
v2: Reordered local defines to be in ascending order

 Documentation/hwmon/index.rst    |   1 +
 Documentation/hwmon/max16601.rst | 159 ++++++++++++++++
 drivers/hwmon/pmbus/Kconfig      |   9 +
 drivers/hwmon/pmbus/Makefile     |   1 +
 drivers/hwmon/pmbus/max16601.c   | 314 +++++++++++++++++++++++++++++++
 5 files changed, 484 insertions(+)
 create mode 100644 Documentation/hwmon/max16601.rst
 create mode 100644 drivers/hwmon/pmbus/max16601.c
Documentation/hwmon/index.rst +1 -0
index 8ef62fd39787..df87ae15a1d4 100644
@@ -106,6 +106,7 @@ Hardware Monitoring Kernel Drivers
    max16064
    max16065
    max1619
+   max16601
    max1668
    max197
    max20730
Documentation/hwmon/max16601.rst new file +159 -0

159 lines not on this page · raw message

drivers/hwmon/pmbus/Kconfig +9 -0
index de12a565006d..a337195b1c39 100644
@@ -146,6 +146,15 @@ config SENSORS_MAX16064
 	  This driver can also be built as a module. If so, the module will
 	  be called max16064.
 
+config SENSORS_MAX16601
+	tristate "Maxim MAX16601"
+	help
+	  If you say yes here you get hardware monitoring support for Maxim
+	  MAX16601.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called max16601.
+
 config SENSORS_MAX20730
 	tristate "Maxim MAX20730, MAX20734, MAX20743"
 	help
drivers/hwmon/pmbus/Makefile +1 -0
index 5feb45806123..c4b15db996ad 100644
@@ -17,6 +17,7 @@ obj-$(CONFIG_SENSORS_LM25066)	+= lm25066.o
 obj-$(CONFIG_SENSORS_LTC2978)	+= ltc2978.o
 obj-$(CONFIG_SENSORS_LTC3815)	+= ltc3815.o
 obj-$(CONFIG_SENSORS_MAX16064)	+= max16064.o
+obj-$(CONFIG_SENSORS_MAX16601)	+= max16601.o
 obj-$(CONFIG_SENSORS_MAX20730)	+= max20730.o
 obj-$(CONFIG_SENSORS_MAX20751)	+= max20751.o
 obj-$(CONFIG_SENSORS_MAX31785)	+= max31785.o
drivers/hwmon/pmbus/max16601.c new file +314 -0

314 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

Hi Guenter,

drivers/hwmon/pmbus/max16601.c line 41

Quoted 8 lines · Guenter Roeck
drivers/hwmon/pmbus/max16601.c new file +8 -0
+#define REG_SETPT_DVID         0xd1
+#define  DAC_10MV_MODE         BIT(4)
+#define REG_IOUT_AVG_PK                0xee
+#define REG_IIN_SENSOR         0xf1
+#define REG_TOTAL_INPUT_POWER  0xf2
+#define REG_PHASE_ID           0xf3
+#define  CORE_RAIL_INDICATOR   BIT(7)
+#define REG_PHASE_REPORTING    0xf4

LGTM. Thank you very much!