xref: /linux/drivers/extcon/Kconfig (revision 47f11e0b40e97f373da4efbacee0a9526c816ed5)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2de55d871SMyungJoo Hammenuconfig EXTCON
3de55d871SMyungJoo Ham	tristate "External Connector Class (extcon) support"
4de55d871SMyungJoo Ham	help
5de55d871SMyungJoo Ham	  Say Y here to enable external connector class (extcon) support.
6de55d871SMyungJoo Ham	  This allows monitoring external connectors by userspace
7de55d871SMyungJoo Ham	  via sysfs and uevent and supports external connectors with
8de55d871SMyungJoo Ham	  multiple states; i.e., an extcon that may have multiple
9de55d871SMyungJoo Ham	  cables attached. For example, an external connector of a device
10de55d871SMyungJoo Ham	  may be used to connect an HDMI cable and a AC adaptor, and to
11de55d871SMyungJoo Ham	  host USB ports. Many of 30-pin connectors including PDMI are
12de55d871SMyungJoo Ham	  also good examples.
13de55d871SMyungJoo Ham
14de55d871SMyungJoo Hamif EXTCON
15de55d871SMyungJoo Ham
16de55d871SMyungJoo Hamcomment "Extcon Device Drivers"
17de55d871SMyungJoo Ham
18e48f9dacSChanwoo Choiconfig EXTCON_ADC_JACK
19e48f9dacSChanwoo Choi	tristate "ADC Jack extcon support"
20e48f9dacSChanwoo Choi	depends on IIO
21e48f9dacSChanwoo Choi	help
22e48f9dacSChanwoo Choi	  Say Y here to enable extcon device driver based on ADC values.
23e48f9dacSChanwoo Choi
24e48f9dacSChanwoo Choiconfig EXTCON_ARIZONA
25e48f9dacSChanwoo Choi	tristate "Wolfson Arizona EXTCON support"
26e48f9dacSChanwoo Choi	depends on MFD_ARIZONA && INPUT && SND_SOC
27e48f9dacSChanwoo Choi	help
28e48f9dacSChanwoo Choi	  Say Y here to enable support for external accessory detection
29e48f9dacSChanwoo Choi	  with Wolfson Arizona devices. These are audio CODECs with
30e48f9dacSChanwoo Choi	  advanced audio accessory detection support.
31e48f9dacSChanwoo Choi
32f0312378SRamakrishna Pallalaconfig EXTCON_AXP288
33f0312378SRamakrishna Pallala	tristate "X-Power AXP288 EXTCON support"
34fa3c098cSYueHaibing	depends on MFD_AXP20X && USB_SUPPORT && X86 && ACPI
35d54f063cSHans de Goede	select USB_ROLE_SWITCH
36f0312378SRamakrishna Pallala	help
37f0312378SRamakrishna Pallala	  Say Y here to enable support for USB peripheral detection
38f0312378SRamakrishna Pallala	  and USB MUX switching by X-Power AXP288 PMIC.
39f0312378SRamakrishna Pallala
40bad5b5e7STomasz Figaconfig EXTCON_FSA9480
41bad5b5e7STomasz Figa	tristate "FSA9480 EXTCON Support"
420937fbb7SRandy Dunlap	depends on INPUT && I2C
43bad5b5e7STomasz Figa	select IRQ_DOMAIN
44bad5b5e7STomasz Figa	select REGMAP_I2C
45bad5b5e7STomasz Figa	help
46bad5b5e7STomasz Figa	  If you say yes here you get support for the Fairchild Semiconductor
47bad5b5e7STomasz Figa	  FSA9480 microUSB switch and accessory detector chip. The FSA9480 is a USB
48bad5b5e7STomasz Figa	  port accessory detector and switch. The FSA9480 is fully controlled using
49bad5b5e7STomasz Figa	  I2C and enables USB data, stereo and mono audio, video, microphone
50bad5b5e7STomasz Figa	  and UART data to use a common connector port.
51bad5b5e7STomasz Figa
52be48308aSMyungJoo Hamconfig EXTCON_GPIO
53be48308aSMyungJoo Ham	tristate "GPIO extcon support"
54638f958bSGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
55be48308aSMyungJoo Ham	help
56be48308aSMyungJoo Ham	  Say Y here to enable GPIO based extcon support. Note that GPIO
57be48308aSMyungJoo Ham	  extcon supports single state per extcon instance.
58be48308aSMyungJoo Ham
592f556bdbSDavid Cohenconfig EXTCON_INTEL_INT3496
602f556bdbSDavid Cohen	tristate "Intel INT3496 ACPI device extcon driver"
61059c7874SPeter Robinson	depends on GPIOLIB && ACPI && (X86 || COMPILE_TEST)
622f556bdbSDavid Cohen	help
632f556bdbSDavid Cohen	  Say Y here to enable extcon support for USB OTG ports controlled by
642f556bdbSDavid Cohen	  an Intel INT3496 ACPI device.
652f556bdbSDavid Cohen
662f556bdbSDavid Cohen	  This ACPI device is typically found on Intel Baytrail or Cherrytrail
672f556bdbSDavid Cohen	  based tablets, or other Baytrail / Cherrytrail devices.
682f556bdbSDavid Cohen
69db0f3baaSHans de Goedeconfig EXTCON_INTEL_CHT_WC
70db0f3baaSHans de Goede	tristate "Intel Cherrytrail Whiskey Cove PMIC extcon driver"
71db0f3baaSHans de Goede	depends on INTEL_SOC_PMIC_CHTWC
72db0f3baaSHans de Goede	help
73db0f3baaSHans de Goede	  Say Y here to enable extcon support for charger detection / control
74db0f3baaSHans de Goede	  on the Intel Cherrytrail Whiskey Cove PMIC.
75db0f3baaSHans de Goede
76492929c5SAndy Shevchenkoconfig EXTCON_INTEL_MRFLD
77492929c5SAndy Shevchenko	tristate "Intel Merrifield Basin Cove PMIC extcon driver"
78492929c5SAndy Shevchenko	depends on INTEL_SOC_PMIC_MRFLD
79492929c5SAndy Shevchenko	help
80492929c5SAndy Shevchenko	  Say Y here to enable extcon support for charger detection / control
81492929c5SAndy Shevchenko	  on the Intel Merrifield Basin Cove PMIC.
82492929c5SAndy Shevchenko
83962e56bfSChanwoo Choiconfig EXTCON_MAX14577
84ed2c0604SChanwoo Choi	tristate "Maxim MAX14577/77836 EXTCON Support"
85962e56bfSChanwoo Choi	depends on MFD_MAX14577
86962e56bfSChanwoo Choi	select IRQ_DOMAIN
87962e56bfSChanwoo Choi	select REGMAP_I2C
88962e56bfSChanwoo Choi	help
89962e56bfSChanwoo Choi	  If you say yes here you get support for the MUIC device of
904706a525SKrzysztof Kozlowski	  Maxim MAX14577/77836. The MAX14577/77836 MUIC is a USB port accessory
91962e56bfSChanwoo Choi	  detector and switch.
92962e56bfSChanwoo Choi
9308a0a4f9SSergei Shtylyovconfig EXTCON_MAX3355
9408a0a4f9SSergei Shtylyov	tristate "Maxim MAX3355 USB OTG EXTCON Support"
9508a0a4f9SSergei Shtylyov	depends on GPIOLIB || COMPILE_TEST
9608a0a4f9SSergei Shtylyov	help
9708a0a4f9SSergei Shtylyov	  If you say yes here you get support for the USB OTG role detection by
9808a0a4f9SSergei Shtylyov	  MAX3355. The MAX3355 chip integrates a charge pump and comparators to
9908a0a4f9SSergei Shtylyov	  enable a system with an integrated USB OTG dual-role transceiver to
10008a0a4f9SSergei Shtylyov	  function as an USB OTG dual-role device.
10108a0a4f9SSergei Shtylyov
102db1b9037SChanwoo Choiconfig EXTCON_MAX77693
103ed2c0604SChanwoo Choi	tristate "Maxim MAX77693 EXTCON Support"
1041aa05905SChanwoo Choi	depends on MFD_MAX77693 && INPUT
105db1b9037SChanwoo Choi	select IRQ_DOMAIN
106db1b9037SChanwoo Choi	select REGMAP_I2C
107db1b9037SChanwoo Choi	help
108db1b9037SChanwoo Choi	  If you say yes here you get support for the MUIC device of
109db1b9037SChanwoo Choi	  Maxim MAX77693 PMIC. The MAX77693 MUIC is a USB port accessory
110db1b9037SChanwoo Choi	  detector and switch.
111db1b9037SChanwoo Choi
11227a28d32SJaewon Kimconfig EXTCON_MAX77843
113ed2c0604SChanwoo Choi	tristate "Maxim MAX77843 EXTCON Support"
11427a28d32SJaewon Kim	depends on MFD_MAX77843
11527a28d32SJaewon Kim	select IRQ_DOMAIN
11627a28d32SJaewon Kim	select REGMAP_I2C
11727a28d32SJaewon Kim	help
11827a28d32SJaewon Kim	  If you say yes here you get support for the MUIC device of
11927a28d32SJaewon Kim	  Maxim MAX77843. The MAX77843 MUIC is a USB port accessory
12027a28d32SJaewon Kim	  detector add switch.
12127a28d32SJaewon Kim
122b76668baSChanwoo Choiconfig EXTCON_MAX8997
123ed2c0604SChanwoo Choi	tristate "Maxim MAX8997 EXTCON Support"
124dca1a71eSChanwoo Choi	depends on MFD_MAX8997 && IRQ_DOMAIN
125b76668baSChanwoo Choi	help
126b76668baSChanwoo Choi	  If you say yes here you get support for the MUIC device of
127b76668baSChanwoo Choi	  Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
128b76668baSChanwoo Choi	  detector and switch.
129b76668baSChanwoo Choi
130b1f254e3SGraeme Gregoryconfig EXTCON_PALMAS
131b1f254e3SGraeme Gregory	tristate "Palmas USB EXTCON support"
132b1f254e3SGraeme Gregory	depends on MFD_PALMAS
133b1f254e3SGraeme Gregory	help
134b1f254e3SGraeme Gregory	  Say Y here to enable support for USB peripheral and USB host
135b1f254e3SGraeme Gregory	  detection by palmas usb.
136b1f254e3SGraeme Gregory
1374ed754deSVijai Kumar Kconfig EXTCON_PTN5150
1384ed754deSVijai Kumar K	tristate "NXP PTN5150 CC LOGIC USB EXTCON support"
13986baf800SArnd Bergmann	depends on I2C && (GPIOLIB || COMPILE_TEST)
1404ed754deSVijai Kumar K	select REGMAP_I2C
1414ed754deSVijai Kumar K	help
1424ed754deSVijai Kumar K	  Say Y here to enable support for USB peripheral and USB host
1434ed754deSVijai Kumar K	  detection by NXP PTN5150 CC (Configuration Channel) logic chip.
1444ed754deSVijai Kumar K
14538085c98SStephen Boydconfig EXTCON_QCOM_SPMI_MISC
14638085c98SStephen Boyd	tristate "Qualcomm USB extcon support"
147a781a7d6SPeter Robinson	depends on ARCH_QCOM || COMPILE_TEST
14838085c98SStephen Boyd	help
14938085c98SStephen Boyd	  Say Y here to enable SPMI PMIC based USB cable detection
15038085c98SStephen Boyd	  support on Qualcomm PMICs such as PM8941.
15138085c98SStephen Boyd
152c03e017cSChanwoo Choiconfig EXTCON_RT8973A
153ed2c0604SChanwoo Choi	tristate "Richtek RT8973A EXTCON support"
154c03e017cSChanwoo Choi	depends on I2C
155c03e017cSChanwoo Choi	select IRQ_DOMAIN
156c03e017cSChanwoo Choi	select REGMAP_I2C
157c03e017cSChanwoo Choi	select REGMAP_IRQ
158c03e017cSChanwoo Choi	help
159c03e017cSChanwoo Choi	  If you say yes here you get support for the MUIC device of
160c03e017cSChanwoo Choi	  Richtek RT8973A. The RT8973A is a USB port accessory detector
161c03e017cSChanwoo Choi	  and switch that is optimized to protect low voltage system
162c03e017cSChanwoo Choi	  from abnormal high input voltage (up to 28V).
163c03e017cSChanwoo Choi
164914b881fSChanwoo Choiconfig EXTCON_SM5502
165ed2c0604SChanwoo Choi	tristate "Silicon Mitus SM5502 EXTCON support"
1660746d5d3SChanwoo Choi	depends on I2C
167914b881fSChanwoo Choi	select IRQ_DOMAIN
168914b881fSChanwoo Choi	select REGMAP_I2C
169914b881fSChanwoo Choi	select REGMAP_IRQ
170914b881fSChanwoo Choi	help
171914b881fSChanwoo Choi	  If you say yes here you get support for the MUIC device of
172914b881fSChanwoo Choi	  Silicon Mitus SM5502. The SM5502 is a USB port accessory
173914b881fSChanwoo Choi	  detector and switch.
174914b881fSChanwoo Choi
175e52817faSRoger Quadrosconfig EXTCON_USB_GPIO
176e52817faSRoger Quadros	tristate "USB GPIO extcon support"
177638f958bSGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
178e52817faSRoger Quadros	help
179e52817faSRoger Quadros	  Say Y here to enable GPIO based USB cable detection extcon support.
180e52817faSRoger Quadros	  Used typically if GPIO is used for USB ID pin detection.
181e52817faSRoger Quadros
182c6983166SBenson Leungconfig EXTCON_USBC_CROS_EC
183c6983166SBenson Leung	tristate "ChromeOS Embedded Controller EXTCON support"
184*47f11e0bSEnric Balletbo i Serra	depends on CROS_EC
185c6983166SBenson Leung	help
186c6983166SBenson Leung	  Say Y here to enable USB Type C cable detection extcon support when
187c6983166SBenson Leung	  using Chrome OS EC based USB Type-C ports.
188c6983166SBenson Leung
189ed2c0604SChanwoo Choiendif
190