u-boot/drivers/power/regulator
Fabrice Gasnier 8b8c99bd3e power: regulator: stm32: vrefbuf: fix a possible overshoot when re-enabling
There maybe an overshoot:
- when disabling, then re-enabling vrefbuf too quickly
- or upon platform reset as external capacitor maybe slow
  discharging (VREFBUF is HiZ at reset by default).
VREFBUF is used by ADC/DAC on some boards. An overshoot on the reference
voltage make the conversions inaccurate for a short period of time. So:
- Don't put the VREFBUF in HiZ when disabling, to force an active
  discharge.
- Enforce a 1ms OFF/ON delay, also upon reset

Penalty is a 1ms delay is applied (even for a cold boot), when enabling
VREFBUF.

Fixes: 93cf0ae775 ("power: regulator: Add support for stm32-vrefbuf")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-07-07 16:01:23 +02:00
..
act8846.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
as3722_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bd71837.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
da9063.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fan53555.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fixed.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
gpio-regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Kconfig power: regulator: add driver for Dialog DA9063 PMIC 2020-01-27 19:54:20 -05:00
lp873x_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lp87565_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile power: regulator: add driver for Dialog DA9063 PMIC 2020-01-27 19:54:20 -05:00
max77686.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
palmas_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pbias_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pfuze100.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pwm_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
regulator-uclass.c regulator: fix: enable gpio when requested 2020-06-15 16:37:01 -04:00
regulator_common.c regulator: fix: enable gpio when requested 2020-06-15 16:37:01 -04:00
regulator_common.h regulator: Factor out common enable code 2019-07-18 11:31:24 -04:00
rk8xx.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s2mps11_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
s5m8767.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32-vrefbuf.c power: regulator: stm32: vrefbuf: fix a possible overshoot when re-enabling 2020-07-07 16:01:23 +02:00
stpmic1.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tps62360_regulator.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
tps65090_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tps65910_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
tps65941_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00