]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: stm32-lptimer: Add support for stm32mp25
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Tue, 29 Apr 2025 12:51:28 +0000 (14:51 +0200)
committerLee Jones <lee@kernel.org>
Tue, 13 May 2025 10:12:52 +0000 (11:12 +0100)
commit4f8ceb0302b36c5f78bcc8d0e7cfa2372fba134c
tree2af1bfabaee9a2ebba3c859ddbacd771c966d259
parent3f9ce9d0760ad68a9c20167664d026d91da66879
mfd: stm32-lptimer: Add support for stm32mp25

Add support for STM32MP25 SoC.
A new hardware configuration register (HWCFGR2) has been added, to gather
number of capture/compare channels, autonomous mode and input capture
capability. The full feature set is implemented in LPTIM1/2/3/4. LPTIM5
supports a smaller set of features. This can now be read from HWCFGR
registers.

Add new registers to the stm32-lptimer.h: CCMR1, CCR2, HWCFGR1/2 and VERR.
Update the stm32_lptimer data struct so signal the number of
capture/compare channels to the child devices.
Also Remove some unused bit masks (CMPOK_ARROK / CMPOKCF_ARROKCF).

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