Skip to contentSkip to conversation

ARM: dts: stm32: Fix reset for usart1 in scmi configuration

PATCH In review Patrice Chotard 2 participants 3 messages Jan 4, 2024 – Jan 19, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: stm32: Fix reset for usart1 in scmi configuration

In SCMI configuration, usart1 is secure, so all its resources are secured (clock and reset) and can't be set/unset by non-secure world but by OP-TEE.

Fixes 6cccc8d396bf ("ARM: dts: stm32: add SCMI version of STM32 boards (DK1/DK2/ED1/EV1)")

---

 arch/arm/dts/stm32mp15-scmi-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/stm32mp15-scmi-u-boot.dtsi +1 -1
index 7c8fec6cbfb..79494ecad90 100644
@@ -135,7 +135,7 @@
 };
 
 &usart1 {
-	resets = <&rcc USART1_R>;
+	resets = <&scmi_reset RST_SCMI_USART1>;
 };
 
 &usart2 {
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 16 lines · Patrice Chotard

In SCMI configuration, usart1 is secure, so all its resources are secured (clock and reset) and can't be set/unset by non-secure world but by OP-TEE.

Fixes 6cccc8d396bf ("ARM: dts: stm32: add SCMI version of STM32 boards (DK1/DK2/ED1/EV1)")

---

  arch/arm/dts/stm32mp15-scmi-u-boot.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/stm32mp15-scmi-u-boot.dtsi +0 -0
index 7c8fec6cbfb..79494ecad90 100644

arch/arm/dts/stm32mp15-scmi-u-boot.dtsi line 141

Quoted 8 lines
arch/arm/dts/stm32mp15-scmi-u-boot.dtsi +1 -1
@@ -135,7 +135,7 @@
  };
 
  &usart1 {
-	resets = <&rcc USART1_R>;
+	resets = <&scmi_reset RST_SCMI_USART1>;
  };
 
  &usart2 {

Thanks
Patrick

#2 lore raw
Quoted 29 lines · Patrick DELAUNAY

Hi,

Quoted 16 lines · Patrice Chotard

In SCMI configuration, usart1 is secure, so all its resources are secured (clock and reset) and can't be set/unset by non-secure world but by OP-TEE.

Fixes 6cccc8d396bf ("ARM: dts: stm32: add SCMI version of STM32 boards (DK1/DK2/ED1/EV1)")

---

  arch/arm/dts/stm32mp15-scmi-u-boot.dtsi | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/stm32mp15-scmi-u-boot.dtsi +0 -0
index 7c8fec6cbfb..79494ecad90 100644

arch/arm/dts/stm32mp15-scmi-u-boot.dtsi line 139

Quoted 6 lines
arch/arm/dts/stm32mp15-scmi-u-boot.dtsi +1 -1
@@ -135,7 +135,7 @@
   };
     &usart1 {
-    resets = <&rcc USART1_R>;
+    resets = <&scmi_reset RST_SCMI_USART1>;
   };
     &usart2 {
Quoted 4 lines

Thanks
Patrick

Applied to u-boot-stm32/master

Thanks
Patrice