1e06ab8d5SMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/<INTERFACE>/authorized
27f59c150SStefan KochDate:		August 2015
37f59c150SStefan KochDescription:
47f59c150SStefan Koch		This allows to authorize (1) or deauthorize (0)
57f59c150SStefan Koch		individual interfaces instead a whole device
67f59c150SStefan Koch		in contrast to the device authorization.
77f59c150SStefan Koch		If a deauthorized interface will be authorized
87f59c150SStefan Koch		so the driver probing must be triggered manually
97f59c150SStefan Koch		by writing INTERFACE to /sys/bus/usb/drivers_probe
107f59c150SStefan Koch		This allows to avoid side-effects with drivers
117f59c150SStefan Koch		that need multiple interfaces.
1254a19b4dSMauro Carvalho Chehab
137f59c150SStefan Koch		A deauthorized interface cannot be probed or claimed.
147f59c150SStefan Koch
157f59c150SStefan KochWhat:		/sys/bus/usb/devices/usbX/interface_authorized_default
167f59c150SStefan KochDate:		August 2015
177f59c150SStefan KochDescription:
187f59c150SStefan Koch		This is used as value that determines if interfaces
197f59c150SStefan Koch		would be authorized by default.
207f59c150SStefan Koch		The value can be 1 or 0. It's by default 1.
217f59c150SStefan Koch
22c8cf2465SDavid VrabelWhat:		/sys/bus/usb/device/.../authorized
23c8cf2465SDavid VrabelDate:		July 2008
24c8cf2465SDavid VrabelKernelVersion:	2.6.26
25c8cf2465SDavid VrabelContact:	David Vrabel <david.vrabel@csr.com>
26c8cf2465SDavid VrabelDescription:
27c8cf2465SDavid Vrabel		Authorized devices are available for use by device
28c8cf2465SDavid Vrabel		drivers, non-authorized one are not.  By default, wired
29c8cf2465SDavid Vrabel		USB devices are authorized.
30c8cf2465SDavid Vrabel
31ff231db8SJosua DietzeWhat:		/sys/bus/usb/drivers/.../new_id
32ff231db8SJosua DietzeDate:		October 2011
33ff231db8SJosua DietzeContact:	linux-usb@vger.kernel.org
34ff231db8SJosua DietzeDescription:
35ff231db8SJosua Dietze		Writing a device ID to this file will attempt to
36ff231db8SJosua Dietze		dynamically add a new device ID to a USB device driver.
37ff231db8SJosua Dietze		This may allow the driver to support more hardware than
38ff231db8SJosua Dietze		was included in the driver's static device ID support
39ff231db8SJosua Dietze		table at compile time. The format for the device ID is:
402fc82c2dSWolfram Sang		idVendor idProduct bInterfaceClass RefIdVendor RefIdProduct
41ff231db8SJosua Dietze		The vendor ID and device ID fields are required, the
4234433332SMauro Carvalho Chehab		rest is optional. The `Ref*` tuple can be used to tell the
432fc82c2dSWolfram Sang		driver to use the same driver_data for the new device as
442fc82c2dSWolfram Sang		it is used for the reference device.
45ff231db8SJosua Dietze		Upon successfully adding an ID, the driver will probe
4634433332SMauro Carvalho Chehab		for the device and attempt to bind to it.  For example::
4734433332SMauro Carvalho Chehab
48ff231db8SJosua Dietze		  # echo "8086 10f5" > /sys/bus/usb/drivers/foo/new_id
49ff231db8SJosua Dietze
502fc82c2dSWolfram Sang		Here add a new device (0458:7045) using driver_data from
5134433332SMauro Carvalho Chehab		an already supported device (0458:704c)::
5234433332SMauro Carvalho Chehab
532fc82c2dSWolfram Sang		  # echo "0458 7045 0 0458 704c" > /sys/bus/usb/drivers/foo/new_id
542fc82c2dSWolfram Sang
55e6bbcef0SBjørn Mork		Reading from this file will list all dynamically added
56e6bbcef0SBjørn Mork		device IDs in the same format, with one entry per
5734433332SMauro Carvalho Chehab		line. For example::
5834433332SMauro Carvalho Chehab
59e6bbcef0SBjørn Mork		  # cat /sys/bus/usb/drivers/foo/new_id
60e6bbcef0SBjørn Mork		  8086 10f5
61e6bbcef0SBjørn Mork		  dead beef 06
62e6bbcef0SBjørn Mork		  f00d cafe
63e6bbcef0SBjørn Mork
64e6bbcef0SBjørn Mork		The list will be truncated at PAGE_SIZE bytes due to
65e6bbcef0SBjørn Mork		sysfs restrictions.
66e6bbcef0SBjørn Mork
67ff231db8SJosua DietzeWhat:		/sys/bus/usb-serial/drivers/.../new_id
68ff231db8SJosua DietzeDate:		October 2011
69ff231db8SJosua DietzeContact:	linux-usb@vger.kernel.org
70ff231db8SJosua DietzeDescription:
71ff231db8SJosua Dietze		For serial USB drivers, this attribute appears under the
72ff231db8SJosua Dietze		extra bus folder "usb-serial" in sysfs; apart from that
73ff231db8SJosua Dietze		difference, all descriptions from the entry
74ff231db8SJosua Dietze		"/sys/bus/usb/drivers/.../new_id" apply.
75ff231db8SJosua Dietze
760c7a2b72SCHENG RenquanWhat:		/sys/bus/usb/drivers/.../remove_id
770c7a2b72SCHENG RenquanDate:		November 2009
780c7a2b72SCHENG RenquanContact:	CHENG Renquan <rqcheng@smu.edu.sg>
790c7a2b72SCHENG RenquanDescription:
800c7a2b72SCHENG Renquan		Writing a device ID to this file will remove an ID
810c7a2b72SCHENG Renquan		that was dynamically added via the new_id sysfs entry.
820c7a2b72SCHENG Renquan		The format for the device ID is:
830c7a2b72SCHENG Renquan		idVendor idProduct.	After successfully
840c7a2b72SCHENG Renquan		removing an ID, the driver will no longer support the
850c7a2b72SCHENG Renquan		device.  This is useful to ensure auto probing won't
860c7a2b72SCHENG Renquan		match the driver to the device.  For example:
870c7a2b72SCHENG Renquan		# echo "046d c315" > /sys/bus/usb/drivers/foo/remove_id
88ef955341SOliver Neukum
89e6bbcef0SBjørn Mork		Reading from this file will list the dynamically added
90e6bbcef0SBjørn Mork		device IDs, exactly like reading from the entry
91e6bbcef0SBjørn Mork		"/sys/bus/usb/drivers/.../new_id"
92e6bbcef0SBjørn Mork
93c1045e87SAndiry XuWhat:		/sys/bus/usb/devices/.../power/usb2_hardware_lpm
94c1045e87SAndiry XuDate:		September 2011
95c1045e87SAndiry XuContact:	Andiry Xu <andiry.xu@amd.com>
96c1045e87SAndiry XuDescription:
97ceb6c9c8SRafael J. Wysocki		If CONFIG_PM is set and a USB 2.0 lpm-capable device is plugged
98ceb6c9c8SRafael J. Wysocki		in to a xHCI host which support link PM, it will perform a LPM
99ceb6c9c8SRafael J. Wysocki		test; if the test is passed and host supports USB2 hardware LPM
100ceb6c9c8SRafael J. Wysocki		(xHCI 1.0 feature), USB2 hardware LPM will be enabled for the
101ceb6c9c8SRafael J. Wysocki		device and the USB device directory will contain a file named
102ceb6c9c8SRafael J. Wysocki		power/usb2_hardware_lpm.  The file holds a string value (enable
103ceb6c9c8SRafael J. Wysocki		or disable) indicating whether or not USB2 hardware LPM is
104ceb6c9c8SRafael J. Wysocki		enabled for the device. Developer can write y/Y/1 or n/N/0 to
105ceb6c9c8SRafael J. Wysocki		the file to enable/disable the feature.
1060846e7e9SMatthew Garrett
107bf5ce5bfSLu BaoluWhat:		/sys/bus/usb/devices/.../power/usb3_hardware_lpm_u1
108bf5ce5bfSLu Baolu		/sys/bus/usb/devices/.../power/usb3_hardware_lpm_u2
109bf5ce5bfSLu BaoluDate:		November 2015
110655fe4efSKevin StrasserContact:	Kevin Strasser <kevin.strasser@linux.intel.com>
111bf5ce5bfSLu Baolu		Lu Baolu <baolu.lu@linux.intel.com>
112655fe4efSKevin StrasserDescription:
113a2e66ad3SValentin Rothberg		If CONFIG_PM is set and a USB 3.0 lpm-capable device is plugged
114a2e66ad3SValentin Rothberg		in to a xHCI host which supports link PM, it will check if U1
115a2e66ad3SValentin Rothberg		and U2 exit latencies have been set in the BOS descriptor; if
116bf5ce5bfSLu Baolu		the check is passed and the host supports USB3 hardware LPM,
117a2e66ad3SValentin Rothberg		USB3 hardware LPM will be enabled for the device and the USB
118bf5ce5bfSLu Baolu		device directory will contain two files named
119bf5ce5bfSLu Baolu		power/usb3_hardware_lpm_u1 and power/usb3_hardware_lpm_u2. These
120bf5ce5bfSLu Baolu		files hold a string value (enable or disable) indicating whether
121bf5ce5bfSLu Baolu		or not USB3 hardware LPM U1 or U2 is enabled for the device.
122655fe4efSKevin Strasser
123024f117cSSarah SharpWhat:		/sys/bus/usb/devices/.../ltm_capable
124024f117cSSarah SharpDate:		July 2012
125024f117cSSarah SharpContact:	Sarah Sharp <sarah.a.sharp@linux.intel.com>
126024f117cSSarah SharpDescription:
127024f117cSSarah Sharp		USB 3.0 devices may optionally support Latency Tolerance
128024f117cSSarah Sharp		Messaging (LTM).  They indicate their support by setting a bit
129024f117cSSarah Sharp		in the bmAttributes field of their SuperSpeed BOS descriptors.
130024f117cSSarah Sharp		If that bit is set for the device, ltm_capable will read "yes".
131024f117cSSarah Sharp		If the device doesn't support LTM, the file will read "no".
132024f117cSSarah Sharp		The file will be present for all speeds of USB devices, and will
133024f117cSSarah Sharp		always read "no" for USB 1.1 and USB 2.0 devices.
134fa2a9566SLan Tianyu
135f98e0640SBastien NoceraWhat:		/sys/bus/usb/devices/<INTERFACE>/wireless_status
136f98e0640SBastien NoceraDate:		February 2023
137f98e0640SBastien NoceraContact:	Bastien Nocera <hadess@hadess.net>
138f98e0640SBastien NoceraDescription:
139f98e0640SBastien Nocera		Some USB devices use a USB receiver dongle to communicate
140f98e0640SBastien Nocera		wirelessly with their device using proprietary protocols. This
141f98e0640SBastien Nocera		attribute allows user-space to know whether the device is
142f98e0640SBastien Nocera		connected to its receiver dongle, and, for example, consider
143f98e0640SBastien Nocera		the device to be absent when choosing whether to show the
144f98e0640SBastien Nocera		device's battery, show a headset in a list of outputs, or show
145f98e0640SBastien Nocera		an on-screen keyboard if the only wireless keyboard is
146f98e0640SBastien Nocera		turned off.
147f98e0640SBastien Nocera		This attribute is not to be used to replace protocol specific
148f98e0640SBastien Nocera		statuses available in WWAN, WLAN/Wi-Fi, Bluetooth, etc.
149f98e0640SBastien Nocera		If the device does not use a receiver dongle with a wireless
150f98e0640SBastien Nocera		device, then this attribute will not exist.
151f98e0640SBastien Nocera
1523628f573SMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>
153fa2a9566SLan TianyuDate:		August 2012
154fa2a9566SLan TianyuContact:	Lan Tianyu <tianyu.lan@intel.com>
155fa2a9566SLan TianyuDescription:
1563628f573SMauro Carvalho Chehab		The /sys/bus/usb/devices/.../<hub_interface>/port<X>
157fa2a9566SLan Tianyu		is usb port device's sysfs directory.
158cef7468cSLan Tianyu
1593628f573SMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/connect_type
160cef7468cSLan TianyuDate:		January 2013
161cef7468cSLan TianyuContact:	Lan Tianyu <tianyu.lan@intel.com>
162cef7468cSLan TianyuDescription:
163cef7468cSLan Tianyu		Some platforms provide usb port connect types through ACPI.
164cef7468cSLan Tianyu		This attribute is to expose these information to user space.
16568f1ec8eSJon Flatley		The file will read "hotplug", "hardwired" and "not used" if the
166cef7468cSLan Tianyu		information is available, and "unknown" otherwise.
16717f34867SMathias Nyman
1683628f573SMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/location
169355c74e5SBjørn MorkDate:		October 2018
170355c74e5SBjørn MorkContact:	Bjørn Mork <bjorn@mork.no>
171355c74e5SBjørn MorkDescription:
172355c74e5SBjørn Mork		Some platforms provide usb port physical location through
173355c74e5SBjørn Mork		firmware. This is used by the kernel to pair up logical ports
174355c74e5SBjørn Mork		mapping to the same physical connector. The attribute exposes the
175355c74e5SBjørn Mork		raw location value as a hex integer.
176355c74e5SBjørn Mork
177355c74e5SBjørn Mork
1783628f573SMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/quirks
17925244227SNicolas BoichatDate:		May 2018
18025244227SNicolas BoichatContact:	Nicolas Boichat <drinkcat@chromium.org>
18125244227SNicolas BoichatDescription:
18225244227SNicolas Boichat		In some cases, we care about time-to-active for devices
18325244227SNicolas Boichat		connected on a specific port (e.g. non-standard USB port like
18425244227SNicolas Boichat		pogo pins), where the device to be connected is known in
18525244227SNicolas Boichat		advance, and behaves well according to the specification.
18625244227SNicolas Boichat		This attribute is a bit-field that controls the behavior of
18725244227SNicolas Boichat		a specific port:
18834433332SMauro Carvalho Chehab
18925244227SNicolas Boichat		 - Bit 0 of this field selects the "old" enumeration scheme,
19025244227SNicolas Boichat		   as it is considerably faster (it only causes one USB reset
19125244227SNicolas Boichat		   instead of 2).
19254a19b4dSMauro Carvalho Chehab
19325244227SNicolas Boichat		   The old enumeration scheme can also be selected globally
19425244227SNicolas Boichat		   using /sys/module/usbcore/parameters/old_scheme_first, but
19525244227SNicolas Boichat		   it is often not desirable as the new scheme was introduced to
19625244227SNicolas Boichat		   increase compatibility with more devices.
197aa071a92SNicolas Boichat		 - Bit 1 reduces TRSTRCY to the 10 ms that are required by the
198aa071a92SNicolas Boichat		   USB 2.0 specification, instead of the 50 ms that are normally
199aa071a92SNicolas Boichat		   used to help make enumeration work better on some high speed
200aa071a92SNicolas Boichat		   devices.
20125244227SNicolas Boichat
2023628f573SMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/over_current_count
2031cbd53c8SRichard LeitnerDate:		February 2018
2041cbd53c8SRichard LeitnerContact:	Richard Leitner <richard.leitner@skidata.com>
2051cbd53c8SRichard LeitnerDescription:
2061cbd53c8SRichard Leitner		Most hubs are able to detect over-current situations on their
2071cbd53c8SRichard Leitner		ports and report them to the kernel. This attribute is to expose
2081cbd53c8SRichard Leitner		the number of over-current situation occurred on a specific port
2091cbd53c8SRichard Leitner		to user space. This file will contain an unsigned 32 bit value
210201af55dSJon Flatley		which wraps to 0 after its maximum is reached. This file supports
211201af55dSJon Flatley		poll() for monitoring changes to this value in user space.
212201af55dSJon Flatley
213201af55dSJon Flatley		Any time this value changes the corresponding hub device will send a
21434433332SMauro Carvalho Chehab		udev event with the following attributes::
215201af55dSJon Flatley
2163628f573SMauro Carvalho Chehab		  OVER_CURRENT_PORT=/sys/bus/usb/devices/.../<hub_interface>/port<X>
217201af55dSJon Flatley		  OVER_CURRENT_COUNT=[current value of this sysfs attribute]
2181cbd53c8SRichard Leitner
2193628f573SMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/usb3_lpm_permit
220513072d9SLu BaoluDate:		November 2015
221513072d9SLu BaoluContact:	Lu Baolu <baolu.lu@linux.intel.com>
222513072d9SLu BaoluDescription:
223513072d9SLu Baolu		Some USB3.0 devices are not friendly to USB3 LPM.  usb3_lpm_permit
224513072d9SLu Baolu		attribute allows enabling/disabling usb3 lpm of a port. It takes
225513072d9SLu Baolu		effect both before and after a usb device is enumerated. Supported
226513072d9SLu Baolu		values are "0" if both u1 and u2 are NOT permitted, "u1" if only u1
227513072d9SLu Baolu		is permitted, "u2" if only u2 is permitted, "u1_u2" if both u1 and
228513072d9SLu Baolu		u2 are permitted.
229513072d9SLu Baolu
2308c67d06fSHeikki KrogerusWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/connector
2318c67d06fSHeikki KrogerusDate:		December 2021
2328c67d06fSHeikki KrogerusContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
2338c67d06fSHeikki KrogerusDescription:
2348c67d06fSHeikki Krogerus		Link to the USB Type-C connector when available. This link is
2358c67d06fSHeikki Krogerus		only created when USB Type-C Connector Class is enabled, and
2368c67d06fSHeikki Krogerus		only if the system firmware is capable of describing the
2378c67d06fSHeikki Krogerus		connection between a port and its connector.
2388c67d06fSHeikki Krogerus
239f061f43dSMichael GrzeschikWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/disable
240f061f43dSMichael GrzeschikDate:		June 2022
241f061f43dSMichael GrzeschikContact:	Michael Grzeschik <m.grzeschik@pengutronix.de>
242f061f43dSMichael GrzeschikDescription:
243f061f43dSMichael Grzeschik		This file controls the state of a USB port, including
244f061f43dSMichael Grzeschik		Vbus power output (but only on hubs that support
245f061f43dSMichael Grzeschik		power switching -- most hubs don't support it). If
246f061f43dSMichael Grzeschik		a port is disabled, the port is unusable: Devices
247f061f43dSMichael Grzeschik		attached to the port will not be detected, initialized,
248f061f43dSMichael Grzeschik		or enumerated.
249f061f43dSMichael Grzeschik
250430d57f5SRay ChiWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/early_stop
251430d57f5SRay ChiDate:		Sep 2022
252430d57f5SRay ChiContact:	Ray Chi <raychi@google.com>
253430d57f5SRay ChiDescription:
254430d57f5SRay Chi		Some USB hosts have some watchdog mechanisms so that the device
255430d57f5SRay Chi		may enter ramdump if it takes a long time during port initialization.
256430d57f5SRay Chi		This attribute allows each port just has two attempts so that the
257430d57f5SRay Chi		port initialization will be failed quickly. In addition, if a port
258430d57f5SRay Chi		which is marked with early_stop has failed to initialize, it will ignore
259430d57f5SRay Chi		all future connections until this attribute is clear.
260430d57f5SRay Chi
261*83cb2604SRoy LuoWhat:		/sys/bus/usb/devices/.../<hub_interface>/port<X>/state
262*83cb2604SRoy LuoDate:		June 2023
263*83cb2604SRoy LuoContact:	Roy Luo <royluo@google.com>
264*83cb2604SRoy LuoDescription:
265*83cb2604SRoy Luo		Indicates current state of the USB device attached to the port.
266*83cb2604SRoy Luo		Valid states are: 'not-attached', 'attached', 'powered',
267*83cb2604SRoy Luo		'reconnecting', 'unauthenticated', 'default', 'addressed',
268*83cb2604SRoy Luo		'configured', and 'suspended'. This file supports poll() to
269*83cb2604SRoy Luo		monitor the state change from user space.
270*83cb2604SRoy Luo
27117f34867SMathias NymanWhat:		/sys/bus/usb/devices/.../power/usb2_lpm_l1_timeout
27217f34867SMathias NymanDate:		May 2013
27317f34867SMathias NymanContact:	Mathias Nyman <mathias.nyman@linux.intel.com>
27417f34867SMathias NymanDescription:
27517f34867SMathias Nyman		USB 2.0 devices may support hardware link power management (LPM)
27617f34867SMathias Nyman		L1 sleep state. The usb2_lpm_l1_timeout attribute allows
27717f34867SMathias Nyman		tuning the timeout for L1 inactivity timer (LPM timer), e.g.
27817f34867SMathias Nyman		needed inactivity time before host requests the device to go to L1 sleep.
27917f34867SMathias Nyman		Useful for power management tuning.
28017f34867SMathias Nyman		Supported values are 0 - 65535 microseconds.
28117f34867SMathias Nyman
28217f34867SMathias NymanWhat:		/sys/bus/usb/devices/.../power/usb2_lpm_besl
28317f34867SMathias NymanDate:		May 2013
28417f34867SMathias NymanContact:	Mathias Nyman <mathias.nyman@linux.intel.com>
28517f34867SMathias NymanDescription:
28617f34867SMathias Nyman		USB 2.0 devices that support hardware link power management (LPM)
28717f34867SMathias Nyman		L1 sleep state now use a best effort service latency value (BESL) to
28817f34867SMathias Nyman		indicate the best effort to resumption of service to the device after the
28917f34867SMathias Nyman		initiation of the resume event.
29017f34867SMathias Nyman		If the device does not have a preferred besl value then the host can select
29117f34867SMathias Nyman		one instead. This usb2_lpm_besl attribute allows to tune the host selected besl
29217f34867SMathias Nyman		value in order to tune power saving and service latency.
29317f34867SMathias Nyman
29417f34867SMathias Nyman		Supported values are 0 - 15.
29517f34867SMathias Nyman		More information on how besl values map to microseconds can be found in
29617f34867SMathias Nyman		USB 2.0 ECN Errata for Link Power Management, section 4.10)
297b462e2e0SMathias Nyman
298b462e2e0SMathias NymanWhat:		/sys/bus/usb/devices/.../rx_lanes
299b462e2e0SMathias NymanDate:		March 2018
300b462e2e0SMathias NymanContact:	Mathias Nyman <mathias.nyman@linux.intel.com>
301b462e2e0SMathias NymanDescription:
302b462e2e0SMathias Nyman		Number of rx lanes the device is using.
303b462e2e0SMathias Nyman		USB 3.2 adds Dual-lane support, 2 rx and 2 tx lanes over Type-C.
304b462e2e0SMathias Nyman		Inter-Chip SSIC devices support asymmetric lanes up to 4 lanes per
305b462e2e0SMathias Nyman		direction. Devices before USB 3.2 are single lane (rx_lanes = 1)
306b462e2e0SMathias Nyman
307b462e2e0SMathias NymanWhat:		/sys/bus/usb/devices/.../tx_lanes
308b462e2e0SMathias NymanDate:		March 2018
309b462e2e0SMathias NymanContact:	Mathias Nyman <mathias.nyman@linux.intel.com>
310b462e2e0SMathias NymanDescription:
311b462e2e0SMathias Nyman		Number of tx lanes the device is using.
312b462e2e0SMathias Nyman		USB 3.2 adds Dual-lane support, 2 rx and 2 tx -lanes over Type-C.
313b462e2e0SMathias Nyman		Inter-Chip SSIC devices support asymmetric lanes up to 4 lanes per
314b462e2e0SMathias Nyman		direction. Devices before USB 3.2 are single lane (tx_lanes = 1)
315989eff9cSMauro Carvalho Chehab
316989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bAlternateSetting
317989eff9cSMauro Carvalho ChehabDescription:
318989eff9cSMauro Carvalho Chehab		The current interface alternate setting number, in decimal.
319989eff9cSMauro Carvalho Chehab
320989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
321989eff9cSMauro Carvalho Chehab
322989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bcdDevice
323989eff9cSMauro Carvalho ChehabDescription:
324989eff9cSMauro Carvalho Chehab		The device's release number, in hexadecimal.
325989eff9cSMauro Carvalho Chehab
326989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
327989eff9cSMauro Carvalho Chehab
328989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bConfigurationValue
329989eff9cSMauro Carvalho ChehabDescription:
330989eff9cSMauro Carvalho Chehab		While a USB device typically have just one configuration
331989eff9cSMauro Carvalho Chehab		setting, some devices support multiple configurations.
332989eff9cSMauro Carvalho Chehab
333989eff9cSMauro Carvalho Chehab		This value shows the current configuration, in decimal.
334989eff9cSMauro Carvalho Chehab
335989eff9cSMauro Carvalho Chehab		Changing its value will change the device's configuration
336989eff9cSMauro Carvalho Chehab		to another setting.
337989eff9cSMauro Carvalho Chehab
338989eff9cSMauro Carvalho Chehab		The number of configurations supported by a device is at:
339989eff9cSMauro Carvalho Chehab
340989eff9cSMauro Carvalho Chehab			/sys/bus/usb/devices/usbX/bNumConfigurations
341989eff9cSMauro Carvalho Chehab
342989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
343989eff9cSMauro Carvalho Chehab
344989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bDeviceClass
345989eff9cSMauro Carvalho ChehabDescription:
346989eff9cSMauro Carvalho Chehab		Class code of the device, in hexadecimal.
347989eff9cSMauro Carvalho Chehab
348989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
349989eff9cSMauro Carvalho Chehab
350989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bDeviceProtocol
351989eff9cSMauro Carvalho ChehabDescription:
352989eff9cSMauro Carvalho Chehab		Protocol code of the device, in hexadecimal.
353989eff9cSMauro Carvalho Chehab
354989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
355989eff9cSMauro Carvalho Chehab
356989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bDeviceSubClass
357989eff9cSMauro Carvalho ChehabDescription:
358989eff9cSMauro Carvalho Chehab		Subclass code of the device, in hexadecimal.
359989eff9cSMauro Carvalho Chehab
360989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
361989eff9cSMauro Carvalho Chehab
362989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bInterfaceClass
363989eff9cSMauro Carvalho ChehabDescription:
364989eff9cSMauro Carvalho Chehab		Class code of the interface, in hexadecimal.
365989eff9cSMauro Carvalho Chehab
366989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
367989eff9cSMauro Carvalho Chehab
368989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bInterfaceNumber
369989eff9cSMauro Carvalho ChehabDescription:
370989eff9cSMauro Carvalho Chehab		Interface number, in hexadecimal.
371989eff9cSMauro Carvalho Chehab
372989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
373989eff9cSMauro Carvalho Chehab
374989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bInterfaceProtocol
375989eff9cSMauro Carvalho ChehabDescription:
376989eff9cSMauro Carvalho Chehab		Protocol code of the interface, in hexadecimal.
377989eff9cSMauro Carvalho Chehab
378989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
379989eff9cSMauro Carvalho Chehab
380989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bInterfaceSubClass
381989eff9cSMauro Carvalho ChehabDescription:
382989eff9cSMauro Carvalho Chehab		Subclass code of the interface, in hexadecimal.
383989eff9cSMauro Carvalho Chehab
384989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
385989eff9cSMauro Carvalho Chehab
386989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bmAttributes
387989eff9cSMauro Carvalho ChehabDescription:
388989eff9cSMauro Carvalho Chehab		Attributes of the current configuration, in hexadecimal.
389989eff9cSMauro Carvalho Chehab
390989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
391989eff9cSMauro Carvalho Chehab
392989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bMaxPacketSize0
393989eff9cSMauro Carvalho ChehabDescription:
394989eff9cSMauro Carvalho Chehab		Maximum endpoint 0 packet size, in decimal.
395989eff9cSMauro Carvalho Chehab
396989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
397989eff9cSMauro Carvalho Chehab
398989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bMaxPower
399989eff9cSMauro Carvalho ChehabDescription:
400989eff9cSMauro Carvalho Chehab		Maximum power consumption of the active configuration of
401989eff9cSMauro Carvalho Chehab		the device, in miliamperes.
402989eff9cSMauro Carvalho Chehab
403989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bNumConfigurations
404989eff9cSMauro Carvalho ChehabDescription:
405989eff9cSMauro Carvalho Chehab		Number of the possible configurations of the device, in
406989eff9cSMauro Carvalho Chehab		decimal. The current configuration is controlled via:
407989eff9cSMauro Carvalho Chehab
408989eff9cSMauro Carvalho Chehab			/sys/bus/usb/devices/usbX/bConfigurationValue
409989eff9cSMauro Carvalho Chehab
410989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
411989eff9cSMauro Carvalho Chehab
412989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bNumEndpoints
413989eff9cSMauro Carvalho ChehabDescription:
414989eff9cSMauro Carvalho Chehab		Number of endpoints used on this interface, in hexadecimal.
415989eff9cSMauro Carvalho Chehab
416989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
417989eff9cSMauro Carvalho Chehab
418989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/bNumInterfaces
419989eff9cSMauro Carvalho ChehabDescription:
420989eff9cSMauro Carvalho Chehab		Number of interfaces on this device, in decimal.
421989eff9cSMauro Carvalho Chehab
422989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/busnum
423989eff9cSMauro Carvalho ChehabDescription:
424989eff9cSMauro Carvalho Chehab		Number of the bus.
425989eff9cSMauro Carvalho Chehab
426989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/configuration
427989eff9cSMauro Carvalho ChehabDescription:
428989eff9cSMauro Carvalho Chehab		Contents of the string descriptor associated with the
429989eff9cSMauro Carvalho Chehab		current configuration. It may include the firmware version
430989eff9cSMauro Carvalho Chehab		of a device and/or its serial number.
431989eff9cSMauro Carvalho Chehab
432989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/descriptors
433989eff9cSMauro Carvalho ChehabDescription:
434989eff9cSMauro Carvalho Chehab		Contains the interface descriptors, in binary.
435989eff9cSMauro Carvalho Chehab
436989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/idProduct
437989eff9cSMauro Carvalho ChehabDescription:
438989eff9cSMauro Carvalho Chehab		Product ID, in hexadecimal.
439989eff9cSMauro Carvalho Chehab
440989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/idVendor
441989eff9cSMauro Carvalho ChehabDescription:
442989eff9cSMauro Carvalho Chehab		Vendor ID, in hexadecimal.
443989eff9cSMauro Carvalho Chehab
444989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/devspec
445989eff9cSMauro Carvalho ChehabDescription:
446989eff9cSMauro Carvalho Chehab		Displays the Device Tree Open Firmware node of the interface.
447989eff9cSMauro Carvalho Chehab
448989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/avoid_reset_quirk
449989eff9cSMauro Carvalho ChehabDescription:
450989eff9cSMauro Carvalho Chehab		Most devices have this set to zero.
451989eff9cSMauro Carvalho Chehab
452989eff9cSMauro Carvalho Chehab		If the value is 1, enable a USB quirk that prevents this
453989eff9cSMauro Carvalho Chehab		device to use reset.
454989eff9cSMauro Carvalho Chehab
455989eff9cSMauro Carvalho Chehab		(read/write)
456989eff9cSMauro Carvalho Chehab
457989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/devnum
458989eff9cSMauro Carvalho ChehabDescription:
459989eff9cSMauro Carvalho Chehab		USB interface device number, in decimal.
460989eff9cSMauro Carvalho Chehab
461989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/devpath
462989eff9cSMauro Carvalho ChehabDescription:
463989eff9cSMauro Carvalho Chehab		String containing the USB interface device path.
464989eff9cSMauro Carvalho Chehab
465989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/manufacturer
466989eff9cSMauro Carvalho ChehabDescription:
467989eff9cSMauro Carvalho Chehab		Vendor specific string containing the name of the
468989eff9cSMauro Carvalho Chehab		manufacturer of the device.
469989eff9cSMauro Carvalho Chehab
470989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/maxchild
471989eff9cSMauro Carvalho ChehabDescription:
472989eff9cSMauro Carvalho Chehab		Number of ports of an USB hub
473989eff9cSMauro Carvalho Chehab
474989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/persist
475989eff9cSMauro Carvalho ChehabDescription:
476989eff9cSMauro Carvalho Chehab		Keeps the device even if it gets disconnected.
477989eff9cSMauro Carvalho Chehab
478989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/product
479989eff9cSMauro Carvalho ChehabDescription:
480989eff9cSMauro Carvalho Chehab		Vendor specific string containing the name of the
481989eff9cSMauro Carvalho Chehab		device's product.
482989eff9cSMauro Carvalho Chehab
483989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/speed
484989eff9cSMauro Carvalho ChehabDescription:
485989eff9cSMauro Carvalho Chehab		Shows the device's max speed, according to the USB version,
486989eff9cSMauro Carvalho Chehab		in Mbps.
487989eff9cSMauro Carvalho Chehab		Can be:
488989eff9cSMauro Carvalho Chehab
489989eff9cSMauro Carvalho Chehab			=======		====================
490989eff9cSMauro Carvalho Chehab			Unknown		speed unknown
491989eff9cSMauro Carvalho Chehab			1.5		Low speed
492989eff9cSMauro Carvalho Chehab			15		Full speed
493989eff9cSMauro Carvalho Chehab			480		High Speed
494989eff9cSMauro Carvalho Chehab			5000		Super Speed
495989eff9cSMauro Carvalho Chehab			10000		Super Speed+
496989eff9cSMauro Carvalho Chehab			20000		Super Speed+ Gen 2x2
497989eff9cSMauro Carvalho Chehab			=======		====================
498989eff9cSMauro Carvalho Chehab
499989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/supports_autosuspend
500989eff9cSMauro Carvalho ChehabDescription:
501989eff9cSMauro Carvalho Chehab		Returns 1 if the device doesn't support autosuspend.
502989eff9cSMauro Carvalho Chehab		Otherwise, returns 0.
503989eff9cSMauro Carvalho Chehab
504989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/urbnum
505989eff9cSMauro Carvalho ChehabDescription:
506989eff9cSMauro Carvalho Chehab		Number of URBs submitted for the whole device.
507989eff9cSMauro Carvalho Chehab
508989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/version
509989eff9cSMauro Carvalho ChehabDescription:
510989eff9cSMauro Carvalho Chehab		String containing the USB device version, as encoded
511989eff9cSMauro Carvalho Chehab		at the BCD descriptor.
512989eff9cSMauro Carvalho Chehab
513989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/power/autosuspend
514989eff9cSMauro Carvalho ChehabDescription:
515989eff9cSMauro Carvalho Chehab		Time in milliseconds for the device to autosuspend. If the
516989eff9cSMauro Carvalho Chehab		value is negative, then autosuspend is prevented.
517989eff9cSMauro Carvalho Chehab
518989eff9cSMauro Carvalho Chehab		(read/write)
519989eff9cSMauro Carvalho Chehab
520989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/power/active_duration
521989eff9cSMauro Carvalho ChehabDescription:
522989eff9cSMauro Carvalho Chehab		The total time the device has not been suspended.
523989eff9cSMauro Carvalho Chehab
524989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/power/connected_duration
525989eff9cSMauro Carvalho ChehabDescription:
526989eff9cSMauro Carvalho Chehab		The total time (in msec) that the device has been connected.
527989eff9cSMauro Carvalho Chehab
528989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/power/level
529989eff9cSMauro Carvalho ChehabDescription:
530989eff9cSMauro Carvalho Chehab
531989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/bEndpointAddress
532989eff9cSMauro Carvalho ChehabDescription:
533989eff9cSMauro Carvalho Chehab		The address of the endpoint described by this descriptor,
534989eff9cSMauro Carvalho Chehab		in hexadecimal. The endpoint direction on this bitmapped field
535989eff9cSMauro Carvalho Chehab		is also shown at:
536989eff9cSMauro Carvalho Chehab
537989eff9cSMauro Carvalho Chehab			/sys/bus/usb/devices/usbX/ep_<N>/direction
538989eff9cSMauro Carvalho Chehab
539989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
540989eff9cSMauro Carvalho Chehab
541989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/bInterval
542989eff9cSMauro Carvalho ChehabDescription:
543989eff9cSMauro Carvalho Chehab		The interval of the endpoint as described on its descriptor,
544989eff9cSMauro Carvalho Chehab		in hexadecimal. The actual interval depends on the version
545989eff9cSMauro Carvalho Chehab		of the USB. Also shown in time units at
546989eff9cSMauro Carvalho Chehab		/sys/bus/usb/devices/usbX/ep_<N>/interval.
547989eff9cSMauro Carvalho Chehab
548989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/bLength
549989eff9cSMauro Carvalho ChehabDescription:
550989eff9cSMauro Carvalho Chehab		Number of bytes of the endpoint descriptor, in hexadecimal.
551989eff9cSMauro Carvalho Chehab
552989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/bmAttributes
553989eff9cSMauro Carvalho ChehabDescription:
554989eff9cSMauro Carvalho Chehab		Attributes which apply to the endpoint as described on its
555989eff9cSMauro Carvalho Chehab		descriptor, in hexadecimal. The endpoint type on this
556989eff9cSMauro Carvalho Chehab		bitmapped field is also shown at:
557989eff9cSMauro Carvalho Chehab
558989eff9cSMauro Carvalho Chehab			/sys/bus/usb/devices/usbX/ep_<N>/type
559989eff9cSMauro Carvalho Chehab
560989eff9cSMauro Carvalho Chehab		See USB specs for its meaning.
561989eff9cSMauro Carvalho Chehab
562989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/direction
563989eff9cSMauro Carvalho ChehabDescription:
564989eff9cSMauro Carvalho Chehab		Direction of the endpoint. Can be:
565989eff9cSMauro Carvalho Chehab
566989eff9cSMauro Carvalho Chehab		    - both (on control endpoints)
567989eff9cSMauro Carvalho Chehab		    - in
568989eff9cSMauro Carvalho Chehab		    - out
569989eff9cSMauro Carvalho Chehab
570989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/interval
571989eff9cSMauro Carvalho ChehabDescription:
572989eff9cSMauro Carvalho Chehab		Interval for polling endpoint for data transfers, in
573989eff9cSMauro Carvalho Chehab		milisseconds or microseconds.
574989eff9cSMauro Carvalho Chehab
575989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/type
576989eff9cSMauro Carvalho ChehabDescription:
577989eff9cSMauro Carvalho Chehab		Descriptor type. Can be:
578989eff9cSMauro Carvalho Chehab
579989eff9cSMauro Carvalho Chehab		    - Control
580989eff9cSMauro Carvalho Chehab		    - Isoc
581989eff9cSMauro Carvalho Chehab		    - Bulk
582989eff9cSMauro Carvalho Chehab		    - Interrupt
583989eff9cSMauro Carvalho Chehab		    - unknown
584989eff9cSMauro Carvalho Chehab
585989eff9cSMauro Carvalho ChehabWhat:		/sys/bus/usb/devices/usbX/ep_<N>/wMaxPacketSize
586989eff9cSMauro Carvalho ChehabDescription:
587989eff9cSMauro Carvalho Chehab		Maximum packet size this endpoint is capable of
588989eff9cSMauro Carvalho Chehab		sending or receiving, in hexadecimal.
589