xref: /linux/Documentation/ABI/testing/sysfs-platform-chipidea-usb-otg (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1f99858e0SLi JunWhat:		/sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req
2f99858e0SLi JunDate:		Feb 2014
3*3d19946bSFabio EstevamContact:	Li Jun <jun.li@nxp.com>
4f99858e0SLi JunDescription:
5f99858e0SLi Jun		Can be set and read.
6f99858e0SLi Jun		Set a_bus_req(A-device bus request) input to be 1 if
7f99858e0SLi Jun		the application running on the A-device wants to use the bus,
8f99858e0SLi Jun		and to be 0 when the application no longer wants to use
9f99858e0SLi Jun		the bus(or wants to work as peripheral). a_bus_req can also
10f99858e0SLi Jun		be set to 1 by kernel in response to remote wakeup signaling
11f99858e0SLi Jun		from the B-device, the A-device should decide to resume the bus.
12f99858e0SLi Jun
13f99858e0SLi Jun		Valid values are "1" and "0".
14f99858e0SLi Jun
15f99858e0SLi Jun		Reading: returns 1 if the application running on the A-device
16f99858e0SLi Jun		is using the bus as host role, otherwise 0.
17f99858e0SLi Jun
18f99858e0SLi JunWhat:		/sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop
19f99858e0SLi JunDate:		Feb 2014
20*3d19946bSFabio EstevamContact:	Li Jun <jun.li@nxp.com>
21f99858e0SLi JunDescription:
22f99858e0SLi Jun		Can be set and read
23f99858e0SLi Jun		The a_bus_drop(A-device bus drop) input is 1 when the
24f99858e0SLi Jun		application running on the A-device wants to power down
25f99858e0SLi Jun		the bus, and is 0 otherwise, When a_bus_drop is 1, then
26f99858e0SLi Jun		the a_bus_req shall be 0.
27f99858e0SLi Jun
28f99858e0SLi Jun		Valid values are "1" and "0".
29f99858e0SLi Jun
30f99858e0SLi Jun		Reading: returns 1 if the bus is off(vbus is turned off) by
31f99858e0SLi Jun			 A-device, otherwise 0.
32f99858e0SLi Jun
33f99858e0SLi JunWhat:		/sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req
34f99858e0SLi JunDate:		Feb 2014
35*3d19946bSFabio EstevamContact:	Li Jun <jun.li@nxp.com>
36f99858e0SLi JunDescription:
37f99858e0SLi Jun		Can be set and read.
38f99858e0SLi Jun		The b_bus_req(B-device bus request) input is 1 during the time
39f99858e0SLi Jun		that the application running on the B-device wants to use the
40f99858e0SLi Jun		bus as host, and is 0 when the application no longer wants to
41f99858e0SLi Jun		work as host and decides to switch back to be peripheral.
42f99858e0SLi Jun
43f99858e0SLi Jun		Valid values are "1" and "0".
44f99858e0SLi Jun
45f99858e0SLi Jun		Reading: returns if the application running on the B device
46f99858e0SLi Jun		is using the bus as host role, otherwise 0.
47f99858e0SLi Jun
48f99858e0SLi JunWhat:		/sys/bus/platform/devices/ci_hdrc.0/inputs/a_clr_err
49f99858e0SLi JunDate:		Feb 2014
50*3d19946bSFabio EstevamContact:	Li Jun <jun.li@nxp.com>
51f99858e0SLi JunDescription:
52f99858e0SLi Jun		Only can be set.
53f99858e0SLi Jun		The a_clr_err(A-device Vbus error clear) input is used to clear
54f99858e0SLi Jun		vbus error, then A-device will power down the bus.
55f99858e0SLi Jun
56f99858e0SLi Jun		Valid value is "1"
57