Hi, Here's a collection of patches that have been in the downstream tree for a while to add a bunch of new features to the HDMI controller. Let me know what you think, Maxime To: Emma Anholt <emma@xxxxxxxxxx> To: Maxime Ripard <mripard@xxxxxxxxxx> To: David Airlie <airlied@xxxxxxxxx> To: Daniel Vetter <daniel@xxxxxxxx> Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Cc: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx> Signed-off-by: Maxime Ripard <maxime@xxxxxxxxxx> --- Changes in v2: - Added a new patch to convert every state accessor to container_of_const - Added a comment to mention why planes don't need to be checked - Removed vc4_hdmi.broadcast_rgb field - Reordered the CSC swap and CSC matrices organization patches to make it clearer - Link to v1: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v1-0-6b15f774c13a@xxxxxxxxxx --- Dave Stevenson (7): drm/vc4: hdmi: Add Broadcast RGB property to allow override of RGB range drm/vc4: hdmi: Rename full range helper drm/vc4: hdmi: Swap CSC matrix channels for YUV444 drm/vc4: hdmi: Rework the CSC matrices organization drm/vc4: hdmi: Add a function to retrieve the CSC matrix drm/vc4: hdmi: Add BT.601 Support drm/vc4: hdmi: Add BT.2020 Support Maxime Ripard (2): drm/vc4: Switch to container_of_const drm/vc4: hdmi: Update all the planes if the TV margins are changed drivers/gpu/drm/vc4/tests/vc4_mock.h | 3 + drivers/gpu/drm/vc4/tests/vc4_mock_output.c | 4 +- drivers/gpu/drm/vc4/vc4_bo.c | 2 +- drivers/gpu/drm/vc4/vc4_crtc.c | 4 +- drivers/gpu/drm/vc4/vc4_dpi.c | 7 +- drivers/gpu/drm/vc4/vc4_drv.h | 65 ++---- drivers/gpu/drm/vc4/vc4_dsi.c | 19 +- drivers/gpu/drm/vc4/vc4_gem.c | 7 +- drivers/gpu/drm/vc4/vc4_hdmi.c | 343 +++++++++++++++++++++++----- drivers/gpu/drm/vc4/vc4_hdmi.h | 25 +- drivers/gpu/drm/vc4/vc4_irq.c | 2 +- drivers/gpu/drm/vc4/vc4_kms.c | 16 +- drivers/gpu/drm/vc4/vc4_plane.c | 2 +- drivers/gpu/drm/vc4/vc4_txp.c | 12 +- drivers/gpu/drm/vc4/vc4_v3d.c | 2 +- drivers/gpu/drm/vc4/vc4_vec.c | 14 +- 16 files changed, 355 insertions(+), 172 deletions(-) --- base-commit: 9fbee811e479aca2f3523787cae1f46553141b40 change-id: 20221207-rpi-hdmi-improvements-3de1c0dba2dc Best regards, -- Maxime Ripard <maxime@xxxxxxxxxx>