xref: /linux/drivers/gpio/Kconfig (revision 6435d21cbd42fea6c66dfd4cfef7d58b9612497e)
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_PXA
597	bool "PXA GPIO support"
598	depends on ARCH_PXA || ARCH_MMP || COMPILE_TEST
599	select GPIOLIB_IRQCHIP
600	help
601	  Say yes here to support the PXA GPIO device.
602
603config GPIO_RCAR
604	tristate "Renesas R-Car and RZ/G GPIO support"
605	depends on ARCH_RENESAS || COMPILE_TEST
606	select GPIOLIB_IRQCHIP
607	help
608	  Say yes here to support GPIO on Renesas R-Car or RZ/G SoCs.
609
610config GPIO_RDA
611	bool "RDA Micro GPIO controller support"
612	depends on ARCH_RDA || COMPILE_TEST
613	select GPIO_GENERIC
614	select GPIOLIB_IRQCHIP
615	help
616	  Say Y here to support RDA Micro GPIO controller.
617
618config GPIO_REALTEK_OTTO
619	tristate "Realtek Otto GPIO support"
620	depends on MACH_REALTEK_RTL || COMPILE_TEST
621	default MACH_REALTEK_RTL
622	select GPIO_GENERIC
623	select GPIOLIB_IRQCHIP
624	help
625	  The GPIO controller on the Otto MIPS platform supports up to two
626	  banks of 32 GPIOs, with edge triggered interrupts. The 32 GPIOs
627	  are grouped in four 8-bit wide ports.
628
629	  When built as a module, the module will be called realtek_otto_gpio.
630
631config GPIO_REG
632	bool
633	help
634	  A 32-bit single register GPIO fixed in/out implementation.  This
635	  can be used to represent any register as a set of GPIO signals.
636
637config GPIO_ROCKCHIP
638	tristate "Rockchip GPIO support"
639	depends on ARCH_ROCKCHIP || COMPILE_TEST
640	select GENERIC_IRQ_CHIP
641	select GPIOLIB_IRQCHIP
642	default ARCH_ROCKCHIP
643	help
644	  Say yes here to support GPIO on Rockchip SoCs.
645
646config GPIO_RTD
647	tristate "Realtek DHC GPIO support"
648	depends on ARCH_REALTEK || COMPILE_TEST
649	default ARCH_REALTEK
650	select GPIOLIB_IRQCHIP
651	help
652	  This option enables support for GPIOs found on Realtek DHC(Digital
653	  Home Center) SoCs family, including RTD1295, RTD1315E, RTD1319,
654	  RTD1319D, RTD1395, RTD1619 and RTD1619B.
655
656	  Say yes here to support GPIO functionality and GPIO interrupt on
657	  Realtek DHC SoCs.
658
659config GPIO_RTD1625
660	tristate "Realtek DHC RTD1625 GPIO support"
661	depends on ARCH_REALTEK || COMPILE_TEST
662	default ARCH_REALTEK
663	select GPIOLIB_IRQCHIP
664	select GPIO_REGMAP
665	select REGMAP_MMIO
666	help
667	  This option enables support for the GPIO controller on Realtek
668	  DHC (Digital Home Center) RTD1625 SoC.
669
670	  Say yes here to support both basic GPIO line functionality
671	  and GPIO interrupt handling capabilities for this platform.
672
673config GPIO_SAMA5D2_PIOBU
674	tristate "SAMA5D2 PIOBU GPIO support"
675	depends on OF
676	depends on MFD_SYSCON
677	depends on ARCH_AT91 || COMPILE_TEST
678	select GPIO_SYSCON
679	help
680	  Say yes here to use the PIOBU pins as GPIOs.
681
682	  PIOBU pins on the SAMA5D2 can be used as GPIOs.
683	  The difference from regular GPIOs is that they
684	  maintain their value during backup/self-refresh.
685
686config GPIO_SIFIVE
687	tristate "SiFive GPIO support"
688	depends on OF
689	select IRQ_DOMAIN_HIERARCHY
690	select GPIO_GENERIC
691	select GPIOLIB_IRQCHIP
692	select REGMAP_MMIO
693	help
694	  Say yes here to support the GPIO device on SiFive SoCs.
695
696config GPIO_SIOX
697	tristate "SIOX GPIO support"
698	depends on SIOX
699	select GPIOLIB_IRQCHIP
700	help
701	  Say yes here to support SIOX I/O devices. These are units connected
702	  via a SIOX bus and have a number of fixed-direction I/O lines.
703
704config GPIO_SNPS_CREG
705	bool "Synopsys GPIO via CREG (Control REGisters) driver"
706	depends on ARC || COMPILE_TEST
707	help
708	  This driver supports GPIOs via CREG on various Synopsys SoCs.
709	  This is a single-register MMIO GPIO driver for complex cases
710	  where only several fields in register belong to GPIO lines and
711	  each GPIO line owns a field with different length and on/off value.
712
713config GPIO_SPACEMIT_K1
714	tristate "SPACEMIT K1 GPIO support"
715	depends on ARCH_SPACEMIT || COMPILE_TEST
716	depends on OF
717	select GPIO_GENERIC
718	select GPIOLIB_IRQCHIP
719	help
720	  Say yes here to support the SpacemiT's K1 GPIO device.
721
722config GPIO_SPEAR_SPICS
723	bool "ST SPEAr13xx SPI Chip Select as GPIO support"
724	depends on PLAT_SPEAR || COMPILE_TEST
725	select GENERIC_IRQ_CHIP
726	help
727	  Say yes here to support ST SPEAr SPI Chip Select as GPIO device.
728
729config GPIO_SPRD
730	tristate "Spreadtrum GPIO support"
731	depends on ARCH_SPRD || COMPILE_TEST
732	select GPIOLIB_IRQCHIP
733	help
734	  Say yes here to support Spreadtrum GPIO device.
735
736config GPIO_STP_XWAY
737	bool "XWAY STP GPIOs"
738	depends on SOC_XWAY || COMPILE_TEST
739	help
740	  This enables support for the Serial To Parallel (STP) unit found on
741	  XWAY SoC. The STP allows the SoC to drive a shift registers cascade,
742	  that can be up to 24 bits. This peripheral is aimed at driving LEDs.
743	  Some of the GPIOs/LEDs can be auto updated by the SoC with DSL and
744	  phy status.
745
746config GPIO_SYSCON
747	tristate "GPIO based on SYSCON"
748	depends on MFD_SYSCON && OF
749	help
750	  Say yes here to support GPIO functionality though SYSCON driver.
751
752config GPIO_TANGIER
753	tristate
754	select GPIOLIB_IRQCHIP
755	help
756	  GPIO support for Intel Tangier and compatible platforms.
757	  Currently supported:
758	   - Elkhart Lake
759	   - Merrifield
760
761	  If built as a module its name will be gpio-tangier.
762
763config GPIO_TB10X
764	bool "Abilis Systems TB10x GPIO controller"
765	depends on ARC_PLAT_TB10X || COMPILE_TEST
766	select GPIO_GENERIC
767	select GENERIC_IRQ_CHIP
768
769config GPIO_TEGRA
770	tristate "NVIDIA Tegra GPIO support"
771	default ARCH_TEGRA
772	depends on ARCH_TEGRA || COMPILE_TEST
773	select GPIOLIB_IRQCHIP
774	select IRQ_DOMAIN_HIERARCHY
775	help
776	  Say yes here to support GPIO pins on NVIDIA Tegra SoCs.
777
778config GPIO_TEGRA186
779	tristate "NVIDIA Tegra186 GPIO support"
780	default ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC
781	depends on ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
782	depends on OF
783	select GPIOLIB_IRQCHIP
784	select IRQ_DOMAIN_HIERARCHY
785	help
786	  Say yes here to support GPIO pins on NVIDIA Tegra186, 194 and 234 SoCs.
787
788config GPIO_TS4800
789	tristate "TS-4800 DIO blocks and compatibles"
790	depends on SOC_IMX51 || COMPILE_TEST
791	select GPIO_GENERIC
792	help
793	  This driver support TS-4800 FPGA GPIO controllers.
794
795config GPIO_THUNDERX
796	tristate "Cavium ThunderX/OCTEON-TX GPIO"
797	depends on ARCH_THUNDER || (64BIT && COMPILE_TEST)
798	depends on PCI_MSI
799	select GPIOLIB_IRQCHIP
800	select IRQ_DOMAIN_HIERARCHY
801	select IRQ_FASTEOI_HIERARCHY_HANDLERS
802	help
803	  Say yes here to support the on-chip GPIO lines on the ThunderX
804	  and OCTEON-TX families of SoCs.
805
806config GPIO_UNIPHIER
807	tristate "UniPhier GPIO support"
808	depends on ARCH_UNIPHIER || COMPILE_TEST
809	select IRQ_DOMAIN_HIERARCHY
810	help
811	  Say yes here to support UniPhier GPIOs.
812
813config GPIO_VF610
814	tristate "VF610 GPIO support"
815	default y if SOC_VF610
816	depends on ARCH_MXC || COMPILE_TEST
817	select GPIOLIB_IRQCHIP
818	select GPIO_GENERIC
819	help
820	  Say yes here to support i.MX or Vybrid vf610 GPIOs.
821
822config GPIO_VISCONTI
823	tristate "Toshiba Visconti GPIO support"
824	depends on ARCH_VISCONTI || COMPILE_TEST
825	select GPIOLIB_IRQCHIP
826	select GPIO_GENERIC
827	select IRQ_DOMAIN_HIERARCHY
828	help
829	  Say yes here to support GPIO on Tohisba Visconti.
830
831config GPIO_WAVESHARE_DSI_TOUCH
832	tristate "Waveshare GPIO controller for DSI panels"
833	depends on BACKLIGHT_CLASS_DEVICE
834	depends on I2C
835	select REGMAP_I2C
836	help
837	  Enable support for the GPIO and PWM controller found on Waveshare DSI
838	  TOUCH panel kits. It provides GPIOs (used for regulator control and
839          resets) and backlight support.
840
841config GPIO_WCD934X
842	tristate "Qualcomm WCD9340/WCD9341 GPIO controller driver"
843	depends on MFD_WCD934X
844	help
845         This driver is to support GPIO block found on the Qualcomm Technologies
846	 Inc WCD9340/WCD9341 Audio Codec.
847
848config GPIO_XGENE
849	bool "APM X-Gene GPIO controller support"
850	depends on ARM64 || COMPILE_TEST
851	help
852	  This driver is to support the GPIO block within the APM X-Gene SoC
853	  platform's generic flash controller. The GPIO pins are muxed with
854	  the generic flash controller's address and data pins. Say yes
855	  here to enable the GFC GPIO functionality.
856
857config GPIO_XGENE_SB
858	tristate "APM X-Gene GPIO standby controller support"
859	depends on (ARCH_XGENE || COMPILE_TEST)
860	select GPIO_GENERIC
861	select GPIOLIB_IRQCHIP
862	select IRQ_DOMAIN_HIERARCHY
863	help
864	  This driver supports the GPIO block within the APM X-Gene
865	  Standby Domain. Say yes here to enable the GPIO functionality.
866
867config GPIO_XILINX
868	tristate "Xilinx GPIO support"
869	select GPIOLIB_IRQCHIP
870	help
871	  Say yes here to support the Xilinx FPGA GPIO device.
872
873config GPIO_XLP
874	tristate "Cavium ThunderX2 GPIO support"
875	depends on ARCH_THUNDER2 || COMPILE_TEST
876	select GPIOLIB_IRQCHIP
877	help
878	  This driver provides support for GPIO interface on Cavium's ThunderX2
879	  CN99XX SoCs (Originally from Netlogic XLP).
880
881	  If unsure, say N.
882
883config GPIO_XTENSA
884	bool "Xtensa GPIO32 support"
885	depends on XTENSA
886	depends on HAVE_XTENSA_GPIO32
887	depends on !SMP
888	help
889	  Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)
890	  and EXPSTATE (output) ports.
891
892config GPIO_ZEVIO
893	bool "LSI ZEVIO SoC memory mapped GPIOs"
894	depends on ARM || COMPILE_TEST
895	help
896	  Say yes here to support the GPIO controller in LSI ZEVIO SoCs.
897
898config GPIO_ZYNQ
899	tristate "Xilinx Zynq GPIO support"
900	depends on ARCH_ZYNQ || ARCH_ZYNQMP || COMPILE_TEST
901	select GPIOLIB_IRQCHIP
902	help
903	  Say yes here to support Xilinx Zynq GPIO controller.
904
905config GPIO_ZYNQMP_MODEPIN
906	tristate "ZynqMP ps-mode pin GPIO configuration driver"
907	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
908	default ZYNQMP_FIRMWARE
909	help
910	  Say yes here to support the ZynqMP ps-mode pin GPIO configuration
911	  driver.
912
913	  This ps-mode pin GPIO driver is based on GPIO framework. PS_MODE
914	  is 4-bits boot mode pins. It sets and gets the status of
915	  the ps-mode pin. Every pin can be configured as input/output.
916
917config GPIO_LOONGSON1
918	tristate "Loongson1 GPIO support"
919	depends on MACH_LOONGSON32 || COMPILE_TEST
920	select GPIO_GENERIC
921	help
922	  Say Y or M here to support GPIO on Loongson1 SoCs.
923
924config GPIO_AMD_FCH
925	tristate "GPIO support for AMD Fusion Controller Hub (G-series SOCs)"
926	help
927	  This option enables driver for GPIO on AMD's Fusion Controller Hub,
928	  as found on G-series SOCs (e.g. GX-412TC).
929
930	  Note: This driver doesn't register itself automatically, as it
931	  needs to be provided with platform-specific configuration.
932	  (See e.g. CONFIG_PCENGINES_APU2.)
933
934config GPIO_MSC313
935	bool "MStar MSC313 GPIO support"
936	depends on ARCH_MSTARV7 || COMPILE_TEST
937	default ARCH_MSTARV7
938	select GPIOLIB_IRQCHIP
939	select IRQ_DOMAIN_HIERARCHY
940	help
941	  Say Y here to support the main GPIO block on MStar/SigmaStar
942	  ARMv7-based SoCs.
943
944config GPIO_IDT3243X
945	tristate "IDT 79RC3243X GPIO support"
946	depends on MIKROTIK_RB532 || COMPILE_TEST
947	select GPIO_GENERIC
948	select GPIOLIB_IRQCHIP
949	help
950	  Select this option to enable GPIO driver for
951	  IDT 79RC3243X-based devices like Mikrotik RB532.
952
953	  To compile this driver as a module, choose M here: the module will
954	  be called gpio-idt3243x.
955
956endmenu
957
958menu "Port-mapped I/O GPIO drivers"
959	depends on X86 && HAS_IOPORT # I/O space access
960
961config GPIO_VX855
962	tristate "VIA VX855/VX875 GPIO"
963	depends on PCI
964	select MFD_CORE
965	select MFD_VX855
966	help
967	  Support access to the VX855/VX875 GPIO lines through the GPIO library.
968
969	  This driver provides common support for accessing the device.
970	  Additional drivers must be enabled in order to use the
971	  functionality of the device.
972
973config GPIO_I8255
974	tristate
975	select GPIO_REGMAP
976	help
977	  Enables support for the i8255 interface library functions. The i8255
978	  interface library provides functions to facilitate communication with
979	  interfaces compatible with the venerable Intel 8255 Programmable
980	  Peripheral Interface (PPI). The Intel 8255 PPI chip was first released
981	  in the early 1970s but compatible interfaces are nowadays typically
982	  found embedded in larger VLSI processing chips and FPGA components.
983
984	  If built as a module its name will be gpio-i8255.
985
986config GPIO_104_DIO_48E
987	tristate "ACCES 104-DIO-48E GPIO support"
988	depends on PC104
989	select ISA_BUS_API
990	select REGMAP_MMIO
991	select REGMAP_IRQ
992	select GPIOLIB_IRQCHIP
993	select GPIO_I8255
994	select I8254
995	help
996	  Enables GPIO support for the ACCES 104-DIO-48E series (104-DIO-48E,
997	  104-DIO-24E). The base port addresses for the devices may be
998	  configured via the base module parameter. The interrupt line numbers
999	  for the devices may be configured via the irq module parameter.
1000
1001config GPIO_104_IDIO_16
1002	tristate "ACCES 104-IDIO-16 GPIO support"
1003	depends on PC104
1004	select ISA_BUS_API
1005	select REGMAP_MMIO
1006	select GPIO_IDIO_16
1007	help
1008	  Enables GPIO support for the ACCES 104-IDIO-16 family (104-IDIO-16,
1009	  104-IDIO-16E, 104-IDO-16, 104-IDIO-8, 104-IDIO-8E, 104-IDO-8). The
1010	  base port addresses for the devices may be configured via the base
1011	  module parameter. The interrupt line numbers for the devices may be
1012	  configured via the irq module parameter.
1013
1014config GPIO_104_IDI_48
1015	tristate "ACCES 104-IDI-48 GPIO support"
1016	depends on PC104
1017	select ISA_BUS_API
1018	select REGMAP_MMIO
1019	select REGMAP_IRQ
1020	select GPIOLIB_IRQCHIP
1021	select GPIO_REGMAP
1022	help
1023	  Enables GPIO support for the ACCES 104-IDI-48 family (104-IDI-48A,
1024	  104-IDI-48AC, 104-IDI-48B, 104-IDI-48BC). The base port addresses for
1025	  the devices may be configured via the base module parameter. The
1026	  interrupt line numbers for the devices may be configured via the irq
1027	  module parameter.
1028
1029config GPIO_F7188X
1030	tristate "Fintek and Nuvoton Super-I/O GPIO support"
1031	help
1032	  This option enables support for GPIOs found on Fintek Super-I/O
1033	  chips F71869, F71869A, F71882FG, F71889F and F81866.
1034	  As well as Nuvoton Super-I/O chip NCT6126D.
1035
1036	  To compile this driver as a module, choose M here: the module will
1037	  be called f7188x-gpio.
1038
1039config GPIO_GPIO_MM
1040	tristate "Diamond Systems GPIO-MM GPIO support"
1041	depends on PC104
1042	select ISA_BUS_API
1043	select REGMAP_MMIO
1044	select GPIO_I8255
1045	help
1046	  Enables GPIO support for the Diamond Systems GPIO-MM and GPIO-MM-12.
1047
1048	  The Diamond Systems GPIO-MM device features 48 lines of digital I/O
1049	  via the emulation of dual 82C55A PPI chips. This driver provides GPIO
1050	  support for these 48 channels of digital I/O.
1051
1052	  The base port addresses for the devices may be configured via the base
1053	  array module parameter.
1054
1055config GPIO_IT87
1056	tristate "IT87xx GPIO support"
1057	help
1058	  Say yes here to support GPIO functionality of IT87xx Super I/O chips.
1059
1060	  This driver is tested with ITE IT8728 and IT8732 Super I/O chips, and
1061	  supports the IT8761E, IT8613, IT8620E, and IT8628E Super I/O chips as
1062	  well.
1063
1064	  To compile this driver as a module, choose M here: the module will
1065	  be called gpio_it87.
1066
1067config GPIO_SCH
1068	tristate "Intel SCH/TunnelCreek/Centerton/Quark X1000 GPIO"
1069	depends on (X86 || COMPILE_TEST) && ACPI
1070	depends on LPC_SCH
1071	select GPIOLIB_IRQCHIP
1072	help
1073	  Say yes here to support GPIO interface on Intel Poulsbo SCH,
1074	  Intel Tunnel Creek processor, Intel Centerton processor or
1075	  Intel Quark X1000 SoC.
1076
1077	  The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are
1078	  powered by the core power rail and are turned off during sleep
1079	  modes (S3 and higher). The remaining four GPIOs are powered by
1080	  the Intel SCH suspend power supply. These GPIOs remain
1081	  active during S3. The suspend-powered GPIOs can be used to wake the
1082	  system from the Suspend-to-RAM state.
1083
1084	  The Intel Tunnel Creek processor has 5 GPIOs powered by the
1085	  core power rail and 9 from suspend power supply.
1086
1087	  The Intel Centerton processor has a total of 30 GPIO pins.
1088	  Twenty-one are powered by the core power rail and 9 from the
1089	  suspend power supply.
1090
1091	  The Intel Quark X1000 SoC has 2 GPIOs powered by the core
1092	  power well and 6 from the suspend power well.
1093
1094config GPIO_NOVALAKE
1095	tristate "Intel Nova Lake GPIO-signaled ACPI events support"
1096	depends on (X86 || COMPILE_TEST) && ACPI
1097	select GPIOLIB_IRQCHIP
1098	help
1099	  Select this to enable GPIO-signaled ACPI events support on platforms
1100	  with the following SoCs:
1101
1102	  - Intel Nova Lake
1103
1104	  This driver adds support for new mode of handling platform events,
1105	  through the use of GPIO-signaled ACPI events. Main purpose is to
1106	  handle platform IRQs that originate in PCH components, for example
1107	  interrupt triggered by Power Management Event (PME).
1108
1109	  This driver, at this time, is not required to handle platform events.
1110	  Listed platform(s) will stay in legacy mode, handling ACPI events as
1111	  in previous generations. However, future platforms will eventually
1112	  switch to new handling mode, requiring this driver to run events
1113	  properly.
1114
1115	  Driver supports up to 128 GPIO pins per GPE block.
1116
1117	  To compile this driver as a module, choose M here: the module will
1118	  be called gpio-novalake-events.
1119
1120config GPIO_SCH311X
1121	tristate "SMSC SCH311x SuperI/O GPIO"
1122	help
1123	  Driver to enable the GPIOs found on SMSC SMSC SCH3112, SCH3114 and
1124	  SCH3116 "Super I/O" chipsets.
1125
1126	  To compile this driver as a module, choose M here: the module will
1127	  be called gpio-sch311x.
1128
1129config GPIO_WINBOND
1130	tristate "Winbond Super I/O GPIO support"
1131	select ISA_BUS_API
1132	help
1133	  This option enables support for GPIOs found on Winbond Super I/O
1134	  chips.
1135	  Currently, only W83627UHG (also known as Nuvoton NCT6627UD) is
1136	  supported.
1137
1138	  You will need to provide a module parameter "gpios", or a
1139	  boot-time parameter "gpio_winbond.gpios" with a bitmask of GPIO
1140	  ports to enable (bit 0 is GPIO1, bit 1 is GPIO2, etc.).
1141
1142	  To compile this driver as a module, choose M here: the module will
1143	  be called gpio-winbond.
1144
1145config GPIO_WS16C48
1146	tristate "WinSystems WS16C48 GPIO support"
1147	select ISA_BUS_API
1148	select REGMAP_IRQ
1149	select REGMAP_MMIO
1150	select GPIOLIB_IRQCHIP
1151	select GPIO_REGMAP
1152	help
1153	  Enables GPIO support for the WinSystems WS16C48. The base port
1154	  addresses for the devices may be configured via the base module
1155	  parameter. The interrupt line numbers for the devices may be
1156	  configured via the irq module parameter.
1157
1158endmenu
1159
1160menu "I2C GPIO expanders"
1161	depends on I2C
1162
1163config GPIO_ADNP
1164	tristate "Avionic Design N-bit GPIO expander"
1165	depends on OF
1166	select GPIOLIB_IRQCHIP
1167	help
1168	  This option enables support for N GPIOs found on Avionic Design
1169	  I2C GPIO expanders. The register space will be extended by powers
1170	  of two, so the controller will need to accommodate for that. For
1171	  example: if a controller provides 48 pins, 6 registers will be
1172	  enough to represent all pins, but the driver will assume a
1173	  register layout for 64 pins (8 registers).
1174
1175config GPIO_FXL6408
1176	tristate "FXL6408 I2C GPIO expander"
1177	select GPIO_REGMAP
1178	select REGMAP_I2C
1179	help
1180	  GPIO driver for Fairchild Semiconductor FXL6408 GPIO expander.
1181
1182	  To compile this driver as a module, choose M here: the module will
1183	  be called gpio-fxl6408.
1184
1185config GPIO_DS4520
1186	tristate "DS4520 I2C GPIO expander"
1187	select REGMAP_I2C
1188	select GPIO_REGMAP
1189	help
1190	  GPIO driver for ADI DS4520 I2C-based GPIO expander.
1191	  Say yes here to enable the GPIO driver for the ADI DS4520 chip.
1192
1193	  To compile this driver as a module, choose M here: the module will
1194	  be called gpio-ds4520.
1195
1196config GPIO_GW_PLD
1197	tristate "Gateworks PLD GPIO Expander"
1198	depends on OF
1199	help
1200	  Say yes here to provide access to the Gateworks I2C PLD GPIO
1201	  Expander. This is used at least on the Cambria GW2358-4.
1202
1203config GPIO_MAX7300
1204	tristate "Maxim MAX7300 GPIO expander"
1205	select GPIO_MAX730X
1206	help
1207	  GPIO driver for Maxim MAX7300 I2C-based GPIO expander.
1208
1209config GPIO_MAX732X
1210	tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
1211	help
1212	  Say yes here to support the MAX7319, MAX7320-7327 series of I2C
1213	  Port Expanders. Each IO port on these chips has a fixed role of
1214	  Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
1215	  Input and Output (designed by 'P'). The combinations are listed
1216	  below:
1217
1218	  8 bits:       max7319 (8I), max7320 (8O), max7321 (8P),
1219	                max7322 (4I4O), max7323 (4P4O)
1220
1221	  16 bits:      max7324 (8I8O), max7325 (8P8O),
1222	                max7326 (4I12O), max7327 (4P12O)
1223
1224	  Board setup code must specify the model to use, and the start
1225	  number for these GPIOs.
1226
1227config GPIO_MAX732X_IRQ
1228	bool "Interrupt controller support for MAX732x"
1229	depends on GPIO_MAX732X=y
1230	select GPIOLIB_IRQCHIP
1231	help
1232	  Say yes here to enable the max732x to be used as an interrupt
1233	  controller. It requires the driver to be built in the kernel.
1234
1235config GPIO_PCA953X
1236	tristate "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
1237	select REGMAP_I2C
1238	help
1239	  Say yes here to provide access to several register-oriented
1240	  SMBus I/O expanders, made mostly by NXP or TI.  Compatible
1241	  models include:
1242
1243	  4 bits:       pca9536, pca9537
1244
1245	  8 bits:       max7310, max7315, pca6107, pca9534, pca9538, pca9554,
1246	                pca9556, pca9557, pca9574, tca6408, tca9554, xra1202,
1247			pcal6408, pcal9554b, tca9538, tcal6408
1248
1249	  16 bits:      max7312, max7313, pca9535, pca9539, pca9555, pca9575,
1250	                tca6416, pca6416, pcal6416, pcal9535, pcal9555a, max7318,
1251			tca9539, tcal6416
1252
1253	  18 bits:	tca6418
1254
1255	  24 bits:      tca6424, pcal6524
1256
1257	  40 bits:      pca9505, pca9698, pca9506
1258
1259config GPIO_PCA953X_IRQ
1260	bool "Interrupt controller support for PCA953x"
1261	depends on GPIO_PCA953X
1262	select GPIOLIB_IRQCHIP
1263	help
1264	  Say yes here to enable the pca953x to be used as an interrupt
1265	  controller.
1266
1267config GPIO_PCA9570
1268	tristate "PCA9570 4-Bit I2C GPO expander"
1269	help
1270	  Say yes here to enable the GPO driver for the NXP PCA9570 chip.
1271
1272	  To compile this driver as a module, choose M here: the module will
1273	  be called gpio-pca9570.
1274
1275config GPIO_PCF857X
1276	tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
1277	select GPIOLIB_IRQCHIP
1278	select IRQ_DOMAIN
1279	help
1280	  Say yes here to provide access to most "quasi-bidirectional" I2C
1281	  GPIO expanders used for additional digital outputs or inputs.
1282	  Most of these parts are from NXP, though TI is a second source for
1283	  some of them.  Compatible models include:
1284
1285	  8 bits:   pcf8574, pcf8574a, pca8574, pca8574a,
1286	            pca9670, pca9672, pca9674, pca9674a,
1287	            max7328, max7329
1288
1289	  16 bits:  pcf8575, pcf8575c, pca8575,
1290	            pca9671, pca9673, pca9675
1291
1292	  Your board setup code will need to declare the expanders in
1293	  use, and assign numbers to the GPIOs they expose.  Those GPIOs
1294	  can then be used from drivers and other kernel code, just like
1295	  other GPIOs, but only accessible from task contexts.
1296
1297	  This driver provides an in-kernel interface to those GPIOs using
1298	  platform-neutral GPIO calls.
1299
1300config GPIO_TPIC2810
1301	tristate "TPIC2810 8-Bit I2C GPO expander"
1302	help
1303	  Say yes here to enable the GPO driver for the TI TPIC2810 chip.
1304
1305	  To compile this driver as a module, choose M here: the module will
1306	  be called gpio-tpic2810.
1307
1308config GPIO_TS4900
1309	tristate "Technologic Systems FPGA I2C GPIO"
1310	depends on SOC_IMX6 || COMPILE_TEST
1311	select REGMAP_I2C
1312	help
1313	  Say yes here to enabled the GPIO driver for Technologic's FPGA core.
1314	  Series supported include TS-4100, TS-4900, TS-7970 and TS-7990.
1315
1316endmenu
1317
1318menu "MFD GPIO expanders"
1319
1320config GPIO_ADP5520
1321	tristate "GPIO Support for ADP5520 PMIC"
1322	depends on PMIC_ADP5520
1323	help
1324	  This option enables support for on-chip GPIO found
1325	  on Analog Devices ADP5520 PMICs.
1326
1327config GPIO_ADP5585
1328	tristate "GPIO Support for ADP5585"
1329	depends on MFD_ADP5585
1330	select GPIOLIB_IRQCHIP
1331	help
1332	  This option enables support for the GPIO function found in the Analog
1333	  Devices ADP5585.
1334
1335config GPIO_ALTERA_A10SR
1336	tristate "Altera Arria10 System Resource GPIO"
1337	depends on MFD_ALTERA_A10SR
1338	help
1339	  Driver for Arria10 Development Kit GPIO expansion which
1340	  includes reads of pushbuttons and DIP switches as well
1341	  as writes to LEDs.
1342
1343config GPIO_ARIZONA
1344	tristate "Wolfson Microelectronics Arizona class devices"
1345	depends on MFD_ARIZONA
1346	help
1347	  Support for GPIOs on Wolfson Arizona class devices.
1348
1349config GPIO_BD71815
1350	tristate "ROHM BD71815 PMIC GPIO support"
1351	depends on MFD_ROHM_BD71828
1352	help
1353	  Support for GPO(s) on ROHM BD71815 PMIC. There are two GPOs
1354	  available on the ROHM PMIC.
1355
1356	  This driver can also be built as a module. If so, the module
1357	  will be called gpio-bd71815.
1358
1359config GPIO_BD71828
1360	tristate "ROHM BD71828 GPIO support"
1361	depends on MFD_ROHM_BD71828
1362	help
1363	  Support for GPIOs on ROHM BD71828 PMIC. There are three GPIOs
1364	  available on the ROHM PMIC in total. The GPIOs are limited to
1365	  outputs only and pins must be configured to GPIO outputs by
1366	  OTP. Enable this only if you want to use these pins as outputs.
1367
1368	  This driver can also be built as a module. If so, the module
1369	  will be called gpio-bd71828.
1370
1371config GPIO_BD72720
1372	tristate "ROHM BD72720 and BD73900 PMIC GPIO support"
1373	depends on MFD_ROHM_BD71828
1374	help
1375	  Support for GPIO on ROHM BD72720 and BD73900 PMICs. There are two
1376	  pins which can be configured to GPI or GPO, and three pins which can
1377	  be configured to GPO on the ROHM PMIC. The pin configuration is done
1378	  on OTP at manufacturing.
1379
1380config GPIO_BD9571MWV
1381	tristate "ROHM BD9571 GPIO support"
1382	depends on MFD_BD9571MWV
1383	help
1384	  Support for GPIOs on ROHM BD9571 PMIC. There are two GPIOs
1385	  available on the ROHM PMIC in total, both of which can also
1386	  generate interrupts.
1387
1388	  This driver can also be built as a module. If so, the module
1389	  will be called gpio-bd9571mwv.
1390
1391config GPIO_CGBC
1392	tristate "Congatec Board Controller GPIO support"
1393	depends on MFD_CGBC
1394	help
1395	  Select this option to enable GPIO support for the Congatec Board
1396	  Controller.
1397
1398	  This driver can also be built as a module. If so, the module will be
1399	  called gpio-cgbc.
1400
1401config GPIO_CROS_EC
1402	tristate "ChromeOS EC GPIO support"
1403	depends on CROS_EC
1404	help
1405	  GPIO driver for the ChromeOS Embedded Controller (EC). GPIOs
1406	  cannot be set unless the system is unlocked.
1407
1408	  This driver can also be built as a module. If so, the module
1409	  will be called gpio-cros-ec.
1410
1411config GPIO_CRYSTAL_COVE
1412	tristate "GPIO support for Crystal Cove PMIC"
1413	depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC
1414	select GPIOLIB_IRQCHIP
1415	help
1416	  Support for GPIO pins on Crystal Cove PMIC.
1417
1418	  Say Yes if you have a Intel SoC-based tablet with Crystal Cove PMIC
1419	  inside.
1420
1421	  This driver can also be built as a module. If so, the module will be
1422	  called gpio-crystalcove.
1423
1424config GPIO_CS5535
1425	tristate "AMD CS5535/CS5536 GPIO support"
1426	depends on X86 || MIPS || COMPILE_TEST
1427	depends on MFD_CS5535
1428	help
1429	  The AMD CS5535 and CS5536 southbridges support 28 GPIO pins that
1430	  can be used for quite a number of things.  The CS5535/6 is found on
1431	  AMD Geode and Lemote Yeeloong devices.
1432
1433	  If unsure, say N.
1434
1435config GPIO_DA9052
1436	tristate "Dialog DA9052 GPIO"
1437	depends on PMIC_DA9052
1438	help
1439	  Say yes here to enable the GPIO driver for the DA9052 chip.
1440
1441config GPIO_DA9055
1442	tristate "Dialog Semiconductor DA9055 GPIO"
1443	depends on MFD_DA9055
1444	help
1445	  Say yes here to enable the GPIO driver for the DA9055 chip.
1446
1447	  The Dialog DA9055 PMIC chip has 3 GPIO pins that can be
1448	  be controlled by this driver.
1449
1450	  If driver is built as a module it will be called gpio-da9055.
1451
1452config GPIO_DLN2
1453	tristate "Diolan DLN2 GPIO support"
1454	depends on MFD_DLN2
1455	select GPIOLIB_IRQCHIP
1456
1457	help
1458	  Select this option to enable GPIO driver for the Diolan DLN2
1459	  board.
1460
1461	  This driver can also be built as a module. If so, the module
1462	  will be called gpio-dln2.
1463
1464config HTC_EGPIO
1465	bool "HTC EGPIO support"
1466	depends on ARM || COMPILE_TEST
1467	help
1468	  This driver supports the CPLD egpio chip present on
1469	  several HTC phones.  It provides basic support for input
1470	  pins, output pins, and IRQs.
1471
1472config GPIO_ELKHARTLAKE
1473	tristate "Intel Elkhart Lake PSE GPIO support"
1474	depends on INTEL_EHL_PSE_IO
1475	select GPIO_TANGIER
1476	help
1477	  Select this option to enable GPIO support for Intel Elkhart Lake
1478	  PSE GPIO IP.
1479
1480	  To compile this driver as a module, choose M here: the module will
1481	  be called gpio-elkhartlake.
1482
1483config GPIO_JANZ_TTL
1484	tristate "Janz VMOD-TTL Digital IO Module"
1485	depends on MFD_JANZ_CMODIO
1486	help
1487	  This enables support for the Janz VMOD-TTL Digital IO module.
1488	  This driver provides support for driving the pins in output
1489	  mode only. Input mode is not supported.
1490
1491config GPIO_KEMPLD
1492	tristate "Kontron ETX / COMexpress GPIO"
1493	depends on MFD_KEMPLD
1494	select GPIOLIB_IRQCHIP
1495	help
1496	  This enables support for the PLD GPIO interface on some Kontron ETX
1497	  and COMexpress (ETXexpress) modules.
1498
1499	  This driver can also be built as a module. If so, the module will be
1500	  called gpio-kempld.
1501
1502config GPIO_LJCA
1503	tristate "INTEL La Jolla Cove Adapter GPIO support"
1504	depends on USB_LJCA
1505	select GPIOLIB_IRQCHIP
1506	default USB_LJCA
1507	help
1508	  Select this option to enable GPIO driver for the INTEL
1509	  La Jolla Cove Adapter (LJCA) board.
1510
1511	  This driver can also be built as a module. If so, the module
1512	  will be called gpio-ljca.
1513
1514config GPIO_LP3943
1515	tristate "TI/National Semiconductor LP3943 GPIO expander"
1516	depends on MFD_LP3943
1517	help
1518	  GPIO driver for LP3943 MFD.
1519	  LP3943 can be used as a GPIO expander which provides up to 16 GPIOs.
1520	  Open drain outputs are required for this usage.
1521
1522config GPIO_LP873X
1523	tristate "TI LP873X GPO"
1524	depends on MFD_TI_LP873X
1525	help
1526	  This driver supports the GPO on TI Lp873x PMICs. 2 GPOs are present
1527	  on LP873X PMICs.
1528
1529	  This driver can also be built as a module. If so, the module will be
1530	  called gpio-lp873x.
1531
1532config GPIO_LP87565
1533	tristate "TI LP87565 GPIO"
1534	depends on MFD_TI_LP87565
1535	help
1536	  This driver supports the GPIO on TI Lp873565 PMICs. 3 GPIOs are present
1537	  on LP87565 PMICs.
1538
1539	  This driver can also be built as a module. If so, the module will be
1540	  called gpio-lp87565.
1541
1542config GPIO_MACSMC
1543	tristate "Apple Mac SMC GPIO"
1544	depends on MFD_MACSMC
1545	help
1546	  Support for GPIOs controlled by the SMC microcontroller on Apple Mac
1547	  systems.
1548
1549	  This driver can also be built as a module. If so, the module will be
1550	  called gpio-macsmc.
1551
1552config GPIO_MADERA
1553	tristate "Cirrus Logic Madera class codecs"
1554	depends on PINCTRL_MADERA
1555	help
1556	  Support for GPIOs on Cirrus Logic Madera class codecs.
1557
1558config GPIO_MAX7360
1559	tristate "MAX7360 GPIO support"
1560	depends on MFD_MAX7360
1561	select GPIO_REGMAP
1562	select REGMAP_IRQ
1563	help
1564	  Allows to use MAX7360 I/O Expander PWM lines as GPIO and keypad COL
1565	  lines as GPO.
1566
1567	  This driver can also be built as a module. If so, the module will be
1568	  called gpio-max7360.
1569
1570config GPIO_MAX77620
1571	tristate "GPIO support for PMIC MAX77620 and MAX20024"
1572	depends on MFD_MAX77620
1573	select GPIOLIB_IRQCHIP
1574	help
1575	  GPIO driver for MAX77620 and MAX20024 PMIC from Maxim Semiconductor.
1576	  MAX77620 PMIC has 8 pins that can be configured as GPIOs. The
1577	  driver also provides interrupt support for each of the GPIOs.
1578	  Say yes here to enable the max77620 to be used as GPIO controller.
1579
1580config GPIO_MAX77650
1581	tristate "Maxim MAX77650/77651 GPIO support"
1582	depends on MFD_MAX77650
1583	help
1584	  GPIO driver for MAX77650/77651 PMIC from Maxim Semiconductor.
1585	  These chips have a single pin that can be configured as GPIO.
1586
1587config GPIO_MAX77759
1588	tristate "Maxim Integrated MAX77759 GPIO support"
1589	depends on MFD_MAX77759
1590	default MFD_MAX77759
1591	select GPIOLIB_IRQCHIP
1592	help
1593	  GPIO driver for MAX77759 PMIC from Maxim Integrated.
1594	  There are two GPIOs available on these chips in total, both of
1595	  which can also generate interrupts.
1596
1597	  This driver can also be built as a module. If so, the module will be
1598	  called gpio-max77759.
1599
1600config GPIO_NCT6694
1601	tristate "Nuvoton NCT6694 GPIO controller support"
1602	depends on MFD_NCT6694
1603	select GENERIC_IRQ_CHIP
1604	select GPIOLIB_IRQCHIP
1605	help
1606	  This driver supports 8 GPIO pins per bank that can all be interrupt
1607	  sources.
1608
1609	  This driver can also be built as a module. If so, the module will be
1610	  called gpio-nct6694.
1611
1612config GPIO_PALMAS
1613	tristate "TI PALMAS series PMICs GPIO"
1614	depends on MFD_PALMAS
1615	help
1616	  Select this option to enable GPIO driver for the TI PALMAS
1617	  series chip family.
1618
1619config GPIO_PMIC_EIC_SPRD
1620	tristate "Spreadtrum PMIC EIC support"
1621	depends on MFD_SC27XX_PMIC || COMPILE_TEST
1622	select GPIOLIB_IRQCHIP
1623	help
1624	  Say yes here to support Spreadtrum PMIC EIC device.
1625
1626config GPIO_QIXIS_FPGA
1627	tristate "NXP QIXIS FPGA GPIO support"
1628	depends on MFD_SIMPLE_MFD_I2C || COMPILE_TEST
1629	select GPIO_REGMAP
1630	select REGMAP_MMIO
1631	help
1632	  This enables support for the GPIOs found in the QIXIS FPGA which is
1633	  integrated on some NXP Layerscape boards such as LX2160ARDB and
1634	  LS1046AQDS.
1635
1636config GPIO_RC5T583
1637	bool "RICOH RC5T583 GPIO"
1638	depends on MFD_RC5T583
1639	help
1640	  Select this option to enable GPIO driver for the Ricoh RC5T583
1641	  chip family.
1642	  This driver provides the support for driving/reading the GPIO pins
1643	  of RC5T583 device through standard GPIO library.
1644
1645config GPIO_SL28CPLD
1646	tristate "Kontron sl28cpld GPIO support"
1647	depends on MFD_SL28CPLD || COMPILE_TEST
1648	select GPIO_REGMAP
1649	select GPIOLIB_IRQCHIP
1650	select REGMAP_IRQ
1651	help
1652	  This enables support for the GPIOs found on the Kontron sl28 CPLD.
1653
1654	  This driver can also be built as a module. If so, the module will be
1655	  called gpio-sl28cpld.
1656
1657config GPIO_STMPE
1658	tristate "STMPE GPIOs"
1659	depends on MFD_STMPE
1660	select GPIOLIB_IRQCHIP
1661	help
1662	  This enables support for the GPIOs found on the STMPE I/O
1663	  Expanders.
1664
1665config GPIO_TC3589X
1666	bool "TC3589X GPIOs"
1667	depends on MFD_TC3589X
1668	select GPIOLIB_IRQCHIP
1669	help
1670	  This enables support for the GPIOs found on the TC3589X
1671	  I/O Expander.
1672
1673config GPIO_TIMBERDALE
1674	bool "Support for timberdale GPIO IP"
1675	depends on MFD_TIMBERDALE
1676	select GPIOLIB_IRQCHIP
1677	help
1678	Add support for the GPIO IP in the timberdale FPGA.
1679
1680config GPIO_TN48M_CPLD
1681	tristate "Delta Networks TN48M switch CPLD GPIO driver"
1682	depends on MFD_TN48M_CPLD || COMPILE_TEST
1683	select GPIO_REGMAP
1684	help
1685	  This enables support for the GPIOs found on the Delta
1686	  Networks TN48M switch Lattice CPLD. It provides 12 pins in total,
1687	  they are input-only or output-only type.
1688
1689	  This driver can also be built as a module. If so, the
1690	  module will be called gpio-tn48m.
1691
1692config GPIO_TPS65086
1693	tristate "TI TPS65086 GPO"
1694	depends on MFD_TPS65086
1695	help
1696	  This driver supports the GPO on TI TPS65086x PMICs.
1697
1698config GPIO_TPS65218
1699	tristate "TPS65218 GPIO"
1700	depends on MFD_TPS65218
1701	help
1702	  Select this option to enable GPIO driver for the TPS65218
1703	  chip family.
1704
1705config GPIO_TPS65219
1706	tristate "TPS65219 GPIO"
1707	depends on MFD_TPS65219
1708	default MFD_TPS65219
1709	help
1710	  Select this option to enable GPIO driver for the TPS65219 chip
1711	  family.
1712	  GPIO0 is statically configured as either input or output prior to
1713	  Linux boot. It is used for MULTI_DEVICE_ENABLE function. This setting
1714	  is statically configured by NVM. GPIO0 can't be used as a generic
1715	  GPIO. It's either a GPO when MULTI_DEVICE_EN=0 or a GPI when
1716	  MULTI_DEVICE_EN=1.
1717
1718	  This driver can also be built as a module. If so, the module will be
1719	  called gpio_tps65219.
1720
1721config GPIO_TPS6586X
1722	bool "TPS6586X GPIO"
1723	depends on MFD_TPS6586X
1724	help
1725	  Select this option to enable GPIO driver for the TPS6586X
1726	  chip family.
1727
1728config GPIO_TPS65910
1729	bool "TPS65910 GPIO"
1730	depends on MFD_TPS65910
1731	help
1732	  Select this option to enable GPIO driver for the TPS65910
1733	  chip family.
1734
1735config GPIO_TPS65912
1736	tristate "TI TPS65912 GPIO"
1737	depends on MFD_TPS65912
1738	help
1739	  This driver supports TPS65912 GPIO chip.
1740
1741config GPIO_TPS68470
1742	tristate "TPS68470 GPIO"
1743	depends on INTEL_SKL_INT3472
1744	help
1745	  Select this option to enable GPIO driver for the TPS68470
1746	  chip family.
1747	  There are 7 GPIOs and few sensor-related GPIOs supported
1748	  by the TPS68470. While the 7 GPIOs can be configured as
1749	  input or output as appropriate, the sensor related GPIOs
1750	  are "output only" GPIOs.
1751
1752config GPIO_TQMX86
1753	tristate "TQ-Systems TQMx86 GPIO"
1754	depends on MFD_TQMX86 || COMPILE_TEST
1755	depends on HAS_IOPORT_MAP
1756	select GPIOLIB_IRQCHIP
1757	help
1758	  This driver supports GPIO on the TQMX86 IO controller.
1759
1760config GPIO_TWL4030
1761	tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
1762	depends on TWL4030_CORE
1763	help
1764	  Say yes here to access the GPIO signals of various multi-function
1765	  power management chips from Texas Instruments.
1766
1767config GPIO_TWL6040
1768	tristate "TWL6040 GPO"
1769	depends on TWL6040_CORE
1770	help
1771	  Say yes here to access the GPO signals of twl6040
1772	  audio chip from Texas Instruments.
1773
1774config GPIO_WHISKEY_COVE
1775	tristate "GPIO support for Whiskey Cove PMIC"
1776	depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC
1777	select GPIOLIB_IRQCHIP
1778	help
1779	  Support for GPIO pins on Whiskey Cove PMIC.
1780
1781	  Say Yes if you have an Intel SoC-based tablet with Whiskey Cove PMIC
1782	  inside.
1783
1784	  This driver can also be built as a module. If so, the module will be
1785	  called gpio-wcove.
1786
1787config GPIO_WM831X
1788	tristate "WM831x GPIOs"
1789	depends on MFD_WM831X
1790	help
1791	  Say yes here to access the GPIO signals of WM831x power management
1792	  chips from Wolfson Microelectronics.
1793
1794config GPIO_WM8350
1795	tristate "WM8350 GPIOs"
1796	depends on MFD_WM8350
1797	help
1798	  Say yes here to access the GPIO signals of WM8350 power management
1799	  chips from Wolfson Microelectronics.
1800
1801config GPIO_WM8994
1802	tristate "WM8994 GPIOs"
1803	depends on MFD_WM8994
1804	help
1805	  Say yes here to access the GPIO signals of WM8994 audio hub
1806	  CODECs from Wolfson Microelectronics.
1807
1808endmenu
1809
1810menu "Auxiliary Bus GPIO drivers"
1811	depends on AUXILIARY_BUS
1812
1813config GPIO_LTC4283
1814	tristate "Analog Devices LTC4283 GPIO support"
1815	depends on SENSORS_LTC4283
1816	help
1817	  If you say yes here you want the GPIO function available in Analog
1818	  Devices LTC4283 Negative Voltage Hot Swap Controller.
1819
1820	  This driver can also be built as a module. If so, the module will
1821	  be called gpio-ltc4283.
1822
1823endmenu
1824
1825menu "PCI GPIO expanders"
1826	depends on PCI
1827
1828config GPIO_AMD8111
1829	tristate "AMD 8111 GPIO driver"
1830	depends on X86 || COMPILE_TEST
1831	depends on HAS_IOPORT_MAP
1832	help
1833	  The AMD 8111 southbridge contains 32 GPIO pins which can be used.
1834
1835	  Note that usually system firmware/ACPI handles GPIO pins on their
1836	  own and users might easily break their systems with uncareful usage
1837	  of this driver!
1838
1839	  If unsure, say N
1840
1841config GPIO_BT8XX
1842	tristate "BT8XX GPIO abuser"
1843	depends on VIDEO_BT848=n || COMPILE_TEST
1844	help
1845	  The BT8xx frame grabber chip has 24 GPIO pins that can be abused
1846	  as a cheap PCI GPIO card.
1847
1848	  This chip can be found on Miro, Hauppauge and STB TV-cards.
1849
1850	  The card needs to be physically altered for using it as a
1851	  GPIO card. For more information on how to build a GPIO card
1852	  from a BT8xx TV card, see the documentation file at
1853	  Documentation/driver-api/gpio/bt8xxgpio.rst
1854
1855	  If unsure, say N.
1856
1857config GPIO_MERRIFIELD
1858	tristate "Intel Merrifield GPIO support"
1859	depends on X86_INTEL_MID
1860	select GPIO_TANGIER
1861	help
1862	  Say Y here to support Intel Merrifield GPIO.
1863
1864config GPIO_MLXBF
1865	tristate "Mellanox BlueField SoC GPIO"
1866	depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST)
1867	select GPIO_GENERIC
1868	help
1869	  Say Y here if you want GPIO support on Mellanox BlueField SoC.
1870
1871config GPIO_MLXBF2
1872	tristate "Mellanox BlueField 2 SoC GPIO"
1873	depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST)
1874	select GPIO_GENERIC
1875	select GPIOLIB_IRQCHIP
1876	help
1877	  Say Y here if you want GPIO support on Mellanox BlueField 2 SoC.
1878
1879config GPIO_MLXBF3
1880	tristate "Mellanox BlueField 3 SoC GPIO"
1881	depends on (MELLANOX_PLATFORM && ARM64) || COMPILE_TEST
1882	select GPIO_GENERIC
1883	select GPIOLIB_IRQCHIP
1884	help
1885	  Say Y if you want GPIO support on Mellanox BlueField 3 SoC.
1886	  This GPIO controller supports interrupt handling and enables the
1887	  manipulation of certain GPIO pins.
1888	  This controller should be used in parallel with pinctrl-mlxbf3 to
1889	  control the desired GPIOs.
1890	  This driver can also be built as a module called mlxbf3-gpio.
1891
1892config GPIO_ML_IOH
1893	tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
1894	depends on X86 || COMPILE_TEST
1895	select GENERIC_IRQ_CHIP
1896	help
1897	  ML7213 is companion chip for Intel Atom E6xx series.
1898	  This driver can be used for OKI SEMICONDUCTOR ML7213 IOH (Input/Output
1899	  Hub) which is for IVI (In-Vehicle Infotainment) use.
1900	  This driver can access the IOH's GPIO device.
1901
1902config GPIO_PCH
1903	tristate "Intel EG20T PCH/LAPIS Semiconductor IOH (ML7223/ML7831) GPIO"
1904	depends on X86_32 || MIPS || COMPILE_TEST
1905	select GENERIC_IRQ_CHIP
1906	help
1907	  This driver is for PCH (Platform Controller Hub) GPIO of Intel Topcliff,
1908	  which is an IOH (Input/Output Hub) for x86 embedded processor.
1909	  This driver can access PCH GPIO device.
1910
1911	  This driver also can be used for LAPIS Semiconductor IOH (Input/
1912	  Output Hub), ML7223 and ML7831.
1913	  ML7223 IOH is for MP (Media Phone) use.
1914	  ML7831 IOH is for general purpose use.
1915	  ML7223/ML7831 is companion chip for Intel Atom E6xx series.
1916	  ML7223/ML7831 is completely compatible for Intel EG20T PCH.
1917
1918config GPIO_PCI_IDIO_16
1919	tristate "ACCES PCI-IDIO-16 GPIO support"
1920	select REGMAP_MMIO
1921	select GPIO_IDIO_16
1922	help
1923	  Enables GPIO support for the ACCES PCI-IDIO-16. An interrupt is
1924	  generated when any of the inputs change state (low to high or high to
1925	  low). Input filter control is not supported by this driver, and the
1926	  input filters are deactivated by this driver.
1927
1928config GPIO_PCIE_IDIO_24
1929	tristate "ACCES PCIe-IDIO-24 GPIO support"
1930	select REGMAP_IRQ
1931	select REGMAP_MMIO
1932	select GPIOLIB_IRQCHIP
1933	select GPIO_REGMAP
1934	help
1935	  Enables GPIO support for the ACCES PCIe-IDIO-24 family (PCIe-IDIO-24,
1936	  PCIe-IDI-24, PCIe-IDO-24, PCIe-IDIO-12). An interrupt is generated
1937	  when any of the inputs change state (low to high or high to low).
1938	  Input filter control is not supported by this driver, and the input
1939	  filters are deactivated by this driver.
1940
1941config GPIO_RDC321X
1942	tristate "RDC R-321x GPIO support"
1943	select MFD_CORE
1944	select MFD_RDC321X
1945	help
1946	  Support for the RDC R321x SoC GPIOs over southbridge
1947	  PCI configuration space.
1948
1949config GPIO_SODAVILLE
1950	bool "Intel Sodaville GPIO support"
1951	depends on X86 && OF
1952	select GPIO_GENERIC
1953	select GENERIC_IRQ_CHIP
1954	help
1955	  Say Y here to support Intel Sodaville GPIO.
1956
1957endmenu
1958
1959menu "SPI GPIO expanders"
1960	depends on SPI_MASTER
1961
1962config GPIO_74X164
1963	tristate "74x164 serial-in/parallel-out 8-bits shift register"
1964	help
1965	  Driver for 74x164 compatible serial-in/parallel-out 8-outputs
1966	  shift registers. This driver can be used to provide access
1967	  to more GPIO outputs.
1968
1969config GPIO_MAX3191X
1970	tristate "Maxim MAX3191x industrial serializer"
1971	select CRC8
1972	help
1973	  GPIO driver for Maxim MAX31910, MAX31911, MAX31912, MAX31913,
1974	  MAX31953 and MAX31963 industrial serializer, a daisy-chainable
1975	  chip to make 8 digital 24V inputs available via SPI.  Supports
1976	  CRC checksums to guard against electromagnetic interference,
1977	  as well as undervoltage and overtemperature detection.
1978
1979config GPIO_MAX7301
1980	tristate "Maxim MAX7301 GPIO expander"
1981	select GPIO_MAX730X
1982	help
1983	  GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
1984
1985config GPIO_MC33880
1986	tristate "Freescale MC33880 high-side/low-side switch"
1987	help
1988	  SPI driver for Freescale MC33880 high-side/low-side switch.
1989	  This provides GPIO interface supporting inputs and outputs.
1990
1991config GPIO_PISOSR
1992	tristate "Generic parallel-in/serial-out shift register"
1993	help
1994	  GPIO driver for SPI compatible parallel-in/serial-out shift
1995	  registers. These are input only devices.
1996
1997config GPIO_XRA1403
1998	tristate "EXAR XRA1403 16-bit GPIO expander"
1999	select REGMAP_SPI
2000	help
2001	  GPIO driver for EXAR XRA1403 16-bit SPI-based GPIO expander.
2002
2003config GPIO_MOXTET
2004	tristate "Turris Mox Moxtet bus GPIO expander"
2005	depends on MOXTET
2006	help
2007	  Say yes here if you are building for the Turris Mox router.
2008	  This is the driver needed for configuring the GPIOs via the Moxtet
2009	  bus. For example the Mox module with SFP cage needs this driver
2010	  so that phylink can use corresponding GPIOs.
2011
2012endmenu
2013
2014menu "USB GPIO expanders"
2015	depends on USB
2016
2017config GPIO_VIPERBOARD
2018	tristate "Viperboard GPIO a & b support"
2019	depends on MFD_VIPERBOARD
2020	help
2021	  Say yes here to access the GPIO signals of Nano River
2022	  Technologies Viperboard. There are two GPIO chips on the
2023	  board: gpioa and gpiob.
2024	  See viperboard API specification and Nano
2025	  River Tech's viperboard.h for detailed meaning
2026	  of the module parameters.
2027
2028config GPIO_MPSSE
2029	tristate "FTDI MPSSE GPIO support"
2030	select GPIOLIB_IRQCHIP
2031	help
2032	  GPIO driver for FTDI's MPSSE interface. These can do input and
2033	  output. Each MPSSE provides 16 IO pins.
2034
2035config GPIO_USBIO
2036	tristate "Intel USBIO GPIO support"
2037	depends on USB_USBIO
2038	default USB_USBIO
2039	help
2040	  Select this option to enable GPIO driver for the INTEL
2041	  USBIO driver stack.
2042
2043	  This driver can also be built as a module. If so, the module
2044	  will be called gpio_usbio.
2045
2046endmenu
2047
2048menu "Virtual GPIO drivers"
2049
2050config GPIO_AGGREGATOR
2051	tristate "GPIO Aggregator"
2052	select CONFIGFS_FS
2053	help
2054	  Say yes here to enable the GPIO Aggregator, which provides a way to
2055	  aggregate existing GPIO lines into a new virtual GPIO chip.
2056	  This can serve the following purposes:
2057	    - Assign permissions for a collection of GPIO lines to a user,
2058	    - Export a collection of GPIO lines to a virtual machine,
2059	    - Provide a generic driver for a GPIO-operated device in an
2060	      industrial control context, to be operated from userspace using
2061	      the GPIO chardev interface.
2062
2063config GPIO_LATCH
2064	tristate "GPIO latch driver"
2065	help
2066	  Say yes here to enable a driver for GPIO multiplexers based on latches
2067	  connected to other GPIOs.
2068
2069config GPIO_LINE_MUX
2070	tristate "GPIO line mux driver"
2071	depends on OF
2072	select MULTIPLEXER
2073	help
2074	  Say Y here to support the GPIO line mux, which can provide virtual
2075	  GPIOs backed by a shared real GPIO and a multiplexer in a 1-to-many
2076	  fashion.
2077
2078config GPIO_MOCKUP
2079	tristate "GPIO Testing Driver (DEPRECATED)"
2080	select IRQ_SIM
2081	help
2082	  This module is DEPRECATED. Please consider using gpio-sim instead.
2083
2084	  This enables GPIO Testing driver, which provides a way to test GPIO
2085	  subsystem through sysfs (or char device) and debugfs.
2086	  User could use it through the script in
2087	  tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in
2088	  it.
2089
2090config GPIO_VIRTIO
2091	tristate "VirtIO GPIO support"
2092	depends on VIRTIO
2093	select GPIOLIB_IRQCHIP
2094	help
2095	  Say Y here to enable guest support for virtio-based GPIO controllers.
2096
2097	  These virtual GPIOs can be routed to real GPIOs or attached to
2098	  simulators on the host (like QEMU).
2099
2100config GPIO_SIM
2101	tristate "GPIO Simulator Module"
2102	depends on SYSFS
2103	select IRQ_SIM
2104	select CONFIGFS_FS
2105	help
2106	  This enables the GPIO simulator - a configfs-based GPIO testing
2107	  driver.
2108
2109config GPIO_SHARED_PROXY
2110	tristate "Proxy driver for non-exclusive GPIOs"
2111	default m
2112	depends on GPIO_SHARED || COMPILE_TEST
2113	select AUXILIARY_BUS
2114	help
2115	  This enables the GPIO shared proxy driver - an abstraction layer
2116	  for GPIO pins that are shared by multiple devices.
2117
2118endmenu
2119
2120menu "GPIO Debugging utilities"
2121
2122config GPIO_SLOPPY_LOGIC_ANALYZER
2123	tristate "Sloppy GPIO logic analyzer"
2124	depends on (GPIOLIB || COMPILE_TEST) && CPUSETS && DEBUG_FS && EXPERT
2125	help
2126	  This option enables support for a sloppy logic analyzer using polled
2127	  GPIOs. Use the 'tools/gpio/gpio-sloppy-logic-analyzer' script with
2128	  this driver. The script will make it easier to use and will also
2129	  isolate a CPU for the polling task. Note that this is a last resort
2130	  analyzer which can be affected by latencies, non-deterministic code
2131	  paths, or NMIs. However, for e.g. remote development, it may be useful
2132	  to get a first view and aid further debugging.
2133
2134	  If this driver is built as a module it will be called
2135	  'gpio-sloppy-logic-analyzer'.
2136
2137config GPIO_VIRTUSER
2138	tristate "GPIO Virtual User Testing Module"
2139	select DEBUG_FS
2140	select CONFIGFS_FS
2141	select IRQ_WORK
2142	help
2143	  Say Y here to enable the configurable, configfs-based virtual GPIO
2144	  consumer testing driver.
2145
2146	  This driver is aimed as a helper in spotting any regressions in
2147	  hot-unplug handling in GPIOLIB.
2148
2149endmenu
2150
2151endif
2152