regulator: add support for the stm32-booster
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 1 Jul 2019 08:14:23 +0000 (10:14 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jul 2019 11:45:12 +0000 (12:45 +0100)
commit4e210fbeee8e2f0eb04761c624fcccc8401eba4c
tree2b9e48860f49fa9745944df33b5a1010fec0a428
parent025bf37725f1929542361eef2245df30badf242e
regulator: add support for the stm32-booster

Add support for the 3.3V booster regulator embedded in stm32h7 and stm32mp1
devices, that can be used to supply ADC analog input switches.

This regulator is supplied by vdda. It's controlled by using SYSCFG:
- STM32H7 has a unique register to set/clear the booster enable bit
- STM32MP1 has separate set and clear registers to configure it.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/stm32-booster.c [new file with mode: 0644]