adc: Add driver for STM32 ADC
authorFabrice Gasnier <fabrice.gasnier@st.com>
Tue, 24 Jul 2018 14:31:31 +0000 (16:31 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 Aug 2018 23:53:10 +0000 (19:53 -0400)
commita466ecec483a94ac5c66d3ce6793e1575f333d23
treec8381d1205420220f91ffd627426b322d35c17d9
parentfb4e674a4b01d44fe15ea72c31c84598db11ebc1
adc: Add driver for STM32 ADC

This patch adds support for STMicroelectronics STM32 ADC (analog to
digital converter). It's originally based on Linux kernel v4.18-rcs
drivers/iio/adc/stm32-adc*. It's composed of:
- core driver (UCLASS_SIMPLE_BUS) manages common resources (clk, regu).
- child drivers (UCLASS_ADC) declare each ADC, channels and handle
  conversions.
This driver currently supports STM32H7 and STM32MP1 ADC.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/adc/Kconfig
drivers/adc/Makefile
drivers/adc/stm32-adc-core.c [new file with mode: 0644]
drivers/adc/stm32-adc-core.h [new file with mode: 0644]
drivers/adc/stm32-adc.c [new file with mode: 0644]