From 414748562d097a8c58781753734cb722fec40c29 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Mon, 13 Jan 2020 16:13:54 +0800 Subject: MLK-23228-3 clk: imx: imx8mn: fix a53 cpu clock A53 CCM clk root only accepts input up to 1GHz, however the A53 core could run above 1GHz which voliates the CCM limitation. There is a CORE_SEL slice before A53 core, we need configure the CORE_SEL slice source from ARM PLL, not A53 CCM clk root. The A53 CCM clk root should only be used when need to change ARM PLL frequency. Add arm_a53_core clk that could source from arm_a53_div and arm_pll_out. Configure a53 ccm root sources from 800MHz sys pll Configure a53 core sources from arm_pll_out Enable arm_pll_out to avoid disable the clock when set a53 core parent. Fixes: 96d6392b54db ("clk: imx: Add support for i.MX8MN clock driver") Reviewed-by: Jacky Bai Signed-off-by: Peng Fan --- include/dt-bindings/clock/imx8mn-clock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/dt-bindings') diff --git a/include/dt-bindings/clock/imx8mn-clock.h b/include/dt-bindings/clock/imx8mn-clock.h index 0c7c750fc2c4..9e55f30d9c83 100644 --- a/include/dt-bindings/clock/imx8mn-clock.h +++ b/include/dt-bindings/clock/imx8mn-clock.h @@ -210,7 +210,8 @@ #define IMX8MN_CLK_NAND_USDHC_BUS_RAWNAND_CLK 192 #define IMX8MN_CLK_GPU_CORE_ROOT 193 #define IMX8MN_CLK_GIC 194 +#define IMX8MN_CLK_A53_CORE 195 -#define IMX8MN_CLK_END 195 +#define IMX8MN_CLK_END 196 #endif -- cgit v1.2.3