[PATCH net-next 8/8] net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply
From: Kory Maincent (AddSecure)
Date: Wed Dec 02 2026 - 09:09:58 EST
Add support for the Vdd and the Vpwr power supply, and enable them at
probe time.
Signed-off-by: Kory Maincent (AddSecure) <kory.maincent@xxxxxxxxxxx>
---
drivers/net/pse-pd/tps23881.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c
index 5736f052732a2..759b3039ce21c 100644
--- a/drivers/net/pse-pd/tps23881.c
+++ b/drivers/net/pse-pd/tps23881.c
@@ -1419,6 +1419,7 @@ static int tps23881_setup_irq(struct tps23881_priv *priv, int irq)
static int tps23881_i2c_probe(struct i2c_client *client)
{
+ static const char * const regulators[] = { "vdd", "vpwr" };
struct device *dev = &client->dev;
const struct tps23881_info *info;
struct tps23881_priv *priv;
@@ -1439,6 +1440,12 @@ static int tps23881_i2c_probe(struct i2c_client *client)
if (!priv)
return -ENOMEM;
+ ret = devm_regulator_bulk_get_enable(dev, ARRAY_SIZE(regulators),
+ regulators);
+ if (ret)
+ return dev_err_probe(dev, ret,
+ "Failed to enable regulators\n");
+
reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
if (IS_ERR(reset))
return dev_err_probe(&client->dev, PTR_ERR(reset), "Failed to get reset GPIO\n");
--
2.43.0