sysfs-bus-usb 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. What: /sys/bus/usb/device/.../authorized
  2. Date: July 2008
  3. KernelVersion: 2.6.26
  4. Contact: David Vrabel <david.vrabel@csr.com>
  5. Description:
  6. Authorized devices are available for use by device
  7. drivers, non-authorized one are not. By default, wired
  8. USB devices are authorized.
  9. Certified Wireless USB devices are not authorized
  10. initially and should be (by writing 1) after the
  11. device has been authenticated.
  12. What: /sys/bus/usb/device/.../wusb_cdid
  13. Date: July 2008
  14. KernelVersion: 2.6.27
  15. Contact: David Vrabel <david.vrabel@csr.com>
  16. Description:
  17. For Certified Wireless USB devices only.
  18. A devices's CDID, as 16 space-separated hex octets.
  19. What: /sys/bus/usb/device/.../wusb_ck
  20. Date: July 2008
  21. KernelVersion: 2.6.27
  22. Contact: David Vrabel <david.vrabel@csr.com>
  23. Description:
  24. For Certified Wireless USB devices only.
  25. Write the device's connection key (CK) to start the
  26. authentication of the device. The CK is 16
  27. space-separated hex octets.
  28. What: /sys/bus/usb/device/.../wusb_disconnect
  29. Date: July 2008
  30. KernelVersion: 2.6.27
  31. Contact: David Vrabel <david.vrabel@csr.com>
  32. Description:
  33. For Certified Wireless USB devices only.
  34. Write a 1 to force the device to disconnect
  35. (equivalent to unplugging a wired USB device).
  36. What: /sys/bus/usb/drivers/.../new_id
  37. Date: October 2011
  38. Contact: linux-usb@vger.kernel.org
  39. Description:
  40. Writing a device ID to this file will attempt to
  41. dynamically add a new device ID to a USB device driver.
  42. This may allow the driver to support more hardware than
  43. was included in the driver's static device ID support
  44. table at compile time. The format for the device ID is:
  45. idVendor idProduct bInterfaceClass RefIdVendor RefIdProduct
  46. The vendor ID and device ID fields are required, the
  47. rest is optional. The Ref* tuple can be used to tell the
  48. driver to use the same driver_data for the new device as
  49. it is used for the reference device.
  50. Upon successfully adding an ID, the driver will probe
  51. for the device and attempt to bind to it. For example:
  52. # echo "8086 10f5" > /sys/bus/usb/drivers/foo/new_id
  53. Here add a new device (0458:7045) using driver_data from
  54. an already supported device (0458:704c):
  55. # echo "0458 7045 0 0458 704c" > /sys/bus/usb/drivers/foo/new_id
  56. Reading from this file will list all dynamically added
  57. device IDs in the same format, with one entry per
  58. line. For example:
  59. # cat /sys/bus/usb/drivers/foo/new_id
  60. 8086 10f5
  61. dead beef 06
  62. f00d cafe
  63. The list will be truncated at PAGE_SIZE bytes due to
  64. sysfs restrictions.
  65. What: /sys/bus/usb-serial/drivers/.../new_id
  66. Date: October 2011
  67. Contact: linux-usb@vger.kernel.org
  68. Description:
  69. For serial USB drivers, this attribute appears under the
  70. extra bus folder "usb-serial" in sysfs; apart from that
  71. difference, all descriptions from the entry
  72. "/sys/bus/usb/drivers/.../new_id" apply.
  73. What: /sys/bus/usb/drivers/.../remove_id
  74. Date: November 2009
  75. Contact: CHENG Renquan <rqcheng@smu.edu.sg>
  76. Description:
  77. Writing a device ID to this file will remove an ID
  78. that was dynamically added via the new_id sysfs entry.
  79. The format for the device ID is:
  80. idVendor idProduct. After successfully
  81. removing an ID, the driver will no longer support the
  82. device. This is useful to ensure auto probing won't
  83. match the driver to the device. For example:
  84. # echo "046d c315" > /sys/bus/usb/drivers/foo/remove_id
  85. Reading from this file will list the dynamically added
  86. device IDs, exactly like reading from the entry
  87. "/sys/bus/usb/drivers/.../new_id"
  88. What: /sys/bus/usb/devices/.../power/usb2_hardware_lpm
  89. Date: September 2011
  90. Contact: Andiry Xu <andiry.xu@amd.com>
  91. Description:
  92. If CONFIG_PM_RUNTIME is set and a USB 2.0 lpm-capable device
  93. is plugged in to a xHCI host which support link PM, it will
  94. perform a LPM test; if the test is passed and host supports
  95. USB2 hardware LPM (xHCI 1.0 feature), USB2 hardware LPM will
  96. be enabled for the device and the USB device directory will
  97. contain a file named power/usb2_hardware_lpm. The file holds
  98. a string value (enable or disable) indicating whether or not
  99. USB2 hardware LPM is enabled for the device. Developer can
  100. write y/Y/1 or n/N/0 to the file to enable/disable the
  101. feature.
  102. What: /sys/bus/usb/devices/.../removable
  103. Date: February 2012
  104. Contact: Matthew Garrett <mjg@redhat.com>
  105. Description:
  106. Some information about whether a given USB device is
  107. physically fixed to the platform can be inferred from a
  108. combination of hub descriptor bits and platform-specific data
  109. such as ACPI. This file will read either "removable" or
  110. "fixed" if the information is available, and "unknown"
  111. otherwise.
  112. What: /sys/bus/usb/devices/.../ltm_capable
  113. Date: July 2012
  114. Contact: Sarah Sharp <sarah.a.sharp@linux.intel.com>
  115. Description:
  116. USB 3.0 devices may optionally support Latency Tolerance
  117. Messaging (LTM). They indicate their support by setting a bit
  118. in the bmAttributes field of their SuperSpeed BOS descriptors.
  119. If that bit is set for the device, ltm_capable will read "yes".
  120. If the device doesn't support LTM, the file will read "no".
  121. The file will be present for all speeds of USB devices, and will
  122. always read "no" for USB 1.1 and USB 2.0 devices.
  123. What: /sys/bus/usb/devices/.../(hub interface)/portX
  124. Date: August 2012
  125. Contact: Lan Tianyu <tianyu.lan@intel.com>
  126. Description:
  127. The /sys/bus/usb/devices/.../(hub interface)/portX
  128. is usb port device's sysfs directory.
  129. What: /sys/bus/usb/devices/.../(hub interface)/portX/connect_type
  130. Date: January 2013
  131. Contact: Lan Tianyu <tianyu.lan@intel.com>
  132. Description:
  133. Some platforms provide usb port connect types through ACPI.
  134. This attribute is to expose these information to user space.
  135. The file will read "hotplug", "wired" and "not used" if the
  136. information is available, and "unknown" otherwise.
  137. What: /sys/bus/usb/devices/.../power/usb2_lpm_l1_timeout
  138. Date: May 2013
  139. Contact: Mathias Nyman <mathias.nyman@linux.intel.com>
  140. Description:
  141. USB 2.0 devices may support hardware link power management (LPM)
  142. L1 sleep state. The usb2_lpm_l1_timeout attribute allows
  143. tuning the timeout for L1 inactivity timer (LPM timer), e.g.
  144. needed inactivity time before host requests the device to go to L1 sleep.
  145. Useful for power management tuning.
  146. Supported values are 0 - 65535 microseconds.
  147. What: /sys/bus/usb/devices/.../power/usb2_lpm_besl
  148. Date: May 2013
  149. Contact: Mathias Nyman <mathias.nyman@linux.intel.com>
  150. Description:
  151. USB 2.0 devices that support hardware link power management (LPM)
  152. L1 sleep state now use a best effort service latency value (BESL) to
  153. indicate the best effort to resumption of service to the device after the
  154. initiation of the resume event.
  155. If the device does not have a preferred besl value then the host can select
  156. one instead. This usb2_lpm_besl attribute allows to tune the host selected besl
  157. value in order to tune power saving and service latency.
  158. Supported values are 0 - 15.
  159. More information on how besl values map to microseconds can be found in
  160. USB 2.0 ECN Errata for Link Power Management, section 4.10)