[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1634144026-3326-1-git-send-email-fabrice.gasnier@foss.st.com>
Date: Wed, 13 Oct 2021 18:53:46 +0200
From: Fabrice Gasnier <fabrice.gasnier@...s.st.com>
To: <hminas@...opsys.com>, <gregkh@...uxfoundation.org>,
<robh+dt@...nel.org>
CC: <linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-stm32@...md-mailman.stormreply.com>,
<devicetree@...r.kernel.org>, <amelie.delaunay@...s.st.com>,
<fabrice.gasnier@...s.st.com>, <alexandre.torgue@...s.st.com>
Subject: [PATCH] dt-bindings: usb: dwc2: document the port when usb-role-switch is used
Document the "port" property, which is used with "usb-role-switch"
to describe the bus connector.
Definition is inspired from mediatek,mtu3.yaml.
This fixes some errors seen when running "make dtbs_check":
... 'port' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: ... Documentation/devicetree/bindings/usb/dwc2.yaml
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@...s.st.com>
---
Documentation/devicetree/bindings/usb/dwc2.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml
index 10c7d9b..7d1aa53 100644
--- a/Documentation/devicetree/bindings/usb/dwc2.yaml
+++ b/Documentation/devicetree/bindings/usb/dwc2.yaml
@@ -130,6 +130,16 @@ properties:
description: If present indicates that we need to reset the PHY when we
detect a wakeup. This is due to a hardware errata.
+ port:
+ description:
+ Any connector to the data bus of this controller should be modelled
+ using the OF graph bindings specified, if the "usb-role-switch"
+ property is used. See graph.txt
+ $ref: /schemas/graph.yaml#/properties/port
+
+dependencies:
+ port: [ 'usb-role-switch' ]
+
required:
- compatible
- reg
--
2.7.4
Powered by blists - more mailing lists