Skip to content

Commit cf8dccf

Browse files
MrVanabelvesa
authored andcommitted
clk: imx: fracn-gppll: fix the rate table
The Fvco should be range 2.4GHz to 5GHz, the original table voilate the spec, so update the table to fix it. Fixes: c196175 ("clk: imx: clk-fracn-gppll: Add more freq config for video pll") Fixes: 044034e ("clk: imx: clk-fracn-gppll: fix mfd value") Fixes: 1b26cb8 ("clk: imx: support fracn gppll") Signed-off-by: Jacky Bai <[email protected]> Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abel Vesa <[email protected]>
1 parent 7875ee2 commit cf8dccf

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

drivers/clk/imx/clk-fracn-gppll.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,20 @@ struct clk_fracn_gppll {
6060
};
6161

6262
/*
63-
* Fvco = Fref * (MFI + MFN / MFD)
64-
* Fout = Fvco / (rdiv * odiv)
63+
* Fvco = (Fref / rdiv) * (MFI + MFN / MFD)
64+
* Fout = Fvco / odiv
65+
* The (Fref / rdiv) should be in range 20MHz to 40MHz
66+
* The Fvco should be in range 2.5Ghz to 5Ghz
6567
*/
6668
static const struct imx_fracn_gppll_rate_table fracn_tbl[] = {
67-
PLL_FRACN_GP(650000000U, 81, 0, 1, 0, 3),
69+
PLL_FRACN_GP(650000000U, 162, 50, 100, 0, 6),
6870
PLL_FRACN_GP(594000000U, 198, 0, 1, 0, 8),
69-
PLL_FRACN_GP(560000000U, 70, 0, 1, 0, 3),
70-
PLL_FRACN_GP(498000000U, 83, 0, 1, 0, 4),
71+
PLL_FRACN_GP(560000000U, 140, 0, 1, 0, 6),
72+
PLL_FRACN_GP(498000000U, 166, 0, 1, 0, 8),
7173
PLL_FRACN_GP(484000000U, 121, 0, 1, 0, 6),
7274
PLL_FRACN_GP(445333333U, 167, 0, 1, 0, 9),
73-
PLL_FRACN_GP(400000000U, 50, 0, 1, 0, 3),
74-
PLL_FRACN_GP(393216000U, 81, 92, 100, 0, 5)
75+
PLL_FRACN_GP(400000000U, 200, 0, 1, 0, 12),
76+
PLL_FRACN_GP(393216000U, 163, 84, 100, 0, 10)
7577
};
7678

7779
struct imx_fracn_gppll_clk imx_fracn_gppll = {

0 commit comments

Comments
 (0)