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