rtc: stm32: add alarm A out feature
authorValentin Caron <valentin.caron@foss.st.com>
Mon, 22 Jul 2024 16:00:22 +0000 (18:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 14 Aug 2024 09:37:07 +0000 (11:37 +0200)
commit04dcadb87da68d1349b658b1fef04f077b78c13c
treeb5244ae6c7f1d6047855a0efcef2f162e02cc816
parentbb7b0df2be5c6b7bfe0cf9c93067c5b1489566ca
rtc: stm32: add alarm A out feature

STM32 RTC can pulse some SOC pins when an RTC alarm expires.
This patch adds this functionality for alarm A. The pulse can out on three
pins RTC_OUT1, RTC_OUT2, RTC_OUT2_RMP (PC13, PB2, PI8 on stm32mp15)
(PC13, PB2, PI1 on stm32mp13) (PC13, PF4/PF6, PI8 on stm32mp25).

This patch only adds the functionality for devices which are using
st,stm32mp1-rtc and st,stm32mp25-rtc compatible.

Add "alarm-a" in pinmux functions.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240722160022.454226-5-valentin.caron@foss.st.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-stm32.c