mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
regulator: bd9571mwv: Fix AVS and DVFS voltage range
[ Upstream commit3b6e7088af
] 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:e85c5a153f
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d1e0d46fb1
commit
e3b12e7336
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ static struct regulator_ops vid_ops = {
|
||||||
|
|
||||||
static struct regulator_desc regulators[] = {
|
static struct regulator_desc regulators[] = {
|
||||||
BD9571MWV_REG("VD09", "vd09", VD09, avs_ops, 0, 0x7f,
|
BD9571MWV_REG("VD09", "vd09", VD09, avs_ops, 0, 0x7f,
|
||||||
0x80, 600000, 10000, 0x3c),
|
0x6f, 600000, 10000, 0x3c),
|
||||||
BD9571MWV_REG("VD18", "vd18", VD18, vid_ops, BD9571MWV_VD18_VID, 0xf,
|
BD9571MWV_REG("VD18", "vd18", VD18, vid_ops, BD9571MWV_VD18_VID, 0xf,
|
||||||
16, 1625000, 25000, 0),
|
16, 1625000, 25000, 0),
|
||||||
BD9571MWV_REG("VD25", "vd25", VD25, vid_ops, BD9571MWV_VD25_VID, 0xf,
|
BD9571MWV_REG("VD25", "vd25", VD25, vid_ops, BD9571MWV_VD25_VID, 0xf,
|
||||||
|
@ -128,7 +128,7 @@ static struct regulator_desc regulators[] = {
|
||||||
11, 2800000, 100000, 0),
|
11, 2800000, 100000, 0),
|
||||||
BD9571MWV_REG("DVFS", "dvfs", DVFS, reg_ops,
|
BD9571MWV_REG("DVFS", "dvfs", DVFS, reg_ops,
|
||||||
BD9571MWV_DVFS_MONIVDAC, 0x7f,
|
BD9571MWV_DVFS_MONIVDAC, 0x7f,
|
||||||
0x80, 600000, 10000, 0x3c),
|
0x6f, 600000, 10000, 0x3c),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int bd9571mwv_regulator_probe(struct platform_device *pdev)
|
static int bd9571mwv_regulator_probe(struct platform_device *pdev)
|
||||||
|
|
Loading…
Reference in a new issue