]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: pca9450: Clear PRESET_EN bit to fix BUCK1/2/3 voltage setting
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 22 Feb 2021 11:52:20 +0000 (12:52 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 12:22:26 +0000 (12:22 +0000)
commit0b1d01dea9c78eeb31110b52759c72e2547e1437
treed776d561b7409f6bfa93c5cc2c164ff6545d14a7
parente2edfe1a0e47080f77d58356baadd0d40d05167a
regulator: pca9450: Clear PRESET_EN bit to fix BUCK1/2/3 voltage setting

The driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the
voltage for the buck regulators 1, 2 and 3. This has no effect as the
PRESET_EN bit is set by default and therefore the preset values are used
instead, which are set to 850 mV.

To fix this we clear the PRESET_EN bit at time of initialization.

Fixes: a6e811e1083c ("regulator: pca9450: add pca9450 pmic driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20210222115229.166620-1-frieder.schrempf@kontron.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c
include/linux/regulator/pca9450.h