Skip to content

Commit 44a4a01

Browse files
Algea Caogregkh
authored andcommitted
phy: phy-rockchip-samsung-hdptx: Fix PHY PLL output 50.25MHz error
[ Upstream commit f947505 ] When using HDMI PLL frequency division coefficient at 50.25MHz that is calculated by rk_hdptx_phy_clk_pll_calc(), it fails to get PHY LANE lock. Although the calculated values are within the allowable range of PHY PLL configuration. In order to fix the PHY LANE lock error and provide the expected 50.25MHz output, manually compute the required PHY PLL frequency division coefficient and add it to ropll_tmds_cfg configuration table. Signed-off-by: Algea Cao <[email protected]> Reviewed-by: Cristian Ciocaltea <[email protected]> Acked-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 2c09a5c commit 44a4a01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ static const struct ropll_config ropll_tmds_cfg[] = {
328328
1, 1, 0, 0x20, 0x0c, 1, 0x0e, 0, 0, },
329329
{ 650000, 162, 162, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 54, 0, 16, 4, 1,
330330
1, 1, 0, 0x20, 0x0c, 1, 0x0e, 0, 0, },
331+
{ 502500, 84, 84, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 11, 1, 4, 5,
332+
4, 11, 1, 0, 0x20, 0x0c, 1, 0x0e, 0, 0, },
331333
{ 337500, 0x70, 0x70, 1, 1, 0xf, 1, 1, 1, 1, 1, 1, 1, 0x2, 0, 0x01, 5,
332334
1, 1, 1, 0, 0x20, 0x0c, 1, 0x0e, 0, 0, },
333335
{ 400000, 100, 100, 1, 1, 11, 1, 1, 0, 1, 0, 1, 1, 0x9, 0, 0x05, 0,

0 commit comments

Comments
 (0)