Skip to contentSkip to conversation

ARM: dts: stm32: Reinstate missing root oscillators on STM32MP15xx

PATCH In review Marek Vasut 2 participants 4 messages Dec 15, 2024 – Dec 18, 2024

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

PATCH 1/1 ARM: dts: stm32: Reinstate missing root oscillators on STM32MP15xx

The root oscillators reference used to be in rcc node since
3d15245502c4 ("ARM: dts: stm32mp1: explicit clock reference needed by RCC clock driver") however this is not part of upstream stm32mp151.dtsi . The
RCC driver does need this reference, reinstate it globally.

---
NOTE: Would be good for 2025.01, but needs to be tested on other systems
---
Cc: Igor Opaniuk <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/dts/stm32mp15-u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/dts/stm32mp15-u-boot.dtsi +3 -0
index 66d4c40c6a8..3f57bd5fe0f 100644
@@ -186,6 +186,9 @@
 	bootph-all;
 	#address-cells = <1>;
 	#size-cells = <0>;
+	clock-names = "hse", "hsi", "csi", "lse", "lsi";
+	clocks = <&clk_hse>, <&clk_hsi>, <&clk_csi>,
+		 <&clk_lse>, <&clk_lsi>;
 };
 
 &usart1 {
Signature · 1 line
2.45.2
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 26 lines · Marek Vasut

The root oscillators reference used to be in rcc node since
3d15245502c4 ("ARM: dts: stm32mp1: explicit clock reference needed by RCC clock driver") however this is not part of upstream stm32mp151.dtsi . The
RCC driver does need this reference, reinstate it globally.

---
NOTE: Would be good for 2025.01, but needs to be tested on other systems
---
Cc: Igor Opaniuk <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/dts/stm32mp15-u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/dts/stm32mp15-u-boot.dtsi +0 -0
index 66d4c40c6a8..3f57bd5fe0f 100644

arch/arm/dts/stm32mp15-u-boot.dtsi line 194

Quoted 9 lines
arch/arm/dts/stm32mp15-u-boot.dtsi +3 -0
@@ -186,6 +186,9 @@
 	bootph-all;
 	#address-cells = <1>;
 	#size-cells = <0>;
+	clock-names = "hse", "hsi", "csi", "lse", "lsi";
+	clocks = <&clk_hse>, <&clk_hsi>, <&clk_csi>,
+		 <&clk_lse>, <&clk_lsi>;
 };
 
 &usart1 {

Tested on STM32MP157C-DK2 and STM32MP157C-EV1

Thanks
Patrice

#2 lore raw
Quoted 42 lines · Patrice CHOTARD
Quoted 26 lines · Marek Vasut

The root oscillators reference used to be in rcc node since
3d15245502c4 ("ARM: dts: stm32mp1: explicit clock reference needed by RCC clock driver") however this is not part of upstream stm32mp151.dtsi . The
RCC driver does need this reference, reinstate it globally.

---
NOTE: Would be good for 2025.01, but needs to be tested on other systems
---
Cc: Igor Opaniuk <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/dts/stm32mp15-u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/dts/stm32mp15-u-boot.dtsi +0 -0
index 66d4c40c6a8..3f57bd5fe0f 100644

arch/arm/dts/stm32mp15-u-boot.dtsi line 194

Quoted 9 lines
arch/arm/dts/stm32mp15-u-boot.dtsi +3 -0
@@ -186,6 +186,9 @@
 	bootph-all;
 	#address-cells = <1>;
 	#size-cells = <0>;
+	clock-names = "hse", "hsi", "csi", "lse", "lsi";
+	clocks = <&clk_hse>, <&clk_hsi>, <&clk_csi>,
+		 <&clk_lse>, <&clk_lsi>;
 };
 
 &usart1 {
Quoted 8 lines

Tested on STM32MP157C-DK2 and STM32MP157C-EV1

Thanks
Patrice
_______________________________________________
Uboot-stm32 mailing list
[email protected]
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32

Applied to u-boot-stm32/next

Thanks
Patrice

#3 lore raw
Quoted 55 lines · Patrice CHOTARD
Quoted 42 lines · Patrice CHOTARD
Quoted 26 lines · Marek Vasut

The root oscillators reference used to be in rcc node since
3d15245502c4 ("ARM: dts: stm32mp1: explicit clock reference needed by RCC clock driver") however this is not part of upstream stm32mp151.dtsi . The
RCC driver does need this reference, reinstate it globally.

---
NOTE: Would be good for 2025.01, but needs to be tested on other systems
---
Cc: Igor Opaniuk <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/dts/stm32mp15-u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/dts/stm32mp15-u-boot.dtsi +0 -0
index 66d4c40c6a8..3f57bd5fe0f 100644

arch/arm/dts/stm32mp15-u-boot.dtsi line 194

Quoted 9 lines
arch/arm/dts/stm32mp15-u-boot.dtsi +3 -0
@@ -186,6 +186,9 @@
 	bootph-all;
 	#address-cells = <1>;
 	#size-cells = <0>;
+	clock-names = "hse", "hsi", "csi", "lse", "lsi";
+	clocks = <&clk_hse>, <&clk_hsi>, <&clk_csi>,
+		 <&clk_lse>, <&clk_lsi>;
 };
 
 &usart1 {
Quoted 8 lines

Tested on STM32MP157C-DK2 and STM32MP157C-EV1

Thanks
Patrice
_______________________________________________
Uboot-stm32 mailing list
[email protected]
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32

Quoted 4 lines

Applied to u-boot-stm32/next

Thanks
Patrice

Sorry, applied to u-boot-stm32/master

Thanks
Patrice