Skip to content
Unverified Commit 02fbabd5 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Mark Brown
Browse files

regulator: stm32-vrefbuf: fix a possible overshoot when re-enabling



There maybe an overshoot, when disabling, then re-enabling vrefbuf
too quickly. VREFBUF is used by ADC/DAC on some boards. When re-enabling
too quickly, an overshoot on the reference voltage make the conversions
inaccurate for a short period of time.
- Don't put the VREFBUF in HiZ when disabling, to force an active
discharge.
- Enforce a 1ms OFF/ON delay

Fixes: 0cdbf481 ("regulator: Add support for stm32-vrefbuf")

Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Message-Id: <1583312132-20932-1-git-send-email-fabrice.gasnier@st.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a5b0cda1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment