]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
regulator: axp20x: add support for set_ramp_delay for AXP209
authorOlliver Schinagl <oliver@schinagl.nl>
Tue, 11 Dec 2018 15:17:06 +0000 (17:17 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 13 Dec 2018 16:39:53 +0000 (16:39 +0000)
commitd29f54df8b167be6174881f265b12453a558e48a
treed530a1f5c1cf145e919f6ce526ed78402fa07078
parent16aa70e95947e0870ec9e5bf7c7db33fcbacb957
regulator: axp20x: add support for set_ramp_delay for AXP209

The AXP209 supports ramping up voltages on several regulators such as
DCDC2 and LDO3.

This patch adds preliminary support for the regulator-ramp-delay property
for these 2 regulators. Note that the voltage ramp only works when
regulator is already enabled. E.g. when going from say 0.7 V to 3.6 V.

When turning on the regulator, no voltage ramp is performed in hardware.

What this means, is that if the bootloader brings up the voltage at 0.7 V,
the ramp delay property is properly applied. If however, the bootloader
leaves the power off, no ramp delay is applied when the power is
enabled by the regulator framework.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Priit Laes <plaes@plaes.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c