xref: /openbmc/linux/drivers/usb/typec/Kconfig (revision 0e3bb7d6)
1fab92884SHeikki Krogerus
2a7c42106SHeikki Krogerusmenuconfig TYPEC
3a7c42106SHeikki Krogerus	tristate "USB Type-C Support"
4a7c42106SHeikki Krogerus	help
5a7c42106SHeikki Krogerus	  USB Type-C Specification defines a cable and connector for USB where
6a7c42106SHeikki Krogerus	  only one type of plug is supported on both ends, i.e. there will not
7a7c42106SHeikki Krogerus	  be Type-A plug on one end of the cable and Type-B plug on the other.
8a7c42106SHeikki Krogerus	  Determination of the host-to-device relationship happens through a
9a7c42106SHeikki Krogerus	  specific Configuration Channel (CC) which goes through the USB Type-C
10a7c42106SHeikki Krogerus	  cable. The Configuration Channel may also be used to detect optional
11a7c42106SHeikki Krogerus	  Accessory Modes - Analog Audio and Debug - and if USB Power Delivery
12a7c42106SHeikki Krogerus	  is supported, the Alternate Modes, where the connector is used for
13a7c42106SHeikki Krogerus	  something else then USB communication.
14fab92884SHeikki Krogerus
15a7c42106SHeikki Krogerus	  USB Power Delivery Specification defines a protocol that can be used
16a7c42106SHeikki Krogerus	  to negotiate the voltage and current levels with the connected
17a7c42106SHeikki Krogerus	  partners. USB Power Delivery allows higher voltages then the normal
18a7c42106SHeikki Krogerus	  5V, up to 20V, and current up to 5A over the cable. The USB Power
19a7c42106SHeikki Krogerus	  Delivery protocol is also used to negotiate the optional Alternate
20a7c42106SHeikki Krogerus	  Modes when they are supported. USB Power Delivery does not depend on
21a7c42106SHeikki Krogerus	  USB Type-C connector, however it is mostly used together with USB
22a7c42106SHeikki Krogerus	  Type-C connectors.
23a7c42106SHeikki Krogerus
24a7c42106SHeikki Krogerus	  USB Type-C and USB Power Delivery Specifications define a set of state
25a7c42106SHeikki Krogerus	  machines that need to be implemented in either software or firmware.
26a7c42106SHeikki Krogerus	  Simple USB Type-C PHYs, for example USB Type-C Port Controller
27a7c42106SHeikki Krogerus	  Interface Specification compliant "Port Controllers" need the state
28a7c42106SHeikki Krogerus	  machines to be handled in the OS, but stand-alone USB Type-C and Power
29a7c42106SHeikki Krogerus	  Delivery controllers handle the state machines inside their firmware.
30a7c42106SHeikki Krogerus	  The USB Type-C and Power Delivery controllers usually function
31a7c42106SHeikki Krogerus	  autonomously, and do not necessarily require drivers.
32a7c42106SHeikki Krogerus
33a7c42106SHeikki Krogerus	  Enable this configurations option if you have USB Type-C connectors on
34a7c42106SHeikki Krogerus	  your system and 1) you know your USB Type-C hardware requires OS
35a7c42106SHeikki Krogerus	  control (a driver) to function, or 2) if you need to be able to read
36a7c42106SHeikki Krogerus	  the status of the USB Type-C ports in your system, or 3) if you need
37a7c42106SHeikki Krogerus	  to be able to swap the power role (decide are you supplying or
38a7c42106SHeikki Krogerus	  consuming power over the cable) or data role (host or device) when
39a7c42106SHeikki Krogerus	  both roles are supported.
40a7c42106SHeikki Krogerus
41a7c42106SHeikki Krogerus	  For more information, see the kernel documentation for USB Type-C
42a7c42106SHeikki Krogerus	  Connector Class API (Documentation/driver-api/usb/typec.rst)
43a7c42106SHeikki Krogerus	  <https://www.kernel.org/doc/html/latest/driver-api/usb/typec.html>
44a7c42106SHeikki Krogerus	  and ABI (Documentation/ABI/testing/sysfs-class-typec).
45a7c42106SHeikki Krogerus
46a7c42106SHeikki Krogerusif TYPEC
47fab92884SHeikki Krogerus
484b4e02c8SGuenter Roeckconfig TYPEC_TCPM
494b4e02c8SGuenter Roeck	tristate "USB Type-C Port Controller Manager"
504b4e02c8SGuenter Roeck	depends on USB
512000016cSHans de Goede	select USB_ROLE_SWITCH
52f2a8aa05SAdam Thomson	select POWER_SUPPLY
534b4e02c8SGuenter Roeck	help
544b4e02c8SGuenter Roeck	  The Type-C Port Controller Manager provides a USB PD and USB Type-C
554b4e02c8SGuenter Roeck	  state machine for use with Type-C Port Controllers.
564b4e02c8SGuenter Roeck
5776f0c53dSGuenter Roeckif TYPEC_TCPM
5876f0c53dSGuenter Roeck
59990da415SLi Junconfig TYPEC_TCPCI
60990da415SLi Jun	tristate "Type-C Port Controller Interface driver"
61990da415SLi Jun	depends on I2C
62990da415SLi Jun	select REGMAP_I2C
63990da415SLi Jun	help
64990da415SLi Jun	  Type-C Port Controller driver for TCPCI-compliant controller.
65990da415SLi Jun
66990da415SLi Junconfig TYPEC_RT1711H
67990da415SLi Jun	tristate "Richtek RT1711H Type-C chip driver"
680bc26314SStephen Rothwell	depends on I2C
69990da415SLi Jun	select TYPEC_TCPCI
70990da415SLi Jun	help
71990da415SLi Jun	  Richtek RT1711H Type-C chip driver that works with
72990da415SLi Jun	  Type-C Port Controller Manager to provide USB PD and USB
73990da415SLi Jun	  Type-C functionalities.
74990da415SLi Jun
7576f0c53dSGuenter Roecksource "drivers/usb/typec/fusb302/Kconfig"
7676f0c53dSGuenter Roeck
77d2061f9cSHeikki Krogerusconfig TYPEC_WCOVE
78d2061f9cSHeikki Krogerus	tristate "Intel WhiskeyCove PMIC USB Type-C PHY driver"
79d2061f9cSHeikki Krogerus	depends on ACPI
80d2061f9cSHeikki Krogerus	depends on INTEL_SOC_PMIC
81d2061f9cSHeikki Krogerus	depends on INTEL_PMC_IPC
82d2061f9cSHeikki Krogerus	depends on BXT_WC_PMIC_OPREGION
83d2061f9cSHeikki Krogerus	help
84d2061f9cSHeikki Krogerus	  This driver adds support for USB Type-C detection on Intel Broxton
85d2061f9cSHeikki Krogerus	  platforms that have Intel Whiskey Cove PMIC. The driver can detect the
86d2061f9cSHeikki Krogerus	  role and cable orientation.
87d2061f9cSHeikki Krogerus
88d2061f9cSHeikki Krogerus	  To compile this driver as module, choose M here: the module will be
89d2061f9cSHeikki Krogerus	  called typec_wcove
90d2061f9cSHeikki Krogerus
91a7c42106SHeikki Krogerusendif # TYPEC_TCPM
923c4fb9f1SHeikki Krogerus
93c1b0bc2dSHeikki Krogerussource "drivers/usb/typec/ucsi/Kconfig"
94c1b0bc2dSHeikki Krogerus
950a4c005bSHeikki Krogerusconfig TYPEC_TPS6598X
960a4c005bSHeikki Krogerus	tristate "TI TPS6598x USB Power Delivery controller driver"
970a4c005bSHeikki Krogerus	depends on I2C
980a4c005bSHeikki Krogerus	help
990a4c005bSHeikki Krogerus	  Say Y or M here if your system has TI TPS65982 or TPS65983 USB Power
1000a4c005bSHeikki Krogerus	  Delivery controller.
1010a4c005bSHeikki Krogerus
1020a4c005bSHeikki Krogerus	  If you choose to build this driver as a dynamically linked module, the
1030a4c005bSHeikki Krogerus	  module will be called tps6598x.ko.
1040a4c005bSHeikki Krogerus
105da95cc1dSHans de Goedesource "drivers/usb/typec/mux/Kconfig"
106da95cc1dSHans de Goede
1070e3bb7d6SHeikki Krogerussource "drivers/usb/typec/altmodes/Kconfig"
1080e3bb7d6SHeikki Krogerus
109a7c42106SHeikki Krogerusendif # TYPEC
110