]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: stm32-timers: Add support for stm32mp25
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Fri, 10 Jan 2025 09:19:16 +0000 (10:19 +0100)
committerLee Jones <lee@kernel.org>
Fri, 14 Mar 2025 08:59:05 +0000 (08:59 +0000)
commit7dc0dddbe503fce55ffe31ae5e8a861256a31e3f
treeb7d4fa907007b11093aa3dadafc29e304cbbccb1
parent7b4270d17bf9c03c03e13972bcbb8dccec3956fa
mfd: stm32-timers: Add support for stm32mp25

Add support for STM32MP25 SoC. Use newly introduced compatible, to handle
new features.
Identification and hardware configuration registers allow to read the
timer version and capabilities (counter width, number of channels...).
So, rework the probe to avoid touching ARR register by simply read the
counter width when available. This may avoid messing with a possibly
running timer.
Also add useful bit fields to stm32-timers header file.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20250110091922.980627-3-fabrice.gasnier@foss.st.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/stm32-timers.c
include/linux/mfd/stm32-timers.h