iio: adc: stm32: add support for triggered buffer mode
authorFabrice Gasnier <fabrice.gasnier@st.com>
Thu, 26 Jan 2017 14:28:29 +0000 (15:28 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 28 Jan 2017 18:23:46 +0000 (18:23 +0000)
commitda9b948514c36da480cc15f7c75f51417f882175
tree3709cc3e3791010321c2280936e3babe05d1a569
parent6db0f7ccc9f3876840e36c23ce357204cdc2d0ae
iio: adc: stm32: add support for triggered buffer mode

STM32 ADC conversions can be launched using hardware triggers.
It can be used to start conversion sequences (group of channels).
Selected channels are select via sequence registers.
Trigger source is selected via 'extsel' (external trigger mux).
Trigger polarity is set to rising edge by default.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig
drivers/iio/adc/stm32-adc.c