[PATCH 2/2] hwmon:(pmbus/xdpe1a2g7b) Add support for xdpe1a2g7c controller

From: ASHISH YADAV

Date: Mon Sep 21 2026 - 03:04:14 EST


From: Ashish Yadav <ashish.yadav@xxxxxxxxxxxx>

Extend xdpe1a2g7b driver to support xdpe1a2g7c model.

Signed-off-by: Ashish Yadav <ashish.yadav@xxxxxxxxxxxx>
---
drivers/hwmon/pmbus/Kconfig | 4 ++--
drivers/hwmon/pmbus/xdpe1a2g7b.c | 10 ++++++----
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig
index eb71a0ac044b..f65a295d09a4 100644
--- a/drivers/hwmon/pmbus/Kconfig
+++ b/drivers/hwmon/pmbus/Kconfig
@@ -867,7 +867,7 @@ config SENSORS_XDPE1A2G7B
tristate "Infineon XDPE1A2G7B"
help
If you say yes here you get hardware monitoring support for Infineon
- XDPE1A2G5B and XDPE1A2G7B.
+ XDPE1A2G5B,XDPE1A2G7B and XDPE1A2G7C.

This driver can also be built as a module. If so, the module will
be called xdpe1a2g7b.
@@ -877,7 +877,7 @@ config SENSORS_XDPE1A2G7B_REGULATOR
depends on SENSORS_XDPE1A2G7B && REGULATOR
help
If you say yes here you get regulator support for Infineon
- XDPE1A2G5B and XDPE1A2G7B multi-phase digital controllers.
+ XDPE1A2G5B,XDPE1A2G7B and XDPE1A2G7C multi-phase digital controllers.

This enables the controllers to be used as regulator devices,
providing voltage control through the regulator framework.
diff --git a/drivers/hwmon/pmbus/xdpe1a2g7b.c b/drivers/hwmon/pmbus/xdpe1a2g7b.c
index 9455ef443b2b..48f6f8081c4b 100644
--- a/drivers/hwmon/pmbus/xdpe1a2g7b.c
+++ b/drivers/hwmon/pmbus/xdpe1a2g7b.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Hardware monitoring driver for Infineon Multi-phase Digital XDPE1A2G5B
- * and XDPE1A2G7B Controllers
+ * Hardware monitoring driver for Infineon Multi-phase Digital XDPE1A2G5B,
+ * XDPE1A2G7B and XDPE1A2G7C Controllers
*
* Copyright (c) 2026 Infineon Technologies. All rights reserved.
*/
@@ -23,7 +23,7 @@ static int xdpe1a2g7b_identify(struct i2c_client *client,
int vout_mode;

/*
- * XDPE1A2G5B and XDPE1A2G7B support both Linear and NVIDIA PWM VID data
+ * XDPE1A2G5B and XDPE1A2G7B/7C support both Linear and NVIDIA PWM VID data
* formats via VOUT_MODE. Note that the device pages/loops are not fully
* independent: configuration is shared, so programming each page/loop
* separately is not supported.
@@ -100,6 +100,7 @@ static int xdpe1a2g7b_probe(struct i2c_client *client)
static const struct i2c_device_id xdpe1a2g7b_id[] = {
{ .name = "xdpe1a2g5b" },
{ .name = "xdpe1a2g7b" },
+ { .name = "xdpe1a2g7c" },
{ }
};

@@ -108,6 +109,7 @@ MODULE_DEVICE_TABLE(i2c, xdpe1a2g7b_id);
static const struct of_device_id __maybe_unused xdpe1a2g7b_of_match[] = {
{ .compatible = "infineon,xdpe1a2g5b" },
{ .compatible = "infineon,xdpe1a2g7b" },
+ { .compatible = "infineon,xdpe1a2g7c" },
{}
};

@@ -125,6 +127,6 @@ static struct i2c_driver xdpe1a2g7b_driver = {
module_i2c_driver(xdpe1a2g7b_driver);

MODULE_AUTHOR("Ashish Yadav <ashish.yadav@xxxxxxxxxxxx>");
-MODULE_DESCRIPTION("PMBus driver for Infineon XDPE1A2G5B/7B");
+MODULE_DESCRIPTION("PMBus driver for Infineon XDPE1A2G5B/7B/7C");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS("PMBUS");
--
2.39.5