1*8a37d87dSHeikki KrogerusThese files are deprecated and will be removed. The same files are available 2*8a37d87dSHeikki Krogerusunder /sys/bus/typec (see Documentation/ABI/testing/sysfs-bus-typec). 3*8a37d87dSHeikki Krogerus 4*8a37d87dSHeikki KrogerusWhat: /sys/class/typec/<port|partner|cable>/<dev>/svid 5*8a37d87dSHeikki KrogerusDate: April 2017 6*8a37d87dSHeikki KrogerusContact: Heikki Krogerus <[email protected]> 7*8a37d87dSHeikki KrogerusDescription: 8*8a37d87dSHeikki Krogerus The SVID (Standard or Vendor ID) assigned by USB-IF for this 9*8a37d87dSHeikki Krogerus alternate mode. 10*8a37d87dSHeikki Krogerus 11*8a37d87dSHeikki KrogerusWhat: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/ 12*8a37d87dSHeikki KrogerusDate: April 2017 13*8a37d87dSHeikki KrogerusContact: Heikki Krogerus <[email protected]> 14*8a37d87dSHeikki KrogerusDescription: 15*8a37d87dSHeikki Krogerus Every supported mode will have its own directory. The name of 16*8a37d87dSHeikki Krogerus a mode will be "mode<index>" (for example mode1), where <index> 17*8a37d87dSHeikki Krogerus is the actual index to the mode VDO returned by Discover Modes 18*8a37d87dSHeikki Krogerus USB power delivery command. 19*8a37d87dSHeikki Krogerus 20*8a37d87dSHeikki KrogerusWhat: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/description 21*8a37d87dSHeikki KrogerusDate: April 2017 22*8a37d87dSHeikki KrogerusContact: Heikki Krogerus <[email protected]> 23*8a37d87dSHeikki KrogerusDescription: 24*8a37d87dSHeikki Krogerus Shows description of the mode. The description is optional for 25*8a37d87dSHeikki Krogerus the drivers, just like with the Billboard Devices. 26*8a37d87dSHeikki Krogerus 27*8a37d87dSHeikki KrogerusWhat: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo 28*8a37d87dSHeikki KrogerusDate: April 2017 29*8a37d87dSHeikki KrogerusContact: Heikki Krogerus <[email protected]> 30*8a37d87dSHeikki KrogerusDescription: 31*8a37d87dSHeikki Krogerus Shows the VDO in hexadecimal returned by Discover Modes command 32*8a37d87dSHeikki Krogerus for this mode. 33*8a37d87dSHeikki Krogerus 34*8a37d87dSHeikki KrogerusWhat: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/active 35*8a37d87dSHeikki KrogerusDate: April 2017 36*8a37d87dSHeikki KrogerusContact: Heikki Krogerus <[email protected]> 37*8a37d87dSHeikki KrogerusDescription: 38*8a37d87dSHeikki Krogerus Shows if the mode is active or not. The attribute can be used 39*8a37d87dSHeikki Krogerus for entering/exiting the mode with partners and cable plugs, and 40*8a37d87dSHeikki Krogerus with the port alternate modes it can be used for disabling 41*8a37d87dSHeikki Krogerus support for specific alternate modes. Entering/exiting modes is 42*8a37d87dSHeikki Krogerus supported as synchronous operation so write(2) to the attribute 43*8a37d87dSHeikki Krogerus does not return until the enter/exit mode operation has 44*8a37d87dSHeikki Krogerus finished. The attribute is notified when the mode is 45*8a37d87dSHeikki Krogerus entered/exited so poll(2) on the attribute wakes up. 46*8a37d87dSHeikki Krogerus Entering/exiting a mode will also generate uevent KOBJ_CHANGE. 47*8a37d87dSHeikki Krogerus 48*8a37d87dSHeikki Krogerus Valid values: yes, no 49