Kconfig 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  1. #
  2. # GPIO infrastructure and drivers
  3. #
  4. config ARCH_HAVE_CUSTOM_GPIO_H
  5. bool
  6. help
  7. Selecting this config option from the architecture Kconfig allows
  8. the architecture to provide a custom asm/gpio.h implementation
  9. overriding the default implementations. New uses of this are
  10. strongly discouraged.
  11. config ARCH_WANT_OPTIONAL_GPIOLIB
  12. bool
  13. help
  14. Select this config option from the architecture Kconfig, if
  15. it is possible to use gpiolib on the architecture, but let the
  16. user decide whether to actually build it or not.
  17. Select this instead of ARCH_REQUIRE_GPIOLIB, if your architecture does
  18. not depend on GPIOs being available, but rather let the user
  19. decide whether he needs it or not.
  20. config ARCH_REQUIRE_GPIOLIB
  21. bool
  22. select GPIOLIB
  23. help
  24. Platforms select gpiolib if they use this infrastructure
  25. for all their GPIOs, usually starting with ones integrated
  26. into SOC processors.
  27. Selecting this from the architecture code will cause the gpiolib
  28. code to always get built in.
  29. menuconfig GPIOLIB
  30. bool "GPIO Support"
  31. depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
  32. help
  33. This enables GPIO support through the generic GPIO library.
  34. You only need to enable this, if you also want to enable
  35. one or more of the GPIO drivers below.
  36. If unsure, say N.
  37. if GPIOLIB
  38. config GPIO_DEVRES
  39. def_bool y
  40. depends on HAS_IOMEM
  41. config OF_GPIO
  42. def_bool y
  43. depends on OF
  44. config GPIO_ACPI
  45. def_bool y
  46. depends on ACPI
  47. config GPIOLIB_IRQCHIP
  48. select IRQ_DOMAIN
  49. bool
  50. config DEBUG_GPIO
  51. bool "Debug GPIO calls"
  52. depends on DEBUG_KERNEL
  53. help
  54. Say Y here to add some extra checks and diagnostics to GPIO calls.
  55. These checks help ensure that GPIOs have been properly initialized
  56. before they are used, and that sleeping calls are not made from
  57. non-sleeping contexts. They can make bitbanged serial protocols
  58. slower. The diagnostics help catch the type of setup errors
  59. that are most common when setting up new platforms or boards.
  60. config GPIO_SYSFS
  61. bool "/sys/class/gpio/... (sysfs interface)"
  62. depends on SYSFS
  63. help
  64. Say Y here to add a sysfs interface for GPIOs.
  65. This is mostly useful to work around omissions in a system's
  66. kernel support. Those are common in custom and semicustom
  67. hardware assembled using standard kernels with a minimum of
  68. custom patches. In those cases, userspace code may import
  69. a given GPIO from the kernel, if no kernel driver requested it.
  70. Kernel drivers may also request that a particular GPIO be
  71. exported to userspace; this can be useful when debugging.
  72. config GPIO_GENERIC
  73. tristate
  74. # put drivers in the right section, in alphabetical order
  75. # This symbol is selected by both I2C and SPI expanders
  76. config GPIO_MAX730X
  77. tristate
  78. menu "Memory mapped GPIO drivers"
  79. config GPIO_74XX_MMIO
  80. tristate "GPIO driver for 74xx-ICs with MMIO access"
  81. depends on OF_GPIO
  82. select GPIO_GENERIC
  83. help
  84. Say yes here to support GPIO functionality for 74xx-compatible ICs
  85. with MMIO access. Compatible models include:
  86. 1 bit: 741G125 (Input), 741G74 (Output)
  87. 2 bits: 742G125 (Input), 7474 (Output)
  88. 4 bits: 74125 (Input), 74175 (Output)
  89. 6 bits: 74365 (Input), 74174 (Output)
  90. 8 bits: 74244 (Input), 74273 (Output)
  91. 16 bits: 741624 (Input), 7416374 (Output)
  92. config GPIO_ALTERA
  93. tristate "Altera GPIO"
  94. depends on OF_GPIO
  95. select GPIO_GENERIC
  96. select GPIOLIB_IRQCHIP
  97. help
  98. Say Y or M here to build support for the Altera PIO device.
  99. If driver is built as a module it will be called gpio-altera.
  100. config GPIO_BCM_KONA
  101. bool "Broadcom Kona GPIO"
  102. depends on OF_GPIO && (ARCH_BCM_MOBILE || COMPILE_TEST)
  103. help
  104. Turn on GPIO support for Broadcom "Kona" chips.
  105. config GPIO_BRCMSTB
  106. tristate "BRCMSTB GPIO support"
  107. default y if ARCH_BRCMSTB
  108. depends on OF_GPIO && (ARCH_BRCMSTB || COMPILE_TEST)
  109. select GPIO_GENERIC
  110. help
  111. Say yes here to enable GPIO support for Broadcom STB (BCM7XXX) SoCs.
  112. config GPIO_CLPS711X
  113. tristate "CLPS711X GPIO support"
  114. depends on ARCH_CLPS711X || COMPILE_TEST
  115. select GPIO_GENERIC
  116. help
  117. Say yes here to support GPIO on CLPS711X SoCs.
  118. config GPIO_DAVINCI
  119. bool "TI Davinci/Keystone GPIO support"
  120. default y if ARCH_DAVINCI
  121. depends on ARM && (ARCH_DAVINCI || ARCH_KEYSTONE)
  122. help
  123. Say yes here to enable GPIO support for TI Davinci/Keystone SoCs.
  124. config GPIO_DWAPB
  125. tristate "Synopsys DesignWare APB GPIO driver"
  126. select GPIO_GENERIC
  127. select GENERIC_IRQ_CHIP
  128. help
  129. Say Y or M here to build support for the Synopsys DesignWare APB
  130. GPIO block.
  131. config GPIO_EM
  132. tristate "Emma Mobile GPIO"
  133. depends on ARM && OF_GPIO
  134. help
  135. Say yes here to support GPIO on Renesas Emma Mobile SoCs.
  136. config GPIO_EP93XX
  137. def_bool y
  138. depends on ARCH_EP93XX
  139. select GPIO_GENERIC
  140. config GPIO_ETRAXFS
  141. bool "Axis ETRAX FS General I/O"
  142. depends on CRIS || COMPILE_TEST
  143. depends on OF
  144. select GPIO_GENERIC
  145. help
  146. Say yes here to support the GPIO controller on Axis ETRAX FS SoCs.
  147. config GPIO_F7188X
  148. tristate "F71869, F71869A, F71882FG and F71889F GPIO support"
  149. depends on X86
  150. help
  151. This option enables support for GPIOs found on Fintek Super-I/O
  152. chips F71869, F71869A, F71882FG and F71889F.
  153. To compile this driver as a module, choose M here: the module will
  154. be called f7188x-gpio.
  155. config GPIO_GE_FPGA
  156. bool "GE FPGA based GPIO"
  157. depends on GE_FPGA
  158. select GPIO_GENERIC
  159. help
  160. Support for common GPIO functionality provided on some GE Single Board
  161. Computers.
  162. This driver provides basic support (configure as input or output, read
  163. and write pin state) for GPIO implemented in a number of GE single
  164. board computers.
  165. config GPIO_GENERIC_PLATFORM
  166. tristate "Generic memory-mapped GPIO controller support (MMIO platform device)"
  167. select GPIO_GENERIC
  168. help
  169. Say yes here to support basic platform_device memory-mapped GPIO controllers.
  170. config GPIO_GRGPIO
  171. tristate "Aeroflex Gaisler GRGPIO support"
  172. depends on OF
  173. select GPIO_GENERIC
  174. select IRQ_DOMAIN
  175. help
  176. Select this to support Aeroflex Gaisler GRGPIO cores from the GRLIB
  177. VHDL IP core library.
  178. config GPIO_ICH
  179. tristate "Intel ICH GPIO"
  180. depends on PCI && X86
  181. select MFD_CORE
  182. select LPC_ICH
  183. help
  184. Say yes here to support the GPIO functionality of a number of Intel
  185. ICH-based chipsets. Currently supported devices: ICH6, ICH7, ICH8
  186. ICH9, ICH10, Series 5/3400 (eg Ibex Peak), Series 6/C200 (eg
  187. Cougar Point), NM10 (Tiger Point), and 3100 (Whitmore Lake).
  188. If unsure, say N.
  189. config GPIO_IOP
  190. tristate "Intel IOP GPIO"
  191. depends on ARM && (ARCH_IOP32X || ARCH_IOP33X)
  192. help
  193. Say yes here to support the GPIO functionality of a number of Intel
  194. IOP32X or IOP33X.
  195. If unsure, say N.
  196. config GPIO_IT8761E
  197. tristate "IT8761E GPIO support"
  198. depends on X86 # unconditional access to IO space.
  199. help
  200. Say yes here to support GPIO functionality of IT8761E super I/O chip.
  201. config GPIO_LOONGSON
  202. bool "Loongson-2/3 GPIO support"
  203. depends on CPU_LOONGSON2 || CPU_LOONGSON3
  204. help
  205. driver for GPIO functionality on Loongson-2F/3A/3B processors.
  206. config GPIO_LPC18XX
  207. bool "NXP LPC18XX/43XX GPIO support"
  208. default y if ARCH_LPC18XX
  209. depends on OF_GPIO && (ARCH_LPC18XX || COMPILE_TEST)
  210. help
  211. Select this option to enable GPIO driver for
  212. NXP LPC18XX/43XX devices.
  213. config GPIO_LYNXPOINT
  214. tristate "Intel Lynxpoint GPIO support"
  215. depends on ACPI && X86
  216. select GPIOLIB_IRQCHIP
  217. help
  218. driver for GPIO functionality on Intel Lynxpoint PCH chipset
  219. Requires ACPI device enumeration code to set up a platform device.
  220. config GPIO_MB86S7X
  221. bool "GPIO support for Fujitsu MB86S7x Platforms"
  222. depends on ARCH_MB86S7X
  223. help
  224. Say yes here to support the GPIO controller in Fujitsu MB86S70 SoCs.
  225. config GPIO_MM_LANTIQ
  226. bool "Lantiq Memory mapped GPIOs"
  227. depends on LANTIQ && SOC_XWAY
  228. help
  229. This enables support for memory mapped GPIOs on the External Bus Unit
  230. (EBU) found on Lantiq SoCs. The gpios are output only as they are
  231. created by attaching a 16bit latch to the bus.
  232. config GPIO_MOXART
  233. bool "MOXART GPIO support"
  234. depends on ARCH_MOXART
  235. select GPIO_GENERIC
  236. help
  237. Select this option to enable GPIO driver for
  238. MOXA ART SoC devices.
  239. config GPIO_MPC5200
  240. def_bool y
  241. depends on PPC_MPC52xx
  242. config GPIO_MPC8XXX
  243. bool "MPC512x/MPC8xxx GPIO support"
  244. depends on PPC_MPC512x || PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || \
  245. FSL_SOC_BOOKE || PPC_86xx
  246. help
  247. Say Y here if you're going to use hardware that connects to the
  248. MPC512x/831x/834x/837x/8572/8610 GPIOs.
  249. config GPIO_MSM_V2
  250. tristate "Qualcomm MSM GPIO v2"
  251. depends on GPIOLIB && OF && ARCH_QCOM
  252. help
  253. Say yes here to support the GPIO interface on ARM v7 based
  254. Qualcomm MSM chips. Most of the pins on the MSM can be
  255. selected for GPIO, and are controlled by this driver.
  256. config GPIO_MVEBU
  257. def_bool y
  258. depends on PLAT_ORION
  259. depends on OF
  260. select GPIO_GENERIC
  261. select GENERIC_IRQ_CHIP
  262. config GPIO_MXC
  263. def_bool y
  264. depends on ARCH_MXC
  265. select GPIO_GENERIC
  266. select GENERIC_IRQ_CHIP
  267. config GPIO_MXS
  268. def_bool y
  269. depends on ARCH_MXS
  270. select GPIO_GENERIC
  271. select GENERIC_IRQ_CHIP
  272. config GPIO_OCTEON
  273. tristate "Cavium OCTEON GPIO"
  274. depends on GPIOLIB && CAVIUM_OCTEON_SOC
  275. default y
  276. help
  277. Say yes here to support the on-chip GPIO lines on the OCTEON
  278. family of SOCs.
  279. config GPIO_OMAP
  280. tristate "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
  281. default y if ARCH_OMAP
  282. depends on ARM
  283. select GENERIC_IRQ_CHIP
  284. select GPIOLIB_IRQCHIP
  285. help
  286. Say yes here to enable GPIO support for TI OMAP SoCs.
  287. config GPIO_PL061
  288. bool "PrimeCell PL061 GPIO support"
  289. depends on ARM_AMBA
  290. select IRQ_DOMAIN
  291. select GPIOLIB_IRQCHIP
  292. help
  293. Say yes here to support the PrimeCell PL061 GPIO device
  294. config GPIO_PXA
  295. bool "PXA GPIO support"
  296. depends on ARCH_PXA || ARCH_MMP
  297. help
  298. Say yes here to support the PXA GPIO device
  299. config GPIO_RCAR
  300. tristate "Renesas R-Car GPIO"
  301. depends on ARM && (ARCH_SHMOBILE || COMPILE_TEST)
  302. select GPIOLIB_IRQCHIP
  303. help
  304. Say yes here to support GPIO on Renesas R-Car SoCs.
  305. config GPIO_SAMSUNG
  306. bool
  307. depends on PLAT_SAMSUNG
  308. help
  309. Legacy GPIO support. Use only for platforms without support for
  310. pinctrl.
  311. config GPIO_SCH
  312. tristate "Intel SCH/TunnelCreek/Centerton/Quark X1000 GPIO"
  313. depends on PCI && X86
  314. select MFD_CORE
  315. select LPC_SCH
  316. help
  317. Say yes here to support GPIO interface on Intel Poulsbo SCH,
  318. Intel Tunnel Creek processor, Intel Centerton processor or
  319. Intel Quark X1000 SoC.
  320. The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are
  321. powered by the core power rail and are turned off during sleep
  322. modes (S3 and higher). The remaining four GPIOs are powered by
  323. the Intel SCH suspend power supply. These GPIOs remain
  324. active during S3. The suspend powered GPIOs can be used to wake the
  325. system from the Suspend-to-RAM state.
  326. The Intel Tunnel Creek processor has 5 GPIOs powered by the
  327. core power rail and 9 from suspend power supply.
  328. The Intel Centerton processor has a total of 30 GPIO pins.
  329. Twenty-one are powered by the core power rail and 9 from the
  330. suspend power supply.
  331. The Intel Quark X1000 SoC has 2 GPIOs powered by the core
  332. power well and 6 from the suspend power well.
  333. config GPIO_SCH311X
  334. tristate "SMSC SCH311x SuperI/O GPIO"
  335. help
  336. Driver to enable the GPIOs found on SMSC SMSC SCH3112, SCH3114 and
  337. SCH3116 "Super I/O" chipsets.
  338. To compile this driver as a module, choose M here: the module will
  339. be called gpio-sch311x.
  340. config GPIO_SPEAR_SPICS
  341. bool "ST SPEAr13xx SPI Chip Select as GPIO support"
  342. depends on PLAT_SPEAR
  343. select GENERIC_IRQ_CHIP
  344. help
  345. Say yes here to support ST SPEAr SPI Chip Select as GPIO device
  346. config GPIO_STA2X11
  347. bool "STA2x11/ConneXt GPIO support"
  348. depends on MFD_STA2X11
  349. select GENERIC_IRQ_CHIP
  350. help
  351. Say yes here to support the STA2x11/ConneXt GPIO device.
  352. The GPIO module has 128 GPIO pins with alternate functions.
  353. config GPIO_STP_XWAY
  354. bool "XWAY STP GPIOs"
  355. depends on SOC_XWAY
  356. help
  357. This enables support for the Serial To Parallel (STP) unit found on
  358. XWAY SoC. The STP allows the SoC to drive a shift registers cascade,
  359. that can be up to 24 bit. This peripheral is aimed at driving leds.
  360. Some of the gpios/leds can be auto updated by the soc with dsl and
  361. phy status.
  362. config GPIO_SYSCON
  363. tristate "GPIO based on SYSCON"
  364. depends on MFD_SYSCON && OF
  365. help
  366. Say yes here to support GPIO functionality though SYSCON driver.
  367. config GPIO_TB10X
  368. bool
  369. select GENERIC_IRQ_CHIP
  370. select OF_GPIO
  371. config GPIO_TS5500
  372. tristate "TS-5500 DIO blocks and compatibles"
  373. depends on TS5500 || COMPILE_TEST
  374. help
  375. This driver supports Digital I/O exposed by pin blocks found on some
  376. Technologic Systems platforms. It includes, but is not limited to, 3
  377. blocks of the TS-5500: DIO1, DIO2 and the LCD port, and the TS-5600
  378. LCD port.
  379. config GPIO_TZ1090
  380. bool "Toumaz Xenif TZ1090 GPIO support"
  381. depends on SOC_TZ1090
  382. select GENERIC_IRQ_CHIP
  383. default y
  384. help
  385. Say yes here to support Toumaz Xenif TZ1090 GPIOs.
  386. config GPIO_TZ1090_PDC
  387. bool "Toumaz Xenif TZ1090 PDC GPIO support"
  388. depends on SOC_TZ1090
  389. default y
  390. help
  391. Say yes here to support Toumaz Xenif TZ1090 PDC GPIOs.
  392. config GPIO_VF610
  393. def_bool y
  394. depends on ARCH_MXC && SOC_VF610
  395. select GPIOLIB_IRQCHIP
  396. help
  397. Say yes here to support Vybrid vf610 GPIOs.
  398. config GPIO_VR41XX
  399. tristate "NEC VR4100 series General-purpose I/O Uint support"
  400. depends on CPU_VR41XX
  401. help
  402. Say yes here to support the NEC VR4100 series General-purpose I/O Uint
  403. config GPIO_VX855
  404. tristate "VIA VX855/VX875 GPIO"
  405. depends on PCI
  406. select MFD_CORE
  407. select MFD_VX855
  408. help
  409. Support access to the VX855/VX875 GPIO lines through the gpio library.
  410. This driver provides common support for accessing the device,
  411. additional drivers must be enabled in order to use the
  412. functionality of the device.
  413. config GPIO_XGENE
  414. bool "APM X-Gene GPIO controller support"
  415. depends on ARM64 && OF_GPIO
  416. help
  417. This driver is to support the GPIO block within the APM X-Gene SoC
  418. platform's generic flash controller. The GPIO pins are muxed with
  419. the generic flash controller's address and data pins. Say yes
  420. here to enable the GFC GPIO functionality.
  421. config GPIO_XGENE_SB
  422. tristate "APM X-Gene GPIO standby controller support"
  423. depends on ARCH_XGENE && OF_GPIO
  424. select GPIO_GENERIC
  425. help
  426. This driver supports the GPIO block within the APM X-Gene
  427. Standby Domain. Say yes here to enable the GPIO functionality.
  428. config GPIO_XILINX
  429. tristate "Xilinx GPIO support"
  430. depends on OF_GPIO && (PPC || MICROBLAZE || ARCH_ZYNQ || X86)
  431. help
  432. Say yes here to support the Xilinx FPGA GPIO device
  433. config GPIO_XLP
  434. tristate "Netlogic XLP GPIO support"
  435. depends on CPU_XLP
  436. select GPIOLIB_IRQCHIP
  437. help
  438. This driver provides support for GPIO interface on Netlogic XLP MIPS64
  439. SoCs. Currently supported XLP variants are XLP8XX, XLP3XX, XLP2XX,
  440. XLP9XX and XLP5XX.
  441. If unsure, say N.
  442. config GPIO_XTENSA
  443. bool "Xtensa GPIO32 support"
  444. depends on XTENSA
  445. depends on HAVE_XTENSA_GPIO32
  446. depends on !SMP
  447. help
  448. Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)
  449. and EXPSTATE (output) ports
  450. config GPIO_ZEVIO
  451. bool "LSI ZEVIO SoC memory mapped GPIOs"
  452. depends on ARM && OF_GPIO
  453. help
  454. Say yes here to support the GPIO controller in LSI ZEVIO SoCs.
  455. config GPIO_ZYNQ
  456. tristate "Xilinx Zynq GPIO support"
  457. depends on ARCH_ZYNQ || ARCH_ZYNQMP
  458. select GPIOLIB_IRQCHIP
  459. help
  460. Say yes here to support Xilinx Zynq GPIO controller.
  461. endmenu
  462. menu "I2C GPIO expanders"
  463. depends on I2C
  464. config GPIO_ADP5588
  465. tristate "ADP5588 I2C GPIO expander"
  466. depends on I2C
  467. help
  468. This option enables support for 18 GPIOs found
  469. on Analog Devices ADP5588 GPIO Expanders.
  470. config GPIO_ADP5588_IRQ
  471. bool "Interrupt controller support for ADP5588"
  472. depends on GPIO_ADP5588=y
  473. help
  474. Say yes here to enable the adp5588 to be used as an interrupt
  475. controller. It requires the driver to be built in the kernel.
  476. config GPIO_ADNP
  477. tristate "Avionic Design N-bit GPIO expander"
  478. depends on I2C && OF_GPIO
  479. select GPIOLIB_IRQCHIP
  480. help
  481. This option enables support for N GPIOs found on Avionic Design
  482. I2C GPIO expanders. The register space will be extended by powers
  483. of two, so the controller will need to accommodate for that. For
  484. example: if a controller provides 48 pins, 6 registers will be
  485. enough to represent all pins, but the driver will assume a
  486. register layout for 64 pins (8 registers).
  487. config GPIO_MAX7300
  488. tristate "Maxim MAX7300 GPIO expander"
  489. depends on I2C
  490. select GPIO_MAX730X
  491. help
  492. GPIO driver for Maxim MAX7300 I2C-based GPIO expander.
  493. config GPIO_MAX732X
  494. tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
  495. depends on I2C
  496. help
  497. Say yes here to support the MAX7319, MAX7320-7327 series of I2C
  498. Port Expanders. Each IO port on these chips has a fixed role of
  499. Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
  500. Input and Output (designed by 'P'). The combinations are listed
  501. below:
  502. 8 bits: max7319 (8I), max7320 (8O), max7321 (8P),
  503. max7322 (4I4O), max7323 (4P4O)
  504. 16 bits: max7324 (8I8O), max7325 (8P8O),
  505. max7326 (4I12O), max7327 (4P12O)
  506. Board setup code must specify the model to use, and the start
  507. number for these GPIOs.
  508. config GPIO_MAX732X_IRQ
  509. bool "Interrupt controller support for MAX732x"
  510. depends on GPIO_MAX732X=y
  511. select GPIOLIB_IRQCHIP
  512. help
  513. Say yes here to enable the max732x to be used as an interrupt
  514. controller. It requires the driver to be built in the kernel.
  515. config GPIO_MC9S08DZ60
  516. bool "MX35 3DS BOARD MC9S08DZ60 GPIO functions"
  517. depends on I2C=y && MACH_MX35_3DS
  518. help
  519. Select this to enable the MC9S08DZ60 GPIO driver
  520. config GPIO_PCA953X
  521. tristate "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
  522. depends on I2C
  523. help
  524. Say yes here to provide access to several register-oriented
  525. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  526. models include:
  527. 4 bits: pca9536, pca9537
  528. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  529. pca9556, pca9557, pca9574, tca6408, xra1202
  530. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  531. tca6416
  532. 24 bits: tca6424
  533. 40 bits: pca9505, pca9698
  534. config GPIO_PCA953X_IRQ
  535. bool "Interrupt controller support for PCA953x"
  536. depends on GPIO_PCA953X=y
  537. select GPIOLIB_IRQCHIP
  538. help
  539. Say yes here to enable the pca953x to be used as an interrupt
  540. controller. It requires the driver to be built in the kernel.
  541. config GPIO_PCF857X
  542. tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
  543. depends on I2C
  544. select GPIOLIB_IRQCHIP
  545. select IRQ_DOMAIN
  546. help
  547. Say yes here to provide access to most "quasi-bidirectional" I2C
  548. GPIO expanders used for additional digital outputs or inputs.
  549. Most of these parts are from NXP, though TI is a second source for
  550. some of them. Compatible models include:
  551. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  552. pca9670, pca9672, pca9674, pca9674a,
  553. max7328, max7329
  554. 16 bits: pcf8575, pcf8575c, pca8575,
  555. pca9671, pca9673, pca9675
  556. Your board setup code will need to declare the expanders in
  557. use, and assign numbers to the GPIOs they expose. Those GPIOs
  558. can then be used from drivers and other kernel code, just like
  559. other GPIOs, but only accessible from task contexts.
  560. This driver provides an in-kernel interface to those GPIOs using
  561. platform-neutral GPIO calls.
  562. config GPIO_SX150X
  563. bool "Semtech SX150x I2C GPIO expander"
  564. depends on I2C=y
  565. select GPIOLIB_IRQCHIP
  566. default n
  567. help
  568. Say yes here to provide support for Semtech SX150-series I2C
  569. GPIO expanders. Compatible models include:
  570. 8 bits: sx1508q
  571. 16 bits: sx1509q
  572. endmenu
  573. menu "MFD GPIO expanders"
  574. config GPIO_ADP5520
  575. tristate "GPIO Support for ADP5520 PMIC"
  576. depends on PMIC_ADP5520
  577. help
  578. This option enables support for on-chip GPIO found
  579. on Analog Devices ADP5520 PMICs.
  580. config GPIO_ARIZONA
  581. tristate "Wolfson Microelectronics Arizona class devices"
  582. depends on MFD_ARIZONA
  583. help
  584. Support for GPIOs on Wolfson Arizona class devices.
  585. config GPIO_CRYSTAL_COVE
  586. tristate "GPIO support for Crystal Cove PMIC"
  587. depends on INTEL_SOC_PMIC
  588. select GPIOLIB_IRQCHIP
  589. help
  590. Support for GPIO pins on Crystal Cove PMIC.
  591. Say Yes if you have a Intel SoC based tablet with Crystal Cove PMIC
  592. inside.
  593. This driver can also be built as a module. If so, the module will be
  594. called gpio-crystalcove.
  595. config GPIO_CS5535
  596. tristate "AMD CS5535/CS5536 GPIO support"
  597. depends on MFD_CS5535
  598. help
  599. The AMD CS5535 and CS5536 southbridges support 28 GPIO pins that
  600. can be used for quite a number of things. The CS5535/6 is found on
  601. AMD Geode and Lemote Yeeloong devices.
  602. If unsure, say N.
  603. config GPIO_DA9052
  604. tristate "Dialog DA9052 GPIO"
  605. depends on PMIC_DA9052
  606. help
  607. Say yes here to enable the GPIO driver for the DA9052 chip.
  608. config GPIO_DA9055
  609. tristate "Dialog Semiconductor DA9055 GPIO"
  610. depends on MFD_DA9055
  611. help
  612. Say yes here to enable the GPIO driver for the DA9055 chip.
  613. The Dialog DA9055 PMIC chip has 3 GPIO pins that can be
  614. be controller by this driver.
  615. If driver is built as a module it will be called gpio-da9055.
  616. config GPIO_DLN2
  617. tristate "Diolan DLN2 GPIO support"
  618. depends on MFD_DLN2
  619. select GPIOLIB_IRQCHIP
  620. help
  621. Select this option to enable GPIO driver for the Diolan DLN2
  622. board.
  623. This driver can also be built as a module. If so, the module
  624. will be called gpio-dln2.
  625. config GPIO_JANZ_TTL
  626. tristate "Janz VMOD-TTL Digital IO Module"
  627. depends on MFD_JANZ_CMODIO
  628. help
  629. This enables support for the Janz VMOD-TTL Digital IO module.
  630. This driver provides support for driving the pins in output
  631. mode only. Input mode is not supported.
  632. config GPIO_KEMPLD
  633. tristate "Kontron ETX / COMexpress GPIO"
  634. depends on MFD_KEMPLD
  635. help
  636. This enables support for the PLD GPIO interface on some Kontron ETX
  637. and COMexpress (ETXexpress) modules.
  638. This driver can also be built as a module. If so, the module will be
  639. called gpio-kempld.
  640. config GPIO_LP3943
  641. tristate "TI/National Semiconductor LP3943 GPIO expander"
  642. depends on MFD_LP3943
  643. help
  644. GPIO driver for LP3943 MFD.
  645. LP3943 can be used as a GPIO expander which provides up to 16 GPIOs.
  646. Open drain outputs are required for this usage.
  647. config GPIO_MSIC
  648. bool "Intel MSIC mixed signal gpio support"
  649. depends on MFD_INTEL_MSIC
  650. help
  651. Enable support for GPIO on intel MSIC controllers found in
  652. intel MID devices
  653. config GPIO_PALMAS
  654. bool "TI PALMAS series PMICs GPIO"
  655. depends on MFD_PALMAS
  656. help
  657. Select this option to enable GPIO driver for the TI PALMAS
  658. series chip family.
  659. config GPIO_RC5T583
  660. bool "RICOH RC5T583 GPIO"
  661. depends on MFD_RC5T583
  662. help
  663. Select this option to enable GPIO driver for the Ricoh RC5T583
  664. chip family.
  665. This driver provides the support for driving/reading the gpio pins
  666. of RC5T583 device through standard gpio library.
  667. config GPIO_STMPE
  668. bool "STMPE GPIOs"
  669. depends on MFD_STMPE
  670. depends on OF_GPIO
  671. select GPIOLIB_IRQCHIP
  672. help
  673. This enables support for the GPIOs found on the STMPE I/O
  674. Expanders.
  675. config GPIO_TC3589X
  676. bool "TC3589X GPIOs"
  677. depends on MFD_TC3589X
  678. depends on OF_GPIO
  679. select GPIOLIB_IRQCHIP
  680. help
  681. This enables support for the GPIOs found on the TC3589X
  682. I/O Expander.
  683. config GPIO_TIMBERDALE
  684. bool "Support for timberdale GPIO IP"
  685. depends on MFD_TIMBERDALE
  686. ---help---
  687. Add support for the GPIO IP in the timberdale FPGA.
  688. config GPIO_TPS6586X
  689. bool "TPS6586X GPIO"
  690. depends on MFD_TPS6586X
  691. help
  692. Select this option to enable GPIO driver for the TPS6586X
  693. chip family.
  694. config GPIO_TPS65910
  695. bool "TPS65910 GPIO"
  696. depends on MFD_TPS65910
  697. help
  698. Select this option to enable GPIO driver for the TPS65910
  699. chip family.
  700. config GPIO_TPS65912
  701. tristate "TI TPS65912 GPIO"
  702. depends on (MFD_TPS65912_I2C || MFD_TPS65912_SPI)
  703. help
  704. This driver supports TPS65912 gpio chip
  705. config GPIO_TWL4030
  706. tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
  707. depends on TWL4030_CORE
  708. help
  709. Say yes here to access the GPIO signals of various multi-function
  710. power management chips from Texas Instruments.
  711. config GPIO_TWL6040
  712. tristate "TWL6040 GPO"
  713. depends on TWL6040_CORE
  714. help
  715. Say yes here to access the GPO signals of twl6040
  716. audio chip from Texas Instruments.
  717. config GPIO_UCB1400
  718. tristate "Philips UCB1400 GPIO"
  719. depends on UCB1400_CORE
  720. help
  721. This enables support for the Philips UCB1400 GPIO pins.
  722. The UCB1400 is an AC97 audio codec.
  723. config GPIO_WM831X
  724. tristate "WM831x GPIOs"
  725. depends on MFD_WM831X
  726. help
  727. Say yes here to access the GPIO signals of WM831x power management
  728. chips from Wolfson Microelectronics.
  729. config GPIO_WM8350
  730. tristate "WM8350 GPIOs"
  731. depends on MFD_WM8350
  732. help
  733. Say yes here to access the GPIO signals of WM8350 power management
  734. chips from Wolfson Microelectronics.
  735. config GPIO_WM8994
  736. tristate "WM8994 GPIOs"
  737. depends on MFD_WM8994
  738. help
  739. Say yes here to access the GPIO signals of WM8994 audio hub
  740. CODECs from Wolfson Microelectronics.
  741. endmenu
  742. menu "PCI GPIO expanders"
  743. depends on PCI
  744. config GPIO_AMD8111
  745. tristate "AMD 8111 GPIO driver"
  746. depends on PCI
  747. help
  748. The AMD 8111 south bridge contains 32 GPIO pins which can be used.
  749. Note, that usually system firmware/ACPI handles GPIO pins on their
  750. own and users might easily break their systems with uncarefull usage
  751. of this driver!
  752. If unsure, say N
  753. config GPIO_BT8XX
  754. tristate "BT8XX GPIO abuser"
  755. depends on PCI && VIDEO_BT848=n
  756. help
  757. The BT8xx frame grabber chip has 24 GPIO pins that can be abused
  758. as a cheap PCI GPIO card.
  759. This chip can be found on Miro, Hauppauge and STB TV-cards.
  760. The card needs to be physically altered for using it as a
  761. GPIO card. For more information on how to build a GPIO card
  762. from a BT8xx TV card, see the documentation file at
  763. Documentation/bt8xxgpio.txt
  764. If unsure, say N.
  765. config GPIO_INTEL_MID
  766. bool "Intel Mid GPIO support"
  767. depends on PCI && X86
  768. select GPIOLIB_IRQCHIP
  769. help
  770. Say Y here to support Intel Mid GPIO.
  771. config GPIO_ML_IOH
  772. tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
  773. depends on PCI
  774. select GENERIC_IRQ_CHIP
  775. help
  776. ML7213 is companion chip for Intel Atom E6xx series.
  777. This driver can be used for OKI SEMICONDUCTOR ML7213 IOH(Input/Output
  778. Hub) which is for IVI(In-Vehicle Infotainment) use.
  779. This driver can access the IOH's GPIO device.
  780. config GPIO_PCH
  781. tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7223/ML7831) GPIO"
  782. depends on PCI && (X86_32 || COMPILE_TEST)
  783. select GENERIC_IRQ_CHIP
  784. help
  785. This driver is for PCH(Platform controller Hub) GPIO of Intel Topcliff
  786. which is an IOH(Input/Output Hub) for x86 embedded processor.
  787. This driver can access PCH GPIO device.
  788. This driver also can be used for LAPIS Semiconductor IOH(Input/
  789. Output Hub), ML7223 and ML7831.
  790. ML7223 IOH is for MP(Media Phone) use.
  791. ML7831 IOH is for general purpose use.
  792. ML7223/ML7831 is companion chip for Intel Atom E6xx series.
  793. ML7223/ML7831 is completely compatible for Intel EG20T PCH.
  794. config GPIO_RDC321X
  795. tristate "RDC R-321x GPIO support"
  796. depends on PCI
  797. select MFD_CORE
  798. select MFD_RDC321X
  799. help
  800. Support for the RDC R321x SoC GPIOs over southbridge
  801. PCI configuration space.
  802. config GPIO_SODAVILLE
  803. bool "Intel Sodaville GPIO support"
  804. depends on X86 && PCI && OF
  805. select GPIO_GENERIC
  806. select GENERIC_IRQ_CHIP
  807. help
  808. Say Y here to support Intel Sodaville GPIO.
  809. endmenu
  810. menu "SPI GPIO expanders"
  811. depends on SPI_MASTER
  812. config GPIO_74X164
  813. tristate "74x164 serial-in/parallel-out 8-bits shift register"
  814. depends on SPI_MASTER && OF
  815. help
  816. Driver for 74x164 compatible serial-in/parallel-out 8-outputs
  817. shift registers. This driver can be used to provide access
  818. to more gpio outputs.
  819. config GPIO_MAX7301
  820. tristate "Maxim MAX7301 GPIO expander"
  821. depends on SPI_MASTER
  822. select GPIO_MAX730X
  823. help
  824. GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
  825. config GPIO_MCP23S08
  826. tristate "Microchip MCP23xxx I/O expander"
  827. depends on (SPI_MASTER && !I2C) || I2C
  828. help
  829. SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
  830. I/O expanders.
  831. This provides a GPIO interface supporting inputs and outputs.
  832. The I2C versions of the chips can be used as interrupt-controller.
  833. config GPIO_MC33880
  834. tristate "Freescale MC33880 high-side/low-side switch"
  835. depends on SPI_MASTER
  836. help
  837. SPI driver for Freescale MC33880 high-side/low-side switch.
  838. This provides GPIO interface supporting inputs and outputs.
  839. endmenu
  840. menu "USB GPIO expanders"
  841. depends on USB
  842. config GPIO_VIPERBOARD
  843. tristate "Viperboard GPIO a & b support"
  844. depends on MFD_VIPERBOARD && USB
  845. help
  846. Say yes here to access the GPIO signals of Nano River
  847. Technologies Viperboard. There are two GPIO chips on the
  848. board: gpioa and gpiob.
  849. See viperboard API specification and Nano
  850. River Tech's viperboard.h for detailed meaning
  851. of the module parameters.
  852. endmenu
  853. endif