* [PATCH] dt-bindings: nvmem: stm32: new property for data access
@ 2020-05-08 13:45 Etienne Carriere
2020-05-12 1:35 ` Rob Herring
2020-05-12 1:51 ` Rob Herring
0 siblings, 2 replies; 4+ messages in thread
From: Etienne Carriere @ 2020-05-08 13:45 UTC (permalink / raw)
To: linux-kernel
Cc: Etienne Carriere, devicetree, alexandre.torgue, robh+dt,
srinivas.kandagatla, mcoquelin.stm32, fabrice.gasnier,
linux-stm32, linux-arm-kernel
From: Etienne Carriere <etienne.carriere@st.com>
Introduce boolean property st,non-secure-otp for OTP data located
in a factory programmed area that only secure firmware can access
by default and that shall be reachable from the non-secure world.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
---
.../bindings/nvmem/st,stm32-romem.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
index d84deb4774a4..c11c99f085d7 100644
--- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
+++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
@@ -24,6 +24,18 @@ properties:
- st,stm32f4-otp
- st,stm32mp15-bsec
+patternProperties:
+ "^.*@[0-9a-f]+$":
+ type: object
+
+ properties:
+ st,non-secure-otp:
+ description: |
+ This property explicits a factory programmed area that both secure
+ and non-secure worlds can access. It is needed when, by default, the
+ related area can only be reached by the secure world.
+ type: boolean
+
required:
- "#address-cells"
- "#size-cells"
@@ -41,6 +53,11 @@ examples:
calib@22c {
reg = <0x22c 0x2>;
};
+
+ mac_addr@e4 {
+ reg = <0xe4 0x8>;
+ st,non-secure-otp;
+ };
};
...
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] dt-bindings: nvmem: stm32: new property for data access
2020-05-08 13:45 [PATCH] dt-bindings: nvmem: stm32: new property for data access Etienne Carriere
@ 2020-05-12 1:35 ` Rob Herring
2020-05-12 1:51 ` Rob Herring
1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2020-05-12 1:35 UTC (permalink / raw)
To: Etienne Carriere
Cc: Etienne Carriere, devicetree, alexandre.torgue, linux-kernel,
robh+dt, srinivas.kandagatla, mcoquelin.stm32, fabrice.gasnier,
linux-stm32, linux-arm-kernel
On Fri, 8 May 2020 15:45:27 +0200, Etienne Carriere wrote:
> From: Etienne Carriere <etienne.carriere@st.com>
>
> Introduce boolean property st,non-secure-otp for OTP data located
> in a factory programmed area that only secure firmware can access
> by default and that shall be reachable from the non-secure world.
>
> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
> ---
> .../bindings/nvmem/st,stm32-romem.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
Applied, thanks!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: nvmem: stm32: new property for data access
2020-05-08 13:45 [PATCH] dt-bindings: nvmem: stm32: new property for data access Etienne Carriere
2020-05-12 1:35 ` Rob Herring
@ 2020-05-12 1:51 ` Rob Herring
2020-05-12 9:58 ` Etienne Carriere
1 sibling, 1 reply; 4+ messages in thread
From: Rob Herring @ 2020-05-12 1:51 UTC (permalink / raw)
To: Etienne Carriere
Cc: Etienne Carriere, devicetree, Alexandre Torgue,
linux-kernel@vger.kernel.org, Srinivas Kandagatla,
Maxime Coquelin, Fabrice Gasnier, linux-stm32,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
On Fri, May 8, 2020 at 8:47 AM Etienne Carriere
<etienne.carriere@linaro.org> wrote:
>
> From: Etienne Carriere <etienne.carriere@st.com>
>
> Introduce boolean property st,non-secure-otp for OTP data located
> in a factory programmed area that only secure firmware can access
> by default and that shall be reachable from the non-secure world.
>
> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
> ---
> .../bindings/nvmem/st,stm32-romem.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> index d84deb4774a4..c11c99f085d7 100644
> --- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> @@ -24,6 +24,18 @@ properties:
> - st,stm32f4-otp
> - st,stm32mp15-bsec
>
> +patternProperties:
> + "^.*@[0-9a-f]+$":
> + type: object
> +
> + properties:
> + st,non-secure-otp:
> + description: |
> + This property explicits a factory programmed area that both secure
> + and non-secure worlds can access. It is needed when, by default, the
> + related area can only be reached by the secure world.
> + type: boolean
> +
> required:
> - "#address-cells"
> - "#size-cells"
> @@ -41,6 +53,11 @@ examples:
> calib@22c {
> reg = <0x22c 0x2>;
> };
> +
> + mac_addr@e4 {
> + reg = <0xe4 0x8>;
> + st,non-secure-otp;
This fails validation. You need to drop 'additionalProperties' in nvmem.yaml.
Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] dt-bindings: nvmem: stm32: new property for data access
2020-05-12 1:51 ` Rob Herring
@ 2020-05-12 9:58 ` Etienne Carriere
0 siblings, 0 replies; 4+ messages in thread
From: Etienne Carriere @ 2020-05-12 9:58 UTC (permalink / raw)
To: Rob Herring
Cc: Etienne Carriere, devicetree, Alexandre Torgue,
linux-kernel@vger.kernel.org, Srinivas Kandagatla,
Maxime Coquelin, Fabrice Gasnier, linux-stm32,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
Hello Rob,
On Tue, 12 May 2020 at 03:51, Rob Herring <robh+dt@kernel.org> wrote:
>
> On Fri, May 8, 2020 at 8:47 AM Etienne Carriere
> <etienne.carriere@linaro.org> wrote:
> >
> > From: Etienne Carriere <etienne.carriere@st.com>
> >
> > Introduce boolean property st,non-secure-otp for OTP data located
> > in a factory programmed area that only secure firmware can access
> > by default and that shall be reachable from the non-secure world.
> >
> > Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
> > ---
> > .../bindings/nvmem/st,stm32-romem.yaml | 17 +++++++++++++++++
> > 1 file changed, 17 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> > index d84deb4774a4..c11c99f085d7 100644
> > --- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> > +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> > @@ -24,6 +24,18 @@ properties:
> > - st,stm32f4-otp
> > - st,stm32mp15-bsec
> >
> > +patternProperties:
> > + "^.*@[0-9a-f]+$":
> > + type: object
> > +
> > + properties:
> > + st,non-secure-otp:
> > + description: |
> > + This property explicits a factory programmed area that both secure
> > + and non-secure worlds can access. It is needed when, by default, the
> > + related area can only be reached by the secure world.
> > + type: boolean
> > +
> > required:
> > - "#address-cells"
> > - "#size-cells"
> > @@ -41,6 +53,11 @@ examples:
> > calib@22c {
> > reg = <0x22c 0x2>;
> > };
> > +
> > + mac_addr@e4 {
> > + reg = <0xe4 0x8>;
> > + st,non-secure-otp;
>
> This fails validation. You need to drop 'additionalProperties' in nvmem.yaml.
My apologies. I guess I did not test `dt_binding_check` on this change.
I'll send a v2.
Regards,
Etienne
>
> Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-12 9:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-08 13:45 [PATCH] dt-bindings: nvmem: stm32: new property for data access Etienne Carriere
2020-05-12 1:35 ` Rob Herring
2020-05-12 1:51 ` Rob Herring
2020-05-12 9:58 ` Etienne Carriere
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).