[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200415084758.2.Ic98f6622c60a1aa547ed85781f2c3b9d3e56b734@changeid>
Date: Wed, 15 Apr 2020 08:48:40 -0700
From: Douglas Anderson <dianders@...omium.org>
To: airlied@...ux.ie, daniel@...ll.ch, robh+dt@...nel.org,
narmstrong@...libre.com, a.hajda@...sung.com,
Laurent.pinchart@...asonboard.com, spanda@...eaurora.org
Cc: jonas@...boo.se, bjorn.andersson@...aro.org,
devicetree@...r.kernel.org, jeffrey.l.hugo@...il.com,
swboyd@...omium.org, jernej.skrabec@...l.net,
linux-arm-msm@...r.kernel.org, robdclark@...omium.org,
dri-devel@...ts.freedesktop.org,
Douglas Anderson <dianders@...omium.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/3] dt-bindings: drm/bridge: ti-sn65dsi86: Add hpd-gpios to the bindings
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 <dianders@...omium.org>
---
.../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.
+
data-lanes:
description: See ../../media/video-interface.txt
@@ -148,7 +152,7 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
- bridge@2d {
+ sn65dsi86_bridge: bridge@2d {
compatible = "ti,sn65dsi86";
reg = <0x2d>;
@@ -165,6 +169,10 @@ examples:
clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
clock-names = "refclk";
+ gpio-controller;
+ #gpio-cells = <2>;
+ hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>;
+
ports {
#address-cells = <1>;
#size-cells = <0>;
--
2.26.0.110.g2183baf09c-goog
Powered by blists - more mailing lists