* [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x
@ 2022-10-28 14:52 Patrick Delaunay
2022-10-28 14:52 ` [PATCH 1/3] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem Patrick Delaunay
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Patrick Delaunay @ 2022-10-28 14:52 UTC (permalink / raw)
To: Alexandre TORGUE, Srinivas Kandagatla, Rob Herring,
Krzysztof Kozlowski, Maxime Coquelin, Fabrice Gasnier
Cc: Patrick Delaunay, Etienne CARRIERE, devicetree, linux-arm-kernel,
linux-kernel, linux-stm32
This serie update the NVMEM BSEC driver to be compatible with STM32MP13x
SoC and the trusted application STM32MP BSEC in OP-TEE
This serie solve issue in initial support of STM32MP131
(using BSEC STM32MP15 compatible) and so it break the DTS compatible.
I create this serie for more efficient review.
The 2 first patches of this series are re-sent of patches already sent
1- "dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem"
https://lore.kernel.org/all/20221014172324.1.Ifc1812116ff63f5501f3edd155d3cf5c0ecc846c@changeid/
https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685403
2- "ARM: dts: stm32mp13: fix compatible for BSEC"
https://lore.kernel.org/all/20221017134437.1.I167a5efc1f8777cce14518c6fa38400ac684de3e@changeid/
https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685815
This DTS break is acceptable as
- the STM32MP13x SoC is not yet available outside STMicroelectronics
(not official)
- the same patch is already integrated or modifications are in progress in
the other users (arm-trusted-firmware/TF-A, OP-TEE and U-Boot) of
stm32mp131 device tree.
It is the good time to correct this issue before the real availability of
the SoC and before full support of SoC in Linux kernel.
This last patch on NVMEM STM32 ROMEM driver in depend on the preliminary
patch for the driver:
"nvmem: stm32: move STM32MP15_BSEC_NUM_LOWER in config"
https://lore.kernel.org/all/20221017174953.v2.1.I95e71328dd654723bd4c57206bd008ff81c726bb@changeid/
present in the serie
"nvmem: stm32: several minor improvements"
https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685886
Regards
Patrick
Changes in v1:
- update commit message to indicate DTS break reason.
Patrick Delaunay (3):
dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem
ARM: dts: stm32mp13: fix compatible for BSEC
nvmem: stm32: add OP-TEE support for STM32MP13x
.../bindings/nvmem/st,stm32-romem.yaml | 1 +
arch/arm/boot/dts/stm32mp131.dtsi | 2 +-
drivers/nvmem/stm32-romem.c | 450 +++++++++++++++++-
3 files changed, 448 insertions(+), 5 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem
2022-10-28 14:52 [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Patrick Delaunay
@ 2022-10-28 14:52 ` Patrick Delaunay
2022-10-28 15:39 ` Fabrice Gasnier
2022-10-28 14:52 ` [PATCH 2/3] ARM: dts: stm32mp13: fix compatible for BSEC Patrick Delaunay
2022-10-31 17:42 ` [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Srinivas Kandagatla
2 siblings, 1 reply; 5+ messages in thread
From: Patrick Delaunay @ 2022-10-28 14:52 UTC (permalink / raw)
To: Alexandre TORGUE, Srinivas Kandagatla, Rob Herring,
Krzysztof Kozlowski, Maxime Coquelin, Fabrice Gasnier
Cc: Patrick Delaunay, Rob Herring, devicetree, linux-arm-kernel,
linux-kernel, linux-stm32
Add a new compatible for stm32mp13 support.
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
This patch is already sent separately in:
https://lore.kernel.org/all/20221014172324.1.Ifc1812116ff63f5501f3edd155d3cf5c0ecc846c@changeid/
https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685403
I create a serie for more efficient review.
Patrick.
Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
index 448a2678dc62..16f4cad2fa55 100644
--- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
+++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
@@ -22,6 +22,7 @@ properties:
compatible:
enum:
- st,stm32f4-otp
+ - st,stm32mp13-bsec
- st,stm32mp15-bsec
reg:
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] ARM: dts: stm32mp13: fix compatible for BSEC
2022-10-28 14:52 [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Patrick Delaunay
2022-10-28 14:52 ` [PATCH 1/3] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem Patrick Delaunay
@ 2022-10-28 14:52 ` Patrick Delaunay
2022-10-31 17:42 ` [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Srinivas Kandagatla
2 siblings, 0 replies; 5+ messages in thread
From: Patrick Delaunay @ 2022-10-28 14:52 UTC (permalink / raw)
To: Alexandre TORGUE, Rob Herring, Krzysztof Kozlowski,
Maxime Coquelin
Cc: Patrick Delaunay, devicetree, linux-arm-kernel, linux-kernel,
linux-stm32
Use the correct compatible for stm32mp13 support.
The BSEC driver for STM32MP15x is not compatible with STM32MP13x. For
example the proprietary's smc STM32_SMC_BSEC is not supported in
STM32MP13x OP-TEE, it is replaced by SM32MP BSEC Pseudo Trusted
Application in OP-TEE to access to the secured IP BSEC on STM32MP13X SoC.
The correct compatible is already used in U-Boot and in upstream is in
progress for OP-TEE device tree.
As the SoC STM32MP13X is not yet official and it is not available
outside STMicroelectronics, it is the good time to break the DTS
compatibility and to correct the error done in the introduction of
STM32MP131.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
This patch is already sent separately in:
https://lore.kernel.org/all/20221017134437.1.I167a5efc1f8777cce14518c6fa38400ac684de3e@changeid/
https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685815
I create a serie for more efficient review.
Patrick.
Changes in v1:
- update commit message to indicate DTS break reason.
arch/arm/boot/dts/stm32mp131.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index dd35a607073d..89a027f894f9 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -398,7 +398,7 @@ rtc: rtc@5c004000 {
};
bsec: efuse@5c005000 {
- compatible = "st,stm32mp15-bsec";
+ compatible = "st,stm32mp13-bsec";
reg = <0x5c005000 0x400>;
#address-cells = <1>;
#size-cells = <1>;
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem
2022-10-28 14:52 ` [PATCH 1/3] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem Patrick Delaunay
@ 2022-10-28 15:39 ` Fabrice Gasnier
0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Gasnier @ 2022-10-28 15:39 UTC (permalink / raw)
To: Patrick Delaunay, Alexandre TORGUE, Srinivas Kandagatla,
Rob Herring, Krzysztof Kozlowski, Maxime Coquelin
Cc: Rob Herring, devicetree, linux-arm-kernel, linux-kernel,
linux-stm32
On 10/28/22 16:52, Patrick Delaunay wrote:
> Add a new compatible for stm32mp13 support.
>
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Hi Patrick,
You can add my:
Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Thanks,
Fabrice
> ---
> This patch is already sent separately in:
> https://lore.kernel.org/all/20221014172324.1.Ifc1812116ff63f5501f3edd155d3cf5c0ecc846c@changeid/
> https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685403
>
> I create a serie for more efficient review.
>
> Patrick.
>
> Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> index 448a2678dc62..16f4cad2fa55 100644
> --- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
> @@ -22,6 +22,7 @@ properties:
> compatible:
> enum:
> - st,stm32f4-otp
> + - st,stm32mp13-bsec
> - st,stm32mp15-bsec
>
> reg:
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x
2022-10-28 14:52 [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Patrick Delaunay
2022-10-28 14:52 ` [PATCH 1/3] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem Patrick Delaunay
2022-10-28 14:52 ` [PATCH 2/3] ARM: dts: stm32mp13: fix compatible for BSEC Patrick Delaunay
@ 2022-10-31 17:42 ` Srinivas Kandagatla
2 siblings, 0 replies; 5+ messages in thread
From: Srinivas Kandagatla @ 2022-10-31 17:42 UTC (permalink / raw)
To: Patrick Delaunay, Alexandre TORGUE, Rob Herring,
Krzysztof Kozlowski, Maxime Coquelin, Fabrice Gasnier
Cc: Etienne CARRIERE, devicetree, linux-arm-kernel, linux-kernel,
linux-stm32
On 28/10/2022 15:52, Patrick Delaunay wrote:
>
> This serie update the NVMEM BSEC driver to be compatible with STM32MP13x
> SoC and the trusted application STM32MP BSEC in OP-TEE
>
> This serie solve issue in initial support of STM32MP131
> (using BSEC STM32MP15 compatible) and so it break the DTS compatible.
>
> I create this serie for more efficient review.
>
> The 2 first patches of this series are re-sent of patches already sent
>
> 1- "dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem"
> https://lore.kernel.org/all/20221014172324.1.Ifc1812116ff63f5501f3edd155d3cf5c0ecc846c@changeid/
> https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685403
>
> 2- "ARM: dts: stm32mp13: fix compatible for BSEC"
> https://lore.kernel.org/all/20221017134437.1.I167a5efc1f8777cce14518c6fa38400ac684de3e@changeid/
> https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685815
>
> This DTS break is acceptable as
> - the STM32MP13x SoC is not yet available outside STMicroelectronics
> (not official)
> - the same patch is already integrated or modifications are in progress in
> the other users (arm-trusted-firmware/TF-A, OP-TEE and U-Boot) of
> stm32mp131 device tree.
>
> It is the good time to correct this issue before the real availability of
> the SoC and before full support of SoC in Linux kernel.
>
> This last patch on NVMEM STM32 ROMEM driver in depend on the preliminary
> patch for the driver:
>
> "nvmem: stm32: move STM32MP15_BSEC_NUM_LOWER in config"
> https://lore.kernel.org/all/20221017174953.v2.1.I95e71328dd654723bd4c57206bd008ff81c726bb@changeid/
>
> present in the serie
>
> "nvmem: stm32: several minor improvements"
> https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=685886
>
> Regards
>
> Patrick
>
> Changes in v1:
> - update commit message to indicate DTS break reason.
>
> Patrick Delaunay (3):
> dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem
> ARM: dts: stm32mp13: fix compatible for BSEC
> nvmem: stm32: add OP-TEE support for STM32MP13x
Applied 1/3 and 3/3 thanks,
dts changes need to go via the dts maintainer..
--srini
>
> .../bindings/nvmem/st,stm32-romem.yaml | 1 +
> arch/arm/boot/dts/stm32mp131.dtsi | 2 +-
> drivers/nvmem/stm32-romem.c | 450 +++++++++++++++++-
> 3 files changed, 448 insertions(+), 5 deletions(-)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-31 17:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28 14:52 [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Patrick Delaunay
2022-10-28 14:52 ` [PATCH 1/3] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem Patrick Delaunay
2022-10-28 15:39 ` Fabrice Gasnier
2022-10-28 14:52 ` [PATCH 2/3] ARM: dts: stm32mp13: fix compatible for BSEC Patrick Delaunay
2022-10-31 17:42 ` [PATCH 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Srinivas Kandagatla
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).