• Olliver Schinagl's avatar
    regulator: axp20x: add support for set_ramp_delay for AXP209 · d29f54df
    Olliver Schinagl authored
    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: default avatarOlliver Schinagl <oliver@schinagl.nl>
    Signed-off-by: default avatarPriit Laes <plaes@plaes.org>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    d29f54df
axp20x-regulator.c 46.5 KB