Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1172812ybj; Tue, 5 May 2020 14:40:19 -0700 (PDT) X-Google-Smtp-Source: APiQypL58jBbC5oy4LOsTwurXqTfMQr7D6qCQlUGSpVCG0fYn3600RgbWM271ED6KDcncFm5cCY5 X-Received: by 2002:a50:e80a:: with SMTP id e10mr4529532edn.204.1588714819664; Tue, 05 May 2020 14:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588714819; cv=none; d=google.com; s=arc-20160816; b=YdOBng+RkV4WkyG2CALKUx29T6FMp37XQlKv8eOs4TPG2AzAOYTC9VJf8SnMHv7vSK IrGM0LvCYUQ8SDPVMMcN7Dq0vUNT/hrnGWIYuPfQnCjQEnFW8Qn5yMh46poWzzsk+ZDT oJadpJgcAecREhUVCIsmS6b1Fv8d7iACrkHdttuafQt8xy7NsEt57WXhAOBtkkX+WPq5 N6LSulJ8kNj+RLKw+7PZsLs9lcT/yDVTTBHEsRJzucpM3a4b03SeCO/AxR1zAHViP42L AUIRahQ17ab8SspPvUi798dX6JE8DNehPj4onm8cIx1QECDfyGGBg9KHJ+uihJ3IJ8Qk b05Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CDrD7TIYz9TbAXsxbxtpOds0Z5S1JpkPpBtR5Sh10wA=; b=vu/4lHCAePYQ7mC+1PJ68/z3t4vG6VOlusBuuby2/mKi0f3gXC0VMtyE1P1MDyXSM0 aKFJc4bSUm7VBU1w9+/k6BzHm7sHH+fvuw07QwnXrtDut7/dn6QabtHQlEeK58fQib8d JeGZwgvgC5KnscNM1CW0V9foNqiHUfTrjvwyQGtMnYXMc6PsHQruaH7DQXoIg33kUpnq NXksPRHHhBE73+F4I0nzyc2lKc16SYEvwqkme1Rum/hlP8Xzow8VTPwG6lsNn5lLyD20 Hrqtyoc/80ddOnGSdR09g85fDdBVcBEqi2KyflDViq+WCNk6hvJUplDghrwj4ELML2bF w+Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=DFGlFtj9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si2022123eju.94.2020.05.05.14.39.54; Tue, 05 May 2020 14:40:19 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=DFGlFtj9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729198AbgEEVhh (ORCPT + 99 others); Tue, 5 May 2020 17:37:37 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:60742 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbgEEVhh (ORCPT ); Tue, 5 May 2020 17:37:37 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 173BD542; Tue, 5 May 2020 23:37:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1588714654; bh=eiuReEMJvpjUWPLJO8Z2JmwStFJTrhUwSJ4qmcopXVk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DFGlFtj9VhJcu1wOKP6KnWvWsjIs3FSYmk0YczbGWyMQx69YEoLTxxR0ujvuY9Pgn KqGv0OicNnqblZPJsokIZJ3IGqr7JtbJPH4shlXZxOigKF87teIlnOQvei+XhuuRP+ ogoGIucAmf/m06c/sx7YSYH7XfAkghbjOKk/55sk= Date: Wed, 6 May 2020 00:37:28 +0300 From: Laurent Pinchart To: Douglas Anderson Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, narmstrong@baylibre.com, a.hajda@samsung.com, spanda@codeaurora.org, linux-gpio@vger.kernel.org, jonas@kwiboo.se, robdclark@chromium.org, bjorn.andersson@linaro.org, jeffrey.l.hugo@gmail.com, jernej.skrabec@siol.net, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, swboyd@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 5/6] dt-bindings: drm/bridge: ti-sn65dsi86: Document no-hpd Message-ID: <20200505213728.GB8640@pendragon.ideasonboard.com> References: <20200430194617.197510-1-dianders@chromium.org> <20200430124442.v4.5.I72892d485088e57378a4748c86bc0f6c2494d807@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200430124442.v4.5.I72892d485088e57378a4748c86bc0f6c2494d807@changeid> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Doug, Thank you for the patch. On Thu, Apr 30, 2020 at 12:46:16PM -0700, Douglas Anderson wrote: > The ti-sn65dsi86 MIPI DSI to eDP bridge chip has a dedicated hardware > HPD (Hot Plug Detect) pin on it, but it's mostly useless for eDP > because of excessive debouncing in hardware. Specifically there is no > way to disable the debouncing and for eDP debouncing hurts you because > HPD is just used for knowing when the panel is ready, not for > detecting physical plug events. > > Currently the driver in Linux just assumes that nobody has HPD hooked > up. It relies on folks setting the "no-hpd" property in the panel > node to specify that HPD isn't hooked up and then the panel driver > using this to add some worst case delays when turning on the panel. > > Apparently it's also useful to specify "no-hpd" in the bridge node so > that the bridge driver can make sure it's doing the right thing > without peeking into the panel [1]. This would be used if anyone ever > found it useful to implement support for the HW HPD pin on the bridge. > Let's add this property to the bindings. > > NOTES: > - This is somewhat of a backward-incompatible change. All current > known users of ti-sn65dsi86 didn't have "no-hpd" specified in the > bridge node yet none of them had HPD hooked up. This worked because > the current Linux driver just assumed that HPD was never hooked up. > We could make it less incompatible by saying that for this bridge > it's assumed HPD isn't hooked up _unless_ a property is defined, but > "no-hpd" is much more standard and it's unlikely to matter unless > someone quickly goes and implements HPD in the driver. > - It is sensible to specify "no-hpd" at the bridge chip level and > specify "hpd-gpios" at the panel level. That would mean HPD is > hooked up to some other GPIO in the system, just not the hardware > HPD pin on the bridge chip. > > [1] https://lore.kernel.org/r/20200417180819.GE5861@pendragon.ideasonboard.com > > Signed-off-by: Douglas Anderson > Reviewed-by: Stephen Boyd > Reviewed-by: Linus Walleij Reviewed-by: Laurent Pinchart > --- > > Changes in v4: > - Tacked on "or is otherwise unusable." to description. > > Changes in v3: > - useful implement => useful to implement > > Changes in v2: > - ("dt-bindings: drm/bridge: ti-sn65dsi86: Document no-hpd") new for v2. > > .../devicetree/bindings/display/bridge/ti,sn65dsi86.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > index 6d7d40ad45ac..75c4e8b8e4b7 100644 > --- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > @@ -28,6 +28,12 @@ properties: > maxItems: 1 > description: GPIO specifier for GPIO1 pin on bridge (active low). > > + no-hpd: > + type: boolean > + description: > + Set if the HPD line on the bridge isn't hooked up to anything or is > + otherwise unusable. > + > vccio-supply: > description: A 1.8V supply that powers the digital IOs. > > @@ -207,6 +213,8 @@ examples: > clocks = <&rpmhcc RPMH_LN_BB_CLK2>; > clock-names = "refclk"; > > + no-hpd; > + > ports { > #address-cells = <1>; > #size-cells = <0>; -- Regards, Laurent Pinchart