[lkml]   [2019]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH v6 2/8] dt-bindings: usb: generic: Add role-switch-default-mode binding
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 <>
Cc: Rob Herring <>
Cc: Mark Rutland <>
CC: ShuFan Lee <>
Cc: Heikki Krogerus <>
Cc: Suzuki K Poulose <>
Cc: Chunfeng Yun <>
Cc: Yu Chen <>
Cc: Felipe Balbi <>
Cc: Hans de Goede <>
Cc: Andy Shevchenko <>
Cc: Jun Li <>
Cc: Valentin Schneider <>
Cc: Jack Pham <>
Reviewed-by: Rob Herring <>
Signed-off-by: John Stultz <>
Change-Id: I6ac1d9c56039d76d924148e29a5e4b0bb304ed0f
v5: Switch to string rather then a bool
Documentation/devicetree/bindings/usb/generic.txt | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/generic.txt b/Documentation/devicetree/bindings/usb/generic.txt
index cf5a1ad456e6..dd733fa81fad 100644
--- a/Documentation/devicetree/bindings/usb/generic.txt
+++ b/Documentation/devicetree/bindings/usb/generic.txt
@@ -34,6 +34,12 @@ 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-mode: indicating if usb-role-switch is enabled, the
+ device default operation mode of controller while usb
+ role is USB_ROLE_NONE. Valid arguments are "host" and
+ "peripheral". Defaults to "peripheral" if not
+ specified.

This is an attribute to a USB controller such as:

 \ /
  Last update: 2019-11-28 06:11    [W:0.066 / U:5.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site