1 # SPDX-License-Identifier: GPL-2.0-only
3 # PINCTRL infrastructure and drivers
11 config GENERIC_PINCTRL_GROUPS
15 bool "Support pin multiplexing controllers" if COMPILE_TEST
17 config GENERIC_PINMUX_FUNCTIONS
22 bool "Support pin configuration controllers" if COMPILE_TEST
24 config GENERIC_PINCONF
29 bool "Debug PINCTRL calls"
30 depends on DEBUG_KERNEL
32 Say Y here to add some extra checks and diagnostics to PINCTRL calls.
34 config PINCTRL_ARTPEC6
35 bool "Axis ARTPEC-6 pin controller driver"
36 depends on MACH_ARTPEC6
38 select GENERIC_PINCONF
40 This is the driver for the Axis ARTPEC-6 pin controller. This driver
41 supports pin function multiplexing as well as pin bias and drive
42 strength configuration. Device tree integration instructions can be
43 found in Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt
46 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
47 depends on MFD_AS3722 && GPIOLIB
49 select GENERIC_PINCONF
51 AS3722 device supports the configuration of GPIO pins for different
52 functionality. This driver supports the pinmux, push-pull and
53 open drain configuration for the GPIO pins of AS3722 devices. It also
54 supports the GPIO functionality through gpiolib.
57 tristate "X-Powers AXP209 PMIC pinctrl and GPIO Support"
61 select GENERIC_PINCONF
64 AXP PMICs provides multiple GPIOs that can be muxed for different
65 functions. This driver bundles a pinctrl driver to select the function
66 muxing and a GPIO driver to handle the GPIO when the GPIO function is
68 Say yes to enable pinctrl and GPIO support for the AXP209 PMIC
71 bool "AT91 pinctrl driver"
78 select GPIOLIB_IRQCHIP
80 Say Y here to enable the at91 pinctrl driver
82 config PINCTRL_AT91PIO4
83 bool "AT91 PIO4 pinctrl driver"
85 depends on ARCH_AT91 || COMPILE_TEST
87 select GENERIC_PINCONF
89 select GPIOLIB_IRQCHIP
92 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
93 controller available on sama5d2 SoC.
96 tristate "AMD GPIO pin control"
98 depends on ACPI || COMPILE_TEST
100 select GPIOLIB_IRQCHIP
103 select GENERIC_PINCONF
105 driver for memory mapped GPIO functionality on AMD platforms
106 (x86 or arm).Most pins are usually muxed to some other
107 functionality by firmware,so only a small amount is available
110 Requires ACPI/FDT device enumeration code to set up a platform
113 config PINCTRL_BM1880
114 bool "Bitmain BM1880 Pinctrl driver"
115 depends on OF && (ARCH_BITMAIN || COMPILE_TEST)
119 Pinctrl driver for Bitmain BM1880 SoC.
121 config PINCTRL_DA850_PUPD
122 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
123 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
125 select GENERIC_PINCONF
127 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
128 pullup/pulldown pin groups.
130 config PINCTRL_DA9062
131 tristate "Dialog Semiconductor DA9062 PMIC pinctrl and GPIO Support"
132 depends on MFD_DA9062
135 The Dialog DA9062 PMIC provides multiple GPIOs that can be muxed for
136 different functions. This driver bundles a pinctrl driver to select the
137 function muxing and a GPIO driver to handle the GPIO when the GPIO
138 function is selected.
140 Say yes to enable pinctrl and GPIO support for the DA9062 PMIC.
142 config PINCTRL_DIGICOLOR
144 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
146 select GENERIC_PINCONF
148 config PINCTRL_LANTIQ
154 config PINCTRL_LPC18XX
155 bool "NXP LPC18XX/43XX SCU pinctrl driver"
156 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
159 select GENERIC_PINCONF
161 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
163 config PINCTRL_FALCON
165 depends on SOC_FALCON
166 depends on PINCTRL_LANTIQ
168 config PINCTRL_GEMINI
170 depends on ARCH_GEMINI
173 select GENERIC_PINCONF
176 config PINCTRL_MCP23S08_I2C
180 config PINCTRL_MCP23S08_SPI
184 config PINCTRL_MCP23S08
185 tristate "Microchip MCP23xxx I/O expander"
186 depends on SPI_MASTER || I2C
188 select GPIOLIB_IRQCHIP
189 select GENERIC_PINCONF
190 select PINCTRL_MCP23S08_I2C if I2C
191 select PINCTRL_MCP23S08_SPI if SPI_MASTER
193 SPI/I2C driver for Microchip MCP23S08 / MCP23S17 / MCP23S18 /
194 MCP23008 / MCP23017 / MCP23018 I/O expanders.
195 This provides a GPIO interface supporting inputs and outputs and a
196 corresponding interrupt-controller.
203 select GENERIC_PINCONF
206 select GPIOLIB_IRQCHIP
209 config PINCTRL_ROCKCHIP
212 select GENERIC_PINCONF
213 select GENERIC_IRQ_CHIP
217 bool "Renesas RZ/A1 gpio and pinctrl driver"
219 depends on ARCH_R7S72100 || COMPILE_TEST
221 select GENERIC_PINCTRL_GROUPS
222 select GENERIC_PINMUX_FUNCTIONS
223 select GENERIC_PINCONF
225 This selects pinctrl driver for Renesas RZ/A1 platforms.
228 bool "Renesas RZ/A2 gpio and pinctrl driver"
230 depends on ARCH_R7S9210 || COMPILE_TEST
232 select GENERIC_PINCTRL_GROUPS
233 select GENERIC_PINMUX_FUNCTIONS
234 select GENERIC_PINCONF
236 This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms.
239 bool "Renesas RZ/N1 pinctrl driver"
241 depends on ARCH_RZN1 || COMPILE_TEST
242 select GENERIC_PINCTRL_GROUPS
243 select GENERIC_PINMUX_FUNCTIONS
244 select GENERIC_PINCONF
246 This selects pinctrl driver for Renesas RZ/N1 devices.
248 config PINCTRL_SINGLE
249 tristate "One-register-per-pin type device tree based pinctrl driver"
252 select GENERIC_PINCTRL_GROUPS
253 select GENERIC_PINMUX_FUNCTIONS
254 select GENERIC_PINCONF
256 This selects the device tree based generic pinctrl driver.
259 bool "CSR SiRFprimaII pin controller driver"
263 select GENERIC_PINCONF
264 select GPIOLIB_IRQCHIP
266 config PINCTRL_SX150X
267 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
271 select GENERIC_PINCONF
273 select GPIOLIB_IRQCHIP
276 Say yes here to provide support for Semtech SX150x-series I2C
277 GPIO expanders as pinctrl module.
278 Compatible models include:
279 - 8 bits: sx1508q, sx1502q
280 - 16 bits: sx1509q, sx1506q
282 config PINCTRL_PISTACHIO
283 def_bool y if MACH_PISTACHIO
286 select GENERIC_PINCONF
287 select GPIOLIB_IRQCHIP
295 select GPIOLIB_IRQCHIP
298 tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
301 select GENERIC_PINCONF
302 select GPIOLIB_IRQCHIP
305 Driver for STMicroelectronics Multi-Function eXpander (STMFX)
307 This provides a GPIO interface supporting inputs and outputs,
308 and configuring push-pull, open-drain, and can also be used as
309 interrupt-controller.
312 bool "U300 pin controller driver"
315 select GENERIC_PINCONF
317 config PINCTRL_COH901
318 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
319 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
320 select GPIOLIB_IRQCHIP
322 Say yes here to support GPIO interface on ST-Ericsson U300.
323 The names of the two IP block variants supported are
324 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
325 ports of 8 GPIO pins each.
327 config PINCTRL_MAX77620
328 tristate "MAX77620/MAX20024 Pincontrol support"
329 depends on MFD_MAX77620 && OF
331 select GENERIC_PINCONF
333 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
334 This PMIC has 8 GPIO pins that work as GPIO as well as special
335 function in alternate mode. This driver also configure push-pull,
336 open drain, FPS slots etc.
338 config PINCTRL_PALMAS
339 tristate "Pinctrl driver for the PALMAS Series MFD devices"
340 depends on OF && MFD_PALMAS
342 select GENERIC_PINCONF
344 Palmas device supports the configuration of pins for different
345 functionality. This driver supports the pinmux, push-pull and
346 open drain configuration for the Palmas series devices like
347 TPS65913, TPS80036 etc.
350 bool "Microchip PIC32 pin controller driver"
352 depends on MACH_PIC32
354 select GENERIC_PINCONF
355 select GPIOLIB_IRQCHIP
358 This is the pin controller and gpio driver for Microchip PIC32
359 microcontrollers. This option is selected automatically when specific
360 machine and arch are selected to build.
362 config PINCTRL_PIC32MZDA
363 def_bool y if PIC32MZDA
367 bool "Pinctrl driver for Xilinx Zynq"
370 select GENERIC_PINCONF
372 This selects the pinctrl driver for Xilinx Zynq.
374 config PINCTRL_INGENIC
375 bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
378 depends on MIPS || COMPILE_TEST
379 select GENERIC_PINCONF
380 select GENERIC_PINCTRL_GROUPS
381 select GENERIC_PINMUX_FUNCTIONS
383 select GPIOLIB_IRQCHIP
387 tristate "Pinctrl and GPIO driver for RK805 PMIC"
391 select GENERIC_PINCONF
393 This selects the pinctrl driver for RK805.
395 config PINCTRL_OCELOT
396 bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
400 select GPIOLIB_IRQCHIP
401 select GENERIC_PINCONF
402 select GENERIC_PINCTRL_GROUPS
403 select GENERIC_PINMUX_FUNCTIONS
407 source "drivers/pinctrl/actions/Kconfig"
408 source "drivers/pinctrl/aspeed/Kconfig"
409 source "drivers/pinctrl/bcm/Kconfig"
410 source "drivers/pinctrl/berlin/Kconfig"
411 source "drivers/pinctrl/freescale/Kconfig"
412 source "drivers/pinctrl/intel/Kconfig"
413 source "drivers/pinctrl/mvebu/Kconfig"
414 source "drivers/pinctrl/nomadik/Kconfig"
415 source "drivers/pinctrl/nuvoton/Kconfig"
416 source "drivers/pinctrl/pxa/Kconfig"
417 source "drivers/pinctrl/qcom/Kconfig"
418 source "drivers/pinctrl/samsung/Kconfig"
419 source "drivers/pinctrl/sh-pfc/Kconfig"
420 source "drivers/pinctrl/spear/Kconfig"
421 source "drivers/pinctrl/sprd/Kconfig"
422 source "drivers/pinctrl/stm32/Kconfig"
423 source "drivers/pinctrl/sunxi/Kconfig"
424 source "drivers/pinctrl/tegra/Kconfig"
425 source "drivers/pinctrl/ti/Kconfig"
426 source "drivers/pinctrl/uniphier/Kconfig"
427 source "drivers/pinctrl/vt8500/Kconfig"
428 source "drivers/pinctrl/mediatek/Kconfig"
429 source "drivers/pinctrl/zte/Kconfig"
430 source "drivers/pinctrl/meson/Kconfig"
431 source "drivers/pinctrl/cirrus/Kconfig"
435 depends on SOC_TYPE_XWAY
436 depends on PINCTRL_LANTIQ
440 depends on OF && ARC_PLAT_TB10X
443 config PINCTRL_EQUILIBRIUM
444 tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC"
445 depends on OF && HAS_IOMEM
446 depends on X86 || COMPILE_TEST
451 select GPIOLIB_IRQCHIP
452 select GENERIC_PINCONF
453 select GENERIC_PINCTRL_GROUPS
454 select GENERIC_PINMUX_FUNCTIONS
457 Equilibrium pinctrl driver is a pinctrl & GPIO driver for Intel Lightning
458 Mountain network processor SoC that supports both the linux GPIO and pin
459 control frameworks. It provides interfaces to setup pinmux, assign desired
460 pin functions, configure GPIO attributes for LGM SoC pins. Pinmux and
461 pinconf settings are retrieved from device tree.