[PATCH 00/14] drm: Create drm_output_color_format enum

Maxime Ripard
2026-02-24T10:58:52Z

Hi,

This series creates an enum to represent the output color format as an
enum instead of a bitmask, and consolidate the HDMI helpers to use the
new enum.

This should make Nicolas' work easier.

It has been build tested, and passes kunit tests.

Let me know what you think,
Maxime

---
Maxime Ripard (14):
drm/connector: Introduce drm_output_color_format enum
drm/edid: Convert to drm_output_color_format enum
drm/display: hdmi: Convert to drm_output_color_format
drm/amdgpu: display: Convert to drm_output_color_format
drm/bridge: adv7511: Convert to drm_output_color_format
drm/bridge: analogix: Convert to drm_output_color_format
drm/bridge: cadence: Convert to drm_output_color_format
drm/bridge: synopsys: dw-dp: Convert to drm_output_color_format
drm/bridge: synopsys: dw-hdmi: Convert to drm_output_color_format
drm/arm: komeda: Convert to drm_output_color_format
drm/mediatek: dp: Convert to drm_output_color_format
drm/rockchip: analogix: Convert to drm_output_color_format
drm/connector: Remove DRM_COLOR_FORMAT defines
drm/display: hdmi: Use drm_output_color_format instead of hdmi_colorspace

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 +-
.../gpu/drm/arm/display/komeda/d71/d71_component.c | 14 +-
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 2 +-
.../gpu/drm/arm/display/komeda/komeda_pipeline.h | 5 +-
.../drm/arm/display/komeda/komeda_pipeline_state.c | 2 +-
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +-
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 +-
.../gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 24 +--
.../gpu/drm/bridge/cadence/cdns-mhdp8546-core.h | 2 +-
drivers/gpu/drm/bridge/inno-hdmi.c | 6 +-
drivers/gpu/drm/bridge/ite-it6263.c | 2 +-
drivers/gpu/drm/bridge/synopsys/dw-dp.c | 71 ++++----
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 16 +-
drivers/gpu/drm/display/drm_hdmi_helper.c | 7 +-
drivers/gpu/drm/display/drm_hdmi_state_helper.c | 60 ++++---
drivers/gpu/drm/drm_bridge.c | 2 +-
drivers/gpu/drm/drm_connector.c | 14 +-
drivers/gpu/drm/drm_edid.c | 18 +-
drivers/gpu/drm/mediatek/mtk_dp.c | 4 +-
drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 8 +-
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 4 +-
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 2 +-
drivers/gpu/drm/tests/drm_connector_test.c | 80 ++++-----
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 182 ++++++++++-----------
drivers/gpu/drm/vc4/vc4_hdmi.c | 18 +-
drivers/gpu/drm/vc4/vc4_hdmi.h | 2 +-
include/drm/display/drm_hdmi_helper.h | 3 +-
include/drm/drm_connector.h | 46 ++++--
28 files changed, 326 insertions(+), 278 deletions(-)
---
base-commit: 3a2ffb469faa8240fe87e7d5f3533d14fdcc69f3
change-id: 20260224-drm-rework-color-formats-82dcccc13c11

Best regards,
--
Maxime Ripard <mripard@kernel.org>