Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4373616ybf; Wed, 4 Mar 2020 02:43:04 -0800 (PST) X-Google-Smtp-Source: ADFU+vt10l149gwBzbvpF6r5/YVuZzzyE3k1kesPRaXljTZlTjcDtoGBp77WLa80ND9JTsIYmTsj X-Received: by 2002:aca:d40c:: with SMTP id l12mr1286658oig.65.1583318584070; Wed, 04 Mar 2020 02:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583318584; cv=none; d=google.com; s=arc-20160816; b=sl5CXEs/r/Uk6A/KCc3bcvWA+dxtWlpnf8xKEhhsMaVrPXkvNcXnZgHQIeYw3d6wEM 5X3eSaEckFT4q2dmXnoK84I0OXr5Pmis2Lc1yEPsx0c1Q6xOjcOsRc773QLToSQAVfKk Hc2Dl3AaR7I5C1B1yQ0cT2Q5DFBtvie7AHv2MkqMHd6o36Qf/PAk8xTpavLd2PZa8phE iwD4zLXbEtLq6YjTHHrxioQN9eJHP+UFIK9wln9ywtrz1B0hdwXZJWTJXsuDLIWTsijl eKdkeymKrQOyS0Tw9qPZADoLQ0a+FPv+Bj7lwz8/gzSH2rJV81pbkLFN0azdkYDBUr3e 34Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zBV+Mcykh4jSy5LpMQRzAqt2z+ZaR095g4MjbXShAoU=; b=Z+qAW13FlMJ+fj3mGWd/mB5pSIV2chvIkvr/u/3OwIxMsOrxmyehL78ARTbLkMi9je e5ZsUin0QmjCX6gT0v0s0GYtdGhcUDjksQF0/gHqz7PxBwmThZhSfL0YfCTfuZXtuC0k 7FqlyQZK+9PYlBisDP0GEkqq10dgfbu5rQa5kaPi3qGopKM1j7GQrwL/tcUfAK+XWTbV QQCLJHA7jgaTuBi0eI3oD+R+pIPUZfOULBhgBAbhzvL5PZfVFC0Fm1jVVmBr7zCUJ1Rl WhX+UtqV3qMlOWEChJ3UIDWGNKISkhkKU1B6KGgp9vd2pUCY7byHHl/FmJx6IFBZSdIK sbkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mx3iwudl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si847610otq.237.2020.03.04.02.42.52; Wed, 04 Mar 2020 02:43:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mx3iwudl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387977AbgCDKlX (ORCPT + 99 others); Wed, 4 Mar 2020 05:41:23 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41786 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387871AbgCDKlH (ORCPT ); Wed, 4 Mar 2020 05:41:07 -0500 Received: by mail-wr1-f66.google.com with SMTP id v4so1751112wrs.8 for ; Wed, 04 Mar 2020 02:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zBV+Mcykh4jSy5LpMQRzAqt2z+ZaR095g4MjbXShAoU=; b=mx3iwudlVrvCSNzwqeOyAiR9iitVlgrIa99spLuUe7EBWEDzGsbfPJwUu/KChoErXv h+x7mYH4pOYQK/gcuqO2/KiRhpkfhw4SqJ+ijRydXIHTihh3jCfnuwVFvE7/bBsRpjSo YBHe8jApAPWuwbuR3E6ulkOBVLLeYNlIb8z2sfscv+9NWVBDWb1jw1FEGVbfaZdb3S2G SqE3edSCmjs3PY4oDy47OO6WbgnP7lbPYdcRzSmj6RbirUvScmGhMBpnIZh++HUN1Igk AQmQx91AAzSSK13TZy1OAfbzdS5FaHA0ymybCPHhkIPN9URKH7R/mvUd1wqOfe8t2Fs2 GFEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zBV+Mcykh4jSy5LpMQRzAqt2z+ZaR095g4MjbXShAoU=; b=aIAvAM3L6eYIT3x1XoyKGc3v01RiDA5dFDoBLP9WD9hjApH1+sU7CLTD5wxf/9ZJhe i8vHfMeLR4pzcOVKPVkkz+/gkcUxKAbWNOGHp2goLiD+NiMiXr0qnWf29a7ZlDJydXyw 3By+5xZ9tW5Vb8trs/QriW/ygcU8MWo2pJRGtEBUvejCMsoTQgtU4S5U1z0ppYbeUlZI JLJsO0itTAKxADA1F7ullo1qesZnRfqEJPbd3kouSLkZ8Cz0iEK/1bCBnPg3wJ3//dUe PXZ3XeQCo8YkDRq5nV+UyXS+tqz1NSfoZGA+lXLBwZXtlLW7wg1T0hyHtpwJPwV9U9v5 vz6g== X-Gm-Message-State: ANhLgQ29GWr3rVnFMh0hpdTInSDkBce6pJbLjuJirI09LiHJ+x4YvnFE iaKnARBF60BDzbw24ryRDO3eKGCFd4ReOw== X-Received: by 2002:adf:e74e:: with SMTP id c14mr3643854wrn.128.1583318464154; Wed, 04 Mar 2020 02:41:04 -0800 (PST) Received: from bender.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id c14sm24006398wro.36.2020.03.04.02.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 02:41:03 -0800 (PST) From: Neil Armstrong To: p.zabel@pengutronix.de, heiko@sntech.de, a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, boris.brezillon@collabora.com Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Laurent Pinchart Subject: [PATCH v5 05/11] drm/bridge: synopsys: dw-hdmi: allow ycbcr420 modes for >= 0x200a Date: Wed, 4 Mar 2020 11:40:46 +0100 Message-Id: <20200304104052.17196-6-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200304104052.17196-1-narmstrong@baylibre.com> References: <20200304104052.17196-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now the DW-HDMI Controller supports the HDMI2.0 modes, enable support for these modes in the connector if the platform supports them. We limit these modes to DW-HDMI IP version >= 0x200a which are designed to support HDMI2.0 display modes. Signed-off-by: Neil Armstrong Reviewed-by: Andrzej Hajda Reviewed-by: Laurent Pinchart Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ++++++ include/drm/bridge/dw_hdmi.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index de19e8993e1d..f85c15ad8486 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -3252,6 +3252,12 @@ __dw_hdmi_probe(struct platform_device *pdev, hdmi->bridge.of_node = pdev->dev.of_node; #endif + if (hdmi->version >= 0x200a) + hdmi->connector.ycbcr_420_allowed = + hdmi->plat_data->ycbcr_420_allowed; + else + hdmi->connector.ycbcr_420_allowed = false; + memset(&pdevinfo, 0, sizeof(pdevinfo)); pdevinfo.parent = dev; pdevinfo.id = PLATFORM_DEVID_AUTO; diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h index 9d4d5cc47969..0b34a12c4a1c 100644 --- a/include/drm/bridge/dw_hdmi.h +++ b/include/drm/bridge/dw_hdmi.h @@ -129,6 +129,7 @@ struct dw_hdmi_plat_data { unsigned long input_bus_format; unsigned long input_bus_encoding; bool use_drm_infoframe; + bool ycbcr_420_allowed; /* Vendor PHY support */ const struct dw_hdmi_phy_ops *phy_ops; -- 2.22.0