GPIO Support

modulename: devres.ko

and/or

gpiolib.ko

and/or

gpiolib-legacy.ko

and/or

gpiolib-devprop.ko

and/or

gpio.ko

configname: CONFIG_GPIOLIB

Linux Kernel Configuration
└─>Device Drivers
└─>GPIO Support
In linux kernel since version 2.6.27 (release Date: 2008-10-09)  
This enables GPIO support through the generic GPIO library.
You only need to enable this, if you also want to enable
one or more of the GPIO drivers below.

If unsure, say N.

source code:
selects
CONFIG_ANON_INODES

is selected by
CONFIG_SMC91X
CONFIG_KEYBOARD_GPIO_POLLED
CONFIG_KEYBOARD_MATRIX
CONFIG_MOUSE_GPIO
CONFIG_TOUCHSCREEN_SIS_I2C
CONFIG_INPUT_GPIO_DECODER
CONFIG_INPUT_RB532_BUTTON
CONFIG_INPUT_DRV260X_HAPTICS
CONFIG_I2C_GPIO
CONFIG_SPI_ATH79
CONFIG_SPI_GPIO
CONFIG_SPI_OC_TINY
CONFIG_PINCTRL_AS3722
CONFIG_PINCTRL_PISTACHIO
CONFIG_PINCTRL_COH901
CONFIG_PINCTRL_NOMADIK
CONFIG_PINCTRL_APQ8064
CONFIG_PINCTRL_APQ8084
CONFIG_PINCTRL_IPQ4019
CONFIG_PINCTRL_IPQ8064
CONFIG_PINCTRL_IPQ8074
CONFIG_PINCTRL_MSM8660
CONFIG_PINCTRL_MSM8960
CONFIG_PINCTRL_MDM9615
CONFIG_PINCTRL_MSM8X74
CONFIG_PINCTRL_MSM8916
CONFIG_PINCTRL_MSM8994
CONFIG_PINCTRL_MSM8996
CONFIG_PINCTRL_MSM8998
CONFIG_PINCTRL_QDF2XXX
CONFIG_PINCTRL_QCOM_SPMI_PMIC
CONFIG_PINCTRL_QCOM_SSBI_PMIC
CONFIG_PINCTRL_SDM845
CONFIG_PINCTRL_EXYNOS
CONFIG_PINCTRL_SPEAR_PLGPIO
CONFIG_GPIOLIB_IRQCHIP
CONFIG_GPIO_74XX_MMIO
CONFIG_GPIO_ALTERA
CONFIG_GPIO_AMDPT
CONFIG_GPIO_ASPEED
CONFIG_GPIO_ATH79
CONFIG_GPIO_BRCMSTB
CONFIG_GPIO_CLPS711X
CONFIG_GPIO_DWAPB
CONFIG_GPIO_EIC_SPRD
CONFIG_GPIO_EP93XX
CONFIG_GPIO_GE_FPGA
CONFIG_GPIO_FTGPIO010
CONFIG_GPIO_GENERIC_PLATFORM
CONFIG_GPIO_GRGPIO
CONFIG_GPIO_HLWD
CONFIG_GPIO_ICH
CONFIG_GPIO_INGENIC
CONFIG_GPIO_IOP
CONFIG_GPIO_LYNXPOINT
CONFIG_GPIO_MENZ127
CONFIG_GPIO_MOCKUP
CONFIG_GPIO_MPC8XXX
CONFIG_GPIO_MT7621
CONFIG_GPIO_MVEBU
CONFIG_GPIO_MXC
CONFIG_GPIO_MXS
CONFIG_GPIO_OMAP
CONFIG_GPIO_PL061
CONFIG_GPIO_PMIC_EIC_SPRD
CONFIG_GPIO_RCAR
CONFIG_GPIO_SPEAR_SPICS
CONFIG_GPIO_SPRD
CONFIG_GPIO_STA2X11
CONFIG_GPIO_TB10X
CONFIG_GPIO_TEGRA186
CONFIG_GPIO_TS4800
CONFIG_GPIO_THUNDERX
CONFIG_GPIO_UNIPHIER
CONFIG_GPIO_VF610
CONFIG_GPIO_VX855
CONFIG_GPIO_XGENE_SB
CONFIG_GPIO_XLP
CONFIG_GPIO_ZYNQ
CONFIG_GPIO_ZX
CONFIG_GPIO_LOONGSON1
CONFIG_GPIO_104_DIO_48E
CONFIG_GPIO_104_IDIO_16
CONFIG_GPIO_104_IDI_48
CONFIG_GPIO_GPIO_MM
CONFIG_GPIO_SCH
CONFIG_GPIO_WINBOND
CONFIG_GPIO_WS16C48
CONFIG_GPIO_ADP5588_IRQ
CONFIG_GPIO_ADNP
CONFIG_GPIO_MAX7300
CONFIG_GPIO_MAX732X_IRQ
CONFIG_GPIO_PCA953X_IRQ
CONFIG_GPIO_PCF857X
CONFIG_GPIO_TS4900
CONFIG_GPIO_CRYSTAL_COVE
CONFIG_GPIO_DLN2
CONFIG_GPIO_MAX77620
CONFIG_GPIO_STMPE
CONFIG_GPIO_TC3589X
CONFIG_GPIO_WHISKEY_COVE
CONFIG_GPIO_INTEL_MID
CONFIG_GPIO_MERRIFIELD
CONFIG_GPIO_ML_IOH
CONFIG_GPIO_PCH
CONFIG_GPIO_PCI_IDIO_16
CONFIG_GPIO_PCIE_IDIO_24
CONFIG_GPIO_RDC321X
CONFIG_GPIO_SODAVILLE
CONFIG_GPIO_MAX3191X
CONFIG_GPIO_MAX7301
CONFIG_GPIO_XRA1403
CONFIG_MANAGER_SBS
CONFIG_CHARGER_BQ24257
CONFIG_CHARGER_BQ25890
CONFIG_CHARGER_RT9455
CONFIG_SENSORS_SHT15
CONFIG_MEN_A21_WDT
CONFIG_SSB_DRIVER_GPIO
CONFIG_BCMA_DRIVER_GPIO
CONFIG_MFD_AAT2870_CORE
CONFIG_MFD_ASIC3
CONFIG_INTEL_SOC_PMIC
CONFIG_INTEL_SOC_PMIC_CHTDC_TI
CONFIG_MFD_TPS65910
CONFIG_MFD_TIMBERDALE
CONFIG_MFD_VEXPRESS_SYSREG
CONFIG_REGULATOR_TPS65132
CONFIG_VIDEO_COBALT
CONFIG_VIDEO_ADV7604
CONFIG_VIDEO_OV5640
CONFIG_FB_VIA
CONFIG_FB_SSD1307
CONFIG_FB_OMAP2
CONFIG_SND_OMAP_SOC_RX51
CONFIG_SND_SOC_INTEL_BDW_RT5677_MACH
CONFIG_SND_SOC_ROCKCHIP_MAX98090
CONFIG_SND_SOC_ROCKCHIP_RT5645
CONFIG_SND_SOC_RK3288_HDMI_ANALOG
CONFIG_SND_SOC_RK3399_GRU_SOUND
CONFIG_SND_SOC_SMARTQ
CONFIG_SND_SOC_SAMSUNG_TM2_WM5110
CONFIG_SND_SOC_TEGRA_RT5640
CONFIG_SND_SOC_TEGRA_WM8753
CONFIG_SND_SOC_TEGRA_WM8903
CONFIG_SND_SOC_TEGRA_WM9712
CONFIG_SND_SOC_TEGRA_ALC5632
CONFIG_SND_SOC_TEGRA_MAX98090
CONFIG_SND_SOC_TEGRA_RT5677
CONFIG_SND_SOC_TEGRA_SGTL5000
CONFIG_HID_CP2112
CONFIG_USB_GPIO_VBUS
CONFIG_LEDS_LP3952
CONFIG_HD44780
CONFIG_AD7606
CONFIG_AD7780
CONFIG_MFD_NVEC
CONFIG_FB_TFT
CONFIG_INTEL_INT0002_VGPIO
CONFIG_HX711
CONFIG_AK8975
CONFIG_AK09911
CONFIG_PHY_MAPPHONE_MDM6600
CONFIG_FSI_MASTER_GPIO
CONFIG_FSI_MASTER_AST_CF
CONFIG_BT_HCIUART_NOKIA
CONFIG_BT_HCIUART_INTEL
CONFIG_BT_HCIUART_BCM
CONFIG_BT_HCIUART_RTL

is depended by
CONFIG_CPU_LOONGSON3
CONFIG_CPU_LOONGSON2F
CONFIG_MSCC_OCELOT
CONFIG_ARCH_IOP32X
CONFIG_ARCH_IOP33X
CONFIG_ARCH_IXP4XX
CONFIG_ARCH_PXA
CONFIG_ARCH_OMAP1
CONFIG_ARCH_EFM32
CONFIG_ARCH_MXC
CONFIG_ARCH_MVEBU
CONFIG_MACH_KIRKWOOD
CONFIG_ARCH_BERLIN
CONFIG_ARCH_MV78XX0
CONFIG_ARCH_BCM_IPROC
CONFIG_ARCH_BCM_MOBILE
CONFIG_ARCH_BCM2835
CONFIG_ARCH_U8500
CONFIG_ARCH_MMP
CONFIG_ARCH_SUNXI
CONFIG_ARCH_NPCM7XX
CONFIG_ARCH_RENESAS
CONFIG_ARCH_CLPS711X
CONFIG_ARCH_OMAP2PLUS
CONFIG_ARCH_STI
CONFIG_ARCH_MXS
CONFIG_ARCH_MESON
CONFIG_ARCH_ROCKCHIP
CONFIG_PLAT_SPEAR
CONFIG_INTEGRATOR_IMPD1
CONFIG_ARCH_S5PV210
CONFIG_ARCH_MOXART
CONFIG_ARCH_NOMADIK
CONFIG_ARCH_DIGICOLOR
CONFIG_ARCH_TEGRA
CONFIG_ARCH_U300
CONFIG_ARCH_S3C64XX
CONFIG_ARCH_PICOXCELL
CONFIG_ARCH_VEXPRESS
CONFIG_ARCH_EXYNOS
CONFIG_ARCH_GEMINI
CONFIG_ARCH_OXNAS
CONFIG_ARCH_ORION5X
CONFIG_PLAT_S3C24XX
CONFIG_ARCH_SIRF
CONFIG_ARCH_AT91
CONFIG_SH_7724_SOLUTION_ENGINE
CONFIG_SH_SH7757LCR
CONFIG_SH_URQUELL
CONFIG_SH_MIGOR
CONFIG_SH_AP325RXA
CONFIG_SH_KFR2R09
CONFIG_SH_ECOVEC
CONFIG_SH_MAGIC_PANEL_R2
CONFIG_SH_RSK7203
CONFIG_SH_RSK7264
CONFIG_SH_RSK7269
CONFIG_SH_R7785RP
CONFIG_STA2X11
CONFIG_OLPC
CONFIG_ALIX
CONFIG_NET5501
CONFIG_GEOS
CONFIG_QE_GPIO
CONFIG_CPM2
CONFIG_SIMPLE_GPIO
CONFIG_MCU_MPC8349EMITX
CONFIG_8xx_GPIO
CONFIG_PPC4xx_GPIO
CONFIG_GE_IMP3A
CONFIG_SGY_CTS1000
CONFIG_CORENET_GENERIC
CONFIG_GEF_PPC9A
CONFIG_GEF_SBC310
CONFIG_GEF_SBC610
CONFIG_NET_DSA_VITESSE_VSC73XX
CONFIG_NET_XGENE
CONFIG_I2C_MUX_LTC4306
CONFIG_PINCTRL_AXP209
CONFIG_PINCTRL_AT91
CONFIG_PINCTRL_AT91PIO4
CONFIG_PINCTRL_AMD
CONFIG_PINCTRL_MCP23S08
CONFIG_PINCTRL_OXNAS
CONFIG_PINCTRL_RZA1
CONFIG_PINCTRL_SX150X
CONFIG_PINCTRL_RK805
CONFIG_PINCTRL_OCELOT
CONFIG_PINCTRL_OWL
CONFIG_PINCTRL_BCM2835
CONFIG_PINCTRL_BAYTRAIL
CONFIG_PINCTRL_CHERRYVIEW
CONFIG_PINCTRL_INTEL
CONFIG_PINCTRL_SH_PFC_GPIO
CONFIG_PINCTRL_STM32
CONFIG_PINCTRL_SUNXI
CONFIG_PINCTRL_MTK
CONFIG_PINCTRL_MT7622
CONFIG_PINCTRL_MESON
CONFIG_PINCTRL_TB10X
CONFIG_MFD_TC6393XB
CONFIG_STA2X11_VIP
CONFIG_CEC_GPIO
CONFIG_SND_SOC_SIMPLE_AMPLIFIER
CONFIG_SND_SOC_MAX9759
CONFIG_OMAP_GPMC
CONFIG_STX104
CONFIG_AD5592R
CONFIG_AD5593R