49 lines · plain
1These files are deprecated and will be removed. The same files are available2under /sys/bus/typec (see Documentation/ABI/testing/sysfs-bus-typec).3 4What: /sys/class/typec/<port|partner|cable>/<dev>/svid5Date: April 20176Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>7Description:8 The SVID (Standard or Vendor ID) assigned by USB-IF for this9 alternate mode.10 11What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/12Date: April 201713Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>14Description:15 Every supported mode will have its own directory. The name of16 a mode will be "mode<index>" (for example mode1), where <index>17 is the actual index to the mode VDO returned by Discover Modes18 USB power delivery command.19 20What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/description21Date: April 201722Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>23Description:24 Shows description of the mode. The description is optional for25 the drivers, just like with the Billboard Devices.26 27What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo28Date: April 201729Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>30Description:31 Shows the VDO in hexadecimal returned by Discover Modes command32 for this mode.33 34What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/active35Date: April 201736Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>37Description:38 Shows if the mode is active or not. The attribute can be used39 for entering/exiting the mode with partners and cable plugs, and40 with the port alternate modes it can be used for disabling41 support for specific alternate modes. Entering/exiting modes is42 supported as synchronous operation so write(2) to the attribute43 does not return until the enter/exit mode operation has44 finished. The attribute is notified when the mode is45 entered/exited so poll(2) on the attribute wakes up.46 Entering/exiting a mode will also generate uevent KOBJ_CHANGE.47 48 Valid values: yes, no49