Kconfig 7.0 KB

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