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