]> www.infradead.org Git - linux.git/commit
rtc: stm32: add new st,stm32mp25-rtc compatible and check RIF configuration
authorValentin Caron <valentin.caron@foss.st.com>
Mon, 8 Jul 2024 15:34:34 +0000 (17:34 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 10 Jul 2024 15:15:33 +0000 (17:15 +0200)
commitefa9c5be2caecae7dfa4f29c6ab3d4a2f341eb15
tree75f8de5265e57265730d15d8145028b21136b3ea
parent1746a61a0248f93fee11b9ab44c71720d45d713b
rtc: stm32: add new st,stm32mp25-rtc compatible and check RIF configuration

Introduce new st,stm32mp25-rtc compatible. It is based on st,stm32mp1-rtc.

Difference is that stm32mp25 soc implements a triple protection on RTC
registers:
- Secure bit based protection
- Privileged context based protection
- Compartment ID filtering based protection
This driver will now check theses configurations before probing to avoid
exceptions and fake reads on register.

At this time, driver needs only to check two resources: INIT and ALARM_A.
Other resources are not used.

Resource isolation framework (RIF) is a comprehensive set of hardware
blocks designed to enforce and manage isolation of STM32 hardware
resources, like memory and peripherals.

Link: https://www.st.com/resource/en/reference_manual/rm0457-stm32mp25xx-advanced-armbased-3264bit-mpus-stmicroelectronics.pdf#page=4081
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20240708153434.416287-3-valentin.caron@foss.st.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-stm32.c