Skip to content

Commit e09ef2f

Browse files
cencarnagroeck
authored andcommitted
hwmon: (pmbus/adp1050) Add regulator support for ltp8800
Add regulator support for the single-channel LTP8800-1A/-2/-4A 150A/135A/200A DC/DC µModule Regulator. Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Cedric Encarnacion <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 3e5f73a commit e09ef2f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

drivers/hwmon/pmbus/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ config SENSORS_ADP1050
6767
This driver can also be built as a module. If so, the module will
6868
be called adp1050.
6969

70+
config SENSORS_ADP1050_REGULATOR
71+
bool "Regulator support for ADP1050 and compatibles"
72+
depends on SENSORS_ADP1050 && REGULATOR
73+
help
74+
If you say yes here you get regulator support for Analog Devices
75+
LTP8800-1A, LTP8800-4A, and LTP8800-2. LTP8800 is a family of DC/DC
76+
µModule regulators that can provide microprocessor power from 54V
77+
power distribution architecture.
78+
7079
config SENSORS_BEL_PFE
7180
tristate "Bel PFE Compatible Power Supplies"
7281
help

drivers/hwmon/pmbus/adp1050.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111

1212
#include "pmbus.h"
1313

14+
#if IS_ENABLED(CONFIG_SENSORS_ADP1050_REGULATOR)
15+
static const struct regulator_desc adp1050_reg_desc[] = {
16+
PMBUS_REGULATOR_ONE("vout"),
17+
};
18+
#endif /* CONFIG_SENSORS_ADP1050_REGULATOR */
19+
1420
static struct pmbus_driver_info adp1050_info = {
1521
.pages = 1,
1622
.format[PSC_VOLTAGE_IN] = linear,
@@ -65,6 +71,10 @@ static struct pmbus_driver_info ltp8800_info = {
6571
| PMBUS_HAVE_STATUS_VOUT
6672
| PMBUS_HAVE_STATUS_INPUT
6773
| PMBUS_HAVE_STATUS_TEMP,
74+
#if IS_ENABLED(CONFIG_SENSORS_ADP1050_REGULATOR)
75+
.num_regulators = 1,
76+
.reg_desc = adp1050_reg_desc,
77+
#endif
6878
};
6979

7080
static int adp1050_probe(struct i2c_client *client)

0 commit comments

Comments
 (0)