Since both Rockchip RK3576 and RK3588 SoCs are capable of handling 10 bpc color depth HDMI output and we've already landed the required HDPTX PHY driver changes to support the setup, let's add the missing bits and pieces to VOP2, DW HDMI QP encoder and bridge library.
Signed-off-by: Cristian Ciocaltea <[email protected]> --- Changes in v3: - Rebased series onto latest drm-misc-next in order to: * Replace HIWORD_UPDATE with FIELD_PREP_WM16 macro * Remove dependency on HDMI CEC series - Unconditionally used DIV_ROUND_CLOSEST_ULL(), as suggested by Daniel; also collected his R-b and A-b tags - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - Replaced patch 'drm/rockchip: vop2: Add high color depth support' with 'drm/rockchip: vop2: Check bpc before switching DCLK source' - Rebased series onto next-20250825 while adding the HDMI CEC series as a dependency - Link to v1: https://lore.kernel.org/r/[email protected] --- Cristian Ciocaltea (5): drm/rockchip: vop2: Check bpc before switching DCLK source drm/bridge: dw-hdmi-qp: Handle platform supported formats and color depth drm/rockchip: dw_hdmi_qp: Switch to phy_configure() drm/rockchip: dw_hdmi_qp: Use bit macros for RK3576 regs drm/rockchip: dw_hdmi_qp: Add high color depth support drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 11 ++- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 108 +++++++++++++++++-------- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 58 +++++++------ include/drm/bridge/dw_hdmi_qp.h | 4 + 4 files changed, 121 insertions(+), 60 deletions(-) --- base-commit: 7ea0468380216c10b73633b976d33efa8c12d375 change-id: 20250721-rk3588-10bpc-85ff4c228e63
