regulator: bd718x7: remove voltage change restriction from BD71847 LDOs
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Wed, 13 May 2020 14:39:21 +0000 (17:39 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 14 May 2020 17:26:11 +0000 (18:26 +0100)
commit9bcbabafa19b9f27a283777eff32e7d66fcef09c
tree218f85522538c7a800d8871433140c05f08b3cab
parent4f43adcdc6a96aba65d29ad15f6296a4940026fc
regulator: bd718x7: remove voltage change restriction from BD71847 LDOs

The BD71837 had a HW "feature" where changing the regulator output
voltages of other regulators but bucks 1-4 might cause spikes if
regulators were enabled. Thus SW prohibit voltage changes for other
regulators except for bucks 1-4 when regulator is enabled.

The HW colleagues did inadvertly fix this issue for BD71847 and
BD71850.

The power-good detection for LDOs can still cause false alarms if
LDO voltage is changed upwards when LDO is enabled.

Allow LDO voltage changes and disabe the power-good monioring for
the duration of the LDO voltage change and enable it after LDO
voltage has stabilized. ROHM HW colleagues measured the safety
limit of 1000uS for guaranteeing the voltage has stabilized. Let's
use that for starters and add confiurable stabilization wait-time
later if needed.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/20200513143921.GA22143@localhost.localdomain
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd718x7-regulator.c