Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3228987imu; Sat, 24 Nov 2018 00:36:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/VwB2BOG8H3H5GEoHpCHTMLdEtdn/Yo0tUcAhXEbx1SsV4yDeh2oktxeaVRgEirR0PvMCq8 X-Received: by 2002:a17:902:1122:: with SMTP id d31-v6mr19268965pla.259.1543048563480; Sat, 24 Nov 2018 00:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048563; cv=none; d=google.com; s=arc-20160816; b=I8ZIn03XE+Rb7/6i7ySaR4aplvFQD6a9sAc4wvUZeCOaqJ9wUtKp9VtBZWkqWqNn2V m/EkQHfLz2isjbK3N6Q/ieO2J4MZbJ0bfq3+0S2SqxXg2XXqjKsgk7zM4V6Mdgq6gnQm A1TMAHWOffSdEe0L6Zghk38jGf2EO6OyQKhwgxuYtzq4rrdbC8qzlf3mOvq+WNMszJ6t BvAYPkQFQ484JKiiDnmBcu+b66F9eCBTP5jsJHA9t2+ffnCECvXhCeq6s86L3X6suy2B XC2chfD0hsvQd9avp9PMH4OZFYR03z0FVwaSKD3CKoldGFUi5A3dPp4XggQ5UcVZ8be2 CXMA== 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=kJh0HkLYwhx8RN9DWitgmjtOM+AmvRphG9ewtpY4jrk=; b=zuZzDX5WHxOOJhTvfuKa/Yx098XINuY4xi8wpCeB4u2oNnFw9O8t1M+sdWz9JcUrX9 r4BkVpb1x3tmsi4GL403hXRzuhT6dLQRCw/NPMn33RzmHITzfcNCx6NWwHcFpAtdCebw IdVK11gUrjGoGJZSYhslrLDBeL3fP2gd93Vllm9kdzIx3TjwmUgtn2Lk92EtD7W8Jv2s ddJ3glRbsi4ZX93zZXD2NVjkTbyFbceqPylle3RhHI7x3bqZwH+dXgcc7Kcyi8BDaJ+B jY43lguYF0cfGRtCxqBVjFTkN18ytQCzVmVVJjyOPmBESRr+0GN5D1Wglqcbgt4FOn7K Y+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="B6X/d97z"; 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 w32si55719304pga.337.2018.11.24.00.35.49; Sat, 24 Nov 2018 00:36:03 -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="B6X/d97z"; 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 S2504658AbeKXArC (ORCPT + 99 others); Fri, 23 Nov 2018 19:47:02 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52091 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504597AbeKXArB (ORCPT ); Fri, 23 Nov 2018 19:47:01 -0500 Received: by mail-wm1-f65.google.com with SMTP id j207so4917848wmj.1 for ; Fri, 23 Nov 2018 06:02:41 -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=kJh0HkLYwhx8RN9DWitgmjtOM+AmvRphG9ewtpY4jrk=; b=B6X/d97zilEFV2nfUiWgCP/ynqmdTvHEuiLvu5MNgh83La7yGqwrtdwW4jfL8I+yQm NXNmj9SmXzE8geGUm24KLC2/DAJXvZaOija5UDwybxNuA8FvxHMAHFeBsFpyAJ+OVUtV F+lDjNRey1T+2Vh7WFkUd3Vi4ELCG5va2qWIybXApGQwB0vazVf8Zv8j/kZVNw2gUAHt jGwhzfPfPXXKASaIkagBjBWCQefcVQslozTilXNpBgMfE6AoAI9OEQA9yXt/FUcXmMq3 zXB9utBF+MxGEQBJWd4SVIwI4u3lMQIXGk6tHkUnRLgj5OYFSl5NlAU+DH8oGtjnExqf xzSw== 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=kJh0HkLYwhx8RN9DWitgmjtOM+AmvRphG9ewtpY4jrk=; b=TPK6XVyFZ2ljBiP4ntW0/Oi/uhghvf74thAZAfY54zjfsL+W2dgpjgxECcpMoAcpUD qpePGsYFhjpkN7EJSWIVuGBwVSJjD2I5QMcC83B27gs+AawW5XbxVt8I3CZoKIFalzdl MpyAr+wU5OEedEk40z2c81phRJr76ZNHt44V3AaVr2UBLZ8Iu6PCfJgayWs4Dreso99E 519Unu8seBs7kaRtSDE2a46joyR5RB0T3rXYww1hYGoUhUAHSs48PMwiYH3p/5QpFwlU HJYs7SfmMRYLnF18vK71tlCn2tpZCXDuK639R595E1jTCofevpAn0rPYJspKJvnfvf6i Tw0A== X-Gm-Message-State: AA+aEWbVS+tCn2+q8NuzKey8x74XWW5AgXIUij6pRHXaqsB2wZdjIxJQ PIDGm1jrE6gyakj0mTFMv/VuOA== X-Received: by 2002:a1c:c2d4:: with SMTP id s203mr13967030wmf.3.1542981760236; Fri, 23 Nov 2018 06:02:40 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id x8sm15172185wrd.53.2018.11.23.06.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Nov 2018 06:02:38 -0800 (PST) From: Neil Armstrong To: architt@codeaurora.org, a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com Cc: Neil Armstrong , dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC 6/8] drm/bridge: dw-hdmi: allow ycbcr420 modes for >= 0x200a Date: Fri, 23 Nov 2018 15:02:19 +0100 Message-Id: <20181123140221.15700-7-narmstrong@baylibre.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123140221.15700-1-narmstrong@baylibre.com> References: <20181123140221.15700-1-narmstrong@baylibre.com> MIME-Version: 1.0 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 --- 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 b38ec1d775aa..9b0b157dc5ab 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2564,6 +2564,12 @@ __dw_hdmi_probe(struct platform_device *pdev, if (hdmi->phy.ops->setup_hpd) hdmi->phy.ops->setup_hpd(hdmi, hdmi->phy.data); + 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 27f9cce66b6a..c04f497a919b 100644 --- a/include/drm/bridge/dw_hdmi.h +++ b/include/drm/bridge/dw_hdmi.h @@ -128,6 +128,7 @@ struct dw_hdmi_plat_data { const struct drm_display_mode *mode); unsigned long input_bus_format; unsigned long input_bus_encoding; + bool ycbcr_420_allowed; /* Vendor PHY support */ const struct dw_hdmi_phy_ops *phy_ops; -- 2.19.1