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