]> git.baikalelectronics.ru Git - kernel.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)
commit822083d514c113fff62e8b6440f87c41163c2909
tree395fc09a8ba76570e8deea3f47a7b16ce19e437c
parentec35d5edb29c2f68e23e0307c2b88e7c8b0a778d
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