Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1872125ybv; Thu, 6 Feb 2020 11:19:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzUQOJprcbCqaBt2Cwpz1lU+vjSPOJXBXPyNFSTzDsiMHlrRGoCgxy7hv1GxnSo2zGV30l8 X-Received: by 2002:a9d:f26:: with SMTP id 35mr30466304ott.31.1581016798362; Thu, 06 Feb 2020 11:19:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581016798; cv=none; d=google.com; s=arc-20160816; b=CUmoa4T1CJZUBIaBSGMU2eSw5om82266dukZWHuQf6D9chSmaGgmnQM3SqHrFDwSGG TPG2Jq7tAlRpZQOgcSRTnlpku0TZ9e2+ap4uA0d31esUIA2hLFgTFcPB6NW5SJhXxoN0 Nd0lCSIeAduezuTpRxXZAVOgvU2AB+cz1HU68YehmDll+CHaDlE7AraKN3UGv1jiqbEW rzUnyRG3XM2xW3bthBhhMP0lvW1QdxO2nCcKp7123PUkwAx18UqQQa1pleEDiq7+FCAc hjJeEZtRIFdM1mtKhMnGDz5UYM0lHUAFNsGK9wHcMYiPhxuFHFvCgf7Kjwt02/5ffuDf widg== 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=LfwwSgZBSRjQLTS6nz0OrfuIbfyqmaLe46Sq7iiWS8c=; b=HNLkRWt4Di+MJNkiNF2Tt0ilGrGFp/83hHaX55fRwL9cfft/bmeN4T+vmb8Hi1rbWH 1eB/ULYIsu7Lhav9nD5qWORcFq1nSwxaWBv76MIclZzgyvJkYxiXi5vd0EFgZdzdMNA1 ucmJTLPJuEft66+DNlCbMTCof9LSwGzdc8bEUgblS+PVpl9N/4bJiOc5zQxqp2tdAu5y 4gD+MetjdCoDwAUWsuv+S0CIBiEvvOX/1UtJETrXg0KYncvrgD4uMInVykYE6WxwFcCa EBZKr1Ljb6zcwFuwdaFjxvHvk5folmkJED5q6NSqgofdWqqwuR5vrtBIDV+YcR/mRDej yfxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nuTjaVVr; 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 t128si2592488oie.176.2020.02.06.11.19.46; Thu, 06 Feb 2020 11:19:58 -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=nuTjaVVr; 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 S1727959AbgBFTSo (ORCPT + 99 others); Thu, 6 Feb 2020 14:18:44 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45368 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727479AbgBFTSm (ORCPT ); Thu, 6 Feb 2020 14:18:42 -0500 Received: by mail-wr1-f67.google.com with SMTP id a6so8534298wrx.12 for ; Thu, 06 Feb 2020 11:18:40 -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=LfwwSgZBSRjQLTS6nz0OrfuIbfyqmaLe46Sq7iiWS8c=; b=nuTjaVVr5wcwTnZqfAsI/wPKCTvbOASiVjKWSq+spZCIb/y/vJbnCq+XxMnO94worw qTVv8ItgHInBYZxkuBb/xU0IMMKcCjbTWGgOGj6R2Swso7EiJ62AnQ8kd0txkrFL5Xza 4lC4yHORnPNZAidzUdIjUxguEKhwQpHvzNqvL1EY5tZutgTyuQYoSWnRyK128d3SVFcN vGNAPcxUtj4bX4NPnB3omZAAd6OF3VAD2MhGdSSGRwU6Xdt9h8aCV4G8X8XcZKAKaBhG X2HyyUfCnjXm6cwzLGYZDjwDTmevBIGsDOHRckrHSdSYDuFdMIyeHYZ1kCzOnHPhgTCW giLA== 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=LfwwSgZBSRjQLTS6nz0OrfuIbfyqmaLe46Sq7iiWS8c=; b=f39GPYgoEVGgVNIuHPmSDJ2hmVxwbq/Mfizzdj6ufMzaKP+uJ9euU7nv0m9A/Tsc90 /s7D1CT/PMJG62n6J/Z5LBFDNsm86foPHFeV1sGfAOqfcUWTdkIPjIH0nZjEbeox+QBD 1ko2UM998laNKXIIrPZsIVuuBVZdLAGRq5x9/06a0FKwtjfwUVoQbAmd3B8mek5EUv4e vu6t5M6zvv+CXU92LJDT08WaVLkgPGP94xMIS7hC1px8O84jjBdE07cjFH9khIp7qyjY q28lL1kVgDZXcgjar8397B7ktkf9iZbOf2pPFZNVlthMsd688+e5b4wbUlMr+lwhEDBM /0CA== X-Gm-Message-State: APjAAAXChCNsxOuIVB1ABDUxz8p6y6AJL7TQJ1xszeRvJo53YbxdSjT4 97PvdjV10Gw0UJ+cRrpJYHMSrw== X-Received: by 2002:adf:e906:: with SMTP id f6mr5259501wrm.258.1581016720052; Thu, 06 Feb 2020 11:18:40 -0800 (PST) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:7d33:17f7:8097:ecc7]) by smtp.gmail.com with ESMTPSA id m3sm272662wrs.53.2020.02.06.11.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 11:18:39 -0800 (PST) From: Neil Armstrong To: a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, boris.brezillon@collabora.com Cc: linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH v4 02/11] drm/bridge: dw-hdmi: add max bpc connector property Date: Thu, 6 Feb 2020 20:18:25 +0100 Message-Id: <20200206191834.6125-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200206191834.6125-1-narmstrong@baylibre.com> References: <20200206191834.6125-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 From: Jonas Karlman Add the max_bpc property to the dw-hdmi connector to prepare support for 10, 12 & 16bit output support. Signed-off-by: Jonas Karlman Signed-off-by: Neil Armstrong --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 9e0927d22db6..051001f77dd4 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2406,6 +2406,10 @@ static int dw_hdmi_bridge_attach(struct drm_bridge *bridge) DRM_MODE_CONNECTOR_HDMIA, hdmi->ddc); + drm_atomic_helper_connector_reset(connector); + + drm_connector_attach_max_bpc_property(connector, 8, 16); + if (hdmi->version >= 0x200a && hdmi->plat_data->use_drm_infoframe) drm_object_attach_property(&connector->base, connector->dev->mode_config.hdr_output_metadata_property, 0); -- 2.22.0