clk: imx: pllv4: Fix SPLL2 MULT range
authorYe Li <ye.li@nxp.com>
Sun, 25 Jun 2023 12:33:39 +0000 (20:33 +0800)
committerAbel Vesa <abel.vesa@linaro.org>
Mon, 14 Aug 2023 09:29:52 +0000 (12:29 +0300)
commit3f0cdb945471f1abd1cf4d172190e9c489c5052a
tree80991174993ac1fb7e8c6fa3dc971fdf60bba620
parentd3a0946d7ac9ad844a196f0f2af696fde6b0728d
clk: imx: pllv4: Fix SPLL2 MULT range

The SPLL2 on iMX8ULP is different with other frac PLLs, it can
support VCO from 650Mhz to 1Ghz. According to RM, the MULT is
using a range from 27 to 54, not some fixed values. If using
current PLL implementation, some clock rate can't be supported.

Fix the issue by adding new type for the SPLL2 and use MULT range
to replace MULT table

Fixes: 5f0601c47c33 ("clk: imx: Update the pllv4 to support imx8ulp")
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230625123340.4067536-1-peng.fan@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-pllv4.c
drivers/clk/imx/clk.h