[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220428140139.7349-5-rickaran@axis.com>
Date: Thu, 28 Apr 2022 16:01:39 +0200
From: Rickard Andersson <rickaran@...s.com>
To: <broonie@...nel.org>, <lgirdwood@...il.com>,
<linux-kernel@...r.kernel.org>, <yibin.gong@....com>
CC: <rickaran@...s.com>, <rickard314.andersson@...il.com>,
<perdo@...s.com>
Subject: [PATCH 5/5] regulator: pca9450: Enable DVS control via PMIC_STBY_REQ
From: Rickard x Andersson <rickaran@...s.com>
When DVS is enabled via the devicetree properties
"nxp,dvs-run-voltage" and "nxp,dvs-standby-voltage" then
also the bit that enables DVS control via PMIC_STBY_REQ pin
should be set.
Signed-off-by: Rickard x Andersson <rickaran@...s.com>
---
drivers/regulator/pca9450-regulator.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c
index 4a3ae73c600c..14b7d3376516 100644
--- a/drivers/regulator/pca9450-regulator.c
+++ b/drivers/regulator/pca9450-regulator.c
@@ -174,6 +174,14 @@ static int buck_set_dvs(const struct regulator_desc *desc,
}
}
+ if (ret == 0) {
+ struct pca9450_regulator_desc *regulator = container_of(desc,
+ struct pca9450_regulator_desc, desc);
+
+ /* Enable DVS control through PMIC_STBY_REQ for this BUCK */
+ ret = regmap_update_bits(regmap, regulator->desc.enable_reg,
+ BUCK1_DVS_CTRL, BUCK1_DVS_CTRL);
+ }
return ret;
}
--
2.20.1
Powered by blists - more mailing lists