ARM: imx8mq: reclock ARM PLL to 800MHz
Subsystems (2)
PATCH 1/1 ARM: imx8mq: reclock ARM PLL to 800MHz
The BootROM sets up the ARM PLL to run at 1.6GHz and then uses the divider after the PLL the achieve a CPU clock rate of 800MHz. New Linux kernels (>= 5.8) switch to a clock path that bypasses the divider, as the divider should not be used for CPU clock frequencies >1GHz. If the BootROM setup is left unchanged this causes the CPU clock to jump to the full 1.6GHz until CPUfreq takes over and reprograms the PLL. This rate is outside of the chip specification and leads to crashes.
Fix this by reclocking the ARM PLL to 800MHz.
--- arch/arm/dts/imx8mq.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/dts/imx8mq.dtsi +6 -2
@@ -17,7 +17,9 @@ <&clk IMX8MQ_CLK_USDHC2>, <&clk IMX8MQ_CLK_ENET_AXI>, <&clk IMX8MQ_CLK_ENET_TIMER>, - <&clk IMX8MQ_CLK_ENET_REF>; + <&clk IMX8MQ_CLK_ENET_REF>, + <&clk IMX8MQ_ARM_PLL>, + <&clk IMX8MQ_CLK_A53_DIV>; assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_400M>, <&clk IMX8MQ_SYS1_PLL_400M>,
@@ -29,5 +31,7 @@ <200000000>, <266000000>, <25000000>, - <125000000>; + <125000000>, + <800000000>, + <800000000>; };
Signature · 7 lines
2.29.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 8 lines · Lucas Stach
The BootROM sets up the ARM PLL to run at 1.6GHz and then uses the divider after the PLL the achieve a CPU clock rate of 800MHz. New Linux kernels (>= 5.8) switch to a clock path that bypasses the divider, as the divider should not be used for CPU clock frequencies >1GHz. If the BootROM setup is left unchanged this causes the CPU clock to jump to the full 1.6GHz until CPUfreq takes over and reprograms the PLL. This rate is outside of the chip specification and leads to crashes.
Quoted 6 lines
Fix this by reclocking the ARM PLL to 800MHz.
Signed-off-by Lucas Stach <[email protected]>--- arch/arm/dts/imx8mq.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
Applied, thanks
Sascha
Quoted 34 lines
arch/arm/dts/imx8mq.dtsi +6
-2@@ -17,7 +17,9 @@ <&clk IMX8MQ_CLK_USDHC2>, <&clk IMX8MQ_CLK_ENET_AXI>, <&clk IMX8MQ_CLK_ENET_TIMER>, - <&clk IMX8MQ_CLK_ENET_REF>; + <&clk IMX8MQ_CLK_ENET_REF>, + <&clk IMX8MQ_ARM_PLL>, + <&clk IMX8MQ_CLK_A53_DIV>; assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_400M>, <&clk IMX8MQ_SYS1_PLL_400M>,@@ -29,5 +31,7 @@ <200000000>, <266000000>, <25000000>, - <125000000>; + <125000000>, + <800000000>, + <800000000>; };Signature · 7 lines
2.29.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox