summaryrefslogtreecommitdiff
path: root/drivers/usb/typec
AgeCommit message (Collapse)Author
2018-08-24MLK-16013-9 usb: typec: add interface to get port type and roleLi Jun
Add interface to get typec port type and default power role from dt. To validate a correct setting is specified, add TYPEC_PORT_TYPE_UNKNOWN and TYPEC_ROLE_UNKNOWN for typec_port_type and typec_role enum. Reviewed-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Li Jun <jun.li@nxp.com>
2018-08-24usb: USB Type-C connector classHeikki Krogerus
The purpose of USB Type-C connector class is to provide unified interface for the user space to get the status and basic information about USB Type-C connectors on a system, control over data role swapping, and when the port supports USB Power Delivery, also control over power role swapping and Alternate Modes. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-and-Tested-by: Felipe Balbi <felipe.balbi@linux.intel.com> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit fab9288428ec0fbd09adb67d3a17c51d78196f9c)