Skip to content

Commit 20078e3

Browse files
Rickard x Anderssonbroonie
authored andcommitted
regulator: pca9450: Enable DVS control via PMIC_STBY_REQ
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2364a64 commit 20078e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/regulator/pca9450-regulator.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ static int buck_set_dvs(const struct regulator_desc *desc,
174174
}
175175
}
176176

177+
if (ret == 0) {
178+
struct pca9450_regulator_desc *regulator = container_of(desc,
179+
struct pca9450_regulator_desc, desc);
180+
181+
/* Enable DVS control through PMIC_STBY_REQ for this BUCK */
182+
ret = regmap_update_bits(regmap, regulator->desc.enable_reg,
183+
BUCK1_DVS_CTRL, BUCK1_DVS_CTRL);
184+
}
177185
return ret;
178186
}
179187

0 commit comments

Comments
 (0)