diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2017-08-28 12:04:11 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-09-04 15:49:23 +0200 |
commit | b01ced2b504b2592af6703533c62cb9d1cdc1c6c (patch) | |
tree | b15f369215279e1dab029391ab9c52f402323c15 /drivers/iio/trigger/Kconfig | |
parent | dt-bindings: iio: Add STM32 LPTimer trigger binding (diff) | |
download | linux-b01ced2b504b2592af6703533c62cb9d1cdc1c6c.tar.xz linux-b01ced2b504b2592af6703533c62cb9d1cdc1c6c.zip |
iio: trigger: Add STM32 LPTimer trigger driver
Add support for LPTIMx_OUT triggers that can be found on some STM32
devices. These triggers can be used then by ADC or DAC.
Typical usage is to configure LPTimer as PWM output (via pwm-stm32-lp)
and have synchronised analog conversions with these triggers.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/iio/trigger/Kconfig')
-rw-r--r-- | drivers/iio/trigger/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/trigger/Kconfig b/drivers/iio/trigger/Kconfig index e4d4e63434db..a633d2c8e805 100644 --- a/drivers/iio/trigger/Kconfig +++ b/drivers/iio/trigger/Kconfig @@ -24,6 +24,17 @@ config IIO_INTERRUPT_TRIGGER To compile this driver as a module, choose M here: the module will be called iio-trig-interrupt. +config IIO_STM32_LPTIMER_TRIGGER + tristate "STM32 Low-Power Timer Trigger" + depends on MFD_STM32_LPTIMER || COMPILE_TEST + help + Select this option to enable STM32 Low-Power Timer Trigger. + This can be used as trigger source for STM32 internal ADC + and/or DAC. + + To compile this driver as a module, choose M here: the + module will be called stm32-lptimer-trigger. + config IIO_STM32_TIMER_TRIGGER tristate "STM32 Timer Trigger" depends on (ARCH_STM32 && OF && MFD_STM32_TIMERS) || COMPILE_TEST |