arm64: dts: imx8ulp: set default clock for SDHC
authorPeng Fan <peng.fan@nxp.com>
Mon, 24 Jul 2023 07:58:25 +0000 (15:58 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sun, 30 Jul 2023 13:18:56 +0000 (21:18 +0800)
commit97803407518dd58ab8038f94f8705f413ef53ff6
tree1d339d72c58d387e2cdda8030517adab2f952a3c
parent5b9435d646d1cbfc39dd8ca2f83ca109ea3f2bd2
arm64: dts: imx8ulp: set default clock for SDHC

Set default clock rate and parents for SDHC[0,1,2].

The PLL3 PFD2 maximum frequency is 332Mhz, we can't set it to 389Mhz
as USDHC clock parent. Because PLL3 PFD0 is used for NIC, PFD1 is used
for audio, the only choice is PFD3 which can reach to 400Mhz.

USDHC1 and USDHC2 maximum PCC clock rate is 200Mhz in Over Drive mode,
and 100Mhz in Nominal/Low Drive mode, when PTE or PTF is used.

The patch adjusts clock parent to PLL3 PFD3 DIV1 for USDHC0, PLL3
PFD3 DIV2 for USDHC1 and USDHC2. And set the max rate to meet
restrictions.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8ulp.dtsi