Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp783126ybz; Wed, 15 Apr 2020 18:59:24 -0700 (PDT) X-Google-Smtp-Source: APiQypJlY/MSgo4HBjcldzn1U3XONYlSymBtNxfclvfdnxG2Edu6u5N3v0OCn37OsBqGh9PN+Bar X-Received: by 2002:a50:cf8e:: with SMTP id h14mr28386949edk.369.1587002364000; Wed, 15 Apr 2020 18:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587002363; cv=none; d=google.com; s=arc-20160816; b=QYGgdHRqyk0Q2gxEvapvztZKVOkm6qwARex1liIMFrXPFz1bqlv01QHZbU3cMTtY5w uwj8Zm1+SRzZWiH0BLfkYEUM+BWCNZwbkWOBvxPYZOQt+GAf3bZsYQeJKnLwPrGoHcbR 5Q47GOgzjGcloOblW+37opv10ulqvouutdZlU/Bmdci0eLtliJMrLM0ok1QGmXJWug0s noHan3Ef0tr732L553DRMAm0hzwwufclYFvShqi/YMXIRcPhWgN7/J/C/4P3jWKCmsMP 0i/RqN9PYV1AmjCn69RlKpR00wbZ08ZX4V7krkGDyXfdZBCDvux2ug9Rk7bhmWe+DXMf LMDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=g+3cVFHINQK8034Q5fMosJmLqjR0x/8UAQMOjZSVJrM=; b=nRfX5D/Fnxx+oAKWOdb+YJXs735qemTXz2rFaJDssKKhzP2FzuhiBnb/ZenvmoSF3c 6o0VRUlhSykZg7l3+51nhMrv9YkZQJfnEPcG+WHaQyrh20vMu2cp34xz1lco80MtQaAm yyQxSxAgcBi6dK5D0kKm+K6/Pl0L2irpchUlvv54ZQ5LvoOT5pAyWPtjHLdRU9iBa7ay DeO3h7KKYqdGsW4WO/fElGAJ6yTpPiEgHjCUQXrqtcsKi8SLepp3ffA0VkjjAfSlo1pL gHk1LyYKZxPb8ShPg81R1mmdMwLFRkNSqsqUm+Ek0Jt4LIOuHCdi2cWYupPPx9hlkWRo Iyag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hymJOGYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si11177271ejf.136.2020.04.15.18.59.01; Wed, 15 Apr 2020 18:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hymJOGYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390798AbgDOX5b (ORCPT + 99 others); Wed, 15 Apr 2020 19:57:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2389935AbgDOX52 (ORCPT ); Wed, 15 Apr 2020 19:57:28 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF1DBC061A0C for ; Wed, 15 Apr 2020 16:57:26 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id b8so784356pfp.8 for ; Wed, 15 Apr 2020 16:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g+3cVFHINQK8034Q5fMosJmLqjR0x/8UAQMOjZSVJrM=; b=hymJOGYOl8wyGrt54ea9ETuKrBuw+wFtIDoosE9VbbTh3G2do1iFapNRgpRzht7cF+ 1h4tsTDnwoUY7vgAf0B6t9n+FyslLxRcQhLeXANSqSnY1BwHGWOO/CGr+ch7TrC7Y1be poo1PAE0JVXRF1RDYuyH/o1HSC4r+3OiFuCMM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g+3cVFHINQK8034Q5fMosJmLqjR0x/8UAQMOjZSVJrM=; b=lVlUu/2apbWMJRFZUQqgIgCG8K9kVSrww963019qHqvL2gqSpplOXKSSXO1vCok1t2 4tWmRhzEo46Y6w7tTLUEz21Arxkjb1Ueamm21Z8Dcr4dLccwgORJkA/A8kEBsKR8kXOp TnKsW2FeLufhFtso9BQY7zGLqtkFIhz9kE04ZvEsebK7YBmsxeghI4M86Wa6K7kycn7t NhS358mCuxvJkaAHktOBc1hkTjhIVLZIgCvlhRoWgJUcwXKr+0xtjyHlMwp6nvbOPX4E r8m37tqxzMQDrV/ARrxvgLK9bdo4UW1ZFUNaySzsrOhLq3LPdQ3U4R4tL+lipgo8SoNT xoaw== X-Gm-Message-State: AGi0PuYno5lhoDRgE28FOUhOJkYHVRiFFYr7xi8kBXeHP9Vyzh3FJKYj lIooW95S9BCGJ5zummWWnv7xYyoFz3I= X-Received: by 2002:a63:214a:: with SMTP id s10mr16293084pgm.98.1586995046059; Wed, 15 Apr 2020 16:57:26 -0700 (PDT) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com. [209.85.214.174]) by smtp.gmail.com with ESMTPSA id h27sm323934pgb.90.2020.04.15.16.57.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Apr 2020 16:57:25 -0700 (PDT) Received: by mail-pl1-f174.google.com with SMTP id g2so661405plo.3 for ; Wed, 15 Apr 2020 16:57:25 -0700 (PDT) X-Received: by 2002:a67:1e46:: with SMTP id e67mr7126201vse.106.1586994551498; Wed, 15 Apr 2020 16:49:11 -0700 (PDT) MIME-Version: 1.0 References: <20200415084758.1.Ifcdc4ecb12742a27862744ee1e8753cb95a38a7f@changeid> <20200415084758.2.Ic98f6622c60a1aa547ed85781f2c3b9d3e56b734@changeid> <158698038289.105027.2860892334897893887@swboyd.mtv.corp.google.com> <20200415203256.GP4758@pendragon.ideasonboard.com> In-Reply-To: <20200415203256.GP4758@pendragon.ideasonboard.com> From: Doug Anderson Date: Wed, 15 Apr 2020 16:49:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] dt-bindings: drm/bridge: ti-sn65dsi86: Add hpd-gpios to the bindings To: Laurent Pinchart Cc: Stephen Boyd , Andrzej Hajda , David Airlie , Daniel Vetter , Neil Armstrong , Rob Herring , Sandeep Panda , Jonas Karlman , Bjorn Andersson , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Jeffrey Hugo , Jernej Skrabec , linux-arm-msm , Rob Clark , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Apr 15, 2020 at 1:33 PM Laurent Pinchart wrote: > > On Wed, Apr 15, 2020 at 12:53:02PM -0700, Stephen Boyd wrote: > > Quoting Douglas Anderson (2020-04-15 08:48:40) > > > Allow people to specify to use a GPIO for hot-plug-detect. Add an > > > example. > > > > > > NOTE: The current patch adding support for hpd-gpios to the Linux > > > driver for hpd-gpios only adds enough support to the driver so that > > > the bridge can use one of its own GPIOs. The bindings, however, are > > > written generically. > > > > > > Signed-off-by: Douglas Anderson > > > --- > > > > > > .../bindings/display/bridge/ti,sn65dsi86.yaml | 10 +++++++++- > > > 1 file changed, 9 insertions(+), 1 deletion(-) > > > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > > > index 8cacc6db33a9..554bfd003000 100644 > > > --- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > > > +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > > > @@ -60,6 +60,10 @@ properties: > > > const: 1 > > > description: See ../../pwm/pwm.yaml for description of the cell formats. > > > > > > + hpd-gpios: > > > + maxItems: 1 > > > + description: If present use the given GPIO for hot-plug-detect. > > > > Shouldn't this go in the panel node? And the panel driver should get the > > gpio and poll it after powering up the panel? Presumably that's why we > > have the no-hpd property in the simple panel binding vs. putting it here > > in the bridge. > > Same question really, I think this belongs to the panel (or connector) > node indeed. Hrm. To me "no-hpd" feels OK in the panel because the lack of a connection is somewhat symmetric. Thus it's OK to say either "HPD isn't hooked up to the panel in this system" or "HPD isn't hooked up to the bridge in this system" and both express the same thing (AKA that there is no HPD connection between the bridge and the panel). In the case of "no-hpd" it's more convenient to express it on the panel side because the panel driver is the one whose behavior has to change if HPD isn't hooked up. The panel datasheet is the one that says how long of a delay we need if HPD isn't hooked up. ...but when you're talking about where the bridge driver should look to find the HPD signal that it needs, that really feels like it should be described as part of the bridge. Specifically imagine we were using our bridge for DP, not for eDP. In that case simple-panel wouldn't be involved because we could get any type of display plugged in. Thus it couldn't go in the panel node. Here it feels clearer that hpd-gpio needs to be a property of the bridge driver. Looking at other usages of "hpd-gpio" in the kernel, it seems like the usage I'm proposing is also common. Grepping for "hpd-gpios" shows numerous examples of "hpd-gpios" being defined at the display controller level and (effectively) I believe the bridge is at the equivalent level. -Doug