diff options
author | Fabrice Gasnier <fabrice.gasnier@foss.st.com> | 2021-10-27 15:12:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 16:25:56 +0300 |
commit | ba67723f946165684fb82f367096ddd126b64d2d (patch) | |
tree | d6d8ea205ceabd0b5e8e520ed8f1054070b36fed /Documentation/devicetree/bindings/usb | |
parent | 9c8846c73ec0014acaac1f2ff4134ab5a9cc2996 (diff) | |
download | linux-ba67723f946165684fb82f367096ddd126b64d2d.tar.xz |
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
Note: add dependencies so that 'usb-role-switch' without port is valid or
both must be present.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/1635336752-14796-1-git-send-email-fabrice.gasnier@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/usb')
-rw-r--r-- | Documentation/devicetree/bindings/usb/dwc2.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml index 56a818478cd7..94e7276decb5 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.yaml +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml @@ -136,6 +136,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. + $ref: /schemas/graph.yaml#/properties/port + +dependencies: + port: [ usb-role-switch ] + required: - compatible - reg |