Skip to contentSkip to conversation

arm64: dts: imx8mm: Make osc_32k available in SPL

PATCH Applied Fabio Estevam 2 participants 3 messages Apr 25, 2025 – Apr 28, 2025

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 arm64: dts: imx8mm: Make osc_32k available in SPL

From: Fabio Estevam <[email protected]>

Since commit b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*") SPL takes a long time to load U-Boot proper on an imx8mm-evk board.

The reason for the long delay is because the osc_32k clock is not available in the SPL phase.

Fix this problem by passing the 'bootph-all' and 'bootph-pre-ram' properties to make the osc_32k clock available in SPL.

This also aligns with imx8mn and imx8mp-u-boot.dtsi files.

Fixes b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*")

---
Changes since v1:
- Sent a standalone patch that makes osc_32k available in SPL. (Marek)

 arch/arm/dts/imx8mm-u-boot.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/imx8mm-u-boot.dtsi +5 -0
index abb3aa5b6354..59453dc36d31 100644
@@ -240,6 +240,11 @@
 	bootph-pre-ram;
 };
 
+&osc_32k {
+	bootph-all;
+	bootph-pre-ram;
+};
+
 #ifdef CONFIG_FSL_CAAM
 &sec_jr0 {
 	bootph-pre-ram;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Since commit b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*") SPL takes a long time to load U-Boot proper on an imx8mm-evk board.

Quoted 7 lines

The reason for the long delay is because the osc_32k clock is not available in the SPL phase.

Fix this problem by passing the 'bootph-all' and 'bootph-pre-ram' properties to make the osc_32k clock available in SPL.

This also aligns with imx8mn and imx8mp-u-boot.dtsi files.

I agree that this is the right thing to do.

Quoted 1 line
Quoted 29 lines
Fixes b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*")

---
Changes since v1:
- Sent a standalone patch that makes osc_32k available in SPL. (Marek)

 arch/arm/dts/imx8mm-u-boot.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/imx8mm-u-boot.dtsi +5 -1
index abb3aa5b6354..59453dc36d31 100644
@@ -240,6 +240,11 @@
        bootph-pre-ram;
 };
 
+&osc_32k {
+       bootph-all;
+       bootph-pre-ram;
+};
+
 #ifdef CONFIG_FSL_CAAM
 &sec_jr0 {
        bootph-pre-ram;
--

2.34.1

author reviewer Applied
#2 lore raw
In reply to Fabio Estevam
Quoted 12 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Since commit b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*") SPL takes a long time to load U-Boot proper on an imx8mm-evk board.

The reason for the long delay is because the osc_32k clock is not available in the SPL phase.

Fix this problem by passing the 'bootph-all' and 'bootph-pre-ram' properties to make the osc_32k clock available in SPL.

Quoted 8 lines

This also aligns with imx8mn and imx8mp-u-boot.dtsi files.

Fixes b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*")

---
Changes since v1:
- Sent a standalone patch that makes osc_32k available in SPL. (Marek)

Applied, thanks.