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