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

Valentin Caron posted 2 patches 1 year, 5 months ago
.../devicetree/bindings/rtc/st,stm32-rtc.yaml |  5 +-
drivers/rtc/rtc-stm32.c                       | 78 +++++++++++++++++++
2 files changed, 82 insertions(+), 1 deletion(-)
[PATCH v2 0/2] rtc: stm32: introduce new st,stm32mp25-rtc compatible
Posted by Valentin Caron 1 year, 5 months ago
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(-)

-- 
2.25.1
Re: [PATCH v2 0/2] rtc: stm32: introduce new st,stm32mp25-rtc compatible
Posted by Alexandre Belloni 1 year, 5 months ago
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,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com