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