Add binding to configure the default role the controller assumes is host mode when the usb role is USB_ROLE_NONE.
Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Rob Herring <robh...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> CC: ShuFan Lee <shufan_...@richtek.com> Cc: Heikki Krogerus <heikki.kroge...@linux.intel.com> Cc: Suzuki K Poulose <suzuki.poul...@arm.com> Cc: Chunfeng Yun <chunfeng....@mediatek.com> Cc: Yu Chen <cheny...@huawei.com> Cc: Felipe Balbi <ba...@kernel.org> Cc: Hans de Goede <hdego...@redhat.com> Cc: Andy Shevchenko <andy.shevche...@gmail.com> Cc: Jun Li <lijun.ker...@gmail.com> Cc: Valentin Schneider <valentin.schnei...@arm.com> Cc: Jack Pham <ja...@codeaurora.org> Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz <john.stu...@linaro.org> --- Documentation/devicetree/bindings/usb/generic.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/generic.txt b/Documentation/devicetree/bindings/usb/generic.txt index cf5a1ad456e6..013782fde293 100644 --- a/Documentation/devicetree/bindings/usb/generic.txt +++ b/Documentation/devicetree/bindings/usb/generic.txt @@ -34,6 +34,11 @@ Optional properties: the USB data role (USB host or USB device) for a given USB connector, such as Type-C, Type-B(micro). see connector/usb-connector.txt. + - role-switch-default-host: boolean, indicating if usb-role-switch is enabled + the device default operation mode of controller while + usb role is USB_ROLE_NONE is host mode. If this is not + set or false, it will be assumed the default is device + mode. This is an attribute to a USB controller such as: -- 2.17.1