summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gong <yibin.gong@nxp.com>2020-04-23 21:42:05 +0800
committerRobin Gong <yibin.gong@nxp.com>2020-04-25 05:52:33 +0800
commitaa5d66d3571e82e401d6578993bbd315dbb680a3 (patch)
tree1ddb6514ec62b0dc3053768b2e2828b64e3af8ae
parent167cbe000b2e884b9b5d936ce83ae775d4a4ad32 (diff)
MLK-23275-3: regulator: bd71837: correct ldo1/ldo2 group
Only one group voltage support on L4.14 so that the below two patches for dts are not enough since 1.8V/0.8V not support by pmic driver: commit 1c923bdd27021b011358f9422a6a18cbf30de491 ("MLK-23275-2: ARM64: dts: freescale: fsl-imx8mn-ddr4-evk: correct ldo1/ldo2 voltage") commit 8574922dd583141a332be58fe1656ee05c9e5dd4 ("MLK-23275-1: ARM64: dts: freescale: fsl-imx8mm-evk: correct ldo1/ldo2 voltage") So change ldo1/ldo2 voltage to 1.6V~1.9V/0.8V per i.mx8mm/i.mx8mn for quick fix. For the kernel from L4.19, no need this patch. Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Jacky Bai <ping.bai@nxp.com> (cherry picked from commit 4166421be644aea1c7add0f786c859c4b81f6923)
-rw-r--r--drivers/regulator/bd71837-regulator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/bd71837-regulator.c b/drivers/regulator/bd71837-regulator.c
index 0052f0212a27..73e6cf809d78 100644
--- a/drivers/regulator/bd71837-regulator.c
+++ b/drivers/regulator/bd71837-regulator.c
@@ -174,10 +174,10 @@ static const struct regulator_linear_range bd71837_buck8_voltage_ranges[] = {
/*
* LDO1
- * 3.0 to 3.3V (100mV step)
+ * 1.6 to 1.9V (100mV step)
*/
static const struct regulator_linear_range bd71837_ldo1_voltage_ranges[] = {
- REGULATOR_LINEAR_RANGE(3000000, 0x00, 0x03, 100000),
+ REGULATOR_LINEAR_RANGE(1600000, 0x00, 0x03, 100000),
};
/*
@@ -350,7 +350,7 @@ static const struct regulator_desc bd71837_regulators[] = {
.owner = THIS_MODULE,
},
/*
- * LDO2 0.9V
+ * LDO2 0.8V
* Fixed voltage
*/
{
@@ -359,7 +359,7 @@ static const struct regulator_desc bd71837_regulators[] = {
.ops = &bd71837_fixed_regulator_ops,
.type = REGULATOR_VOLTAGE,
.n_voltages = BD71837_LDO2_VOLTAGE_NUM,
- .min_uV = 900000,
+ .min_uV = 800000,
.enable_reg = BD71837_REG_LDO2_VOLT,
.enable_mask = LDO2_EN,
.owner = THIS_MODULE,