sysfs-bus-typec 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. What: /sys/bus/typec/devices/.../active
  2. Date: July 2018
  3. Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
  4. Description:
  5. Shows if the mode is active or not. The attribute can be used
  6. for entering/exiting the mode. Entering/exiting modes is
  7. supported as synchronous operation so write(2) to the attribute
  8. does not return until the enter/exit mode operation has
  9. finished. The attribute is notified when the mode is
  10. entered/exited so poll(2) on the attribute wakes up.
  11. Entering/exiting a mode will also generate uevent KOBJ_CHANGE.
  12. Valid values are boolean.
  13. What: /sys/bus/typec/devices/.../description
  14. Date: July 2018
  15. Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
  16. Description:
  17. Shows description of the mode. The description is optional for
  18. the drivers, just like with the Billboard Devices.
  19. What: /sys/bus/typec/devices/.../mode
  20. Date: July 2018
  21. Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
  22. Description:
  23. The index number of the mode returned by Discover Modes USB
  24. Power Delivery command. Depending on the alternate mode, the
  25. mode index may be significant.
  26. With some alternate modes (SVIDs), the mode index is assigned
  27. for specific functionality in the specification for that
  28. alternate mode.
  29. With other alternate modes, the mode index values are not
  30. assigned, and can not be therefore used for identification. When
  31. the mode index is not assigned, identifying the alternate mode
  32. must be done with either mode VDO or the description.
  33. What: /sys/bus/typec/devices/.../svid
  34. Date: July 2018
  35. Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
  36. Description:
  37. The Standard or Vendor ID (SVID) assigned by USB-IF for this
  38. alternate mode.
  39. What: /sys/bus/typec/devices/.../vdo
  40. Date: July 2018
  41. Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
  42. Description:
  43. Shows the VDO in hexadecimal returned by Discover Modes command
  44. for this mode.