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 B024BEBFD37 for ; Mon, 13 Apr 2026 10:11:19 +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=7vhv69Y2gxm63mrcxTzKMonuuUKqvplOlDnhfAPQ1P0=; b=iwBbECJyctogOi0iV3K6YK1Ym5 GdU9eNbWTPQaZnX69AYjsmxRDoYCKtsnjJ8zTXPxOfTnrcezMSpi8UznKXZSUQgPv0Vbs/Y7h9zrp gC/N7DzDvq4BCcR4cIZ6F6GzO8S2dKt7ghHHpcaCXKMj6iefECqx51JmkcnHwZpWa/6dXoRd3fg0D 3Jg2RaFtdbnzQW9QfzHICcE1BDcVFDxd/5dcNzbyZ8vi+V9ykPfRgueChVoxcvuLpMiCnr9ryK8Nl SjQ3c8AjTKcHkWxEib+tU/0FDiuwLyQKf72fuPpRZP+nExsk0FnbXpTL+v1DQflakVaiwryPNxfkJ H/cGZLKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCEGB-0000000FRwz-20HG; Mon, 13 Apr 2026 10:11:15 +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 1wCEG9-0000000FRud-0NFb; Mon, 13 Apr 2026 10:11:14 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1776075039; cv=none; d=zohomail.com; s=zohoarc; b=grbanhlKd/mTMRRgybi00Zj23YmNLIdPBWoqc7uoWRz7xfkZj6hLkzi8tzosDtaOzPYaPx0++G+OWs1hbowgUAuldcA5dmMg4F6XfJHgBMkLqz+X89EM7+LyRkZk8SKEMfuLTu4F3BzVSOGlR+eJLO2xe98amPVthVPlK+w0ifY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1776075039; 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=7vhv69Y2gxm63mrcxTzKMonuuUKqvplOlDnhfAPQ1P0=; b=cYoteGAHNNwnCVfbxlHaj64S8vGhVyII5AoQTKkwhgJHooOnthogUPyg46Ol/5kzSD8JgAGAUC7LL+L9eFe+uisifySehgULEa9IEQEF/AufJdYLilCx6un05TRfb+/gb37BZJ3NDZph81jSse2CYtEfZ6WSF7efaQa2ndBGNlo= 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=1776075039; 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=7vhv69Y2gxm63mrcxTzKMonuuUKqvplOlDnhfAPQ1P0=; b=XzO0+UoHmGkrZjponbvggDDoR/S803ovsw+OV1Pgp87JYyE27y2kvvoLyfCE6chy b+tQ1pM388R5EDE6Akl4krfPxz6QtmlQakWzK8vMBF/7MFLHwQYSqbwl4t0HwlMYi6W lrbr2MSYuqBEpNn6967qNFYMFwS4xPeXxP9UF0KM= Received: by mx.zohomail.com with SMTPS id 1776075038744835.1317770260284; Mon, 13 Apr 2026 03:10:38 -0700 (PDT) From: Nicolas Frattaroli Date: Mon, 13 Apr 2026 12:07:34 +0200 Subject: [PATCH v13 20/27] 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: <20260413-color-format-v13-20-ab37d4dfba48@collabora.com> References: <20260413-color-format-v13-0-ab37d4dfba48@collabora.com> In-Reply-To: <20260413-color-format-v13-0-ab37d4dfba48@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 , Jonathan Corbet , Shuah Khan 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, linux-doc@vger.kernel.org, Nicolas Frattaroli , Cristian Ciocaltea X-Mailer: b4 0.15.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260413_031113_202785_8FD0A9A2 X-CRM114-Status: GOOD ( 11.03 ) 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. Reviewed-by: Cristian Ciocaltea 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 9bf727c1dd7d..a7a8bdb76ce6 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c @@ -602,6 +602,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(DRM_OUTPUT_COLOR_FORMAT_RGB444) | + BIT(DRM_OUTPUT_COLOR_FORMAT_YCBCR444) | + BIT(DRM_OUTPUT_COLOR_FORMAT_YCBCR422); + encoder = &hdmi->encoder.encoder; encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); -- 2.53.0