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