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"
86 depends on ARCH_AT91 || COMPILE_TEST
88 select GENERIC_PINCONF
90 select GPIOLIB_IRQCHIP
93 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
94 controller available on sama5d2 SoC.
97 tristate "AMD GPIO pin control"
99 depends on ACPI || COMPILE_TEST
101 select GPIOLIB_IRQCHIP
104 select GENERIC_PINCONF
106 driver for memory mapped GPIO functionality on AMD platforms
107 (x86 or arm).Most pins are usually muxed to some other
108 functionality by firmware,so only a small amount is available
111 Requires ACPI/FDT device enumeration code to set up a platform
114 config PINCTRL_BM1880
115 bool "Bitmain BM1880 Pinctrl driver"
116 depends on OF && (ARCH_BITMAIN || COMPILE_TEST)
120 Pinctrl driver for Bitmain BM1880 SoC.
122 config PINCTRL_DA850_PUPD
123 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
124 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
126 select GENERIC_PINCONF
128 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
129 pullup/pulldown pin groups.
131 config PINCTRL_DA9062
132 tristate "Dialog Semiconductor DA9062 PMIC pinctrl and GPIO Support"
133 depends on MFD_DA9062
136 The Dialog DA9062 PMIC provides multiple GPIOs that can be muxed for
137 different functions. This driver bundles a pinctrl driver to select the
138 function muxing and a GPIO driver to handle the GPIO when the GPIO
139 function is selected.
141 Say yes to enable pinctrl and GPIO support for the DA9062 PMIC.
143 config PINCTRL_DIGICOLOR
145 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
147 select GENERIC_PINCONF
149 config PINCTRL_LANTIQ
155 config PINCTRL_LPC18XX
156 bool "NXP LPC18XX/43XX SCU pinctrl driver"
157 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
160 select GENERIC_PINCONF
162 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
164 config PINCTRL_FALCON
166 depends on SOC_FALCON
167 depends on PINCTRL_LANTIQ
169 config PINCTRL_GEMINI
171 depends on ARCH_GEMINI
174 select GENERIC_PINCONF
177 config PINCTRL_MCP23S08_I2C
181 config PINCTRL_MCP23S08_SPI
185 config PINCTRL_MCP23S08
186 tristate "Microchip MCP23xxx I/O expander"
187 depends on SPI_MASTER || I2C
189 select GPIOLIB_IRQCHIP
190 select GENERIC_PINCONF
191 select PINCTRL_MCP23S08_I2C if I2C
192 select PINCTRL_MCP23S08_SPI if SPI_MASTER
194 SPI/I2C driver for Microchip MCP23S08 / MCP23S17 / MCP23S18 /
195 MCP23008 / MCP23017 / MCP23018 I/O expanders.
196 This provides a GPIO interface supporting inputs and outputs and a
197 corresponding interrupt-controller.
204 select GENERIC_PINCONF
207 select GPIOLIB_IRQCHIP
210 config PINCTRL_ROCKCHIP
211 tristate "Rockchip gpio and pinctrl driver"
212 depends on ARCH_ROCKCHIP || COMPILE_TEST
216 select GENERIC_PINCONF
217 select GENERIC_IRQ_CHIP
220 default ARCH_ROCKCHIP
222 This support pinctrl and gpio driver for Rockchip SoCs.
224 config PINCTRL_SINGLE
225 tristate "One-register-per-pin type device tree based pinctrl driver"
228 select GENERIC_PINCTRL_GROUPS
229 select GENERIC_PINMUX_FUNCTIONS
230 select GENERIC_PINCONF
232 This selects the device tree based generic pinctrl driver.
234 config PINCTRL_SX150X
235 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
239 select GENERIC_PINCONF
241 select GPIOLIB_IRQCHIP
244 Say yes here to provide support for Semtech SX150x-series I2C
245 GPIO expanders as pinctrl module.
246 Compatible models include:
247 - 8 bits: sx1508q, sx1502q
248 - 16 bits: sx1509q, sx1506q
250 config PINCTRL_PISTACHIO
251 def_bool y if MACH_PISTACHIO
254 select GENERIC_PINCONF
255 select GPIOLIB_IRQCHIP
263 select GPIOLIB_IRQCHIP
266 tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
269 select GENERIC_PINCONF
270 select GPIOLIB_IRQCHIP
273 Driver for STMicroelectronics Multi-Function eXpander (STMFX)
275 This provides a GPIO interface supporting inputs and outputs,
276 and configuring push-pull, open-drain, and can also be used as
277 interrupt-controller.
279 config PINCTRL_MAX77620
280 tristate "MAX77620/MAX20024 Pincontrol support"
281 depends on MFD_MAX77620 && OF
283 select GENERIC_PINCONF
285 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
286 This PMIC has 8 GPIO pins that work as GPIO as well as special
287 function in alternate mode. This driver also configure push-pull,
288 open drain, FPS slots etc.
290 config PINCTRL_PALMAS
291 tristate "Pinctrl driver for the PALMAS Series MFD devices"
292 depends on OF && MFD_PALMAS
294 select GENERIC_PINCONF
296 Palmas device supports the configuration of pins for different
297 functionality. This driver supports the pinmux, push-pull and
298 open drain configuration for the Palmas series devices like
299 TPS65913, TPS80036 etc.
302 bool "Microchip PIC32 pin controller driver"
304 depends on MACH_PIC32
306 select GENERIC_PINCONF
307 select GPIOLIB_IRQCHIP
310 This is the pin controller and gpio driver for Microchip PIC32
311 microcontrollers. This option is selected automatically when specific
312 machine and arch are selected to build.
314 config PINCTRL_PIC32MZDA
315 def_bool y if PIC32MZDA
319 bool "Pinctrl driver for Xilinx Zynq"
322 select GENERIC_PINCONF
324 This selects the pinctrl driver for Xilinx Zynq.
326 config PINCTRL_ZYNQMP
327 tristate "Pinctrl driver for Xilinx ZynqMP"
328 depends on ZYNQMP_FIRMWARE
330 select GENERIC_PINCONF
331 default ZYNQMP_FIRMWARE
333 This selects the pinctrl driver for Xilinx ZynqMP platform.
334 This driver will query the pin information from the firmware
335 and allow configuring the pins.
336 Configuration can include the mux function to select on those
337 pin(s)/group(s), and various pin configuration parameters
338 such as pull-up, slew rate, etc.
339 This driver can also be built as a module. If so, the module
340 will be called pinctrl-zynqmp.
342 config PINCTRL_INGENIC
343 bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
346 depends on MIPS || COMPILE_TEST
347 select GENERIC_PINCONF
348 select GENERIC_PINCTRL_GROUPS
349 select GENERIC_PINMUX_FUNCTIONS
351 select GPIOLIB_IRQCHIP
355 tristate "Pinctrl and GPIO driver for RK805 PMIC"
359 select GENERIC_PINCONF
361 This selects the pinctrl driver for RK805.
363 config PINCTRL_OCELOT
364 bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
368 select GPIOLIB_IRQCHIP
369 select GENERIC_PINCONF
370 select GENERIC_PINCTRL_GROUPS
371 select GENERIC_PINMUX_FUNCTIONS
375 config PINCTRL_MICROCHIP_SGPIO
376 bool "Pinctrl driver for Microsemi/Microchip Serial GPIO"
380 select GPIOLIB_IRQCHIP
381 select GENERIC_PINCONF
382 select GENERIC_PINCTRL_GROUPS
383 select GENERIC_PINMUX_FUNCTIONS
386 Support for the serial GPIO interface used on Microsemi and
387 Microchip SoC's. By using a serial interface, the SIO
388 controller significantly extends the number of available
389 GPIOs with a minimum number of additional pins on the
390 device. The primary purpose of the SIO controller is to
391 connect control signals from SFP modules and to act as an
395 bool "Pinctrl driver for the Canaan Kendryte K210 SoC"
396 depends on RISCV && SOC_CANAAN && OF
397 select GENERIC_PINMUX_FUNCTIONS
398 select GENERIC_PINCONF
404 Add support for the Canaan Kendryte K210 RISC-V SOC Field
405 Programmable IO Array (FPIOA) controller.
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/ralink/Kconfig"
419 source "drivers/pinctrl/renesas/Kconfig"
420 source "drivers/pinctrl/samsung/Kconfig"
421 source "drivers/pinctrl/spear/Kconfig"
422 source "drivers/pinctrl/sprd/Kconfig"
423 source "drivers/pinctrl/stm32/Kconfig"
424 source "drivers/pinctrl/sunxi/Kconfig"
425 source "drivers/pinctrl/tegra/Kconfig"
426 source "drivers/pinctrl/ti/Kconfig"
427 source "drivers/pinctrl/uniphier/Kconfig"
428 source "drivers/pinctrl/vt8500/Kconfig"
429 source "drivers/pinctrl/mediatek/Kconfig"
430 source "drivers/pinctrl/meson/Kconfig"
431 source "drivers/pinctrl/cirrus/Kconfig"
432 source "drivers/pinctrl/visconti/Kconfig"
436 depends on SOC_TYPE_XWAY
437 depends on PINCTRL_LANTIQ
441 depends on OF && ARC_PLAT_TB10X
444 config PINCTRL_EQUILIBRIUM
445 tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC"
446 depends on OF && HAS_IOMEM
447 depends on X86 || COMPILE_TEST
452 select GPIOLIB_IRQCHIP
453 select GENERIC_PINCONF
454 select GENERIC_PINCTRL_GROUPS
455 select GENERIC_PINMUX_FUNCTIONS
458 Equilibrium pinctrl driver is a pinctrl & GPIO driver for Intel Lightning
459 Mountain network processor SoC that supports both the linux GPIO and pin
460 control frameworks. It provides interfaces to setup pinmux, assign desired
461 pin functions, configure GPIO attributes for LGM SoC pins. Pinmux and
462 pinconf settings are retrieved from device tree.