From 0fc3a31f627f05d2e0da59d30622c74d94071176 Mon Sep 17 00:00:00 2001 From: Ashish Yadav Date: Mon, 21 Sep 2026 12:27:02 +0530 Subject: [PATCH] hwmon:(pmbus/xdpe1a2g7b) Add support for xdpe1a2g7c controller Extend xdpe1a2g7b driver to support xdpe1a2g7c model. Signed-off-by: Ashish Yadav Link: https://patch.msgid.link/20260921065702.93196-3-Ashish.Yadav@infineon.com Signed-off-by: Guenter Roeck --- 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 77e036e96228..fd6641316454 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -896,7 +896,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. @@ -906,7 +906,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 "); -MODULE_DESCRIPTION("PMBus driver for Infineon XDPE1A2G5B/7B"); +MODULE_DESCRIPTION("PMBus driver for Infineon XDPE1A2G5B/7B/7C"); MODULE_LICENSE("GPL"); MODULE_IMPORT_NS("PMBUS");