Re: [PATCH v4 3/4] regulator: Add support for a fixed delay after voltage increases

From: Rob Herring
Date: Fri Sep 16 2016 - 08:28:56 EST


On Tue, Sep 06, 2016 at 12:05:04PM -0700, Matthias Kaehlcke wrote:
> The target voltage isn't necessarily reached inmediately after
> requesting a regulator to change the voltage. In some cases the
> ramp_delay can be used to calculate the stabilisation time, in others
> there is no direct relationship between the delta in the voltage and
> the stabilisation time. This change introduces the device tree property
> "regulator-settle-time-up-us" which allows to specify a fixed delay
> after a voltage increase.
>
> We don't add an option of a fixed delay on the way down for now because
> the way down is probably modelled best with a ramp rate, not a fixed
> delay.
>
> Signed-off-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>
> Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
>
> ---
> Changes in v4:
> - Moved from PWM regulator to regulator core
> - Added 'regulator' prefix to device tree property
>
> .../devicetree/bindings/regulator/regulator.txt | 2 ++
> drivers/regulator/core.c | 24 +++++++++++++---------
> drivers/regulator/of_regulator.c | 4 ++++
> include/linux/regulator/machine.h | 2 ++
> 4 files changed, 22 insertions(+), 10 deletions(-)

Acked-by: Rob Herring <robh@xxxxxxxxxx>