]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: trigger: stm32-timer: add support for stm32mp25
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Fri, 20 Dec 2024 09:59:21 +0000 (10:59 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:14 +0000 (14:28 +0000)
commite2f9d754fc5b5dcb53a0df627f386b63f8ba2d68
treee4384fcf714157307a8fedfe0772fe81c4804b56
parente9ed97be4fccd44beae4347eed38ea801c5d814d
iio: trigger: stm32-timer: add support for stm32mp25

Add support for STM32MP25 SoC. Use newly introduced compatible to handle
this new HW variant. Add TIM20 trigger definitions that can be used by
the stm32 analog-to-digital converter. Use compatible data to identify
it.
As the counter framework is now superseding the deprecated IIO counter
interface (IIO_COUNT), don't support it. Only register IIO trigger
devices for ADC usage. So, make the valids_table a cfg option.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://patch.msgid.link/20241220095927.1122782-4-fabrice.gasnier@foss.st.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/trigger/stm32-timer-trigger.c
include/linux/iio/timer/stm32-timer-trigger.h