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