arm64: dts: imx8mm: Make osc_32k available in SPL
Subsystems (2)
Fabio Estevam
reviewerPATCH 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.
---
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
@@ -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
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_32kclock is not available in the SPL phase.Fix this problem by passing the 'bootph-all' and 'bootph-pre-ram' properties to make the
osc_32kclock available in SPL.This also aligns with imx8mn and
imx8mp-u-boot.dtsifiles.
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_*")Suggested-by Marek Vasut <[email protected]>Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Sent a standalone patch that makesosc_32kavailable 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@@ -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
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_32kclock is not available in the SPL phase.Fix this problem by passing the 'bootph-all' and 'bootph-pre-ram' properties to make the
osc_32kclock available in SPL.
Quoted 8 lines
This also aligns with imx8mn and
imx8mp-u-boot.dtsifiles.Fixes b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*")Suggested-by Marek Vasut <[email protected]>Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Sent a standalone patch that makesosc_32kavailable in SPL. (Marek)
Applied, thanks.