summaryrefslogtreecommitdiff
path: root/Documentation/ABI/testing
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2017-03-27 10:54:27 +0800
committerPeter Chen <peter.chen@nxp.com>2017-04-14 09:26:37 +0800
commita932a8041ff9941a244619555f1c75ecf299f662 (patch)
tree327a92c46c42a92c000557389777540fdad74737 /Documentation/ABI/testing
parent4f4555cfe704913ce4ce836ab2707825d784a7cc (diff)
downloadlwn-a932a8041ff9941a244619555f1c75ecf299f662.tar.gz
lwn-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/testing')
-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.