dt-bindings: usb: dwc2: document the port when usb-role-switch is used
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Wed, 27 Oct 2021 12:12:32 +0000 (14:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 13:25:56 +0000 (14:25 +0100)
commitba67723f946165684fb82f367096ddd126b64d2d
treed6d8ea205ceabd0b5e8e520ed8f1054070b36fed
parent9c8846c73ec0014acaac1f2ff4134ab5a9cc2996
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>
Documentation/devicetree/bindings/usb/dwc2.yaml