MLK-17120: arm64: dts: assign the clock rate for GPMI NAND in DT
authorHan Xu <han.xu@nxp.com>
Thu, 7 Dec 2017 20:28:34 +0000 (14:28 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:27 +0000 (14:50 -0500)
commit94ffe02dcbb0e5d4e6e5c4e88c23c98025ce35e7
treea8b1ffaebcb094818717ca50a618935496a7be96
parent052b8c1ba872eb7afbc005f1403f0bebadabe3af
MLK-17120: arm64: dts: assign the clock rate for GPMI NAND in DT

Assign the clock rate for GPMI NAND on i.MX8QXP ARM2 device tree.

To keep the same clock rate after system suspend/resume, we need to set
assign a clock rate for GPMI NAND, otherwise the timing register won't
match with the clock setting.

The code change also a workaround for SCU clock rate setting. NAND use a
very low clock freq (22Mhz) and safe timing to identify which chips were
connected. This low freq divide from high freq parent clock(1Ghz) caused
the SCU clock divider go beyond the limit (31)

SCU need to implement the clk_round_rate to found this issue and return
error value to upper layer. Right now assign 50Mhz for GPMI initial
clock as a workaround.

Signed-off-by: Han Xu <han.xu@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi