From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 089AD39280A; Thu, 23 Apr 2026 19:08:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776971304; cv=pass; b=no34yn0VUIm2wnF4B+6k9wfaD2x+D9Sx3LKyRRq6HaClHKiL6ChbW18d6Y+zy2uhDpajgpArg74CuTLc8cE7Fytg4x05JQJWbJZ2VNiMLpMP2ab0bT1FWiaULm3YRnVl+ra2AAbKVuFTL3BsZIN2JTnBTXiRUa/m3bkUPfV04JI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776971304; c=relaxed/simple; bh=CpQ7hedweRVg8TM69P2sFmWfUhmeTeHdde5gOty4H1A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=goswnbiO5jb8s6Md/+FHAxEBKSg7kp61MJ75fFaCsEhegrw8KO4v79IrmxsueefsxqbSO0QsOVV8PEfJ7iJMYaNV7SxTx0vPtF15qDN4gqn6wtGN9UuPrAujIc6brQhQoW0+8262vEpqG0iehxZl5BMcs98poI/TfQu8dHTaU9w= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=UdcDwuYh; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="UdcDwuYh" ARC-Seal: i=1; a=rsa-sha256; t=1776971194; cv=none; d=zohomail.com; s=zohoarc; b=QCMRjrlmS7s35uYmvI+YnC6SB4xX22xYb5GQNy+qNZQt1+ikl7YJQaBNedDIycY+8m1AjQ+ac06vIpNa+1vjQIdzZRLWNL0MhWXx9hnjOWPH+vZ7ZU8owEOVDPaQ9lNUnYCTsegFJxABo9y8N/okeWM9j+gHZ1pYNuSWgGEBd+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1776971194; 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=SWfCDZuqni6ExRp+yIRsZh4Y5Sj/I9oyLFbsxMpSWMoEDGRgeJjO1YztWKsgWuNGR3IbhD2hMRIRCIlueR8YxY7a3eKAoIYzJKi80aKVEqwgYFJ5MCAZ2kMLGgiKaUMWJBzMT2asoQ+GF3ItZmKL7o9XmUJ8fgmWf+/uAbiM1rA= 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=1776971194; 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=UdcDwuYhoHIoqYI3ePhoQxH3NJNmgVLsZ30uq4xBzatoMWk4FCRLvzGl7EByqZsl qiFyGfpJ59SSr1pyPqi5llVBYEd+ur22Cet7hzIOL0PC+kQsSD6yxY431KqG72oyTuk cu7a30f4ql2xQGBvlbovdT/QveONvZdMaSmOi/YE= Received: by mx.zohomail.com with SMTPS id 1776971192396995.5310923345102; Thu, 23 Apr 2026 12:06:32 -0700 (PDT) From: Nicolas Frattaroli Date: Thu, 23 Apr 2026 21:03:44 +0200 Subject: [PATCH v14 21/28] drm/rockchip: dw_hdmi_qp: Set supported_formats platdata Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260423-color-format-v14-21-449a419ccbd4@collabora.com> References: <20260423-color-format-v14-0-449a419ccbd4@collabora.com> In-Reply-To: <20260423-color-format-v14-0-449a419ccbd4@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, wayland-devel@lists.freedesktop.org, Nicolas Frattaroli , Cristian Ciocaltea X-Mailer: b4 0.15.2 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