• Peng Fan's avatar
    arm64: dts: imx8ulp: set default clock for SDHC · 97803407
    Peng Fan authored
    
    
    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: default avatarHaibo Chen <haibo.chen@nxp.com>
    Signed-off-by: default avatarYe Li <ye.li@nxp.com>
    Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
    Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
    97803407
imx8ulp.dtsi 13.2 KB