xref: /openbmc/linux/drivers/extcon/Kconfig (revision b181f7029bd71238ac2754ce7052dffd69432085)
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
24f0312378SRamakrishna Pallalaconfig EXTCON_AXP288
25f0312378SRamakrishna Pallala	tristate "X-Power AXP288 EXTCON support"
26968bd3f0SFabio Aiuto	depends on MFD_AXP20X && USB_SUPPORT && X86 && ACPI && IOSF_MBI
27d54f063cSHans de Goede	select USB_ROLE_SWITCH
28f0312378SRamakrishna Pallala	help
29f0312378SRamakrishna Pallala	  Say Y here to enable support for USB peripheral detection
30f0312378SRamakrishna Pallala	  and USB MUX switching by X-Power AXP288 PMIC.
31f0312378SRamakrishna Pallala
32bad5b5e7STomasz Figaconfig EXTCON_FSA9480
33bad5b5e7STomasz Figa	tristate "FSA9480 EXTCON Support"
340937fbb7SRandy Dunlap	depends on INPUT && I2C
35bad5b5e7STomasz Figa	select IRQ_DOMAIN
36bad5b5e7STomasz Figa	select REGMAP_I2C
37bad5b5e7STomasz Figa	help
38bad5b5e7STomasz Figa	  If you say yes here you get support for the Fairchild Semiconductor
39bad5b5e7STomasz Figa	  FSA9480 microUSB switch and accessory detector chip. The FSA9480 is a USB
40bad5b5e7STomasz Figa	  port accessory detector and switch. The FSA9480 is fully controlled using
41bad5b5e7STomasz Figa	  I2C and enables USB data, stereo and mono audio, video, microphone
42bad5b5e7STomasz Figa	  and UART data to use a common connector port.
43bad5b5e7STomasz Figa
44be48308aSMyungJoo Hamconfig EXTCON_GPIO
45be48308aSMyungJoo Ham	tristate "GPIO extcon support"
46638f958bSGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
47be48308aSMyungJoo Ham	help
48be48308aSMyungJoo Ham	  Say Y here to enable GPIO based extcon support. Note that GPIO
49be48308aSMyungJoo Ham	  extcon supports single state per extcon instance.
50be48308aSMyungJoo Ham
512f556bdbSDavid Cohenconfig EXTCON_INTEL_INT3496
522f556bdbSDavid Cohen	tristate "Intel INT3496 ACPI device extcon driver"
53059c7874SPeter Robinson	depends on GPIOLIB && ACPI && (X86 || COMPILE_TEST)
542f556bdbSDavid Cohen	help
552f556bdbSDavid Cohen	  Say Y here to enable extcon support for USB OTG ports controlled by
562f556bdbSDavid Cohen	  an Intel INT3496 ACPI device.
572f556bdbSDavid Cohen
582f556bdbSDavid Cohen	  This ACPI device is typically found on Intel Baytrail or Cherrytrail
592f556bdbSDavid Cohen	  based tablets, or other Baytrail / Cherrytrail devices.
602f556bdbSDavid Cohen
61db0f3baaSHans de Goedeconfig EXTCON_INTEL_CHT_WC
62db0f3baaSHans de Goede	tristate "Intel Cherrytrail Whiskey Cove PMIC extcon driver"
63db0f3baaSHans de Goede	depends on INTEL_SOC_PMIC_CHTWC
64b7fa2cd3SHans de Goede	depends on USB_SUPPORT
65d20a3a8aSArnd Bergmann	depends on POWER_SUPPLY
66b7fa2cd3SHans de Goede	select USB_ROLE_SWITCH
67db0f3baaSHans de Goede	help
68db0f3baaSHans de Goede	  Say Y here to enable extcon support for charger detection / control
69db0f3baaSHans de Goede	  on the Intel Cherrytrail Whiskey Cove PMIC.
70db0f3baaSHans de Goede
71492929c5SAndy Shevchenkoconfig EXTCON_INTEL_MRFLD
72492929c5SAndy Shevchenko	tristate "Intel Merrifield Basin Cove PMIC extcon driver"
73492929c5SAndy Shevchenko	depends on INTEL_SOC_PMIC_MRFLD
74492929c5SAndy Shevchenko	help
75492929c5SAndy Shevchenko	  Say Y here to enable extcon support for charger detection / control
76492929c5SAndy Shevchenko	  on the Intel Merrifield Basin Cove PMIC.
77492929c5SAndy Shevchenko
78962e56bfSChanwoo Choiconfig EXTCON_MAX14577
79ed2c0604SChanwoo Choi	tristate "Maxim MAX14577/77836 EXTCON Support"
80962e56bfSChanwoo Choi	depends on MFD_MAX14577
81962e56bfSChanwoo Choi	select IRQ_DOMAIN
82962e56bfSChanwoo Choi	select REGMAP_I2C
83962e56bfSChanwoo Choi	help
84962e56bfSChanwoo Choi	  If you say yes here you get support for the MUIC device of
854706a525SKrzysztof Kozlowski	  Maxim MAX14577/77836. The MAX14577/77836 MUIC is a USB port accessory
86962e56bfSChanwoo Choi	  detector and switch.
87962e56bfSChanwoo Choi
8808a0a4f9SSergei Shtylyovconfig EXTCON_MAX3355
8908a0a4f9SSergei Shtylyov	tristate "Maxim MAX3355 USB OTG EXTCON Support"
9008a0a4f9SSergei Shtylyov	depends on GPIOLIB || COMPILE_TEST
9108a0a4f9SSergei Shtylyov	help
9208a0a4f9SSergei Shtylyov	  If you say yes here you get support for the USB OTG role detection by
9308a0a4f9SSergei Shtylyov	  MAX3355. The MAX3355 chip integrates a charge pump and comparators to
9408a0a4f9SSergei Shtylyov	  enable a system with an integrated USB OTG dual-role transceiver to
9508a0a4f9SSergei Shtylyov	  function as an USB OTG dual-role device.
9608a0a4f9SSergei Shtylyov
97db1b9037SChanwoo Choiconfig EXTCON_MAX77693
98ed2c0604SChanwoo Choi	tristate "Maxim MAX77693 EXTCON Support"
991aa05905SChanwoo Choi	depends on MFD_MAX77693 && INPUT
100db1b9037SChanwoo Choi	select IRQ_DOMAIN
101db1b9037SChanwoo Choi	select REGMAP_I2C
102db1b9037SChanwoo Choi	help
103db1b9037SChanwoo Choi	  If you say yes here you get support for the MUIC device of
104db1b9037SChanwoo Choi	  Maxim MAX77693 PMIC. The MAX77693 MUIC is a USB port accessory
105db1b9037SChanwoo Choi	  detector and switch.
106db1b9037SChanwoo Choi
10727a28d32SJaewon Kimconfig EXTCON_MAX77843
108ed2c0604SChanwoo Choi	tristate "Maxim MAX77843 EXTCON Support"
10927a28d32SJaewon Kim	depends on MFD_MAX77843
11027a28d32SJaewon Kim	select IRQ_DOMAIN
11127a28d32SJaewon Kim	select REGMAP_I2C
11227a28d32SJaewon Kim	help
11327a28d32SJaewon Kim	  If you say yes here you get support for the MUIC device of
11427a28d32SJaewon Kim	  Maxim MAX77843. The MAX77843 MUIC is a USB port accessory
11527a28d32SJaewon Kim	  detector add switch.
11627a28d32SJaewon Kim
117b76668baSChanwoo Choiconfig EXTCON_MAX8997
118ed2c0604SChanwoo Choi	tristate "Maxim MAX8997 EXTCON Support"
119*913a00ecSRandy Dunlap	depends on MFD_MAX8997
120*913a00ecSRandy Dunlap	select IRQ_DOMAIN
121b76668baSChanwoo Choi	help
122b76668baSChanwoo Choi	  If you say yes here you get support for the MUIC device of
123b76668baSChanwoo Choi	  Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
124b76668baSChanwoo Choi	  detector and switch.
125b76668baSChanwoo Choi
126b1f254e3SGraeme Gregoryconfig EXTCON_PALMAS
127b1f254e3SGraeme Gregory	tristate "Palmas USB EXTCON support"
128b1f254e3SGraeme Gregory	depends on MFD_PALMAS
129b1f254e3SGraeme Gregory	help
130b1f254e3SGraeme Gregory	  Say Y here to enable support for USB peripheral and USB host
131b1f254e3SGraeme Gregory	  detection by palmas usb.
132b1f254e3SGraeme Gregory
1334ed754deSVijai Kumar Kconfig EXTCON_PTN5150
1344ed754deSVijai Kumar K	tristate "NXP PTN5150 CC LOGIC USB EXTCON support"
13586baf800SArnd Bergmann	depends on I2C && (GPIOLIB || COMPILE_TEST)
1361bfcaa57SLi Jun	depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH
1374ed754deSVijai Kumar K	select REGMAP_I2C
1384ed754deSVijai Kumar K	help
1394ed754deSVijai Kumar K	  Say Y here to enable support for USB peripheral and USB host
1404ed754deSVijai Kumar K	  detection by NXP PTN5150 CC (Configuration Channel) logic chip.
1414ed754deSVijai Kumar K
14238085c98SStephen Boydconfig EXTCON_QCOM_SPMI_MISC
14338085c98SStephen Boyd	tristate "Qualcomm USB extcon support"
144a781a7d6SPeter Robinson	depends on ARCH_QCOM || COMPILE_TEST
14538085c98SStephen Boyd	help
14638085c98SStephen Boyd	  Say Y here to enable SPMI PMIC based USB cable detection
14738085c98SStephen Boyd	  support on Qualcomm PMICs such as PM8941.
14838085c98SStephen Boyd
149c03e017cSChanwoo Choiconfig EXTCON_RT8973A
150ed2c0604SChanwoo Choi	tristate "Richtek RT8973A EXTCON support"
151c03e017cSChanwoo Choi	depends on I2C
152c03e017cSChanwoo Choi	select IRQ_DOMAIN
153c03e017cSChanwoo Choi	select REGMAP_I2C
154c03e017cSChanwoo Choi	select REGMAP_IRQ
155c03e017cSChanwoo Choi	help
156c03e017cSChanwoo Choi	  If you say yes here you get support for the MUIC device of
157c03e017cSChanwoo Choi	  Richtek RT8973A. The RT8973A is a USB port accessory detector
158c03e017cSChanwoo Choi	  and switch that is optimized to protect low voltage system
159c03e017cSChanwoo Choi	  from abnormal high input voltage (up to 28V).
160c03e017cSChanwoo Choi
161914b881fSChanwoo Choiconfig EXTCON_SM5502
162a84df1c7SMarkuss Broks	tristate "Silicon Mitus SM5502/SM5504/SM5703 EXTCON support"
1630746d5d3SChanwoo Choi	depends on I2C
164914b881fSChanwoo Choi	select IRQ_DOMAIN
165914b881fSChanwoo Choi	select REGMAP_I2C
166914b881fSChanwoo Choi	select REGMAP_IRQ
167914b881fSChanwoo Choi	help
168914b881fSChanwoo Choi	  If you say yes here you get support for the MUIC device of
169914b881fSChanwoo Choi	  Silicon Mitus SM5502. The SM5502 is a USB port accessory
170914b881fSChanwoo Choi	  detector and switch.
171914b881fSChanwoo Choi
172e52817faSRoger Quadrosconfig EXTCON_USB_GPIO
173e52817faSRoger Quadros	tristate "USB GPIO extcon support"
174638f958bSGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
175e52817faSRoger Quadros	help
176e52817faSRoger Quadros	  Say Y here to enable GPIO based USB cable detection extcon support.
177e52817faSRoger Quadros	  Used typically if GPIO is used for USB ID pin detection.
178e52817faSRoger Quadros
179c6983166SBenson Leungconfig EXTCON_USBC_CROS_EC
180c6983166SBenson Leung	tristate "ChromeOS Embedded Controller EXTCON support"
18147f11e0bSEnric Balletbo i Serra	depends on CROS_EC
182c6983166SBenson Leung	help
183c6983166SBenson Leung	  Say Y here to enable USB Type C cable detection extcon support when
184c6983166SBenson Leung	  using Chrome OS EC based USB Type-C ports.
185c6983166SBenson Leung
18606bc4ca1SMichael Auchterconfig EXTCON_USBC_TUSB320
18706bc4ca1SMichael Auchter	tristate "TI TUSB320 USB-C extcon support"
188bf7571c0SMarek Vasut	depends on I2C && TYPEC
18906bc4ca1SMichael Auchter	select REGMAP_I2C
19065acf9c6SArnd Bergmann	depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH
19106bc4ca1SMichael Auchter	help
19206bc4ca1SMichael Auchter	  Say Y here to enable support for USB Type C cable detection extcon
19306bc4ca1SMichael Auchter	  support using a TUSB320.
19406bc4ca1SMichael Auchter
195ed2c0604SChanwoo Choiendif
196