[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240611-sample-remold-a75d6f6515d8@spud>
Date: Tue, 11 Jun 2024 19:16:24 +0100
From: Conor Dooley <conor@...nel.org>
To: Valentin Caron <valentin.caron@...s.st.com>
Cc: Alexandre Belloni <alexandre.belloni@...tlin.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
linux-rtc@...r.kernel.org, devicetree@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: rtc: stm32: introduce new
st,stm32mp25-rtc compatible
On Tue, Jun 11, 2024 at 06:19:57PM +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.
>
> 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@...s.st.com>
> ---
> Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml
> index 4703083d1f11f..65a8a93ef5753 100644
> --- a/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml
> +++ b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml
> @@ -15,6 +15,7 @@ properties:
> - st,stm32-rtc
> - st,stm32h7-rtc
> - st,stm32mp1-rtc
> + - st,stm32mp25-rtc
>
> reg:
> maxItems: 1
> @@ -90,7 +91,9 @@ allOf:
> properties:
> compatible:
> contains:
> - const: st,stm32mp1-rtc
> + anyOf:
> + - const: st,stm32mp1-rtc
anyOf:
- const: foo
- const: bar
is just the same as using
enum:
- foo
- bar
Thanks,
Conor.
> + - const: st,stm32mp25-rtc
>
> then:
> properties:
> --
> 2.25.1
>
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists