]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: phy-rockchip-samsung-hdptx: Fix PHY PLL output 50.25MHz error
authorAlgea Cao <algea.cao@rock-chips.com>
Sun, 27 Apr 2025 09:51:24 +0000 (17:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:45:10 +0000 (14:45 +0200)
commit9c2cee0039220dab3ad24b237e6593128ca19a78
treebfde2416adc1eed75e7482762dfbb851d8e18a98
parent38ef594fe59770770506ec3cdbae07a2f36995c6
phy: phy-rockchip-samsung-hdptx: Fix PHY PLL output 50.25MHz error

[ Upstream commit f9475055b11c0c70979bd1667a76b2ebae638eb7 ]

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 <algea.cao@rock-chips.com>
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250427095124.3354439-1-algea.cao@rock-chips.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c