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