Skip to content

Commit 3b6e708

Browse files
geertubroonie
authored andcommitted
regulator: bd9571mwv: Fix AVS and DVFS voltage range
According to Table 30 ("DVFS_MoniVDAC [6:0] Setting Table") in the BD9571MWV-M Datasheet Rev. 002, the valid voltage range is 600..1100 mV (settings 0x3c..0x6e). While the lower limit is taken into account (by setting regulator_desc.linear_min_sel to 0x3c), the upper limit is not. Fix this by reducing regulator_desc.n_voltages from 0x80 to 0x6f. Fixes: e85c5a1 ("regulator: Add ROHM BD9571MWV-M PMIC regulator driver") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20210312130242.3390038-2-geert+renesas@glider.be Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d450293 commit 3b6e708

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/regulator/bd9571mwv-regulator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static const struct regulator_ops vid_ops = {
125125

126126
static const struct regulator_desc regulators[] = {
127127
BD9571MWV_REG("VD09", "vd09", VD09, avs_ops, 0, 0x7f,
128-
0x80, 600000, 10000, 0x3c),
128+
0x6f, 600000, 10000, 0x3c),
129129
BD9571MWV_REG("VD18", "vd18", VD18, vid_ops, BD9571MWV_VD18_VID, 0xf,
130130
16, 1625000, 25000, 0),
131131
BD9571MWV_REG("VD25", "vd25", VD25, vid_ops, BD9571MWV_VD25_VID, 0xf,
@@ -134,7 +134,7 @@ static const struct regulator_desc regulators[] = {
134134
11, 2800000, 100000, 0),
135135
BD9571MWV_REG("DVFS", "dvfs", DVFS, reg_ops,
136136
BD9571MWV_DVFS_MONIVDAC, 0x7f,
137-
0x80, 600000, 10000, 0x3c),
137+
0x6f, 600000, 10000, 0x3c),
138138
};
139139

140140
#ifdef CONFIG_PM_SLEEP

0 commit comments

Comments
 (0)