xref: /OK3568_Linux_fs/kernel/Documentation/ABI/stable/sysfs-class-udc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/a_alt_hnp_support
2*4882a593SmuzhiyunDate:		June 2011
3*4882a593SmuzhiyunKernelVersion:	3.1
4*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
5*4882a593SmuzhiyunDescription:
6*4882a593Smuzhiyun		Indicates if an OTG A-Host supports HNP at an alternate port.
7*4882a593SmuzhiyunUsers:
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/a_hnp_support
10*4882a593SmuzhiyunDate:		June 2011
11*4882a593SmuzhiyunKernelVersion:	3.1
12*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
13*4882a593SmuzhiyunDescription:
14*4882a593Smuzhiyun		Indicates if an OTG A-Host supports HNP at this port.
15*4882a593SmuzhiyunUsers:
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/b_hnp_enable
18*4882a593SmuzhiyunDate:		June 2011
19*4882a593SmuzhiyunKernelVersion:	3.1
20*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
21*4882a593SmuzhiyunDescription:
22*4882a593Smuzhiyun		Indicates if an OTG A-Host enabled HNP support.
23*4882a593SmuzhiyunUsers:
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/current_speed
26*4882a593SmuzhiyunDate:		June 2011
27*4882a593SmuzhiyunKernelVersion:	3.1
28*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
29*4882a593SmuzhiyunDescription:
30*4882a593Smuzhiyun		Indicates the current negotiated speed at this port.
31*4882a593SmuzhiyunUsers:
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/is_a_peripheral
34*4882a593SmuzhiyunDate:		June 2011
35*4882a593SmuzhiyunKernelVersion:	3.1
36*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
37*4882a593SmuzhiyunDescription:
38*4882a593Smuzhiyun		Indicates that this port is the default Host on an OTG session
39*4882a593Smuzhiyun		but HNP was used to switch roles.
40*4882a593SmuzhiyunUsers:
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/is_otg
43*4882a593SmuzhiyunDate:		June 2011
44*4882a593SmuzhiyunKernelVersion:	3.1
45*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
46*4882a593SmuzhiyunDescription:
47*4882a593Smuzhiyun		Indicates that this port support OTG.
48*4882a593SmuzhiyunUsers:
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/maximum_speed
51*4882a593SmuzhiyunDate:		June 2011
52*4882a593SmuzhiyunKernelVersion:	3.1
53*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
54*4882a593SmuzhiyunDescription:
55*4882a593Smuzhiyun		Indicates the maximum USB speed supported by this port.
56*4882a593SmuzhiyunUsers:
57*4882a593Smuzhiyun
58*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/soft_connect
59*4882a593SmuzhiyunDate:		June 2011
60*4882a593SmuzhiyunKernelVersion:	3.1
61*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
62*4882a593SmuzhiyunDescription:
63*4882a593Smuzhiyun		Allows users to disconnect data pullup resistors thus causing a
64*4882a593Smuzhiyun		logical disconnection from the USB Host.
65*4882a593SmuzhiyunUsers:
66*4882a593Smuzhiyun
67*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/srp
68*4882a593SmuzhiyunDate:		June 2011
69*4882a593SmuzhiyunKernelVersion:	3.1
70*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
71*4882a593SmuzhiyunDescription:
72*4882a593Smuzhiyun		Allows users to manually start Session Request Protocol.
73*4882a593SmuzhiyunUsers:
74*4882a593Smuzhiyun
75*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/state
76*4882a593SmuzhiyunDate:		June 2011
77*4882a593SmuzhiyunKernelVersion:	3.1
78*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
79*4882a593SmuzhiyunDescription:
80*4882a593Smuzhiyun		Indicates current state of the USB Device Controller. Valid
81*4882a593Smuzhiyun		states are: 'not-attached', 'attached', 'powered',
82*4882a593Smuzhiyun		'reconnecting', 'unauthenticated', 'default', 'addressed',
83*4882a593Smuzhiyun		'configured', and 'suspended'; however not all USB Device
84*4882a593Smuzhiyun		Controllers support reporting all states.
85*4882a593SmuzhiyunUsers:
86*4882a593Smuzhiyun
87*4882a593SmuzhiyunWhat:		/sys/class/udc/<udc>/function
88*4882a593SmuzhiyunDate:		June 2017
89*4882a593SmuzhiyunKernelVersion:	4.13
90*4882a593SmuzhiyunContact:	Felipe Balbi <balbi@kernel.org>
91*4882a593SmuzhiyunDescription:
92*4882a593Smuzhiyun		Prints out name of currently running USB Gadget Driver.
93*4882a593SmuzhiyunUsers:
94