mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
hwmon:(pmbus/xdpe1a2g7b) Add support for xdpe1a2g7c controller
Extend xdpe1a2g7b driver to support xdpe1a2g7c model. Signed-off-by: Ashish Yadav <ashish.yadav@infineon.com> Link: https://patch.msgid.link/20260921065702.93196-3-Ashish.Yadav@infineon.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
97d44d58c9
commit
0fc3a31f62
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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@infineon.com>");
|
||||
MODULE_DESCRIPTION("PMBus driver for Infineon XDPE1A2G5B/7B");
|
||||
MODULE_DESCRIPTION("PMBus driver for Infineon XDPE1A2G5B/7B/7C");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_IMPORT_NS("PMBUS");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user