xref: /openbmc/linux/drivers/usb/typec/Kconfig (revision a7c42106)
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
514b4e02c8SGuenter Roeck	help
524b4e02c8SGuenter Roeck	  The Type-C Port Controller Manager provides a USB PD and USB Type-C
534b4e02c8SGuenter Roeck	  state machine for use with Type-C Port Controllers.
544b4e02c8SGuenter Roeck
5576f0c53dSGuenter Roeckif TYPEC_TCPM
5676f0c53dSGuenter Roeck
5776f0c53dSGuenter Roecksource "drivers/usb/typec/fusb302/Kconfig"
5876f0c53dSGuenter Roeck
59d2061f9cSHeikki Krogerusconfig TYPEC_WCOVE
60d2061f9cSHeikki Krogerus	tristate "Intel WhiskeyCove PMIC USB Type-C PHY driver"
61d2061f9cSHeikki Krogerus	depends on ACPI
62d2061f9cSHeikki Krogerus	depends on INTEL_SOC_PMIC
63d2061f9cSHeikki Krogerus	depends on INTEL_PMC_IPC
64d2061f9cSHeikki Krogerus	depends on BXT_WC_PMIC_OPREGION
65d2061f9cSHeikki Krogerus	help
66d2061f9cSHeikki Krogerus	  This driver adds support for USB Type-C detection on Intel Broxton
67d2061f9cSHeikki Krogerus	  platforms that have Intel Whiskey Cove PMIC. The driver can detect the
68d2061f9cSHeikki Krogerus	  role and cable orientation.
69d2061f9cSHeikki Krogerus
70d2061f9cSHeikki Krogerus	  To compile this driver as module, choose M here: the module will be
71d2061f9cSHeikki Krogerus	  called typec_wcove
72d2061f9cSHeikki Krogerus
73a7c42106SHeikki Krogerusendif # TYPEC_TCPM
743c4fb9f1SHeikki Krogerus
75c1b0bc2dSHeikki Krogerussource "drivers/usb/typec/ucsi/Kconfig"
76c1b0bc2dSHeikki Krogerus
770a4c005bSHeikki Krogerusconfig TYPEC_TPS6598X
780a4c005bSHeikki Krogerus	tristate "TI TPS6598x USB Power Delivery controller driver"
790a4c005bSHeikki Krogerus	depends on I2C
800a4c005bSHeikki Krogerus	help
810a4c005bSHeikki Krogerus	  Say Y or M here if your system has TI TPS65982 or TPS65983 USB Power
820a4c005bSHeikki Krogerus	  Delivery controller.
830a4c005bSHeikki Krogerus
840a4c005bSHeikki Krogerus	  If you choose to build this driver as a dynamically linked module, the
850a4c005bSHeikki Krogerus	  module will be called tps6598x.ko.
860a4c005bSHeikki Krogerus
87a7c42106SHeikki Krogerusendif # TYPEC
88