]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: lp87565: Add margin while populating ramp_delay
authorKeerthy <j-keerthy@ti.com>
Tue, 17 Apr 2018 08:18:11 +0000 (13:48 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 17 Apr 2018 09:57:16 +0000 (10:57 +0100)
commit2d045e94f3b4da9ac116adb7a7145b46861436ac
tree395fc09a8ba76570e8deea3f47a7b16ce19e437c
parentec1ba3e519c0f46523cf40b83dc71562171b7c08
regulator: lp87565: Add margin while populating ramp_delay

The slew rate might need a +/- 15% margin as per the latest data manual:

http://www.ti.com/lit/ds/snvsb22/snvsb22.pdf

Hence take a conservative approach to program 85% of the original
hardware slew rate so that the software accommodates the margin
delay while voltage switching. Hence reduce the default ramp_delay
populated in the descriptors also by 15%.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp87565-regulator.c