clk: imx: imx8mn: fix a53 cpu clock
authorPeng Fan <peng.fan@nxp.com>
Wed, 19 Feb 2020 10:17:08 +0000 (18:17 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 24 Feb 2020 07:39:56 +0000 (15:39 +0800)
commitc69def88987995f5d3ea28f12febd1b2c567f511
tree423d536c5e93fc31bf764fee9cae568aed8446ae
parentd3b70cd87e773bb298eb78fbafed68afaf06b1a2
clk: imx: imx8mn: 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.

Fixes: 96d6392b54db ("clk: imx: Add support for i.MX8MN clock driver")
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-imx8mn.c
include/dt-bindings/clock/imx8mn-clock.h