1What:		/sys/bus/usb/devices/INTERFACE/authorized
2Date:		August 2015
3Description:
4		This allows to authorize (1) or deauthorize (0)
5		individual interfaces instead a whole device
6		in contrast to the device authorization.
7		If a deauthorized interface will be authorized
8		so the driver probing must be triggered manually
9		by writing INTERFACE to /sys/bus/usb/drivers_probe
10		This allows to avoid side-effects with drivers
11		that need multiple interfaces.
12		A deauthorized interface cannot be probed or claimed.
13
14What:		/sys/bus/usb/devices/usbX/interface_authorized_default
15Date:		August 2015
16Description:
17		This is used as value that determines if interfaces
18		would be authorized by default.
19		The value can be 1 or 0. It's by default 1.
20
21What:		/sys/bus/usb/device/.../authorized
22Date:		July 2008
23KernelVersion:	2.6.26
24Contact:	David Vrabel <[email protected]>
25Description:
26		Authorized devices are available for use by device
27		drivers, non-authorized one are not.  By default, wired
28		USB devices are authorized.
29
30		Certified Wireless USB devices are not authorized
31		initially and should be (by writing 1) after the
32		device has been authenticated.
33
34What:		/sys/bus/usb/device/.../wusb_cdid
35Date:		July 2008
36KernelVersion:	2.6.27
37Contact:	David Vrabel <[email protected]>
38Description:
39		For Certified Wireless USB devices only.
40
41		A devices's CDID, as 16 space-separated hex octets.
42
43What:		/sys/bus/usb/device/.../wusb_ck
44Date:		July 2008
45KernelVersion:	2.6.27
46Contact:	David Vrabel <[email protected]>
47Description:
48		For Certified Wireless USB devices only.
49
50		Write the device's connection key (CK) to start the
51		authentication of the device.  The CK is 16
52		space-separated hex octets.
53
54What:		/sys/bus/usb/device/.../wusb_disconnect
55Date:		July 2008
56KernelVersion:	2.6.27
57Contact:	David Vrabel <[email protected]>
58Description:
59		For Certified Wireless USB devices only.
60
61		Write a 1 to force the device to disconnect
62		(equivalent to unplugging a wired USB device).
63
64What:		/sys/bus/usb/drivers/.../new_id
65Date:		October 2011
66Contact:	[email protected]
67Description:
68		Writing a device ID to this file will attempt to
69		dynamically add a new device ID to a USB device driver.
70		This may allow the driver to support more hardware than
71		was included in the driver's static device ID support
72		table at compile time. The format for the device ID is:
73		idVendor idProduct bInterfaceClass RefIdVendor RefIdProduct
74		The vendor ID and device ID fields are required, the
75		rest is optional. The `Ref*` tuple can be used to tell the
76		driver to use the same driver_data for the new device as
77		it is used for the reference device.
78		Upon successfully adding an ID, the driver will probe
79		for the device and attempt to bind to it.  For example::
80
81		  # echo "8086 10f5" > /sys/bus/usb/drivers/foo/new_id
82
83		Here add a new device (0458:7045) using driver_data from
84		an already supported device (0458:704c)::
85
86		  # echo "0458 7045 0 0458 704c" > /sys/bus/usb/drivers/foo/new_id
87
88		Reading from this file will list all dynamically added
89		device IDs in the same format, with one entry per
90		line. For example::
91
92		  # cat /sys/bus/usb/drivers/foo/new_id
93		  8086 10f5
94		  dead beef 06
95		  f00d cafe
96
97		The list will be truncated at PAGE_SIZE bytes due to
98		sysfs restrictions.
99
100What:		/sys/bus/usb-serial/drivers/.../new_id
101Date:		October 2011
102Contact:	[email protected]
103Description:
104		For serial USB drivers, this attribute appears under the
105		extra bus folder "usb-serial" in sysfs; apart from that
106		difference, all descriptions from the entry
107		"/sys/bus/usb/drivers/.../new_id" apply.
108
109What:		/sys/bus/usb/drivers/.../remove_id
110Date:		November 2009
111Contact:	CHENG Renquan <[email protected]>
112Description:
113		Writing a device ID to this file will remove an ID
114		that was dynamically added via the new_id sysfs entry.
115		The format for the device ID is:
116		idVendor idProduct.	After successfully
117		removing an ID, the driver will no longer support the
118		device.  This is useful to ensure auto probing won't
119		match the driver to the device.  For example:
120		# echo "046d c315" > /sys/bus/usb/drivers/foo/remove_id
121
122		Reading from this file will list the dynamically added
123		device IDs, exactly like reading from the entry
124		"/sys/bus/usb/drivers/.../new_id"
125
126What:		/sys/bus/usb/devices/.../power/usb2_hardware_lpm
127Date:		September 2011
128Contact:	Andiry Xu <[email protected]>
129Description:
130		If CONFIG_PM is set and a USB 2.0 lpm-capable device is plugged
131		in to a xHCI host which support link PM, it will perform a LPM
132		test; if the test is passed and host supports USB2 hardware LPM
133		(xHCI 1.0 feature), USB2 hardware LPM will be enabled for the
134		device and the USB device directory will contain a file named
135		power/usb2_hardware_lpm.  The file holds a string value (enable
136		or disable) indicating whether or not USB2 hardware LPM is
137		enabled for the device. Developer can write y/Y/1 or n/N/0 to
138		the file to enable/disable the feature.
139
140What:		/sys/bus/usb/devices/.../power/usb3_hardware_lpm_u1
141		/sys/bus/usb/devices/.../power/usb3_hardware_lpm_u2
142Date:		November 2015
143Contact:	Kevin Strasser <[email protected]>
144		Lu Baolu <[email protected]>
145Description:
146		If CONFIG_PM is set and a USB 3.0 lpm-capable device is plugged
147		in to a xHCI host which supports link PM, it will check if U1
148		and U2 exit latencies have been set in the BOS descriptor; if
149		the check is passed and the host supports USB3 hardware LPM,
150		USB3 hardware LPM will be enabled for the device and the USB
151		device directory will contain two files named
152		power/usb3_hardware_lpm_u1 and power/usb3_hardware_lpm_u2. These
153		files hold a string value (enable or disable) indicating whether
154		or not USB3 hardware LPM U1 or U2 is enabled for the device.
155
156What:		/sys/bus/usb/devices/.../removable
157Date:		February 2012
158Contact:	Matthew Garrett <[email protected]>
159Description:
160		Some information about whether a given USB device is
161		physically fixed to the platform can be inferred from a
162		combination of hub descriptor bits and platform-specific data
163		such as ACPI. This file will read either "removable" or
164		"fixed" if the information is available, and "unknown"
165		otherwise.
166
167What:		/sys/bus/usb/devices/.../ltm_capable
168Date:		July 2012
169Contact:	Sarah Sharp <[email protected]>
170Description:
171		USB 3.0 devices may optionally support Latency Tolerance
172		Messaging (LTM).  They indicate their support by setting a bit
173		in the bmAttributes field of their SuperSpeed BOS descriptors.
174		If that bit is set for the device, ltm_capable will read "yes".
175		If the device doesn't support LTM, the file will read "no".
176		The file will be present for all speeds of USB devices, and will
177		always read "no" for USB 1.1 and USB 2.0 devices.
178
179What:		/sys/bus/usb/devices/.../(hub interface)/portX
180Date:		August 2012
181Contact:	Lan Tianyu <[email protected]>
182Description:
183		The /sys/bus/usb/devices/.../(hub interface)/portX
184		is usb port device's sysfs directory.
185
186What:		/sys/bus/usb/devices/.../(hub interface)/portX/connect_type
187Date:		January 2013
188Contact:	Lan Tianyu <[email protected]>
189Description:
190		Some platforms provide usb port connect types through ACPI.
191		This attribute is to expose these information to user space.
192		The file will read "hotplug", "hardwired" and "not used" if the
193		information is available, and "unknown" otherwise.
194
195What:		/sys/bus/usb/devices/.../(hub interface)/portX/location
196Date:		October 2018
197Contact:	Bjørn Mork <[email protected]>
198Description:
199		Some platforms provide usb port physical location through
200		firmware. This is used by the kernel to pair up logical ports
201		mapping to the same physical connector. The attribute exposes the
202		raw location value as a hex integer.
203
204
205What:		/sys/bus/usb/devices/.../(hub interface)/portX/quirks
206Date:		May 2018
207Contact:	Nicolas Boichat <[email protected]>
208Description:
209		In some cases, we care about time-to-active for devices
210		connected on a specific port (e.g. non-standard USB port like
211		pogo pins), where the device to be connected is known in
212		advance, and behaves well according to the specification.
213		This attribute is a bit-field that controls the behavior of
214		a specific port:
215
216		 - Bit 0 of this field selects the "old" enumeration scheme,
217		   as it is considerably faster (it only causes one USB reset
218		   instead of 2).
219		   The old enumeration scheme can also be selected globally
220		   using /sys/module/usbcore/parameters/old_scheme_first, but
221		   it is often not desirable as the new scheme was introduced to
222		   increase compatibility with more devices.
223		 - Bit 1 reduces TRSTRCY to the 10 ms that are required by the
224		   USB 2.0 specification, instead of the 50 ms that are normally
225		   used to help make enumeration work better on some high speed
226		   devices.
227
228What:		/sys/bus/usb/devices/.../(hub interface)/portX/over_current_count
229Date:		February 2018
230Contact:	Richard Leitner <[email protected]>
231Description:
232		Most hubs are able to detect over-current situations on their
233		ports and report them to the kernel. This attribute is to expose
234		the number of over-current situation occurred on a specific port
235		to user space. This file will contain an unsigned 32 bit value
236		which wraps to 0 after its maximum is reached. This file supports
237		poll() for monitoring changes to this value in user space.
238
239		Any time this value changes the corresponding hub device will send a
240		udev event with the following attributes::
241
242		  OVER_CURRENT_PORT=/sys/bus/usb/devices/.../(hub interface)/portX
243		  OVER_CURRENT_COUNT=[current value of this sysfs attribute]
244
245What:		/sys/bus/usb/devices/.../(hub interface)/portX/usb3_lpm_permit
246Date:		November 2015
247Contact:	Lu Baolu <[email protected]>
248Description:
249		Some USB3.0 devices are not friendly to USB3 LPM.  usb3_lpm_permit
250		attribute allows enabling/disabling usb3 lpm of a port. It takes
251		effect both before and after a usb device is enumerated. Supported
252		values are "0" if both u1 and u2 are NOT permitted, "u1" if only u1
253		is permitted, "u2" if only u2 is permitted, "u1_u2" if both u1 and
254		u2 are permitted.
255
256What:		/sys/bus/usb/devices/.../power/usb2_lpm_l1_timeout
257Date:		May 2013
258Contact:	Mathias Nyman <[email protected]>
259Description:
260		USB 2.0 devices may support hardware link power management (LPM)
261		L1 sleep state. The usb2_lpm_l1_timeout attribute allows
262		tuning the timeout for L1 inactivity timer (LPM timer), e.g.
263		needed inactivity time before host requests the device to go to L1 sleep.
264		Useful for power management tuning.
265		Supported values are 0 - 65535 microseconds.
266
267What:		/sys/bus/usb/devices/.../power/usb2_lpm_besl
268Date:		May 2013
269Contact:	Mathias Nyman <[email protected]>
270Description:
271		USB 2.0 devices that support hardware link power management (LPM)
272		L1 sleep state now use a best effort service latency value (BESL) to
273		indicate the best effort to resumption of service to the device after the
274		initiation of the resume event.
275		If the device does not have a preferred besl value then the host can select
276		one instead. This usb2_lpm_besl attribute allows to tune the host selected besl
277		value in order to tune power saving and service latency.
278
279		Supported values are 0 - 15.
280		More information on how besl values map to microseconds can be found in
281		USB 2.0 ECN Errata for Link Power Management, section 4.10)
282
283What:		/sys/bus/usb/devices/.../rx_lanes
284Date:		March 2018
285Contact:	Mathias Nyman <[email protected]>
286Description:
287		Number of rx lanes the device is using.
288		USB 3.2 adds Dual-lane support, 2 rx and 2 tx lanes over Type-C.
289		Inter-Chip SSIC devices support asymmetric lanes up to 4 lanes per
290		direction. Devices before USB 3.2 are single lane (rx_lanes = 1)
291
292What:		/sys/bus/usb/devices/.../tx_lanes
293Date:		March 2018
294Contact:	Mathias Nyman <[email protected]>
295Description:
296		Number of tx lanes the device is using.
297		USB 3.2 adds Dual-lane support, 2 rx and 2 tx -lanes over Type-C.
298		Inter-Chip SSIC devices support asymmetric lanes up to 4 lanes per
299		direction. Devices before USB 3.2 are single lane (tx_lanes = 1)
300