clk: imx: imx8mp: fix a53 cpu clock
authorPeng Fan <peng.fan@nxp.com>
Wed, 19 Feb 2020 10:17:09 +0000 (18:17 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 24 Feb 2020 07:39:56 +0000 (15:39 +0800)
commit7ab227210110a4137b005b7be3df1ec2d668ac96
treeb478f5bea8eccafa1bf6a833848f03cc248ec41a
parentc69def88987995f5d3ea28f12febd1b2c567f511
clk: imx: imx8mp: fix a53 cpu clock

The A53 CCM clk root only accepts input up to 1GHz, CCM A53 root
signoff timing is 1Ghz, however the A53 core which sources from CCM
root could run above 1GHz which voilates the CCM.

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
Mark arm_a53_core as critical clk

Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8mp.c
include/dt-bindings/clock/imx8mp-clock.h