mbox series

[v2,0/2] rtc: stm32: introduce new st,stm32mp25-rtc compatible

Message ID 20240708153434.416287-1-valentin.caron@foss.st.com
Headers show
Series rtc: stm32: introduce new st,stm32mp25-rtc compatible | expand

Message

Valentin Caron July 8, 2024, 3:34 p.m. UTC
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.

Link: https://www.st.com/resource/en/reference_manual/rm0457-stm32mp25xx-advanced-armbased-3264bit-mpus-stmicroelectronics.pdf#page=4081

Since v1:
 - Replace "anyOf: const:" by "enum:"

Valentin Caron (2):
  dt-bindings: rtc: stm32: introduce new st,stm32mp25-rtc compatible
  rtc: stm32: add new st,stm32mp25-rtc compatible and check RIF
    configuration

 .../devicetree/bindings/rtc/st,stm32-rtc.yaml |  5 +-
 drivers/rtc/rtc-stm32.c                       | 78 +++++++++++++++++++
 2 files changed, 82 insertions(+), 1 deletion(-)

Comments

Alexandre Belloni July 10, 2024, 3:16 p.m. UTC | #1
On Mon, 08 Jul 2024 17:34:32 +0200, Valentin Caron wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/2] dt-bindings: rtc: stm32: introduce new st,stm32mp25-rtc compatible
      https://git.kernel.org/abelloni/c/1746a61a0248
[2/2] rtc: stm32: add new st,stm32mp25-rtc compatible and check RIF configuration
      https://git.kernel.org/abelloni/c/efa9c5be2cae

Best regards,