1 These files are deprecated and will be removed. The same files are available
2 under /sys/bus/typec (see Documentation/ABI/testing/sysfs-bus-typec).
4 What: /sys/class/typec/<port|partner|cable>/<dev>/svid
6 Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
8 The SVID (Standard or Vendor ID) assigned by USB-IF for this
11 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/
13 Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
15 Every supported mode will have its own directory. The name of
16 a mode will be "mode<index>" (for example mode1), where <index>
17 is the actual index to the mode VDO returned by Discover Modes
18 USB power delivery command.
20 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/description
22 Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
24 Shows description of the mode. The description is optional for
25 the drivers, just like with the Billboard Devices.
27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo
29 Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
31 Shows the VDO in hexadecimal returned by Discover Modes command
34 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/active
36 Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
38 Shows if the mode is active or not. The attribute can be used
39 for entering/exiting the mode with partners and cable plugs, and
40 with the port alternate modes it can be used for disabling
41 support for specific alternate modes. Entering/exiting modes is
42 supported as synchronous operation so write(2) to the attribute
43 does not return until the enter/exit mode operation has
44 finished. The attribute is notified when the mode is
45 entered/exited so poll(2) on the attribute wakes up.
46 Entering/exiting a mode will also generate uevent KOBJ_CHANGE.