summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2017-03-27 04:54:27 +0200
committerPeter Chen <peter.chen@nxp.com>2017-04-14 03:26:37 +0200
commita932a8041ff9941a244619555f1c75ecf299f662 (patch)
tree327a92c46c42a92c000557389777540fdad74737 /Documentation/ABI
parentusb: chipidea: udc: update gadget state after bus resume (diff)
downloadlinux-a932a8041ff9941a244619555f1c75ecf299f662.tar.xz
linux-a932a8041ff9941a244619555f1c75ecf299f662.zip
usb: chipidea: core: add sysfs group
Sometimes, the user needs to adjust some properties for controllers, eg the role for controller, we add sysfs group for them. The attribute 'role' is used to switch host/gadget role dynamically, the uewr can read the current role, and write the other role compare to current one to finish the switch. Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-platform-chipidea-usb29
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-platform-chipidea-usb2 b/Documentation/ABI/testing/sysfs-platform-chipidea-usb2
new file mode 100644
index 000000000000..b0f4684a83fe
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-platform-chipidea-usb2
@@ -0,0 +1,9 @@
+What: /sys/bus/platform/devices/ci_hdrc.0/role
+Date: Mar 2017
+Contact: Peter Chen <peter.chen@nxp.com>
+Description:
+ It returns string "gadget" or "host" when read it, it indicates
+ current controller role.
+
+ It will do role switch when write "gadget" or "host" to it.
+ Only controller at dual-role configuration supports writing.