drm/rockchip: inno_hdmi: Add basic mode validation
authorAlex Bee <knaerzche@gmail.com>
Fri, 22 Dec 2023 17:42:16 +0000 (18:42 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 4 Jan 2024 08:08:07 +0000 (09:08 +0100)
commit701029621d4141d0c9f8b81a88a37b95ec84ce65
treefae0579db2e1e4d939917c6b436319fcffa85767
parentaa54f334c291effe321aa4b9ac0e67a895fd7b58
drm/rockchip: inno_hdmi: Add basic mode validation

As per TRM this controller supports pixelclocks starting from 25 MHz. The
maximum supported pixelclocks are defined by the phy configurations we
have. Also it can't support modes that require doubled clocks. If the
variant has a phy reference clock we can additionally validate against VESA
DMT'srecommendations.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222174220.55249-26-knaerzche@gmail.com
drivers/gpu/drm/rockchip/inno_hdmi.c