xref: /openbmc/linux/drivers/extcon/Kconfig (revision 2c64e9cb)
1menuconfig EXTCON
2	tristate "External Connector Class (extcon) support"
3	help
4	  Say Y here to enable external connector class (extcon) support.
5	  This allows monitoring external connectors by userspace
6	  via sysfs and uevent and supports external connectors with
7	  multiple states; i.e., an extcon that may have multiple
8	  cables attached. For example, an external connector of a device
9	  may be used to connect an HDMI cable and a AC adaptor, and to
10	  host USB ports. Many of 30-pin connectors including PDMI are
11	  also good examples.
12
13if EXTCON
14
15comment "Extcon Device Drivers"
16
17config EXTCON_ADC_JACK
18	tristate "ADC Jack extcon support"
19	depends on IIO
20	help
21	  Say Y here to enable extcon device driver based on ADC values.
22
23config EXTCON_ARIZONA
24	tristate "Wolfson Arizona EXTCON support"
25	depends on MFD_ARIZONA && INPUT && SND_SOC
26	help
27	  Say Y here to enable support for external accessory detection
28	  with Wolfson Arizona devices. These are audio CODECs with
29	  advanced audio accessory detection support.
30
31config EXTCON_AXP288
32	tristate "X-Power AXP288 EXTCON support"
33	depends on MFD_AXP20X && USB_SUPPORT && X86 && ACPI
34	select USB_ROLE_SWITCH
35	help
36	  Say Y here to enable support for USB peripheral detection
37	  and USB MUX switching by X-Power AXP288 PMIC.
38
39config EXTCON_GPIO
40	tristate "GPIO extcon support"
41	depends on GPIOLIB || COMPILE_TEST
42	help
43	  Say Y here to enable GPIO based extcon support. Note that GPIO
44	  extcon supports single state per extcon instance.
45
46config EXTCON_INTEL_INT3496
47	tristate "Intel INT3496 ACPI device extcon driver"
48	depends on GPIOLIB && ACPI && (X86 || COMPILE_TEST)
49	help
50	  Say Y here to enable extcon support for USB OTG ports controlled by
51	  an Intel INT3496 ACPI device.
52
53	  This ACPI device is typically found on Intel Baytrail or Cherrytrail
54	  based tablets, or other Baytrail / Cherrytrail devices.
55
56config EXTCON_INTEL_CHT_WC
57	tristate "Intel Cherrytrail Whiskey Cove PMIC extcon driver"
58	depends on INTEL_SOC_PMIC_CHTWC
59	help
60	  Say Y here to enable extcon support for charger detection / control
61	  on the Intel Cherrytrail Whiskey Cove PMIC.
62
63config EXTCON_INTEL_MRFLD
64	tristate "Intel Merrifield Basin Cove PMIC extcon driver"
65	depends on INTEL_SOC_PMIC_MRFLD
66	help
67	  Say Y here to enable extcon support for charger detection / control
68	  on the Intel Merrifield Basin Cove PMIC.
69
70config EXTCON_MAX14577
71	tristate "Maxim MAX14577/77836 EXTCON Support"
72	depends on MFD_MAX14577
73	select IRQ_DOMAIN
74	select REGMAP_I2C
75	help
76	  If you say yes here you get support for the MUIC device of
77	  Maxim MAX14577/77836. The MAX14577/77836 MUIC is a USB port accessory
78	  detector and switch.
79
80config EXTCON_MAX3355
81	tristate "Maxim MAX3355 USB OTG EXTCON Support"
82	depends on GPIOLIB || COMPILE_TEST
83	help
84	  If you say yes here you get support for the USB OTG role detection by
85	  MAX3355. The MAX3355 chip integrates a charge pump and comparators to
86	  enable a system with an integrated USB OTG dual-role transceiver to
87	  function as an USB OTG dual-role device.
88
89config EXTCON_MAX77693
90	tristate "Maxim MAX77693 EXTCON Support"
91	depends on MFD_MAX77693 && INPUT
92	select IRQ_DOMAIN
93	select REGMAP_I2C
94	help
95	  If you say yes here you get support for the MUIC device of
96	  Maxim MAX77693 PMIC. The MAX77693 MUIC is a USB port accessory
97	  detector and switch.
98
99config EXTCON_MAX77843
100	tristate "Maxim MAX77843 EXTCON Support"
101	depends on MFD_MAX77843
102	select IRQ_DOMAIN
103	select REGMAP_I2C
104	help
105	  If you say yes here you get support for the MUIC device of
106	  Maxim MAX77843. The MAX77843 MUIC is a USB port accessory
107	  detector add switch.
108
109config EXTCON_MAX8997
110	tristate "Maxim MAX8997 EXTCON Support"
111	depends on MFD_MAX8997 && IRQ_DOMAIN
112	help
113	  If you say yes here you get support for the MUIC device of
114	  Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
115	  detector and switch.
116
117config EXTCON_PALMAS
118	tristate "Palmas USB EXTCON support"
119	depends on MFD_PALMAS
120	help
121	  Say Y here to enable support for USB peripheral and USB host
122	  detection by palmas usb.
123
124config EXTCON_PTN5150
125	tristate "NXP PTN5150 CC LOGIC USB EXTCON support"
126	depends on I2C && (GPIOLIB || COMPILE_TEST)
127	select REGMAP_I2C
128	help
129	  Say Y here to enable support for USB peripheral and USB host
130	  detection by NXP PTN5150 CC (Configuration Channel) logic chip.
131
132config EXTCON_QCOM_SPMI_MISC
133	tristate "Qualcomm USB extcon support"
134	depends on ARCH_QCOM || COMPILE_TEST
135	help
136	  Say Y here to enable SPMI PMIC based USB cable detection
137	  support on Qualcomm PMICs such as PM8941.
138
139config EXTCON_RT8973A
140	tristate "Richtek RT8973A EXTCON support"
141	depends on I2C
142	select IRQ_DOMAIN
143	select REGMAP_I2C
144	select REGMAP_IRQ
145	help
146	  If you say yes here you get support for the MUIC device of
147	  Richtek RT8973A. The RT8973A is a USB port accessory detector
148	  and switch that is optimized to protect low voltage system
149	  from abnormal high input voltage (up to 28V).
150
151config EXTCON_SM5502
152	tristate "Silicon Mitus SM5502 EXTCON support"
153	depends on I2C
154	select IRQ_DOMAIN
155	select REGMAP_I2C
156	select REGMAP_IRQ
157	help
158	  If you say yes here you get support for the MUIC device of
159	  Silicon Mitus SM5502. The SM5502 is a USB port accessory
160	  detector and switch.
161
162config EXTCON_USB_GPIO
163	tristate "USB GPIO extcon support"
164	depends on GPIOLIB || COMPILE_TEST
165	help
166	  Say Y here to enable GPIO based USB cable detection extcon support.
167	  Used typically if GPIO is used for USB ID pin detection.
168
169config EXTCON_USBC_CROS_EC
170	tristate "ChromeOS Embedded Controller EXTCON support"
171	depends on MFD_CROS_EC
172	help
173	  Say Y here to enable USB Type C cable detection extcon support when
174	  using Chrome OS EC based USB Type-C ports.
175
176endif
177