From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D617D116EA for ; Fri, 28 Nov 2025 21:08:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dAgf2IJww/37J6IOPDUXcRyIzwaZRZdmNgUMRzYM//Q=; b=SvMtzSRqnKatjuAV439K5UTmNn 7heHvvCTo+03MYAg8BU5k6tifTkA6SbtUyAhBHCJs+uWnnXKBM7wgMQyQsYbWunujPeiXmTT6ux7W x9xXbDZb/7Msqd/i0letAKDOqWPNfctGTQ/2fod+BdtYBC5LkDvFy4vst3DFQaWSJDGDMdX2VuCk/ HWJd3hBwIisvL+QVcJR5cLA683Spz2l4lkx8H3qKAsEQOnvRMwp6qAK5ev9dHFa046f7uUNIRPLTw d5sPym4PmF60R2hvxlx5KBxVo7FiMJxxRBg7sZZUry7ffQzFw9pPLwcau19bvmyVe7+2w+Imn5YCt i/o6SxJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vP5hg-00000000wko-1zrA; Fri, 28 Nov 2025 21:08:32 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vP5hT-00000000wWk-0Mi4; Fri, 28 Nov 2025 21:08:25 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1764364068; cv=none; d=zohomail.com; s=zohoarc; b=cLAmXQZ/YBA5qtRRcdRTLlBw5F0nvZ612w5SvVGTlxQMvbZSy4KxdPgOgszqQDdcbUYskHdii7iLAX1CwFus3qvUHdjWOdRbNQkRFHJMdCwUr50Fd0P8FAO8uqZAkNU9BAT4U2icFSHC7Xi/asiZx7W2a4D5uv+jCey70FdCG1k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764364068; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=dAgf2IJww/37J6IOPDUXcRyIzwaZRZdmNgUMRzYM//Q=; b=MmYdFslnqdZZ/beM9gFlLFGctdN3164IRufzOe/hmW2Tkcf8oVTvR3yRwfylt7hGYWj58847MAP8D1z2i70uaUXdjzZZU4X0M96D+u2NVDmYEcYK95KTjzVFSk6/fPoKB9+8r5Xz+Sih+2k51GFvF280oNd0LPntWNszVeT6irU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1764364068; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=dAgf2IJww/37J6IOPDUXcRyIzwaZRZdmNgUMRzYM//Q=; b=KfSnRlYunBEDu96QVtg18o4Ya8eu87S4Cxd17HWPG0X1ZaBiiDiNx8qbrVxMJpZn SZ+kRnjawA7LdtXW4s2wqzSz19xBm7AzGcRBM6X9LwCVqwPkCEtym0WkQm/b60KmAh5 S7pcPzhfBrj5NP50hjPMPqNipPknLX4M/IFyyYOY= Received: by mx.zohomail.com with SMTPS id 1764364067219305.4924690153981; Fri, 28 Nov 2025 13:07:47 -0800 (PST) From: Nicolas Frattaroli Date: Fri, 28 Nov 2025 22:05:51 +0100 Subject: [PATCH v5 15/17] drm/rockchip: dw_hdmi_qp: Set supported_formats platdata MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251128-color-format-v5-15-63e82f1db1e1@collabora.com> References: <20251128-color-format-v5-0-63e82f1db1e1@collabora.com> In-Reply-To: <20251128-color-format-v5-0-63e82f1db1e1@collabora.com> To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , Dmitry Baryshkov , Sascha Hauer , Rob Herring Cc: kernel@collabora.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, Nicolas Frattaroli X-Mailer: b4 0.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251128_130819_265599_D41E88AD X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With the introduction of the supported_formats member in the dw-hdmi-qp platform data struct, drivers that have access to this information should now set it. Set it in the rockchip dw_hdmi_qp glue driver. This allows this information to be passed down to the dw-hdmi-qp core, which sets it in the bridge it creates, and consequently will allow the common HDMI bridge code to act on it. Signed-off-by: Nicolas Frattaroli --- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c index c79ebd9e866c..5827ca2de0bd 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c @@ -576,6 +576,10 @@ static int dw_hdmi_qp_rockchip_bind(struct device *dev, struct device *master, plat_data.phy_data = hdmi; plat_data.max_bpc = 10; + plat_data.supported_formats = BIT(HDMI_COLORSPACE_RGB) | + BIT(HDMI_COLORSPACE_YUV444) | + BIT(HDMI_COLORSPACE_YUV422); + encoder = &hdmi->encoder.encoder; encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); -- 2.52.0