Add support for MAX17616/MAX17616A hwmon device
Subsystems (4)
Kim Seer Paller
maintainercover Add support for MAX17616/MAX17616A hwmon device
The MAX17616/MAX17616A is a current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface. The PMBus interface allows monitoring of input/output voltages, output current and temperature.
More info: https://www.analog.com/media/en/technical-documentation/data-sheets/max17616-max17616a.pdf
---
Kim Seer Paller (2):
dt-bindings: hwmon: pmbus: add max17616
hwmon: (pmbus/max17616): add driver for max17616
.../bindings/hwmon/pmbus/adi,max17616.yaml | 48 ++++++++++++++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max17616.rst | 62 ++++++++++++++++++ MAINTAINERS | 9 +++ drivers/hwmon/pmbus/Kconfig | 9 +++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/max17616.c | 73 ++++++++++++++++++++++ 7 files changed, 203 insertions(+)
---
base-commit: 76bb6969a8cfc5e00ca142fdad86ffd0a6ed9ecd
change-id: 20250930-upstream-max17616-cd10988eb77a
Best regards,
Signature · 1 line
Kim Seer Paller <[email protected]>
Kim Seer Paller
maintainerPATCH 1/2 dt-bindings: hwmon: pmbus: add max17616
Add device tree documentation for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface.
--- .../bindings/hwmon/pmbus/adi,max17616.yaml | 48 ++++++++++++++++++++++ MAINTAINERS | 7 ++++ 2 files changed, 55 insertions(+)
Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml new file +48 -0
@@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/pmbus/adi,max17616.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX17616/MAX17616A Current-Limiter with PMBus Interface + +maintainers: + - Kim Seer Paller <[email protected]> + +description: | + The MAX17616/MAX17616A is a 3V to 80V, 7A current-limiter with overvoltage, + surge, undervoltage, reverse polarity, and loss of ground protection. It allows + monitoring of input/output voltage, output current and temperature through the + PMBus serial interface. + Datasheet: + https://www.analog.com/en/products/max17616.html + +properties: + compatible: + const: adi,max17616 + + reg: + maxItems: 1 + + vcc-supply: true + +required: + - compatible + - reg + - vcc-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hwmon@16 { + compatible = "adi,max17616"; + reg = <0x16>; + vcc-supply = <&vcc>; + }; + }; +...
MAINTAINERS +7 -0
@@ -14917,6 +14917,13 @@ S: Maintained F: Documentation/hwmon/max15301.rst F: drivers/hwmon/pmbus/max15301.c +MAX17616 HARDWARE MONITOR DRIVER +M: Kim Seer Paller <[email protected]> +L: [email protected] +S: Supported +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml + MAX2175 SDR TUNER DRIVER M: Ramesh Shanmugasundaram <[email protected]> L: [email protected]
Signature · 1 line
2.34.1
Re: [PATCH 1/2] dt-bindings: hwmon: pmbus: add max17616
Re: [PATCH 1/2] dt-bindings: hwmon: pmbus: add max17616
In reply to Kim Seer PallerQuoted 6 lines · Kim Seer Paller
Add device tree documentation for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface.
Signed-off-by Kim Seer Paller <[email protected]>Acked-by Conor Dooley <[email protected]>
Applied to hwmon-next.
Thanks,
Guenter
Re: [PATCH 1/2] dt-bindings: hwmon: pmbus: add max17616
In reply to Kim Seer PallerHi Kim,
For completeness, the dt doc could also have the SMBALERT interrupt. Though, I see the patch has been accepted and I don't want to make upstreaming take longer than needed. Maybe the comment below can be taken as follow up patch suggestion. Though, if you end up doing a v2 for any reason, you can add my review tag.
Quoted 8 lines · Kim Seer Paller
Add device tree documentation for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface.
Signed-off-by Kim Seer Paller <[email protected]>--- .../bindings/hwmon/pmbus/adi,max17616.yaml | 48 ++++++++++++++++++++++ MAINTAINERS | 7 ++++
...
Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml line 27
Quoted 8 lines
Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml new file +8
-0+properties: + compatible: + const: adi,max17616 + + reg: + maxItems: 1 + + vcc-supply: true
interrupts:
description: Fault condition signal provided on SMBALERT pin.
maxItems: 1
Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml line 33
Quoted 6 lines
Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml new file +6
-0+ +required: + - compatible + - reg + - vcc-supply +
Best regards,
Marcelo
Kim Seer Paller
maintainerPATCH 2/2 hwmon: (pmbus/max17616): add driver for max17616
In reply to Kim Seer PallerAdd support for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface. The PMBus interface allows monitoring of input/output voltages, output current and temperature.
--- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max17616.rst | 62 ++++++++++++++++++++++++++++++++++ MAINTAINERS | 2 ++ drivers/hwmon/pmbus/Kconfig | 9 +++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/max17616.c | 73 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 148 insertions(+)
Documentation/hwmon/index.rst +1 -0
@@ -151,6 +151,7 @@ Hardware Monitoring Kernel Drivers max1619 max16601 max1668 + max17616 max197 max20730 max20751
Documentation/hwmon/max17616.rst new file +62 -0
62 lines not on this page · raw message
MAINTAINERS +2 -0
@@ -14923,6 +14923,8 @@ L: [email protected] S: Supported W: https://ez.analog.com/linux-software-drivers F: Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml +F: Documentation/hwmon/max17616.rst +F: drivers/hwmon/pmbus/max17616.c MAX2175 SDR TUNER DRIVER M: Ramesh Shanmugasundaram <[email protected]>
drivers/hwmon/pmbus/Kconfig +9 -0
@@ -320,6 +320,15 @@ config SENSORS_MAX16601 This driver can also be built as a module. If so, the module will be called max16601. +config SENSORS_MAX17616 + tristate "Analog Devices MAX17616/MAX17616A" + help + If you say yes here you get hardware monitoring support for Analog + Devices MAX17616/MAX17616A. + + This driver can also be built as a module. If so, the module will + be called max17616. + config SENSORS_MAX20730 tristate "Maxim MAX20710, MAX20730, MAX20734, MAX20743" help
drivers/hwmon/pmbus/Makefile +1 -0
@@ -31,6 +31,7 @@ obj-$(CONFIG_SENSORS_LTC4286) += ltc4286.o obj-$(CONFIG_SENSORS_MAX15301) += max15301.o obj-$(CONFIG_SENSORS_MAX16064) += max16064.o obj-$(CONFIG_SENSORS_MAX16601) += max16601.o +obj-$(CONFIG_SENSORS_MAX17616) += max17616.o obj-$(CONFIG_SENSORS_MAX20730) += max20730.o obj-$(CONFIG_SENSORS_MAX20751) += max20751.o obj-$(CONFIG_SENSORS_MAX31785) += max31785.o
drivers/hwmon/pmbus/max17616.c new file +73 -0
73 lines not on this page · raw message
Signature · 1 line
2.34.1
Guenter Roeck
maintainerRe: [PATCH 2/2] hwmon: (pmbus/max17616): add driver for max17616
Quoted 6 lines · Kim Seer Paller
Add support for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface. The PMBus interface allows monitoring of input/output voltages, output current and temperature.
Signed-off-by Kim Seer Paller <[email protected]>
I am a bit concerned about VOUT_UV_FAULT_LIMIT which is completely non-standard. Did you check with real hardware that in2_lcrit is not instantiated ?
Thanks,
Guenter
Quoted 214 lines
--- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max17616.rst | 62 ++++++++++++++++++++++++++++++++++ MAINTAINERS | 2 ++ drivers/hwmon/pmbus/Kconfig | 9 +++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/max17616.c | 73 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 148 insertions(+)Documentation/hwmon/index.rst +1
-0@@ -151,6 +151,7 @@ Hardware Monitoring Kernel Drivers max1619 max16601 max1668 + max17616 max197 max20730 max20751Documentation/hwmon/max17616.rst new file +62
-0@@ -0,0 +1,62 @@ +.. SPDX-License-Identifier: GPL-2.0 + +Kernel driver max17616 +==================== + +Supported chips: + + * Analog Devices MAX17616/MAX17616A + + Prefix: 'max17616' + + Addresses scanned: - + + Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max17616-max17616a.pdf + +Author: + + - Kim Seer Paller <[email protected]> + + +Description +----------- + +This driver supports hardware monitoring for Analog Devices MAX17616/MAX17616A +Current-Limiter with OV/Surge, UV, Reverse Polarity, Loss of Ground Protection +with PMBus Interface. + +The MAX17616/MAX17616A is a 3V to 80V, 7A current-limiter with overvoltage, +surge, undervoltage, reverse polarity, and loss of ground protection. Through +the PMBus interface, the device can monitor input/output voltages, output current +and temperature. + +The driver is a client driver to the core PMBus driver. Please see +Documentation/hwmon/pmbus.rst for details on PMBus client drivers. + +Usage Notes +----------- + +This driver does not auto-detect devices. You will have to instantiate +the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst +for details. + +Platform data support +--------------------- + +The driver supports standard PMBus driver platform data. + +Sysfs entries +------------- + +================= ======================================== +in1_label "vin" +in1_input Measured input voltage +in1_alarm Input voltage alarm +in2_label "vout1" +in2_input Measured output voltage +curr1_label "iout1" +curr1_input Measured output current. +curr1_alarm Output current alarm +temp1_input Measured temperature +temp1_alarm Chip temperature alarm +================= ========================================MAINTAINERS +2
-0@@ -14923,6 +14923,8 @@ L: [email protected] S: Supported W: https://ez.analog.com/linux-software-drivers F: Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml +F: Documentation/hwmon/max17616.rst +F: drivers/hwmon/pmbus/max17616.c MAX2175 SDR TUNER DRIVER M: Ramesh Shanmugasundaram <[email protected]>drivers/hwmon/pmbus/Kconfig +9
-0@@ -320,6 +320,15 @@ config SENSORS_MAX16601 This driver can also be built as a module. If so, the module will be called max16601. +config SENSORS_MAX17616 + tristate "Analog Devices MAX17616/MAX17616A" + help + If you say yes here you get hardware monitoring support for Analog + Devices MAX17616/MAX17616A. + + This driver can also be built as a module. If so, the module will + be called max17616. + config SENSORS_MAX20730 tristate "Maxim MAX20710, MAX20730, MAX20734, MAX20743" helpdrivers/hwmon/pmbus/Makefile +1
-0@@ -31,6 +31,7 @@ obj-$(CONFIG_SENSORS_LTC4286) += ltc4286.o obj-$(CONFIG_SENSORS_MAX15301) += max15301.o obj-$(CONFIG_SENSORS_MAX16064) += max16064.o obj-$(CONFIG_SENSORS_MAX16601) += max16601.o +obj-$(CONFIG_SENSORS_MAX17616) += max17616.o obj-$(CONFIG_SENSORS_MAX20730) += max20730.o obj-$(CONFIG_SENSORS_MAX20751) += max20751.o obj-$(CONFIG_SENSORS_MAX31785) += max31785.odrivers/hwmon/pmbus/max17616.c new file +73
-0@@ -0,0 +1,73 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Hardware monitoring driver for Analog Devices MAX17616/MAX17616A +* +* Copyright (C) 2025 Analog Devices, Inc. +*/ + +#include <linux/err.h> +#include <linux/i2c.h> +#include <linux/mod_devicetable.h> +#include <linux/module.h> + +#include "pmbus.h" + +static struct pmbus_driver_info max17616_info = { + .pages =1 , + .format[PSC_VOLTAGE_IN ] = direct, + .m[PSC_VOLTAGE_IN ] =512 , + .b[PSC_VOLTAGE_IN ] =-18 , + .R[PSC_VOLTAGE_IN ] =-1 , + + .format[PSC_VOLTAGE_OUT ] = direct, + .m[PSC_VOLTAGE_OUT ] =512 , + .b[PSC_VOLTAGE_OUT ] =-18 , + .R[PSC_VOLTAGE_OUT ] =-1 , + + .format[PSC_CURRENT_OUT ] = direct, + .m[PSC_CURRENT_OUT ] =5845 , + .b[PSC_CURRENT_OUT ] =80 , + .R[PSC_CURRENT_OUT ] =-1 , + + .format[PSC_TEMPERATURE ] = direct, + .m[PSC_TEMPERATURE ] =71 , + .b[PSC_TEMPERATURE ] =19653 , + .R[PSC_TEMPERATURE ] =-1 , + + .func[0 ] =PMBUS_HAVE_VIN |PMBUS_HAVE_VOUT |PMBUS_HAVE_IOUT | +PMBUS_HAVE_TEMP |PMBUS_HAVE_STATUS_VOUT | +PMBUS_HAVE_STATUS_IOUT |PMBUS_HAVE_STATUS_INPUT | +PMBUS_HAVE_STATUS_TEMP , +}; + +static int max17616_probe (struct i2c_client *client) +{ +return pmbus_do_probe (client, &max17616_info); +} + +static const struct i2c_device_id max17616_id[] = { + {"max17616" }, + { } +}; +MODULE_DEVICE_TABLE (i2c, max17616_id); + +static const struct of_device_id max17616_of_match[] = { + { .compatible ="adi,max17616" }, + { } +}; +MODULE_DEVICE_TABLE (of, max17616_of_match); + +static struct i2c_driver max17616_driver = { + .driver = { + .name ="max17616" , + .of_match_table = max17616_of_match, + }, + .probe = max17616_probe, + .id_table = max17616_id, +}; +module_i2c_driver (max17616_driver); + +MODULE_AUTHOR ("Kim Seer Paller <[email protected]>" ); +MODULE_DESCRIPTION ("PMBus driver for Analog Devices MAX17616/MAX17616A" ); +MODULE_LICENSE ("GPL" ); +MODULE_IMPORT_NS ("PMBUS" );
Paller, Kim Seer
maintainerRE: [PATCH 2/2] hwmon: (pmbus/max17616): add driver for max17616
Quoted 19 lines
-----Original Message-----
From: Guenter Roeck <[email protected]> On Behalf Of Guenter Roeck
Sent: Tuesday, September 30, 2025 6:27 PM
To: Paller, Kim Seer <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Jonathan Corbet <[email protected]>
Cc: [email protected]; [email protected]; linux- [email protected]; [email protected]
Subject: Re: [PATCH 2/2] hwmon: (pmbus/max17616): add driver for max17616[External]
Quoted 5 lines · Kim Seer Paller
Add support for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface. The PMBus interface allows monitoring of input/output voltages, output current and temperature.
Quoted 5 lines
Quoted 1 line
Signed-off-by Kim Seer Paller <[email protected]>I am a bit concerned about
VOUT_UV_FAULT_LIMITwhich is completely non- standard.
Did you check with real hardware thatin2_lcritis not instantiated ?
Yes, checked on the hardware it is not instantiated.
Quoted 248 lines
Thanks,
GuenterQuoted 3 lines
--- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max17616.rst | 62++++++++++++++++++++++++++++++++++
Quoted 4 lines
MAINTAINERS | 2 ++ drivers/hwmon/pmbus/Kconfig | 9 +++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/max17616.c | 73++++++++++++++++++++++++++++++++++++++++
Quoted 5 lines
6 files changed, 148 insertions(+)(quoted diff) +0
-0
b/Documentation/hwmon/index.rstindex
51a5bdf75b08656ee6499c6b5c50a51fc4d7c210..62c5d10f16ae722dd2e6a4f8953aQuoted 14 lines
e24b5f541666100644Documentation/hwmon/index.rst +1
-0@@ -151,6 +151,7 @@ Hardware Monitoring Kernel Drivers max1619 max16601 max1668 + max17616 max197 max20730 max20751Documentation/hwmon/max17616.rst new file +0
-0Quoted 2 lines
index
0000000000000000000000000000000000000000..936447159f87a9c6b270b9 03c46b
MAINTAINERS index
Quoted 71 lines
43a90caddb23Documentation/hwmon/max17616.rst new file +65
-0@@ -0,0 +1,62 @@ +.. SPDX-License-Identifier: GPL-2.0 + +Kernel driver max17616 +==================== + +Supported chips: + + * Analog Devices MAX17616/MAX17616A + + Prefix: 'max17616' + + Addresses scanned: - + + Datasheet: + https://www.analog.com/media/en/technical-documentation/data-sheets/ + max17616-max17616a.pdf + +Author: + + - Kim Seer Paller <[email protected]> + + +Description +----------- + +This driver supports hardware monitoring for Analog Devices +MAX17616/MAX17616A Current-Limiter with OV/Surge, UV, Reverse +Polarity, Loss of Ground Protection with PMBus Interface. + +The MAX17616/MAX17616A is a 3V to 80V, 7A current-limiter with +overvoltage, surge, undervoltage, reverse polarity, and loss of +ground protection. Through the PMBus interface, the device can +monitor input/output voltages, output current and temperature. + +The driver is a client driver to the core PMBus driver. Please see +Documentation/hwmon/pmbus.rst for details on PMBus client drivers. + +Usage Notes +----------- + +This driver does not auto-detect devices. You will have to +instantiate the devices explicitly. Please see +Documentation/i2c/instantiating-devices.rst +for details. + +Platform data support +--------------------- + +The driver supports standard PMBus driver platform data. + +Sysfs entries +------------- + +================= ======================================== +in1_label "vin" +in1_input Measured input voltage +in1_alarm Input voltage alarm +in2_label "vout1" +in2_input Measured output voltage +curr1_label "iout1" +curr1_input Measured output current. +curr1_alarm Output current alarm +temp1_input Measured temperature +temp1_alarm Chip temperature alarm +================= ========================================MAINTAINERS index renamed from MAINTAINERS +0
-0
89d35faf93c9d2e984b73f5c09d09044ee6eddb2..267ab428260a29c38fa508190bdfMAINTAINERS L: [email protected] · line 14925
Quoted 7 lines
a2677bba58c8100644MAINTAINERS +0
-0@@ -14923,6 +14923,8 @@ L: [email protected] S: Supported W: https://ez.analog.com/linux-software-drivers F:
Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.ya
mlQuoted 8 lines
MAINTAINERS +2
-0+F: Documentation/hwmon/max17616.rst +F: drivers/hwmon/pmbus/max17616.c MAX2175 SDR TUNER DRIVER M: Ramesh Shanmugasundaram <[email protected]>drivers/hwmon/pmbus/Kconfig +0
-0index
da04ff6df28bd12909c9140662d6b932a150bd97..def5faad8fdf56eb31fe216322eaQuoted 20 lines
d57ee43a1ac5100644drivers/hwmon/pmbus/Kconfig +9
-0@@ -320,6 +320,15 @@ config SENSORS_MAX16601 This driver can also be built as a module. If so, the module will be called max16601. +config SENSORS_MAX17616 + tristate "Analog Devices MAX17616/MAX17616A" + help + If you say yes here you get hardware monitoring support for Analog + Devices MAX17616/MAX17616A. + + This driver can also be built as a module. If so, the module will + be called max17616. + config SENSORS_MAX20730 tristate "Maxim MAX20710, MAX20730, MAX20734, MAX20743" help(quoted diff) +0
-0Quoted 2 lines
b/drivers/hwmon/pmbus/Makefile index
4c5ff3f32c5ecbea069dce8af3e3e8365892b278..9cebe488fdf18b2aa164c0fc2ac7Quoted 12 lines
d1d8ffd2b970100644drivers/hwmon/pmbus/Makefile +1
-0@@ -31,6 +31,7 @@ obj-$(CONFIG_SENSORS_LTC4286) += ltc4286.o obj-$(CONFIG_SENSORS_MAX15301) += max15301.o obj-$(CONFIG_SENSORS_MAX16064) += max16064.o obj-$(CONFIG_SENSORS_MAX16601) += max16601.o +obj-$(CONFIG_SENSORS_MAX17616) += max17616.o obj-$(CONFIG_SENSORS_MAX20730) += max20730.o obj-$(CONFIG_SENSORS_MAX20751) += max20751.o obj-$(CONFIG_SENSORS_MAX31785) += max31785.o(quoted diff) +0
-0Quoted 2 lines
b/drivers/hwmon/pmbus/max17616.cnew file mode 100644 index0000000000000000000000000000000000000000..1d4a0ddb95bb6e8349932 062be0d
Quoted 31 lines
918f935cd846drivers/hwmon/pmbus/max17616.c new file +27
-0@@ -0,0 +1,73 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Hardware monitoring driver for Analog Devices MAX17616/MAX17616A +* +* Copyright (C) 2025 Analog Devices, Inc. +*/ + +#include <linux/err.h> +#include <linux/i2c.h> +#include <linux/mod_devicetable.h> +#include <linux/module.h> + +#include "pmbus.h" + +static struct pmbus_driver_info max17616_info = { + .pages =1 , + .format[PSC_VOLTAGE_IN ] = direct, + .m[PSC_VOLTAGE_IN ] =512 , + .b[PSC_VOLTAGE_IN ] =-18 , + .R[PSC_VOLTAGE_IN ] =-1 , + + .format[PSC_VOLTAGE_OUT ] = direct, + .m[PSC_VOLTAGE_OUT ] =512 , + .b[PSC_VOLTAGE_OUT ] =-18 , + .R[PSC_VOLTAGE_OUT ] =-1 , + + .format[PSC_CURRENT_OUT ] = direct,drivers/hwmon/pmbus/max17616.c line 37
Quoted 10 lines
drivers/hwmon/pmbus/max17616.c new file +10
-0+ .m[PSC_CURRENT_OUT] = 5845, + .b[PSC_CURRENT_OUT] = 80, + .R[PSC_CURRENT_OUT] = -1, + + .format[PSC_TEMPERATURE] = direct, + .m[PSC_TEMPERATURE] = 71, + .b[PSC_TEMPERATURE] = 19653, + .R[PSC_TEMPERATURE] = -1, + + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT |
PMBUS_HAVE_IOUT|drivers/hwmon/pmbus/max17616.c line 39
Quoted 2 lines
drivers/hwmon/pmbus/max17616.c new file +2
-0+PMBUS_HAVE_TEMP |PMBUS_HAVE_STATUS_VOUT | + PMBUS_HAVE_STATUS_IOUT |
PMBUS_HAVE_STATUS_INPUT|Quoted 33 lines
drivers/hwmon/pmbus/max17616.c new file +32
-0+ PMBUS_HAVE_STATUS_TEMP, +}; + +static int max17616_probe (struct i2c_client *client) { +return pmbus_do_probe (client, &max17616_info); } + +static const struct i2c_device_id max17616_id[] = { + {"max17616" }, + { } +}; +MODULE_DEVICE_TABLE (i2c, max17616_id); + +static const struct of_device_id max17616_of_match[] = { + { .compatible ="adi,max17616" }, + { } +}; +MODULE_DEVICE_TABLE (of, max17616_of_match); + +static struct i2c_driver max17616_driver = { + .driver = { + .name ="max17616" , + .of_match_table = max17616_of_match, + }, + .probe = max17616_probe, + .id_table = max17616_id, +}; +module_i2c_driver (max17616_driver); + +MODULE_AUTHOR ("Kim Seer Paller <[email protected]>" ); +MODULE_DESCRIPTION("PMBus driver for Analog Devices +MAX17616/MAX17616A"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("PMBUS");
Re: [PATCH 2/2] hwmon: (pmbus/max17616): add driver for max17616
In reply to Kim Seer PallerQuoted 6 lines · Kim Seer Paller
Add support for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface. The PMBus interface allows monitoring of input/output voltages, output current and temperature.
Signed-off-by Kim Seer Paller <[email protected]>
Applied to hwmon-next.
Thanks,
Guenter