* [PATCH 1/3] hwmon: (max20751): Add support for MAX20754
2026-12-01 18:38 [PATCH 0/3] hwmon: Add support for pmbus max20754 device Debjit Ghosh
@ 2026-12-01 18:38 ` Debjit Ghosh
2026-12-01 18:48 ` sashiko-bot
2026-12-01 18:38 ` [PATCH 2/3] hwmon: (max20751): Add OF device ID table Debjit Ghosh
` (2 subsequent siblings)
3 siblings, 1 reply; 9+ messages in thread
From: Debjit Ghosh @ 2026-12-01 18:38 UTC (permalink / raw)
To: linux, linux-hwmon
Cc: corbet, skhan, rdunlap, robh, krzk+dt, conor+dt, linux-doc,
devicetree, debjit.ghosh
From: Georgi Vlaev <gvlaev@juniper.net>
MAX20754 is a dual output, configurable multiphase power controller with
internal buck converter with PMBus(1.3).
Signed-off-by: Georgi Vlaev <gvlaev@juniper.net>
Signed-off-by: Debjit Ghosh <debjit.ghosh@hpe.com>
---
Documentation/hwmon/index.rst | 1 +
Documentation/hwmon/max20751.rst | 10 ++++++-
drivers/hwmon/pmbus/max20751.c | 50 ++++++++++++++++++++++----------
3 files changed, 45 insertions(+), 16 deletions(-)
diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
index ddfcd077d96e..f6b489260b30 100644
--- a/Documentation/hwmon/index.rst
+++ b/Documentation/hwmon/index.rst
@@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers
max17616
max20730
max20751
+ max20754
max20826
max20830
max20860a
diff --git a/Documentation/hwmon/max20751.rst b/Documentation/hwmon/max20751.rst
index f9febefce02d..8a72d16795e2 100644
--- a/Documentation/hwmon/max20751.rst
+++ b/Documentation/hwmon/max20751.rst
@@ -13,13 +13,21 @@ Supported chips:
Application note: https://pdfserv.maximintegrated.com/en/an/AN5941.pdf
+ * maxim MAX20754
+
+ Prefix: 'max20754'
+
+ Addresses scanned: -
+
+ Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX20754.pdf
+
Author: Guenter Roeck <linux@roeck-us.net>
Description
-----------
-This driver supports MAX20751 Multiphase Master with PMBus Interface
+This driver supports MAX20751 and MAX20754 Multiphase Master with PMBus Interface
and Internal Buck Converter.
The driver is a client driver to the core PMBus driver.
diff --git a/drivers/hwmon/pmbus/max20751.c b/drivers/hwmon/pmbus/max20751.c
index e85676433dca..92103ca5b575 100644
--- a/drivers/hwmon/pmbus/max20751.c
+++ b/drivers/hwmon/pmbus/max20751.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Hardware monitoring driver for Maxim MAX20751
+ * Hardware monitoring driver for Maxim MAX20751, MAX20754
*
* Copyright (c) 2015 Guenter Roeck
*/
@@ -12,27 +12,47 @@
#include <linux/i2c.h>
#include "pmbus.h"
-static struct pmbus_driver_info max20751_info = {
- .pages = 1,
- .format[PSC_VOLTAGE_IN] = linear,
- .format[PSC_VOLTAGE_OUT] = vid,
- .vrm_version[0] = vr12,
- .format[PSC_TEMPERATURE] = linear,
- .format[PSC_CURRENT_OUT] = linear,
- .format[PSC_POWER] = linear,
- .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
- PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
- PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
- PMBUS_HAVE_POUT,
+enum chips { max20751, max20754 };
+
+static struct pmbus_driver_info max20751_info[] = {
+ [max20751] = {
+ .pages = 1,
+ .format[PSC_VOLTAGE_IN] = linear,
+ .format[PSC_VOLTAGE_OUT] = vid,
+ .vrm_version[0] = vr12,
+ .format[PSC_TEMPERATURE] = linear,
+ .format[PSC_CURRENT_OUT] = linear,
+ .format[PSC_POWER] = linear,
+ .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT |
+ PMBUS_HAVE_STATUS_VOUT |
+ PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
+ PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
+ PMBUS_HAVE_POUT,
+ },
+ [max20754] = {
+ .pages = 1,
+ .format[PSC_VOLTAGE_IN] = linear,
+ .format[PSC_VOLTAGE_OUT] = linear,
+ .format[PSC_TEMPERATURE] = linear,
+ .format[PSC_CURRENT_OUT] = linear,
+ .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT |
+ PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
+ PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
+ PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
+ PMBUS_HAVE_TEMP2,
+ },
};
static int max20751_probe(struct i2c_client *client)
{
- return pmbus_do_probe(client, &max20751_info);
+ enum chips chip_id = (uintptr_t)i2c_get_match_data(client);
+
+ return pmbus_do_probe(client, &max20751_info[chip_id]);
}
static const struct i2c_device_id max20751_id[] = {
- { .name = "max20751" },
+ { .name = "max20751", .driver_data = max20751 },
+ { .name = "max20754", .driver_data = max20754 },
{ }
};
--
2.25.4
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 1/3] hwmon: (max20751): Add support for MAX20754
2026-12-01 18:38 ` [PATCH 1/3] hwmon: (max20751): Add support for MAX20754 Debjit Ghosh
@ 2026-12-01 18:48 ` sashiko-bot
2026-12-01 23:07 ` Guenter Roeck
0 siblings, 1 reply; 9+ messages in thread
From: sashiko-bot @ 2026-12-01 18:48 UTC (permalink / raw)
To: Debjit Ghosh, linux-hwmon; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] docs: hwmon: broken max20754 toctree entry in
Documentation/hwmon/index.rst
- [Low] hwmon: (max20751) Kconfig and sysfs doc not updated for MAX20754
--
commit f8c1a12d192b45df3e5f2a2b4fe1c6ed4c75f02e
Author: Georgi Vlaev <gvlaev@juniper.net>
hwmon: (max20751): Add support for MAX20754
This commit adds support and documentation for the Maxim MAX20754 PMBus power
controller to the max20751 driver.
> diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
> index ddfcd077d96e7..f6b489260b30c 100644
> --- a/Documentation/hwmon/index.rst
> +++ b/Documentation/hwmon/index.rst
> @@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers
> max17616
> max20730
> max20751
> + max20754
> max20826
> max20830
> max20860a
[Severity: Low]
Does adding max20754 to the toctree in Documentation/hwmon/index.rst break
make htmldocs? MAX20754 is documented in Documentation/hwmon/max20751.rst
rather than in a separate Documentation/hwmon/max20754.rst file.
[ ... ]
> diff --git a/drivers/hwmon/pmbus/max20751.c b/drivers/hwmon/pmbus/max20751.c
> index e85676433dca1..92103ca5b5758 100644
> --- a/drivers/hwmon/pmbus/max20751.c
> +++ b/drivers/hwmon/pmbus/max20751.c
> @@ -1,6 +1,6 @@
> // SPDX-License-Identifier: GPL-2.0-or-later
> /*
> - * Hardware monitoring driver for Maxim MAX20751
> + * Hardware monitoring driver for Maxim MAX20751, MAX20754
> *
> * Copyright (c) 2015 Guenter Roeck
> */
> @@ -12,27 +12,47 @@
> #include <linux/i2c.h>
> #include "pmbus.h"
>
> -static struct pmbus_driver_info max20751_info = {
> - .pages = 1,
> - .format[PSC_VOLTAGE_IN] = linear,
> - .format[PSC_VOLTAGE_OUT] = vid,
> - .vrm_version[0] = vr12,
> - .format[PSC_TEMPERATURE] = linear,
> - .format[PSC_CURRENT_OUT] = linear,
> - .format[PSC_POWER] = linear,
> - .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
> - PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
> - PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
> - PMBUS_HAVE_POUT,
> +enum chips { max20751, max20754 };
> +
> +static struct pmbus_driver_info max20751_info[] = {
> + [max20751] = {
> + .pages = 1,
> + .format[PSC_VOLTAGE_IN] = linear,
> + .format[PSC_VOLTAGE_OUT] = vid,
> + .vrm_version[0] = vr12,
> + .format[PSC_TEMPERATURE] = linear,
> + .format[PSC_CURRENT_OUT] = linear,
> + .format[PSC_POWER] = linear,
> + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT |
> + PMBUS_HAVE_STATUS_VOUT |
> + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
> + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
> + PMBUS_HAVE_POUT,
> + },
> + [max20754] = {
> + .pages = 1,
> + .format[PSC_VOLTAGE_IN] = linear,
> + .format[PSC_VOLTAGE_OUT] = linear,
> + .format[PSC_TEMPERATURE] = linear,
> + .format[PSC_CURRENT_OUT] = linear,
> + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT |
> + PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
> + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
> + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
> + PMBUS_HAVE_TEMP2,
> + },
> };
[Severity: Low]
Should SENSORS_MAX20751 in drivers/hwmon/pmbus/Kconfig and the Sysfs entries
table in Documentation/hwmon/max20751.rst also be updated for MAX20754?
Kconfig only mentions MAX20751, and Documentation/hwmon/max20751.rst does not
document the temp2 attributes enabled by PMBUS_HAVE_TEMP2 or note that the
power1 attributes apply only to MAX20751.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201183859.2704824-1-dghosh@juniper.net?part=1
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 1/3] hwmon: (max20751): Add support for MAX20754
2026-12-01 18:48 ` sashiko-bot
@ 2026-12-01 23:07 ` Guenter Roeck
2026-12-01 23:58 ` Ghosh, Debjit
0 siblings, 1 reply; 9+ messages in thread
From: Guenter Roeck @ 2026-12-01 23:07 UTC (permalink / raw)
To: sashiko-reviews, Debjit Ghosh, linux-hwmon; +Cc: devicetree, robh, conor+dt
On 12/1/26 10:48, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issues to consider:
> - [Low] docs: hwmon: broken max20754 toctree entry in
> Documentation/hwmon/index.rst
> - [Low] hwmon: (max20751) Kconfig and sysfs doc not updated for MAX20754
> --
>
> commit f8c1a12d192b45df3e5f2a2b4fe1c6ed4c75f02e
> Author: Georgi Vlaev <gvlaev@juniper.net>
>
> hwmon: (max20751): Add support for MAX20754
>
> This commit adds support and documentation for the Maxim MAX20754 PMBus power
> controller to the max20751 driver.
>
>> diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
>> index ddfcd077d96e7..f6b489260b30c 100644
>> --- a/Documentation/hwmon/index.rst
>> +++ b/Documentation/hwmon/index.rst
>> @@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers
>> max17616
>> max20730
>> max20751
>> + max20754
>> max20826
>> max20830
>> max20860a
>
> [Severity: Low]
> Does adding max20754 to the toctree in Documentation/hwmon/index.rst break
> make htmldocs? MAX20754 is documented in Documentation/hwmon/max20751.rst
> rather than in a separate Documentation/hwmon/max20754.rst file.
>
> [ ... ]
>
Yes, this is wrong.
>> diff --git a/drivers/hwmon/pmbus/max20751.c b/drivers/hwmon/pmbus/max20751.c
>> index e85676433dca1..92103ca5b5758 100644
>> --- a/drivers/hwmon/pmbus/max20751.c
>> +++ b/drivers/hwmon/pmbus/max20751.c
>> @@ -1,6 +1,6 @@
>> // SPDX-License-Identifier: GPL-2.0-or-later
>> /*
>> - * Hardware monitoring driver for Maxim MAX20751
>> + * Hardware monitoring driver for Maxim MAX20751, MAX20754
>> *
>> * Copyright (c) 2015 Guenter Roeck
>> */
>> @@ -12,27 +12,47 @@
>> #include <linux/i2c.h>
>> #include "pmbus.h"
>>
>> -static struct pmbus_driver_info max20751_info = {
>> - .pages = 1,
>> - .format[PSC_VOLTAGE_IN] = linear,
>> - .format[PSC_VOLTAGE_OUT] = vid,
>> - .vrm_version[0] = vr12,
>> - .format[PSC_TEMPERATURE] = linear,
>> - .format[PSC_CURRENT_OUT] = linear,
>> - .format[PSC_POWER] = linear,
>> - .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
>> - PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
>> - PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
>> - PMBUS_HAVE_POUT,
>> +enum chips { max20751, max20754 };
>> +
>> +static struct pmbus_driver_info max20751_info[] = {
>> + [max20751] = {
>> + .pages = 1,
>> + .format[PSC_VOLTAGE_IN] = linear,
>> + .format[PSC_VOLTAGE_OUT] = vid,
>> + .vrm_version[0] = vr12,
>> + .format[PSC_TEMPERATURE] = linear,
>> + .format[PSC_CURRENT_OUT] = linear,
>> + .format[PSC_POWER] = linear,
>> + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT |
>> + PMBUS_HAVE_STATUS_VOUT |
>> + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
>> + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
>> + PMBUS_HAVE_POUT,
>> + },
>> + [max20754] = {
>> + .pages = 1,
>> + .format[PSC_VOLTAGE_IN] = linear,
>> + .format[PSC_VOLTAGE_OUT] = linear,
>> + .format[PSC_TEMPERATURE] = linear,
>> + .format[PSC_CURRENT_OUT] = linear,
>> + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT |
>> + PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
>> + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
>> + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
>> + PMBUS_HAVE_TEMP2,
>> + },
>> };
>
> [Severity: Low]
> Should SENSORS_MAX20751 in drivers/hwmon/pmbus/Kconfig and the Sysfs entries
> table in Documentation/hwmon/max20751.rst also be updated for MAX20754?
> Kconfig only mentions MAX20751, and Documentation/hwmon/max20751.rst does not
> document the temp2 attributes enabled by PMBUS_HAVE_TEMP2 or note that the
> power1 attributes apply only to MAX20751.
>
Please make these changes.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 1/3] hwmon: (max20751): Add support for MAX20754
2026-12-01 23:07 ` Guenter Roeck
@ 2026-12-01 23:58 ` Ghosh, Debjit
0 siblings, 0 replies; 9+ messages in thread
From: Ghosh, Debjit @ 2026-12-01 23:58 UTC (permalink / raw)
To: Guenter Roeck
Cc: sashiko-reviews@lists.linux.dev, Debjit Ghosh,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Hi Guenter,
Thanks for the review.
> On Dec 1, 2026, at 3:07 PM, Guenter Roeck <linux@roeck-us.net> wrote:
>
> On 12/1/26 10:48, sashiko-bot@kernel.org wrote:
>> Thank you for your contribution! Sashiko AI review found 2 potential
>> issues to consider:
>> - [Low] docs: hwmon: broken max20754 toctree entry in
>> Documentation/hwmon/index.rst
>> - [Low] hwmon: (max20751) Kconfig and sysfs doc not updated for MAX20754
>> --
>> commit f8c1a12d192b45df3e5f2a2b4fe1c6ed4c75f02e
>> Author: Georgi Vlaev <gvlaev@juniper.net>
>> hwmon: (max20751): Add support for MAX20754
>> This commit adds support and documentation for the Maxim MAX20754 PMBus power
>> controller to the max20751 driver.
>>> diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
>>> index ddfcd077d96e7..f6b489260b30c 100644
>>> --- a/Documentation/hwmon/index.rst
>>> +++ b/Documentation/hwmon/index.rst
>>> @@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers
>>> max17616
>>> max20730
>>> max20751
>>> + max20754
>>> max20826
>>> max20830
>>> max20860a
>> [Severity: Low]
>> Does adding max20754 to the toctree in Documentation/hwmon/index.rst break
>> make htmldocs? MAX20754 is documented in Documentation/hwmon/max20751.rst
>> rather than in a separate Documentation/hwmon/max20754.rst file.
>> [ ... ]
> Yes, this is wrong.
This is following the existing convention.
>
>>> diff --git a/drivers/hwmon/pmbus/max20751.c b/drivers/hwmon/pmbus/max20751.c
>>> index e85676433dca1..92103ca5b5758 100644
>>> --- a/drivers/hwmon/pmbus/max20751.c
>>> +++ b/drivers/hwmon/pmbus/max20751.c
>>> @@ -1,6 +1,6 @@
>>> // SPDX-License-Identifier: GPL-2.0-or-later
>>> /*
>>> - * Hardware monitoring driver for Maxim MAX20751
>>> + * Hardware monitoring driver for Maxim MAX20751, MAX20754
>>> *
>>> * Copyright (c) 2015 Guenter Roeck
>>> */
>>> @@ -12,27 +12,47 @@
>>> #include <linux/i2c.h>
>>> #include "pmbus.h"
>>> -static struct pmbus_driver_info max20751_info = {
>>> - .pages = 1,
>>> - .format[PSC_VOLTAGE_IN] = linear,
>>> - .format[PSC_VOLTAGE_OUT] = vid,
>>> - .vrm_version[0] = vr12,
>>> - .format[PSC_TEMPERATURE] = linear,
>>> - .format[PSC_CURRENT_OUT] = linear,
>>> - .format[PSC_POWER] = linear,
>>> - .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
>>> - PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
>>> - PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
>>> - PMBUS_HAVE_POUT,
>>> +enum chips { max20751, max20754 };
>>> +
>>> +static struct pmbus_driver_info max20751_info[] = {
>>> + [max20751] = {
>>> + .pages = 1,
>>> + .format[PSC_VOLTAGE_IN] = linear,
>>> + .format[PSC_VOLTAGE_OUT] = vid,
>>> + .vrm_version[0] = vr12,
>>> + .format[PSC_TEMPERATURE] = linear,
>>> + .format[PSC_CURRENT_OUT] = linear,
>>> + .format[PSC_POWER] = linear,
>>> + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT |
>>> + PMBUS_HAVE_STATUS_VOUT |
>>> + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
>>> + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
>>> + PMBUS_HAVE_POUT,
>>> + },
>>> + [max20754] = {
>>> + .pages = 1,
>>> + .format[PSC_VOLTAGE_IN] = linear,
>>> + .format[PSC_VOLTAGE_OUT] = linear,
>>> + .format[PSC_TEMPERATURE] = linear,
>>> + .format[PSC_CURRENT_OUT] = linear,
>>> + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT |
>>> + PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
>>> + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
>>> + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
>>> + PMBUS_HAVE_TEMP2,
>>> + },
>>> };
>> [Severity: Low]
>> Should SENSORS_MAX20751 in drivers/hwmon/pmbus/Kconfig and the Sysfs entries
>> table in Documentation/hwmon/max20751.rst also be updated for MAX20754?
>> Kconfig only mentions MAX20751, and Documentation/hwmon/max20751.rst does not
>> document the temp2 attributes enabled by PMBUS_HAVE_TEMP2 or note that the
>> power1 attributes apply only to MAX20751.
> Please make these changes.
Changes are made to v2
https://lore.kernel.org/all/20261201235128.2800551-1-dghosh@juniper.net/
Regards,
—Debjit
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/3] hwmon: (max20751): Add OF device ID table
2026-12-01 18:38 [PATCH 0/3] hwmon: Add support for pmbus max20754 device Debjit Ghosh
2026-12-01 18:38 ` [PATCH 1/3] hwmon: (max20751): Add support for MAX20754 Debjit Ghosh
@ 2026-12-01 18:38 ` Debjit Ghosh
2026-12-01 18:38 ` [PATCH 3/3] dt-bindings: hwmon: add maxim,max20754 compatible Debjit Ghosh
2026-12-01 18:49 ` [PATCH 0/3] hwmon: Add support for pmbus max20754 device sashiko-bot
3 siblings, 0 replies; 9+ messages in thread
From: Debjit Ghosh @ 2026-12-01 18:38 UTC (permalink / raw)
To: linux, linux-hwmon
Cc: corbet, skhan, rdunlap, robh, krzk+dt, conor+dt, linux-doc,
devicetree, debjit.ghosh
From: Debjit Ghosh <debjit.ghosh@hpe.com>
Add OF device ID table and module alias information to instantiate
devices through device tree entries.
Signed-off-by: Debjit Ghosh <debjit.ghosh@hpe.com>
---
drivers/hwmon/pmbus/max20751.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/hwmon/pmbus/max20751.c b/drivers/hwmon/pmbus/max20751.c
index 92103ca5b575..58785c858cc7 100644
--- a/drivers/hwmon/pmbus/max20751.c
+++ b/drivers/hwmon/pmbus/max20751.c
@@ -58,9 +58,18 @@ static const struct i2c_device_id max20751_id[] = {
MODULE_DEVICE_TABLE(i2c, max20751_id);
+static const struct of_device_id max20751_of_match[] = {
+ { .compatible = "maxim,max20751", .data = (void *)max20751 },
+ { .compatible = "maxim,max20754", .data = (void *)max20754 },
+ { },
+};
+
+MODULE_DEVICE_TABLE(of, max20751_of_match);
+
static struct i2c_driver max20751_driver = {
.driver = {
.name = "max20751",
+ .of_match_table = of_match_ptr(max20751_of_match),
},
.probe = max20751_probe,
.id_table = max20751_id,
--
2.25.4
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 3/3] dt-bindings: hwmon: add maxim,max20754 compatible
2026-12-01 18:38 [PATCH 0/3] hwmon: Add support for pmbus max20754 device Debjit Ghosh
2026-12-01 18:38 ` [PATCH 1/3] hwmon: (max20751): Add support for MAX20754 Debjit Ghosh
2026-12-01 18:38 ` [PATCH 2/3] hwmon: (max20751): Add OF device ID table Debjit Ghosh
@ 2026-12-01 18:38 ` Debjit Ghosh
2026-12-01 23:30 ` Guenter Roeck
2026-12-01 18:49 ` [PATCH 0/3] hwmon: Add support for pmbus max20754 device sashiko-bot
3 siblings, 1 reply; 9+ messages in thread
From: Debjit Ghosh @ 2026-12-01 18:38 UTC (permalink / raw)
To: linux, linux-hwmon
Cc: corbet, skhan, rdunlap, robh, krzk+dt, conor+dt, linux-doc,
devicetree, debjit.ghosh
From: Debjit Ghosh <debjit.ghosh@hpe.com>
Add maxim,max20754 compatible to documentation.
Signed-off-by: Debjit Ghosh <debjit.ghosh@hpe.com>
---
Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 4815b8452a8c..5b3457ebf916 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -237,6 +237,8 @@ properties:
- maxim,max15303
# Multiphase Master with PMBus Interface and Internal Buck Converter
- maxim,max20751
+ # Dual Output, Multiphase Master with PMBus Interface and Internal Buck Converter
+ - maxim,max20754
# mCube 3-axis 8-bit digital accelerometer
- mcube,mc3230
# mCube 3-axis 8-bit digital accelerometer
--
2.25.4
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 3/3] dt-bindings: hwmon: add maxim,max20754 compatible
2026-12-01 18:38 ` [PATCH 3/3] dt-bindings: hwmon: add maxim,max20754 compatible Debjit Ghosh
@ 2026-12-01 23:30 ` Guenter Roeck
0 siblings, 0 replies; 9+ messages in thread
From: Guenter Roeck @ 2026-12-01 23:30 UTC (permalink / raw)
To: Debjit Ghosh
Cc: linux-hwmon, corbet, skhan, rdunlap, robh, krzk+dt, conor+dt,
linux-doc, devicetree, debjit.ghosh
On Tue, Dec 01, 2026 at 10:38:59AM -0800, Debjit Ghosh wrote:
> From: Debjit Ghosh <debjit.ghosh@hpe.com>
>
> Add maxim,max20754 compatible to documentation.
>
> Signed-off-by: Debjit Ghosh <debjit.ghosh@hpe.com>
> ---
> Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
The subject should refer to trivial-devices; this is not really a hwmon
patch.
Thanks,
Guenter
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
> index 4815b8452a8c..5b3457ebf916 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> @@ -237,6 +237,8 @@ properties:
> - maxim,max15303
> # Multiphase Master with PMBus Interface and Internal Buck Converter
> - maxim,max20751
> + # Dual Output, Multiphase Master with PMBus Interface and Internal Buck Converter
> + - maxim,max20754
> # mCube 3-axis 8-bit digital accelerometer
> - mcube,mc3230
> # mCube 3-axis 8-bit digital accelerometer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/3] hwmon: Add support for pmbus max20754 device
2026-12-01 18:38 [PATCH 0/3] hwmon: Add support for pmbus max20754 device Debjit Ghosh
` (2 preceding siblings ...)
2026-12-01 18:38 ` [PATCH 3/3] dt-bindings: hwmon: add maxim,max20754 compatible Debjit Ghosh
@ 2026-12-01 18:49 ` sashiko-bot
3 siblings, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-12-01 18:49 UTC (permalink / raw)
To: Debjit Ghosh, linux-hwmon
Sashiko has finished reviewing this 3-patch series:
- Patches 2 and 3: no issues found.
- Patch 1 ("hwmon: (max20751): Add support for MAX20754"): 2 potential
issues (2 Low)
A detailed review has been sent as a separate reply to patch 1.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201183859.2704824-1-dghosh@juniper.net
^ permalink raw reply [flat|nested] 9+ messages in thread