clk: rockchip: rk3568: Fix PLL rate setting for 78.75MHz
Subsystems (2)
PATCH 1/1 clk: rockchip: rk3568: Fix PLL rate setting for 78.75MHz
PLL rate on RK356x is calculated through the simple formula:
((24000000 / _refdiv) * _fbdiv) / (_postdiv1 * _postdiv2)
The PLL rate setting for 78.75MHz seems to be copied from 96MHz so this patch fixes it and configures it properly.
--- drivers/clk/rockchip/clk-rk3568.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/rockchip/clk-rk3568.c +1 -1
@@ -82,7 +82,7 @@ static struct rockchip_pll_rate_table rk3568_pll_rates[] = {RK3036_PLL_RATE (101000000 ,1 ,101 ,6 ,4 ,1 ,0 ),RK3036_PLL_RATE (100000000 ,1 ,150 ,6 ,6 ,1 ,0 ),RK3036_PLL_RATE (96000000 ,1 ,96 ,6 ,4 ,1 ,0 ), -RK3036_PLL_RATE (78750000 ,1 ,96 ,6 ,4 ,1 ,0 ), +RK3036_PLL_RATE (78750000 ,4 ,315 ,6 ,4 ,1 ,0 ), RK3036_PLL_RATE(74250000, 2, 99, 4, 4, 1, 0), { /* sentinel */ }, };
Signature · 7 lines
2.34.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
bump
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Quoted 8 lines · Alibek Omarov
PLL rate on RK356x is calculated through the simple formula:
((24000000 /_refdiv) *_fbdiv) / (_postdiv1*_postdiv2)The PLL rate setting for 78.75MHz seems to be copied from 96MHz so this patch fixes it and configures it properly.
Signed-off-by Alibek Omarov <[email protected]>Fixes 842f4cb72639 ("clk: rockchip: Add more PLL rates for rk3568")
Quoted 9 lines
--- drivers/clk/rockchip/clk-rk3568.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/rockchip/clk-rk3568.c +0
-0
drivers/clk/rockchip/clk-rk3568.c static struct rockchip_pll_rate_table rk3568_pll_rates[] = { · line 85
Quoted 5 lines
drivers/clk/rockchip/clk-rk3568.c +1
-1@@ -82,7 +82,7 @@ static struct rockchip_pll_rate_table rk3568_pll_rates[] = {RK3036_PLL_RATE (101000000 ,1 ,101 ,6 ,4 ,1 ,0 ),RK3036_PLL_RATE (100000000 ,1 ,150 ,6 ,6 ,1 ,0 ),RK3036_PLL_RATE (96000000 ,1 ,96 ,6 ,4 ,1 ,0 ), - RK3036_PLL_RATE(78750000, 1, 96, 6, 4, 1, 0), + RK3036_PLL_RATE(78750000, 4, 315, 6, 4, 1, 0),
refdiv = 4
fbdiv = 315
postdiv1 = 6
postdiv2 = 4
((24000000 / 4) * 315) / 6 / 4 = 78750000
LGTM
Sascha
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 8 lines · Alibek Omarov
PLL rate on RK356x is calculated through the simple formula:
((24000000 /_refdiv) *_fbdiv) / (_postdiv1*_postdiv2)The PLL rate setting for 78.75MHz seems to be copied from 96MHz so this patch fixes it and configures it properly.
[...]
Applied, thanks!
[1/1] clk: rockchip: rk3568: Fix PLL rate setting for 78.75MHz
commit: 17c6d0c5f2a4dd3f48e300d77c93780d5c36a37e
Best regards,
Signature · 6 lines
Heiko Stuebner <[email protected]> _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip