From: "Jan Claußen" <jan.claussen10@web.de>
To: "Sandy Huang" <hjc@rock-chips.com>,
"Heiko Stübner" <heiko@sntech.de>,
"Andy Yan" <andy.yan@rock-chips.com>,
"Andrzej Hajda" <andrzej.hajda@intel.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Robert Foss" <rfoss@kernel.org>,
"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
"Jonas Karlman" <jonas@kwiboo.se>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>
Cc: "Jan Claußen" <jan.claussen10@web.de>,
dri-devel@lists.freedesktop.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH v6 5/8] drm/bridge: dw-hdmi-qp: Forward supported colorspaces from platform data
Date: Sat, 21 Nov 2026 17:06:57 +0100 [thread overview]
Message-ID: <20261121160725.6344-6-jan.claussen10@web.de> (raw)
In-Reply-To: <20261121160725.6344-1-jan.claussen10@web.de>
Let platform glue drivers declare the supported colorspaces, the same
way they already declare supported output formats and max bpc.
Signed-off-by: Jan Claußen <jan.claussen10@web.de>
---
drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 3 +++
include/drm/bridge/dw_hdmi_qp.h | 2 ++
2 files changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c
index b268c9376087..81180e9e8d94 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c
@@ -1170,6 +1170,9 @@ struct dw_hdmi_qp *dw_hdmi_qp_bind(struct platform_device *pdev,
if (plat_data->supported_formats)
hdmi->bridge.supported_formats = plat_data->supported_formats;
+ if (plat_data->supported_colorspaces)
+ hdmi->bridge.supported_colorspaces = plat_data->supported_colorspaces;
+
if (plat_data->max_bpc)
hdmi->bridge.max_bpc = plat_data->max_bpc;
diff --git a/include/drm/bridge/dw_hdmi_qp.h b/include/drm/bridge/dw_hdmi_qp.h
index ad33f9cafdeb..c336bd40c9cb 100644
--- a/include/drm/bridge/dw_hdmi_qp.h
+++ b/include/drm/bridge/dw_hdmi_qp.h
@@ -28,6 +28,8 @@ struct dw_hdmi_qp_plat_data {
unsigned long ref_clk_rate;
/* Supported output formats: bitmask of @drm_output_color_format */
unsigned int supported_formats;
+ /* Supported colorspaces: bitmask of &enum drm_colorspace */
+ unsigned int supported_colorspaces;
/* Maximum bits per color channel: 8, 10 or 12 */
unsigned int max_bpc;
};
--
2.56.0
next prev parent reply other threads:[~2026-11-21 16:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 16:06 [PATCH v6 0/8] drm: Add colorspace property support to the HDMI helpers Jan Claußen
2026-11-21 16:06 ` [PATCH v6 1/8] drm/connector: Fix typo in colorspace error messages Jan Claußen
2026-11-21 16:06 ` [PATCH v6 2/8] drm/display: hdmi-state-helper: Force modeset on colorspace change Jan Claußen
2026-11-21 16:06 ` [PATCH v6 3/8] drm/connector: hdmi: Create the colorspace property Jan Claußen
2026-11-21 16:06 ` [PATCH v6 4/8] drm/bridge-connector: Pass supported colorspaces to the HDMI helpers Jan Claußen
2026-11-21 16:06 ` Jan Claußen [this message]
2026-11-21 16:06 ` [PATCH v6 6/8] drm/rockchip: vop2: Select the CSC matrix from the DRM colorimetry Jan Claußen
2026-11-21 16:06 ` [PATCH v6 7/8] drm/rockchip: dw_hdmi_qp: Set the VOP2 color space from the connector Jan Claußen
2026-11-21 16:07 ` [PATCH v6 8/8] drm/rockchip: dw_hdmi_qp: Advertise BT.709 and BT.2020 colorimetries Jan Claußen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261121160725.6344-6-jan.claussen10@web.de \
--to=jan.claussen10@web.de \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=andy.yan@rock-chips.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=luca.ceresoli@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®