aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Jun <b47624@freescale.com>2014-04-23 03:56:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 15:56:35 -0400
commitf99858e0892f8bcb6540122d3b3c349cbacc75ac (patch)
treea2138b8815638ecee9066ae9a451c17c5db3d032
parent88bdffc89d84cdb11b6f3373a11ff612c097834e (diff)
Documentation: ABI: usb: sysfs Description for chipidea USB OTG HNP and SRP
This patch adds sysfs interface description for chipidea USB OTG HNP and SRP. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--Documentation/ABI/testing/sysfs-platform-chipidea-usb-otg56
1 files changed, 56 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-platform-chipidea-usb-otg b/Documentation/ABI/testing/sysfs-platform-chipidea-usb-otg
new file mode 100644
index 000000000000..151c59578db4
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-platform-chipidea-usb-otg
@@ -0,0 +1,56 @@
1What: /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req
2Date: Feb 2014
3Contact: Li Jun <b47624@freescale.com>
4Description:
5 Can be set and read.
6 Set a_bus_req(A-device bus request) input to be 1 if
7 the application running on the A-device wants to use the bus,
8 and to be 0 when the application no longer wants to use
9 the bus(or wants to work as peripheral). a_bus_req can also
10 be set to 1 by kernel in response to remote wakeup signaling
11 from the B-device, the A-device should decide to resume the bus.
12
13 Valid values are "1" and "0".
14
15 Reading: returns 1 if the application running on the A-device
16 is using the bus as host role, otherwise 0.
17
18What: /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop
19Date: Feb 2014
20Contact: Li Jun <b47624@freescale.com>
21Description:
22 Can be set and read
23 The a_bus_drop(A-device bus drop) input is 1 when the
24 application running on the A-device wants to power down
25 the bus, and is 0 otherwise, When a_bus_drop is 1, then
26 the a_bus_req shall be 0.
27
28 Valid values are "1" and "0".
29
30 Reading: returns 1 if the bus is off(vbus is turned off) by
31 A-device, otherwise 0.
32
33What: /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req
34Date: Feb 2014
35Contact: Li Jun <b47624@freescale.com>
36Description:
37 Can be set and read.
38 The b_bus_req(B-device bus request) input is 1 during the time
39 that the application running on the B-device wants to use the
40 bus as host, and is 0 when the application no longer wants to
41 work as host and decides to switch back to be peripheral.
42
43 Valid values are "1" and "0".
44
45 Reading: returns if the application running on the B device
46 is using the bus as host role, otherwise 0.
47
48What: /sys/bus/platform/devices/ci_hdrc.0/inputs/a_clr_err
49Date: Feb 2014
50Contact: Li Jun <b47624@freescale.com>
51Description:
52 Only can be set.
53 The a_clr_err(A-device Vbus error clear) input is used to clear
54 vbus error, then A-device will power down the bus.
55
56 Valid value is "1"