drm/rockchip: vop2: Improve display modes handling on RK3588 HDMI0
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 4 Feb 2025 12:40:06 +0000 (14:40 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 6 Feb 2025 10:57:54 +0000 (11:57 +0100)
commit2c1268e7aad0819f38e56134bbc2095fd95fde1b
treeb7dbd8a0ff30d252c9c16a6953d9c96ef932c7ef
parent9f40d7a94427a503e303b2a2d8db227d615e32c1
drm/rockchip: vop2: Improve display modes handling on RK3588 HDMI0

The RK3588 specific implementation is currently quite limited in terms
of handling the full range of display modes supported by the connected
screens, e.g. 2560x1440@75Hz, 2048x1152@60Hz, 1024x768@60Hz are just a
few of them.

Additionally, it doesn't cope well with non-integer refresh rates like
59.94, 29.97, 23.98, etc.

Make use of HDMI0 PHY PLL as a more accurate DCLK source to handle
all display modes up to 4K@60Hz.

Tested-by: FUKAUMI Naoki <naoki@radxa.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20250204-vop2-hdmi0-disp-modes-v3-3-d71c6a196e58@collabora.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c