xref: /linux/drivers/gpio/Kconfig (revision d143493c01b7fc3a9b9369a795e20329561222c5)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# GPIO infrastructure and drivers
4#
5
6config ARCH_HAVE_CUSTOM_GPIO_H
7	bool
8	help
9	  Selecting this config option from the architecture Kconfig allows
10	  the architecture to provide a custom asm/gpio.h implementation
11	  overriding the default implementations.  New uses of this are
12	  strongly discouraged.
13
14menuconfig GPIOLIB
15	bool "GPIO Support"
16	help
17	  This enables GPIO support through the generic GPIO library.
18	  You only need to enable this, if you also want to enable
19	  one or more of the GPIO drivers below.
20
21	  If unsure, say N.
22
23if GPIOLIB
24
25config GPIOLIB_FASTPATH_LIMIT
26	int "Maximum number of GPIOs for fast path"
27	range 32 512
28	default 512
29	help
30	  This adjusts the point at which certain APIs will switch from
31	  using a stack allocated buffer to a dynamically allocated buffer.
32
33	  You shouldn't need to change this unless you really need to
34	  optimize either stack space or performance. Change this carefully
35	  since setting an incorrect value could cause stack corruption.
36
37config OF_GPIO
38	def_bool y
39	depends on OF
40	depends on HAS_IOMEM
41
42config GPIO_ACPI
43	def_bool y
44	depends on ACPI
45
46config GPIOLIB_IRQCHIP
47	select IRQ_DOMAIN
48	bool
49
50config 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
61config GPIO_SYSFS
62	bool "/sys/class/gpio/... (sysfs interface)"
63	depends on SYSFS
64	help
65	  Say Y here to add the legacy sysfs interface for GPIOs.
66
67	  This ABI is deprecated. If you want to use GPIO from userspace,
68	  use the character device /dev/gpiochipN with the appropriate
69	  ioctl() operations instead.
70
71config GPIO_CDEV
72	bool
73	prompt "Character device (/dev/gpiochipN) support" if EXPERT
74	default y
75	help
76	  Say Y here to add the character device /dev/gpiochipN interface
77	  for GPIOs. The character device allows userspace to control GPIOs
78	  using ioctl() operations.
79
80	  Only say N if you are sure that the GPIO character device is not
81	  required.
82
83	  If unsure, say Y.
84
85config GPIO_GENERIC
86	depends on HAS_IOMEM # Only for IOMEM drivers
87	tristate
88
89config GPIO_REGMAP
90	depends on REGMAP
91	tristate
92
93# put drivers in the right section, in alphabetical order
94
95# This symbol is selected by both I2C and SPI expanders
96config GPIO_MAX730X
97	tristate
98
99menu "Memory mapped GPIO drivers"
100	depends on HAS_IOMEM
101
102config GPIO_74XX_MMIO
103	tristate "GPIO driver for 74xx-ICs with MMIO access"
104	depends on OF_GPIO
105	select GPIO_GENERIC
106	help
107	  Say yes here to support GPIO functionality for 74xx-compatible ICs
108	  with MMIO access. Compatible models include:
109	    1 bit:	741G125 (Input), 741G74 (Output)
110	    2 bits:	742G125 (Input), 7474 (Output)
111	    4 bits:	74125 (Input), 74175 (Output)
112	    6 bits:	74365 (Input), 74174 (Output)
113	    8 bits:	74244 (Input), 74273 (Output)
114	    16 bits:	741624 (Input), 7416374 (Output)
115
116config GPIO_ALTERA
117	tristate "Altera GPIO"
118	depends on OF_GPIO
119	select GPIOLIB_IRQCHIP
120	help
121	  Say Y or M here to build support for the Altera PIO device.
122
123	  If driver is built as a module it will be called gpio-altera.
124
125config GPIO_AMDPT
126	tristate "AMD Promontory GPIO support"
127	depends on ACPI
128	select GPIO_GENERIC
129	help
130	  driver for GPIO functionality on Promontory IOHub
131	  Require ACPI ASL code to enumerate as a platform device.
132
133config GPIO_ASPEED
134	tristate "Aspeed GPIO support"
135	depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO
136	select GPIOLIB_IRQCHIP
137	help
138	  Say Y here to support Aspeed AST2400 and AST2500 GPIO controllers.
139
140config GPIO_ASPEED_SGPIO
141	bool "Aspeed SGPIO support"
142	depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO
143	select GPIO_GENERIC
144	select GPIOLIB_IRQCHIP
145	help
146	  Say Y here to support Aspeed AST2500 SGPIO functionality.
147
148config GPIO_ATH79
149	tristate "Atheros AR71XX/AR724X/AR913X GPIO support"
150	default y if ATH79
151	depends on ATH79 || COMPILE_TEST
152	select GPIO_GENERIC
153	select GPIOLIB_IRQCHIP
154	help
155	  Select this option to enable GPIO driver for
156	  Atheros AR71XX/AR724X/AR913X SoC devices.
157
158config GPIO_RASPBERRYPI_EXP
159	tristate "Raspberry Pi 3 GPIO Expander"
160	default RASPBERRYPI_FIRMWARE
161	depends on OF_GPIO
162	# Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only
163	# happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE.
164	depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
165	help
166	  Turn on GPIO support for the expander on Raspberry Pi 3 boards, using
167	  the firmware mailbox to communicate with VideoCore on BCM283x chips.
168
169config GPIO_BCM_KONA
170	bool "Broadcom Kona GPIO"
171	depends on OF_GPIO && (ARCH_BCM_MOBILE || COMPILE_TEST)
172	help
173	  Turn on GPIO support for Broadcom "Kona" chips.
174
175config GPIO_BCM_XGS_IPROC
176	tristate "BRCM XGS iProc GPIO support"
177	depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)
178	select GPIO_GENERIC
179	select GPIOLIB_IRQCHIP
180	default ARCH_BCM_IPROC
181	help
182	  Say yes here to enable GPIO support for Broadcom XGS iProc SoCs.
183
184config GPIO_BRCMSTB
185	tristate "BRCMSTB GPIO support"
186	default y if (ARCH_BRCMSTB || BMIPS_GENERIC)
187	depends on OF_GPIO && (ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST)
188	select GPIO_GENERIC
189	select IRQ_DOMAIN
190	help
191	  Say yes here to enable GPIO support for Broadcom STB (BCM7XXX) SoCs.
192
193config GPIO_CADENCE
194	tristate "Cadence GPIO support"
195	depends on OF_GPIO
196	select GPIO_GENERIC
197	select GPIOLIB_IRQCHIP
198	help
199	  Say yes here to enable support for Cadence GPIO controller.
200
201config GPIO_CLPS711X
202	tristate "CLPS711X GPIO support"
203	depends on ARCH_CLPS711X || COMPILE_TEST
204	select GPIO_GENERIC
205	help
206	  Say yes here to support GPIO on CLPS711X SoCs.
207
208config GPIO_DAVINCI
209	bool "TI Davinci/Keystone GPIO support"
210	default y if ARCH_DAVINCI
211	depends on (ARM || ARM64) && (ARCH_DAVINCI || ARCH_KEYSTONE || ARCH_K3)
212	help
213	  Say yes here to enable GPIO support for TI Davinci/Keystone SoCs.
214
215config GPIO_DWAPB
216	tristate "Synopsys DesignWare APB GPIO driver"
217	select GPIO_GENERIC
218	select GPIOLIB_IRQCHIP
219	help
220	  Say Y or M here to build support for the Synopsys DesignWare APB
221	  GPIO block.
222
223config GPIO_EIC_SPRD
224	tristate "Spreadtrum EIC support"
225	depends on ARCH_SPRD || COMPILE_TEST
226	depends on OF_GPIO
227	select GPIOLIB_IRQCHIP
228	help
229	  Say yes here to support Spreadtrum EIC device.
230
231config GPIO_EM
232	tristate "Emma Mobile GPIO"
233	depends on (ARCH_EMEV2 || COMPILE_TEST) && OF_GPIO
234	help
235	  Say yes here to support GPIO on Renesas Emma Mobile SoCs.
236
237config GPIO_EP93XX
238	def_bool y
239	depends on ARCH_EP93XX
240	select GPIO_GENERIC
241	select GPIOLIB_IRQCHIP
242
243config GPIO_EXAR
244	tristate "Support for GPIO pins on XR17V352/354/358"
245	depends on SERIAL_8250_EXAR
246	help
247	  Selecting this option will enable handling of GPIO pins present
248	  on Exar XR17V352/354/358 chips.
249
250config GPIO_GE_FPGA
251	bool "GE FPGA based GPIO"
252	depends on GE_FPGA
253	select GPIO_GENERIC
254	help
255	  Support for common GPIO functionality provided on some GE Single Board
256	  Computers.
257
258	  This driver provides basic support (configure as input or output, read
259	  and write pin state) for GPIO implemented in a number of GE single
260	  board computers.
261
262config GPIO_FTGPIO010
263	bool "Faraday FTGPIO010 GPIO"
264	depends on OF_GPIO
265	select GPIO_GENERIC
266	select GPIOLIB_IRQCHIP
267	default (ARCH_GEMINI || ARCH_MOXART)
268	help
269	  Support for common GPIOs from the Faraday FTGPIO010 IP core, found in
270	  Cortina systems Gemini platforms, Moxa ART and others.
271
272config GPIO_GENERIC_PLATFORM
273	tristate "Generic memory-mapped GPIO controller support (MMIO platform device)"
274	select GPIO_GENERIC
275	help
276	  Say yes here to support basic platform_device memory-mapped GPIO controllers.
277
278config GPIO_GRGPIO
279	tristate "Aeroflex Gaisler GRGPIO support"
280	depends on OF_GPIO
281	select GPIO_GENERIC
282	select IRQ_DOMAIN
283	help
284	  Select this to support Aeroflex Gaisler GRGPIO cores from the GRLIB
285	  VHDL IP core library.
286
287config GPIO_HLWD
288	tristate "Nintendo Wii (Hollywood) GPIO"
289	depends on OF_GPIO
290	select GPIO_GENERIC
291	select GPIOLIB_IRQCHIP
292	help
293	  Select this to support the GPIO controller of the Nintendo Wii.
294
295	  If unsure, say N.
296
297config GPIO_ICH
298	tristate "Intel ICH GPIO"
299	depends on PCI && X86
300	select MFD_CORE
301	select LPC_ICH
302	help
303	  Say yes here to support the GPIO functionality of a number of Intel
304	  ICH-based chipsets.  Currently supported devices: ICH6, ICH7, ICH8
305	  ICH9, ICH10, Series 5/3400 (eg Ibex Peak), Series 6/C200 (eg
306	  Cougar Point), NM10 (Tiger Point), and 3100 (Whitmore Lake).
307
308	  If unsure, say N.
309
310config GPIO_IOP
311	tristate "Intel IOP GPIO"
312	depends on ARCH_IOP32X || COMPILE_TEST
313	select GPIO_GENERIC
314	help
315	  Say yes here to support the GPIO functionality of a number of Intel
316	  IOP32X or IOP33X.
317
318	  If unsure, say N.
319
320config GPIO_IXP4XX
321	bool "Intel IXP4xx GPIO"
322	depends on ARM # For <asm/mach-types.h>
323	depends on ARCH_IXP4XX
324	select GPIO_GENERIC
325	select GPIOLIB_IRQCHIP
326	select IRQ_DOMAIN_HIERARCHY
327	help
328	  Say yes here to support the GPIO functionality of a number of Intel
329	  IXP4xx series of chips.
330
331	  If unsure, say N.
332config GPIO_LOGICVC
333	tristate "Xylon LogiCVC GPIO support"
334	depends on MFD_SYSCON && OF
335	help
336	  Say yes here to support GPIO functionality of the Xylon LogiCVC
337	  programmable logic block.
338
339config GPIO_LOONGSON
340	bool "Loongson-2/3 GPIO support"
341	depends on CPU_LOONGSON2EF || CPU_LOONGSON64
342	help
343	  driver for GPIO functionality on Loongson-2F/3A/3B processors.
344
345config GPIO_LPC18XX
346	tristate "NXP LPC18XX/43XX GPIO support"
347	default y if ARCH_LPC18XX
348	depends on OF_GPIO && (ARCH_LPC18XX || COMPILE_TEST)
349	select IRQ_DOMAIN_HIERARCHY
350	help
351	  Select this option to enable GPIO driver for
352	  NXP LPC18XX/43XX devices.
353
354config GPIO_LPC32XX
355	tristate "NXP LPC32XX GPIO support"
356	depends on OF_GPIO && (ARCH_LPC32XX || COMPILE_TEST)
357	help
358	  Select this option to enable GPIO driver for
359	  NXP LPC32XX devices.
360
361config GPIO_MB86S7X
362	tristate "GPIO support for Fujitsu MB86S7x Platforms"
363	help
364	  Say yes here to support the GPIO controller in Fujitsu MB86S70 SoCs.
365
366config GPIO_MENZ127
367	tristate "MEN 16Z127 GPIO support"
368	depends on MCB
369	select GPIO_GENERIC
370	help
371	  Say yes here to support the MEN 16Z127 GPIO Controller
372
373config GPIO_MM_LANTIQ
374	bool "Lantiq Memory mapped GPIOs"
375	depends on LANTIQ && SOC_XWAY
376	help
377	  This enables support for memory mapped GPIOs on the External Bus Unit
378	  (EBU) found on Lantiq SoCs. The gpios are output only as they are
379	  created by attaching a 16bit latch to the bus.
380
381config GPIO_MPC5200
382	def_bool y
383	depends on PPC_MPC52xx
384
385config GPIO_MPC8XXX
386	bool "MPC512x/MPC8xxx/QorIQ GPIO support"
387	depends on PPC_MPC512x || PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || \
388		   FSL_SOC_BOOKE || PPC_86xx || ARCH_LAYERSCAPE || ARM || \
389		   COMPILE_TEST
390	select GPIO_GENERIC
391	select IRQ_DOMAIN
392	help
393	  Say Y here if you're going to use hardware that connects to the
394	  MPC512x/831x/834x/837x/8572/8610/QorIQ GPIOs.
395
396config GPIO_MT7621
397	bool "Mediatek MT7621 GPIO Support"
398	depends on SOC_MT7620 || SOC_MT7621 || COMPILE_TEST
399	depends on OF_GPIO
400	select GPIO_GENERIC
401	select GPIOLIB_IRQCHIP
402	help
403	  Say yes here to support the Mediatek MT7621 SoC GPIO device
404
405config GPIO_MVEBU
406	def_bool y
407	depends on PLAT_ORION || ARCH_MVEBU
408	depends on OF_GPIO
409	select GENERIC_IRQ_CHIP
410	select REGMAP_MMIO
411
412config GPIO_MXC
413	tristate "i.MX GPIO support"
414	depends on ARCH_MXC || COMPILE_TEST
415	select GPIO_GENERIC
416	select GENERIC_IRQ_CHIP
417
418config GPIO_MXS
419	def_bool y
420	depends on ARCH_MXS || COMPILE_TEST
421	select GPIO_GENERIC
422	select GENERIC_IRQ_CHIP
423
424config GPIO_OCTEON
425	tristate "Cavium OCTEON GPIO"
426	depends on CAVIUM_OCTEON_SOC
427	default y
428	help
429	  Say yes here to support the on-chip GPIO lines on the OCTEON
430	  family of SOCs.
431
432config GPIO_OMAP
433	tristate "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
434	default y if ARCH_OMAP
435	depends on ARM
436	select GENERIC_IRQ_CHIP
437	select GPIOLIB_IRQCHIP
438	help
439	  Say yes here to enable GPIO support for TI OMAP SoCs.
440
441config GPIO_PL061
442	tristate "PrimeCell PL061 GPIO support"
443	depends on ARM_AMBA
444	select IRQ_DOMAIN
445	select GPIOLIB_IRQCHIP
446	help
447	  Say yes here to support the PrimeCell PL061 GPIO device
448
449config GPIO_PMIC_EIC_SPRD
450	tristate "Spreadtrum PMIC EIC support"
451	depends on MFD_SC27XX_PMIC || COMPILE_TEST
452	depends on OF_GPIO
453	select GPIOLIB_IRQCHIP
454	help
455	  Say yes here to support Spreadtrum PMIC EIC device.
456
457config GPIO_PXA
458	bool "PXA GPIO support"
459	depends on ARCH_PXA || ARCH_MMP || COMPILE_TEST
460	help
461	  Say yes here to support the PXA GPIO device
462
463config GPIO_RCAR
464	tristate "Renesas R-Car GPIO"
465	depends on ARCH_RENESAS || COMPILE_TEST
466	select GPIOLIB_IRQCHIP
467	help
468	  Say yes here to support GPIO on Renesas R-Car SoCs.
469
470config GPIO_RDA
471	bool "RDA Micro GPIO controller support"
472	depends on ARCH_RDA || COMPILE_TEST
473	depends on OF_GPIO
474	select GPIO_GENERIC
475	select GPIOLIB_IRQCHIP
476	help
477	  Say Y here to support RDA Micro GPIO controller.
478
479config GPIO_REG
480	bool
481	help
482	  A 32-bit single register GPIO fixed in/out implementation.  This
483	  can be used to represent any register as a set of GPIO signals.
484
485config GPIO_SAMA5D2_PIOBU
486	tristate "SAMA5D2 PIOBU GPIO support"
487	depends on MFD_SYSCON
488	depends on OF_GPIO
489	select GPIO_SYSCON
490	help
491	  Say yes here to use the PIOBU pins as GPIOs.
492
493	  PIOBU pins on the SAMA5D2 can be used as GPIOs.
494	  The difference from regular GPIOs is that they
495	  maintain their value during backup/self-refresh.
496
497config GPIO_SIFIVE
498	bool "SiFive GPIO support"
499	depends on OF_GPIO && IRQ_DOMAIN_HIERARCHY
500	select GPIO_GENERIC
501	select GPIOLIB_IRQCHIP
502	select REGMAP_MMIO
503	help
504	  Say yes here to support the GPIO device on SiFive SoCs.
505
506config GPIO_SIOX
507	tristate "SIOX GPIO support"
508	depends on SIOX
509	select GPIOLIB_IRQCHIP
510	help
511	  Say yes here to support SIOX I/O devices. These are units connected
512	  via a SIOX bus and have a number of fixed-direction I/O lines.
513
514config GPIO_SNPS_CREG
515	bool "Synopsys GPIO via CREG (Control REGisters) driver"
516	depends on ARC || COMPILE_TEST
517	depends on OF_GPIO
518	help
519	  This driver supports GPIOs via CREG on various Synopsys SoCs.
520	  This is a single-register MMIO GPIO driver for complex cases
521	  where only several fields in register belong to GPIO lines and
522	  each GPIO line owns a field with different length and on/off value.
523
524config GPIO_SPEAR_SPICS
525	bool "ST SPEAr13xx SPI Chip Select as GPIO support"
526	depends on PLAT_SPEAR
527	select GENERIC_IRQ_CHIP
528	help
529	  Say yes here to support ST SPEAr SPI Chip Select as GPIO device
530
531config GPIO_SPRD
532	tristate "Spreadtrum GPIO support"
533	depends on ARCH_SPRD || COMPILE_TEST
534	depends on OF_GPIO
535	select GPIOLIB_IRQCHIP
536	help
537	  Say yes here to support Spreadtrum GPIO device.
538
539config GPIO_STA2X11
540	bool "STA2x11/ConneXt GPIO support"
541	depends on MFD_STA2X11
542	select GENERIC_IRQ_CHIP
543	help
544	  Say yes here to support the STA2x11/ConneXt GPIO device.
545	  The GPIO module has 128 GPIO pins with alternate functions.
546
547config GPIO_STP_XWAY
548	bool "XWAY STP GPIOs"
549	depends on SOC_XWAY || COMPILE_TEST
550	depends on OF_GPIO
551	help
552	  This enables support for the Serial To Parallel (STP) unit found on
553	  XWAY SoC. The STP allows the SoC to drive a shift registers cascade,
554	  that can be up to 24 bit. This peripheral is aimed at driving leds.
555	  Some of the gpios/leds can be auto updated by the soc with dsl and
556	  phy status.
557
558config GPIO_SYSCON
559	tristate "GPIO based on SYSCON"
560	depends on MFD_SYSCON && OF
561	help
562	  Say yes here to support GPIO functionality though SYSCON driver.
563
564config GPIO_TB10X
565	bool
566	select GPIO_GENERIC
567	select GENERIC_IRQ_CHIP
568	select OF_GPIO
569
570config GPIO_TEGRA
571	bool "NVIDIA Tegra GPIO support"
572	default ARCH_TEGRA
573	depends on ARCH_TEGRA || COMPILE_TEST
574	depends on OF_GPIO
575	help
576	  Say yes here to support GPIO pins on NVIDIA Tegra SoCs.
577
578config GPIO_TEGRA186
579	tristate "NVIDIA Tegra186 GPIO support"
580	default ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC
581	depends on ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || COMPILE_TEST
582	depends on OF_GPIO
583	select GPIOLIB_IRQCHIP
584	select IRQ_DOMAIN_HIERARCHY
585	help
586	  Say yes here to support GPIO pins on NVIDIA Tegra186 SoCs.
587
588config GPIO_TS4800
589	tristate "TS-4800 DIO blocks and compatibles"
590	depends on OF_GPIO
591	depends on SOC_IMX51 || COMPILE_TEST
592	select GPIO_GENERIC
593	help
594	  This driver support TS-4800 FPGA GPIO controllers.
595
596config GPIO_THUNDERX
597	tristate "Cavium ThunderX/OCTEON-TX GPIO"
598	depends on ARCH_THUNDER || (64BIT && COMPILE_TEST)
599	depends on PCI_MSI
600	select GPIOLIB_IRQCHIP
601	select IRQ_DOMAIN_HIERARCHY
602	select IRQ_FASTEOI_HIERARCHY_HANDLERS
603	help
604	  Say yes here to support the on-chip GPIO lines on the ThunderX
605	  and OCTEON-TX families of SoCs.
606
607config GPIO_UNIPHIER
608	tristate "UniPhier GPIO support"
609	depends on ARCH_UNIPHIER || COMPILE_TEST
610	depends on OF_GPIO
611	select IRQ_DOMAIN_HIERARCHY
612	help
613	  Say yes here to support UniPhier GPIOs.
614
615config GPIO_VF610
616	def_bool y
617	depends on ARCH_MXC && SOC_VF610
618	select GPIOLIB_IRQCHIP
619	help
620	  Say yes here to support Vybrid vf610 GPIOs.
621
622config GPIO_VR41XX
623	tristate "NEC VR4100 series General-purpose I/O Uint support"
624	depends on CPU_VR41XX
625	help
626	  Say yes here to support the NEC VR4100 series General-purpose I/O Uint
627
628config GPIO_VX855
629	tristate "VIA VX855/VX875 GPIO"
630	depends on (X86 || COMPILE_TEST) && PCI
631	select MFD_CORE
632	select MFD_VX855
633	help
634	  Support access to the VX855/VX875 GPIO lines through the gpio library.
635
636	  This driver provides common support for accessing the device,
637	  additional drivers must be enabled in order to use the
638	  functionality of the device.
639
640config GPIO_WCD934X
641	tristate "Qualcomm Technologies Inc WCD9340/WCD9341 gpio controller driver"
642	depends on MFD_WCD934X && OF_GPIO
643	help
644         This driver is to supprot GPIO block found on the Qualcomm Technologies
645	 Inc WCD9340/WCD9341 Audio Codec.
646
647config GPIO_XGENE
648	bool "APM X-Gene GPIO controller support"
649	depends on ARM64 && OF_GPIO
650	help
651	  This driver is to support the GPIO block within the APM X-Gene SoC
652	  platform's generic flash controller. The GPIO pins are muxed with
653	  the generic flash controller's address and data pins. Say yes
654	  here to enable the GFC GPIO functionality.
655
656config GPIO_XGENE_SB
657	tristate "APM X-Gene GPIO standby controller support"
658	depends on (ARCH_XGENE || COMPILE_TEST)
659	select GPIO_GENERIC
660	select GPIOLIB_IRQCHIP
661	select IRQ_DOMAIN_HIERARCHY
662	help
663	  This driver supports the GPIO block within the APM X-Gene
664	  Standby Domain. Say yes here to enable the GPIO functionality.
665
666config GPIO_XILINX
667	tristate "Xilinx GPIO support"
668	help
669	  Say yes here to support the Xilinx FPGA GPIO device
670
671config GPIO_XLP
672	tristate "Netlogic XLP GPIO support"
673	depends on OF_GPIO && (CPU_XLP || ARCH_THUNDER2 || COMPILE_TEST)
674	select GPIOLIB_IRQCHIP
675	help
676	  This driver provides support for GPIO interface on Netlogic XLP MIPS64
677	  SoCs. Currently supported XLP variants are XLP8XX, XLP3XX, XLP2XX,
678	  XLP9XX and XLP5XX. The same GPIO controller block is also present in
679	  Cavium's ThunderX2 CN99XX SoCs.
680
681	  If unsure, say N.
682
683config GPIO_XTENSA
684	bool "Xtensa GPIO32 support"
685	depends on XTENSA
686	depends on HAVE_XTENSA_GPIO32
687	depends on !SMP
688	help
689	  Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)
690	  and EXPSTATE (output) ports
691
692config GPIO_ZEVIO
693	bool "LSI ZEVIO SoC memory mapped GPIOs"
694	depends on ARM && OF_GPIO
695	help
696	  Say yes here to support the GPIO controller in LSI ZEVIO SoCs.
697
698config GPIO_ZYNQ
699	tristate "Xilinx Zynq GPIO support"
700	depends on ARCH_ZYNQ || ARCH_ZYNQMP
701	select GPIOLIB_IRQCHIP
702	help
703	  Say yes here to support Xilinx Zynq GPIO controller.
704
705config GPIO_ZX
706	bool "ZTE ZX GPIO support"
707	depends on ARCH_ZX || COMPILE_TEST
708	select GPIOLIB_IRQCHIP
709	help
710	  Say yes here to support the GPIO device on ZTE ZX SoCs.
711
712config GPIO_LOONGSON1
713	tristate "Loongson1 GPIO support"
714	depends on MACH_LOONGSON32
715	select GPIO_GENERIC
716	help
717	  Say Y or M here to support GPIO on Loongson1 SoCs.
718
719config GPIO_AMD_FCH
720	tristate "GPIO support for AMD Fusion Controller Hub (G-series SOCs)"
721	help
722	  This option enables driver for GPIO on AMDs Fusion Controller Hub,
723	  as found on G-series SOCs (eg. GX-412TC)
724
725	  Note: This driver doesn't registers itself automatically, as it
726	  needs to be provided with platform specific configuration.
727	  (See eg. CONFIG_PCENGINES_APU2.)
728endmenu
729
730menu "Port-mapped I/O GPIO drivers"
731	depends on X86 # Unconditional I/O space access
732
733config GPIO_104_DIO_48E
734	tristate "ACCES 104-DIO-48E GPIO support"
735	depends on PC104
736	select ISA_BUS_API
737	select GPIOLIB_IRQCHIP
738	help
739	  Enables GPIO support for the ACCES 104-DIO-48E series (104-DIO-48E,
740	  104-DIO-24E). The base port addresses for the devices may be
741	  configured via the base module parameter. The interrupt line numbers
742	  for the devices may be configured via the irq module parameter.
743
744config GPIO_104_IDIO_16
745	tristate "ACCES 104-IDIO-16 GPIO support"
746	depends on PC104
747	select ISA_BUS_API
748	select GPIOLIB_IRQCHIP
749	help
750	  Enables GPIO support for the ACCES 104-IDIO-16 family (104-IDIO-16,
751	  104-IDIO-16E, 104-IDO-16, 104-IDIO-8, 104-IDIO-8E, 104-IDO-8). The
752	  base port addresses for the devices may be configured via the base
753	  module parameter. The interrupt line numbers for the devices may be
754	  configured via the irq module parameter.
755
756config GPIO_104_IDI_48
757	tristate "ACCES 104-IDI-48 GPIO support"
758	depends on PC104
759	select ISA_BUS_API
760	select GPIOLIB_IRQCHIP
761	help
762	  Enables GPIO support for the ACCES 104-IDI-48 family (104-IDI-48A,
763	  104-IDI-48AC, 104-IDI-48B, 104-IDI-48BC). The base port addresses for
764	  the devices may be configured via the base module parameter. The
765	  interrupt line numbers for the devices may be configured via the irq
766	  module parameter.
767
768config GPIO_F7188X
769	tristate "F71869, F71869A, F71882FG, F71889F and F81866 GPIO support"
770	help
771	  This option enables support for GPIOs found on Fintek Super-I/O
772	  chips F71869, F71869A, F71882FG, F71889F and F81866.
773
774	  To compile this driver as a module, choose M here: the module will
775	  be called f7188x-gpio.
776
777config GPIO_GPIO_MM
778	tristate "Diamond Systems GPIO-MM GPIO support"
779	depends on PC104
780	select ISA_BUS_API
781	help
782	  Enables GPIO support for the Diamond Systems GPIO-MM and GPIO-MM-12.
783
784	  The Diamond Systems GPIO-MM device features 48 lines of digital I/O
785	  via the emulation of dual 82C55A PPI chips. This driver provides GPIO
786	  support for these 48 channels of digital I/O.
787
788	  The base port addresses for the devices may be configured via the base
789	  array module parameter.
790
791config GPIO_IT87
792	tristate "IT87xx GPIO support"
793	help
794	  Say yes here to support GPIO functionality of IT87xx Super I/O chips.
795
796	  This driver is tested with ITE IT8728 and IT8732 Super I/O chips, and
797	  supports the IT8761E, IT8613, IT8620E, and IT8628E Super I/O chips as
798	  well.
799
800	  To compile this driver as a module, choose M here: the module will
801	  be called gpio_it87
802
803config GPIO_SCH
804	tristate "Intel SCH/TunnelCreek/Centerton/Quark X1000 GPIO"
805	depends on (X86 || COMPILE_TEST) && PCI
806	select MFD_CORE
807	select LPC_SCH
808	help
809	  Say yes here to support GPIO interface on Intel Poulsbo SCH,
810	  Intel Tunnel Creek processor, Intel Centerton processor or
811	  Intel Quark X1000 SoC.
812
813	  The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are
814	  powered by the core power rail and are turned off during sleep
815	  modes (S3 and higher). The remaining four GPIOs are powered by
816	  the Intel SCH suspend power supply. These GPIOs remain
817	  active during S3. The suspend powered GPIOs can be used to wake the
818	  system from the Suspend-to-RAM state.
819
820	  The Intel Tunnel Creek processor has 5 GPIOs powered by the
821	  core power rail and 9 from suspend power supply.
822
823	  The Intel Centerton processor has a total of 30 GPIO pins.
824	  Twenty-one are powered by the core power rail and 9 from the
825	  suspend power supply.
826
827	  The Intel Quark X1000 SoC has 2 GPIOs powered by the core
828	  power well and 6 from the suspend power well.
829
830config GPIO_SCH311X
831	tristate "SMSC SCH311x SuperI/O GPIO"
832	help
833	  Driver to enable the GPIOs found on SMSC SMSC SCH3112, SCH3114 and
834	  SCH3116 "Super I/O" chipsets.
835
836	  To compile this driver as a module, choose M here: the module will
837	  be called gpio-sch311x.
838
839config GPIO_TS5500
840	tristate "TS-5500 DIO blocks and compatibles"
841	depends on TS5500 || COMPILE_TEST
842	help
843	  This driver supports Digital I/O exposed by pin blocks found on some
844	  Technologic Systems platforms. It includes, but is not limited to, 3
845	  blocks of the TS-5500: DIO1, DIO2 and the LCD port, and the TS-5600
846	  LCD port.
847
848config GPIO_WINBOND
849	tristate "Winbond Super I/O GPIO support"
850	select ISA_BUS_API
851	help
852	  This option enables support for GPIOs found on Winbond Super I/O
853	  chips.
854	  Currently, only W83627UHG (also known as Nuvoton NCT6627UD) is
855	  supported.
856
857	  You will need to provide a module parameter "gpios", or a
858	  boot-time parameter "gpio_winbond.gpios" with a bitmask of GPIO
859	  ports to enable (bit 0 is GPIO1, bit 1 is GPIO2, etc.).
860
861	  To compile this driver as a module, choose M here: the module will
862	  be called gpio-winbond.
863
864config GPIO_WS16C48
865	tristate "WinSystems WS16C48 GPIO support"
866	select ISA_BUS_API
867	select GPIOLIB_IRQCHIP
868	help
869	  Enables GPIO support for the WinSystems WS16C48. The base port
870	  addresses for the devices may be configured via the base module
871	  parameter. The interrupt line numbers for the devices may be
872	  configured via the irq module parameter.
873
874endmenu
875
876menu "I2C GPIO expanders"
877	depends on I2C
878
879config GPIO_ADP5588
880	tristate "ADP5588 I2C GPIO expander"
881	help
882	  This option enables support for 18 GPIOs found
883	  on Analog Devices ADP5588 GPIO Expanders.
884
885config GPIO_ADP5588_IRQ
886	bool "Interrupt controller support for ADP5588"
887	depends on GPIO_ADP5588=y
888	select GPIOLIB_IRQCHIP
889	help
890	  Say yes here to enable the adp5588 to be used as an interrupt
891	  controller. It requires the driver to be built in the kernel.
892
893config GPIO_ADNP
894	tristate "Avionic Design N-bit GPIO expander"
895	depends on OF_GPIO
896	select GPIOLIB_IRQCHIP
897	help
898	  This option enables support for N GPIOs found on Avionic Design
899	  I2C GPIO expanders. The register space will be extended by powers
900	  of two, so the controller will need to accommodate for that. For
901	  example: if a controller provides 48 pins, 6 registers will be
902	  enough to represent all pins, but the driver will assume a
903	  register layout for 64 pins (8 registers).
904
905config GPIO_GW_PLD
906	tristate "Gateworks PLD GPIO Expander"
907	depends on OF_GPIO
908	help
909	  Say yes here to provide access to the Gateworks I2C PLD GPIO
910	  Expander. This is used at least on the Cambria GW2358-4.
911
912config GPIO_MAX7300
913	tristate "Maxim MAX7300 GPIO expander"
914	select GPIO_MAX730X
915	help
916	  GPIO driver for Maxim MAX7300 I2C-based GPIO expander.
917
918config GPIO_MAX732X
919	tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
920	help
921	  Say yes here to support the MAX7319, MAX7320-7327 series of I2C
922	  Port Expanders. Each IO port on these chips has a fixed role of
923	  Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
924	  Input and Output (designed by 'P'). The combinations are listed
925	  below:
926
927	  8 bits:       max7319 (8I), max7320 (8O), max7321 (8P),
928	                max7322 (4I4O), max7323 (4P4O)
929
930	  16 bits:      max7324 (8I8O), max7325 (8P8O),
931	                max7326 (4I12O), max7327 (4P12O)
932
933	  Board setup code must specify the model to use, and the start
934	  number for these GPIOs.
935
936config GPIO_MAX732X_IRQ
937	bool "Interrupt controller support for MAX732x"
938	depends on GPIO_MAX732X=y
939	select GPIOLIB_IRQCHIP
940	help
941	  Say yes here to enable the max732x to be used as an interrupt
942	  controller. It requires the driver to be built in the kernel.
943
944config GPIO_MC9S08DZ60
945	bool "MX35 3DS BOARD MC9S08DZ60 GPIO functions"
946	depends on I2C=y && MACH_MX35_3DS
947	help
948	  Select this to enable the MC9S08DZ60 GPIO driver
949
950config GPIO_PCA953X
951	tristate "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
952	select REGMAP_I2C
953	help
954	  Say yes here to provide access to several register-oriented
955	  SMBus I/O expanders, made mostly by NXP or TI.  Compatible
956	  models include:
957
958	  4 bits:       pca9536, pca9537
959
960	  8 bits:       max7310, max7315, pca6107, pca9534, pca9538, pca9554,
961	                pca9556, pca9557, pca9574, tca6408, tca9554, xra1202
962
963	  16 bits:      max7312, max7313, pca9535, pca9539, pca9555, pca9575,
964	                tca6416
965
966	  24 bits:      tca6424
967
968	  40 bits:      pca9505, pca9698
969
970config GPIO_PCA953X_IRQ
971	bool "Interrupt controller support for PCA953x"
972	depends on GPIO_PCA953X
973	select GPIOLIB_IRQCHIP
974	help
975	  Say yes here to enable the pca953x to be used as an interrupt
976	  controller. It requires the driver to be built in the kernel.
977
978config GPIO_PCA9570
979	tristate "PCA9570 4-Bit I2C GPO expander"
980	help
981	  Say yes here to enable the GPO driver for the NXP PCA9570 chip.
982
983	  To compile this driver as a module, choose M here: the module will
984	  be called gpio-pca9570.
985
986config GPIO_PCF857X
987	tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
988	select GPIOLIB_IRQCHIP
989	select IRQ_DOMAIN
990	help
991	  Say yes here to provide access to most "quasi-bidirectional" I2C
992	  GPIO expanders used for additional digital outputs or inputs.
993	  Most of these parts are from NXP, though TI is a second source for
994	  some of them.  Compatible models include:
995
996	  8 bits:   pcf8574, pcf8574a, pca8574, pca8574a,
997	            pca9670, pca9672, pca9674, pca9674a,
998	            max7328, max7329
999
1000	  16 bits:  pcf8575, pcf8575c, pca8575,
1001	            pca9671, pca9673, pca9675
1002
1003	  Your board setup code will need to declare the expanders in
1004	  use, and assign numbers to the GPIOs they expose.  Those GPIOs
1005	  can then be used from drivers and other kernel code, just like
1006	  other GPIOs, but only accessible from task contexts.
1007
1008	  This driver provides an in-kernel interface to those GPIOs using
1009	  platform-neutral GPIO calls.
1010
1011config GPIO_TPIC2810
1012	tristate "TPIC2810 8-Bit I2C GPO expander"
1013	help
1014	  Say yes here to enable the GPO driver for the TI TPIC2810 chip.
1015
1016	  To compile this driver as a module, choose M here: the module will
1017	  be called gpio-tpic2810.
1018
1019config GPIO_TS4900
1020	tristate "Technologic Systems FPGA I2C GPIO"
1021	depends on SOC_IMX6 || COMPILE_TEST
1022	select REGMAP_I2C
1023	help
1024	  Say yes here to enabled the GPIO driver for Technologic's FPGA core.
1025	  Series supported include TS-4100, TS-4900, TS-7970 and TS-7990.
1026
1027endmenu
1028
1029menu "MFD GPIO expanders"
1030
1031config GPIO_ADP5520
1032	tristate "GPIO Support for ADP5520 PMIC"
1033	depends on PMIC_ADP5520
1034	help
1035	  This option enables support for on-chip GPIO found
1036	  on Analog Devices ADP5520 PMICs.
1037
1038config GPIO_ALTERA_A10SR
1039	tristate "Altera Arria10 System Resource GPIO"
1040	depends on MFD_ALTERA_A10SR
1041	help
1042	  Driver for Arria10 Development Kit GPIO expansion which
1043	  includes reads of pushbuttons and DIP switches as well
1044	  as writes to LEDs.
1045
1046config GPIO_ARIZONA
1047	tristate "Wolfson Microelectronics Arizona class devices"
1048	depends on MFD_ARIZONA
1049	help
1050	  Support for GPIOs on Wolfson Arizona class devices.
1051
1052config GPIO_BD70528
1053	tristate "ROHM BD70528 GPIO support"
1054	depends on MFD_ROHM_BD70528
1055	help
1056	  Support for GPIOs on ROHM BD70528 PMIC. There are four GPIOs
1057	  available on the ROHM PMIC in total. The GPIOs can also
1058	  generate interrupts.
1059
1060	  This driver can also be built as a module. If so, the module
1061	  will be called gpio-bd70528.
1062
1063config GPIO_BD71828
1064	tristate "ROHM BD71828 GPIO support"
1065	depends on MFD_ROHM_BD71828
1066	help
1067	  Support for GPIOs on ROHM BD71828 PMIC. There are three GPIOs
1068	  available on the ROHM PMIC in total. The GPIOs are limited to
1069	  outputs only and pins must be configured to GPIO outputs by
1070	  OTP. Enable this only if you want to use these pins as outputs.
1071
1072	  This driver can also be built as a module. If so, the module
1073	  will be called gpio-bd71828.
1074
1075config GPIO_BD9571MWV
1076	tristate "ROHM BD9571 GPIO support"
1077	depends on MFD_BD9571MWV
1078	help
1079	  Support for GPIOs on ROHM BD9571 PMIC. There are two GPIOs
1080	  available on the ROHM PMIC in total, both of which can also
1081	  generate interrupts.
1082
1083	  This driver can also be built as a module. If so, the module
1084	  will be called gpio-bd9571mwv.
1085
1086config GPIO_CRYSTAL_COVE
1087	tristate "GPIO support for Crystal Cove PMIC"
1088	depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC
1089	select GPIOLIB_IRQCHIP
1090	help
1091	  Support for GPIO pins on Crystal Cove PMIC.
1092
1093	  Say Yes if you have a Intel SoC based tablet with Crystal Cove PMIC
1094	  inside.
1095
1096	  This driver can also be built as a module. If so, the module will be
1097	  called gpio-crystalcove.
1098
1099config GPIO_CS5535
1100	tristate "AMD CS5535/CS5536 GPIO support"
1101	depends on X86 || MIPS || COMPILE_TEST
1102	depends on MFD_CS5535
1103	help
1104	  The AMD CS5535 and CS5536 southbridges support 28 GPIO pins that
1105	  can be used for quite a number of things.  The CS5535/6 is found on
1106	  AMD Geode and Lemote Yeeloong devices.
1107
1108	  If unsure, say N.
1109
1110config GPIO_DA9052
1111	tristate "Dialog DA9052 GPIO"
1112	depends on PMIC_DA9052
1113	help
1114	  Say yes here to enable the GPIO driver for the DA9052 chip.
1115
1116config GPIO_DA9055
1117	tristate "Dialog Semiconductor DA9055 GPIO"
1118	depends on MFD_DA9055
1119	help
1120	  Say yes here to enable the GPIO driver for the DA9055 chip.
1121
1122	  The Dialog DA9055 PMIC chip has 3 GPIO pins that can be
1123	  be controller by this driver.
1124
1125	  If driver is built as a module it will be called gpio-da9055.
1126
1127config GPIO_DLN2
1128	tristate "Diolan DLN2 GPIO support"
1129	depends on MFD_DLN2
1130	select GPIOLIB_IRQCHIP
1131
1132	help
1133	  Select this option to enable GPIO driver for the Diolan DLN2
1134	  board.
1135
1136	  This driver can also be built as a module. If so, the module
1137	  will be called gpio-dln2.
1138
1139config HTC_EGPIO
1140	bool "HTC EGPIO support"
1141	depends on ARM
1142	help
1143	  This driver supports the CPLD egpio chip present on
1144	  several HTC phones.  It provides basic support for input
1145	  pins, output pins, and irqs.
1146
1147config GPIO_JANZ_TTL
1148	tristate "Janz VMOD-TTL Digital IO Module"
1149	depends on MFD_JANZ_CMODIO
1150	help
1151	  This enables support for the Janz VMOD-TTL Digital IO module.
1152	  This driver provides support for driving the pins in output
1153	  mode only. Input mode is not supported.
1154
1155config GPIO_KEMPLD
1156	tristate "Kontron ETX / COMexpress GPIO"
1157	depends on MFD_KEMPLD
1158	help
1159	  This enables support for the PLD GPIO interface on some Kontron ETX
1160	  and COMexpress (ETXexpress) modules.
1161
1162	  This driver can also be built as a module. If so, the module will be
1163	  called gpio-kempld.
1164
1165config GPIO_LP3943
1166	tristate "TI/National Semiconductor LP3943 GPIO expander"
1167	depends on MFD_LP3943
1168	help
1169	  GPIO driver for LP3943 MFD.
1170	  LP3943 can be used as a GPIO expander which provides up to 16 GPIOs.
1171	  Open drain outputs are required for this usage.
1172
1173config GPIO_LP873X
1174	tristate "TI LP873X GPO"
1175	depends on MFD_TI_LP873X
1176	help
1177	  This driver supports the GPO on TI Lp873x PMICs. 2 GPOs are present
1178	  on LP873X PMICs.
1179
1180	  This driver can also be built as a module. If so, the module will be
1181	  called gpio-lp873x.
1182
1183config GPIO_LP87565
1184	tristate "TI LP87565 GPIO"
1185	depends on MFD_TI_LP87565
1186	help
1187	  This driver supports the GPIO on TI Lp873565 PMICs. 3 GPIOs are present
1188	  on LP87565 PMICs.
1189
1190	  This driver can also be built as a module. If so, the module will be
1191	  called gpio-lp87565.
1192
1193config GPIO_MADERA
1194	tristate "Cirrus Logic Madera class codecs"
1195	depends on PINCTRL_MADERA
1196	help
1197	  Support for GPIOs on Cirrus Logic Madera class codecs.
1198
1199config GPIO_MAX77620
1200	tristate "GPIO support for PMIC MAX77620 and MAX20024"
1201	depends on MFD_MAX77620
1202	select GPIOLIB_IRQCHIP
1203	help
1204	  GPIO driver for MAX77620 and MAX20024 PMIC from Maxim Semiconductor.
1205	  MAX77620 PMIC has 8 pins that can be configured as GPIOs. The
1206	  driver also provides interrupt support for each of the gpios.
1207	  Say yes here to enable the max77620 to be used as gpio controller.
1208
1209config GPIO_MAX77650
1210	tristate "Maxim MAX77650/77651 GPIO support"
1211	depends on MFD_MAX77650
1212	help
1213	  GPIO driver for MAX77650/77651 PMIC from Maxim Semiconductor.
1214	  These chips have a single pin that can be configured as GPIO.
1215
1216config GPIO_MSIC
1217	bool "Intel MSIC mixed signal gpio support"
1218	depends on (X86 || COMPILE_TEST) && MFD_INTEL_MSIC
1219	help
1220	  Enable support for GPIO on intel MSIC controllers found in
1221	  intel MID devices
1222
1223config GPIO_PALMAS
1224	bool "TI PALMAS series PMICs GPIO"
1225	depends on MFD_PALMAS
1226	help
1227	  Select this option to enable GPIO driver for the TI PALMAS
1228	  series chip family.
1229
1230config GPIO_RC5T583
1231	bool "RICOH RC5T583 GPIO"
1232	depends on MFD_RC5T583
1233	help
1234	  Select this option to enable GPIO driver for the Ricoh RC5T583
1235	  chip family.
1236	  This driver provides the support for driving/reading the gpio pins
1237	  of RC5T583 device through standard gpio library.
1238
1239config GPIO_STMPE
1240	bool "STMPE GPIOs"
1241	depends on MFD_STMPE
1242	depends on OF_GPIO
1243	select GPIOLIB_IRQCHIP
1244	help
1245	  This enables support for the GPIOs found on the STMPE I/O
1246	  Expanders.
1247
1248config GPIO_TC3589X
1249	bool "TC3589X GPIOs"
1250	depends on MFD_TC3589X
1251	depends on OF_GPIO
1252	select GPIOLIB_IRQCHIP
1253	help
1254	  This enables support for the GPIOs found on the TC3589X
1255	  I/O Expander.
1256
1257config GPIO_TIMBERDALE
1258	bool "Support for timberdale GPIO IP"
1259	depends on MFD_TIMBERDALE
1260	help
1261	Add support for the GPIO IP in the timberdale FPGA.
1262
1263config GPIO_TPS65086
1264	tristate "TI TPS65086 GPO"
1265	depends on MFD_TPS65086
1266	help
1267	  This driver supports the GPO on TI TPS65086x PMICs.
1268
1269config GPIO_TPS65218
1270	tristate "TPS65218 GPIO"
1271	depends on MFD_TPS65218
1272	help
1273	  Select this option to enable GPIO driver for the TPS65218
1274	  chip family.
1275
1276config GPIO_TPS6586X
1277	bool "TPS6586X GPIO"
1278	depends on MFD_TPS6586X
1279	help
1280	  Select this option to enable GPIO driver for the TPS6586X
1281	  chip family.
1282
1283config GPIO_TPS65910
1284	bool "TPS65910 GPIO"
1285	depends on MFD_TPS65910
1286	help
1287	  Select this option to enable GPIO driver for the TPS65910
1288	  chip family.
1289
1290config GPIO_TPS65912
1291	tristate "TI TPS65912 GPIO"
1292	depends on MFD_TPS65912
1293	help
1294	  This driver supports TPS65912 gpio chip
1295
1296config GPIO_TPS68470
1297	bool "TPS68470 GPIO"
1298	depends on MFD_TPS68470
1299	help
1300	  Select this option to enable GPIO driver for the TPS68470
1301	  chip family.
1302	  There are 7 GPIOs and few sensor related GPIOs supported
1303	  by the TPS68470. While the 7 GPIOs can be configured as
1304	  input or output as appropriate, the sensor related GPIOs
1305	  are "output only" GPIOs.
1306
1307	  This driver config is bool, as the GPIO functionality
1308	  of the TPS68470 must be available before dependent
1309	  drivers are loaded.
1310
1311config GPIO_TQMX86
1312	tristate "TQ-Systems QTMX86 GPIO"
1313	depends on MFD_TQMX86 || COMPILE_TEST
1314	select GPIOLIB_IRQCHIP
1315	help
1316	  This driver supports GPIO on the TQMX86 IO controller.
1317
1318config GPIO_TWL4030
1319	tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
1320	depends on TWL4030_CORE
1321	help
1322	  Say yes here to access the GPIO signals of various multi-function
1323	  power management chips from Texas Instruments.
1324
1325config GPIO_TWL6040
1326	tristate "TWL6040 GPO"
1327	depends on TWL6040_CORE
1328	help
1329	  Say yes here to access the GPO signals of twl6040
1330	  audio chip from Texas Instruments.
1331
1332config GPIO_UCB1400
1333	tristate "Philips UCB1400 GPIO"
1334	depends on UCB1400_CORE
1335	help
1336	  This enables support for the Philips UCB1400 GPIO pins.
1337	  The UCB1400 is an AC97 audio codec.
1338
1339config GPIO_WHISKEY_COVE
1340	tristate "GPIO support for Whiskey Cove PMIC"
1341	depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC
1342	select GPIOLIB_IRQCHIP
1343	help
1344	  Support for GPIO pins on Whiskey Cove PMIC.
1345
1346	  Say Yes if you have a Intel SoC based tablet with Whiskey Cove PMIC
1347	  inside.
1348
1349	  This driver can also be built as a module. If so, the module will be
1350	  called gpio-wcove.
1351
1352config GPIO_WM831X
1353	tristate "WM831x GPIOs"
1354	depends on MFD_WM831X
1355	help
1356	  Say yes here to access the GPIO signals of WM831x power management
1357	  chips from Wolfson Microelectronics.
1358
1359config GPIO_WM8350
1360	tristate "WM8350 GPIOs"
1361	depends on MFD_WM8350
1362	help
1363	  Say yes here to access the GPIO signals of WM8350 power management
1364	  chips from Wolfson Microelectronics.
1365
1366config GPIO_WM8994
1367	tristate "WM8994 GPIOs"
1368	depends on MFD_WM8994
1369	help
1370	  Say yes here to access the GPIO signals of WM8994 audio hub
1371	  CODECs from Wolfson Microelectronics.
1372
1373endmenu
1374
1375menu "PCI GPIO expanders"
1376	depends on PCI
1377
1378config GPIO_AMD8111
1379	tristate "AMD 8111 GPIO driver"
1380	depends on X86 || COMPILE_TEST
1381	help
1382	  The AMD 8111 south bridge contains 32 GPIO pins which can be used.
1383
1384	  Note, that usually system firmware/ACPI handles GPIO pins on their
1385	  own and users might easily break their systems with uncarefull usage
1386	  of this driver!
1387
1388	  If unsure, say N
1389
1390config GPIO_BT8XX
1391	tristate "BT8XX GPIO abuser"
1392	depends on VIDEO_BT848=n
1393	help
1394	  The BT8xx frame grabber chip has 24 GPIO pins that can be abused
1395	  as a cheap PCI GPIO card.
1396
1397	  This chip can be found on Miro, Hauppauge and STB TV-cards.
1398
1399	  The card needs to be physically altered for using it as a
1400	  GPIO card. For more information on how to build a GPIO card
1401	  from a BT8xx TV card, see the documentation file at
1402	  Documentation/driver-api/gpio/bt8xxgpio.rst
1403
1404	  If unsure, say N.
1405
1406config GPIO_INTEL_MID
1407	bool "Intel MID GPIO support"
1408	depends on X86_INTEL_MID
1409	select GPIOLIB_IRQCHIP
1410	help
1411	  Say Y here to support Intel MID GPIO.
1412
1413config GPIO_MERRIFIELD
1414	tristate "Intel Merrifield GPIO support"
1415	depends on X86_INTEL_MID
1416	select GPIOLIB_IRQCHIP
1417	help
1418	  Say Y here to support Intel Merrifield GPIO.
1419
1420config GPIO_MLXBF
1421	tristate "Mellanox BlueField SoC GPIO"
1422	depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST)
1423	select GPIO_GENERIC
1424	help
1425	  Say Y here if you want GPIO support on Mellanox BlueField SoC.
1426
1427config GPIO_MLXBF2
1428	tristate "Mellanox BlueField 2 SoC GPIO"
1429	depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST)
1430	select GPIO_GENERIC
1431	help
1432	  Say Y here if you want GPIO support on Mellanox BlueField 2 SoC.
1433
1434config GPIO_ML_IOH
1435	tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
1436	depends on X86 || COMPILE_TEST
1437	select GENERIC_IRQ_CHIP
1438	help
1439	  ML7213 is companion chip for Intel Atom E6xx series.
1440	  This driver can be used for OKI SEMICONDUCTOR ML7213 IOH(Input/Output
1441	  Hub) which is for IVI(In-Vehicle Infotainment) use.
1442	  This driver can access the IOH's GPIO device.
1443
1444config GPIO_PCH
1445	tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7223/ML7831) GPIO"
1446	depends on X86_32 || MIPS || COMPILE_TEST
1447	select GENERIC_IRQ_CHIP
1448	help
1449	  This driver is for PCH(Platform controller Hub) GPIO of Intel Topcliff
1450	  which is an IOH(Input/Output Hub) for x86 embedded processor.
1451	  This driver can access PCH GPIO device.
1452
1453	  This driver also can be used for LAPIS Semiconductor IOH(Input/
1454	  Output Hub), ML7223 and ML7831.
1455	  ML7223 IOH is for MP(Media Phone) use.
1456	  ML7831 IOH is for general purpose use.
1457	  ML7223/ML7831 is companion chip for Intel Atom E6xx series.
1458	  ML7223/ML7831 is completely compatible for Intel EG20T PCH.
1459
1460config GPIO_PCI_IDIO_16
1461	tristate "ACCES PCI-IDIO-16 GPIO support"
1462	select GPIOLIB_IRQCHIP
1463	help
1464	  Enables GPIO support for the ACCES PCI-IDIO-16. An interrupt is
1465	  generated when any of the inputs change state (low to high or high to
1466	  low). Input filter control is not supported by this driver, and the
1467	  input filters are deactivated by this driver.
1468
1469config GPIO_PCIE_IDIO_24
1470	tristate "ACCES PCIe-IDIO-24 GPIO support"
1471	select GPIOLIB_IRQCHIP
1472	help
1473	  Enables GPIO support for the ACCES PCIe-IDIO-24 family (PCIe-IDIO-24,
1474	  PCIe-IDI-24, PCIe-IDO-24, PCIe-IDIO-12). An interrupt is generated
1475	  when any of the inputs change state (low to high or high to low).
1476	  Input filter control is not supported by this driver, and the input
1477	  filters are deactivated by this driver.
1478
1479config GPIO_RDC321X
1480	tristate "RDC R-321x GPIO support"
1481	select MFD_CORE
1482	select MFD_RDC321X
1483	help
1484	  Support for the RDC R321x SoC GPIOs over southbridge
1485	  PCI configuration space.
1486
1487config GPIO_SODAVILLE
1488	bool "Intel Sodaville GPIO support"
1489	depends on X86 && OF
1490	select GPIO_GENERIC
1491	select GENERIC_IRQ_CHIP
1492	help
1493	  Say Y here to support Intel Sodaville GPIO.
1494
1495endmenu
1496
1497menu "SPI GPIO expanders"
1498	depends on SPI_MASTER
1499
1500config GPIO_74X164
1501	tristate "74x164 serial-in/parallel-out 8-bits shift register"
1502	depends on OF_GPIO
1503	help
1504	  Driver for 74x164 compatible serial-in/parallel-out 8-outputs
1505	  shift registers. This driver can be used to provide access
1506	  to more gpio outputs.
1507
1508config GPIO_MAX3191X
1509	tristate "Maxim MAX3191x industrial serializer"
1510	select CRC8
1511	help
1512	  GPIO driver for Maxim MAX31910, MAX31911, MAX31912, MAX31913,
1513	  MAX31953 and MAX31963 industrial serializer, a daisy-chainable
1514	  chip to make 8 digital 24V inputs available via SPI.  Supports
1515	  CRC checksums to guard against electromagnetic interference,
1516	  as well as undervoltage and overtemperature detection.
1517
1518config GPIO_MAX7301
1519	tristate "Maxim MAX7301 GPIO expander"
1520	select GPIO_MAX730X
1521	help
1522	  GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
1523
1524config GPIO_MC33880
1525	tristate "Freescale MC33880 high-side/low-side switch"
1526	help
1527	  SPI driver for Freescale MC33880 high-side/low-side switch.
1528	  This provides GPIO interface supporting inputs and outputs.
1529
1530config GPIO_PISOSR
1531	tristate "Generic parallel-in/serial-out shift register"
1532	help
1533	  GPIO driver for SPI compatible parallel-in/serial-out shift
1534	  registers. These are input only devices.
1535
1536config GPIO_XRA1403
1537	tristate "EXAR XRA1403 16-bit GPIO expander"
1538	select REGMAP_SPI
1539	help
1540	  GPIO driver for EXAR XRA1403 16-bit SPI-based GPIO expander.
1541
1542config GPIO_MOXTET
1543	tristate "Turris Mox Moxtet bus GPIO expander"
1544	depends on MOXTET
1545	help
1546	  Say yes here if you are building for the Turris Mox router.
1547	  This is the driver needed for configuring the GPIOs via the Moxtet
1548	  bus. For example the Mox module with SFP cage needs this driver
1549	  so that phylink can use corresponding GPIOs.
1550
1551endmenu
1552
1553menu "USB GPIO expanders"
1554	depends on USB
1555
1556config GPIO_VIPERBOARD
1557	tristate "Viperboard GPIO a & b support"
1558	depends on MFD_VIPERBOARD
1559	help
1560	  Say yes here to access the GPIO signals of Nano River
1561	  Technologies Viperboard. There are two GPIO chips on the
1562	  board: gpioa and gpiob.
1563	  See viperboard API specification and Nano
1564	  River Tech's viperboard.h for detailed meaning
1565	  of the module parameters.
1566
1567endmenu
1568
1569config GPIO_AGGREGATOR
1570	tristate "GPIO Aggregator"
1571	help
1572	  Say yes here to enable the GPIO Aggregator, which provides a way to
1573	  aggregate existing GPIO lines into a new virtual GPIO chip.
1574	  This can serve the following purposes:
1575	    - Assign permissions for a collection of GPIO lines to a user,
1576	    - Export a collection of GPIO lines to a virtual machine,
1577	    - Provide a generic driver for a GPIO-operated device in an
1578	      industrial control context, to be operated from userspace using
1579	      the GPIO chardev interface.
1580
1581config GPIO_MOCKUP
1582	tristate "GPIO Testing Driver"
1583	select IRQ_SIM
1584	help
1585	  This enables GPIO Testing driver, which provides a way to test GPIO
1586	  subsystem through sysfs(or char device) and debugfs. GPIO_SYSFS
1587	  must be selected for this test.
1588	  User could use it through the script in
1589	  tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in
1590	  it.
1591
1592endif
1593