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"
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"
99 select GPIOLIB_IRQCHIP
102 select GENERIC_PINCONF
104 driver for memory mapped GPIO functionality on AMD platforms
105 (x86 or arm).Most pins are usually muxed to some other
106 functionality by firmware,so only a small amount is available
109 Requires ACPI/FDT device enumeration code to set up a platform
112 config PINCTRL_BM1880
113 bool "Bitmain BM1880 Pinctrl driver"
114 depends on OF && (ARCH_BITMAIN || COMPILE_TEST)
118 Pinctrl driver for Bitmain BM1880 SoC.
120 config PINCTRL_DA850_PUPD
121 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
122 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
124 select GENERIC_PINCONF
126 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
127 pullup/pulldown pin groups.
129 config PINCTRL_DIGICOLOR
131 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
133 select GENERIC_PINCONF
135 config PINCTRL_LANTIQ
141 config PINCTRL_LPC18XX
142 bool "NXP LPC18XX/43XX SCU pinctrl driver"
143 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
146 select GENERIC_PINCONF
148 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
150 config PINCTRL_FALCON
152 depends on SOC_FALCON
153 depends on PINCTRL_LANTIQ
155 config PINCTRL_GEMINI
157 depends on ARCH_GEMINI
160 select GENERIC_PINCONF
163 config PINCTRL_MCP23S08
164 tristate "Microchip MCP23xxx I/O expander"
165 depends on SPI_MASTER || I2C
166 depends on I2C || I2C=n
168 select GPIOLIB_IRQCHIP
169 select REGMAP_I2C if I2C
170 select REGMAP_SPI if SPI_MASTER
171 select GENERIC_PINCONF
173 SPI/I2C driver for Microchip MCP23S08 / MCP23S17 / MCP23S18 /
174 MCP23008 / MCP23017 / MCP23018 I/O expanders.
175 This provides a GPIO interface supporting inputs and outputs and a
176 corresponding interrupt-controller.
183 select GENERIC_PINCONF
186 select GPIOLIB_IRQCHIP
189 config PINCTRL_ROCKCHIP
192 select GENERIC_PINCONF
193 select GENERIC_IRQ_CHIP
197 bool "Renesas RZ/A1 gpio and pinctrl driver"
199 depends on ARCH_R7S72100 || COMPILE_TEST
201 select GENERIC_PINCTRL_GROUPS
202 select GENERIC_PINMUX_FUNCTIONS
203 select GENERIC_PINCONF
205 This selects pinctrl driver for Renesas RZ/A1 platforms.
208 bool "Renesas RZ/A2 gpio and pinctrl driver"
210 depends on ARCH_R7S9210 || COMPILE_TEST
212 select GENERIC_PINCTRL_GROUPS
213 select GENERIC_PINMUX_FUNCTIONS
214 select GENERIC_PINCONF
216 This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms.
219 bool "Renesas RZ/N1 pinctrl driver"
221 depends on ARCH_RZN1 || COMPILE_TEST
222 select GENERIC_PINCTRL_GROUPS
223 select GENERIC_PINMUX_FUNCTIONS
224 select GENERIC_PINCONF
226 This selects pinctrl driver for Renesas RZ/N1 devices.
228 config PINCTRL_SINGLE
229 tristate "One-register-per-pin type device tree based pinctrl driver"
232 select GENERIC_PINCTRL_GROUPS
233 select GENERIC_PINMUX_FUNCTIONS
234 select GENERIC_PINCONF
236 This selects the device tree based generic pinctrl driver.
239 bool "CSR SiRFprimaII pin controller driver"
243 select GENERIC_PINCONF
244 select GPIOLIB_IRQCHIP
246 config PINCTRL_SX150X
247 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
251 select GENERIC_PINCONF
253 select GPIOLIB_IRQCHIP
256 Say yes here to provide support for Semtech SX150x-series I2C
257 GPIO expanders as pinctrl module.
258 Compatible models include:
259 - 8 bits: sx1508q, sx1502q
260 - 16 bits: sx1509q, sx1506q
262 config PINCTRL_PISTACHIO
263 def_bool y if MACH_PISTACHIO
266 select GENERIC_PINCONF
267 select GPIOLIB_IRQCHIP
275 select GPIOLIB_IRQCHIP
278 tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
281 select GENERIC_PINCONF
282 select GPIOLIB_IRQCHIP
285 Driver for STMicroelectronics Multi-Function eXpander (STMFX)
287 This provides a GPIO interface supporting inputs and outputs,
288 and configuring push-pull, open-drain, and can also be used as
289 interrupt-controller.
292 bool "U300 pin controller driver"
295 select GENERIC_PINCONF
297 config PINCTRL_COH901
298 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
299 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
300 select GPIOLIB_IRQCHIP
302 Say yes here to support GPIO interface on ST-Ericsson U300.
303 The names of the two IP block variants supported are
304 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
305 ports of 8 GPIO pins each.
307 config PINCTRL_MAX77620
308 tristate "MAX77620/MAX20024 Pincontrol support"
309 depends on MFD_MAX77620 && OF
311 select GENERIC_PINCONF
313 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
314 This PMIC has 8 GPIO pins that work as GPIO as well as special
315 function in alternate mode. This driver also configure push-pull,
316 open drain, FPS slots etc.
318 config PINCTRL_PALMAS
319 tristate "Pinctrl driver for the PALMAS Series MFD devices"
320 depends on OF && MFD_PALMAS
322 select GENERIC_PINCONF
324 Palmas device supports the configuration of pins for different
325 functionality. This driver supports the pinmux, push-pull and
326 open drain configuration for the Palmas series devices like
327 TPS65913, TPS80036 etc.
330 bool "Microchip PIC32 pin controller driver"
332 depends on MACH_PIC32
334 select GENERIC_PINCONF
335 select GPIOLIB_IRQCHIP
338 This is the pin controller and gpio driver for Microchip PIC32
339 microcontrollers. This option is selected automatically when specific
340 machine and arch are selected to build.
342 config PINCTRL_PIC32MZDA
343 def_bool y if PIC32MZDA
347 bool "Pinctrl driver for Xilinx Zynq"
350 select GENERIC_PINCONF
352 This selects the pinctrl driver for Xilinx Zynq.
354 config PINCTRL_INGENIC
355 bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
358 depends on MIPS || COMPILE_TEST
359 select GENERIC_PINCONF
360 select GENERIC_PINCTRL_GROUPS
361 select GENERIC_PINMUX_FUNCTIONS
363 select GPIOLIB_IRQCHIP
367 tristate "Pinctrl and GPIO driver for RK805 PMIC"
371 select GENERIC_PINCONF
373 This selects the pinctrl driver for RK805.
375 config PINCTRL_OCELOT
376 bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
380 select GPIOLIB_IRQCHIP
381 select GENERIC_PINCONF
382 select GENERIC_PINCTRL_GROUPS
383 select GENERIC_PINMUX_FUNCTIONS
387 source "drivers/pinctrl/actions/Kconfig"
388 source "drivers/pinctrl/aspeed/Kconfig"
389 source "drivers/pinctrl/bcm/Kconfig"
390 source "drivers/pinctrl/berlin/Kconfig"
391 source "drivers/pinctrl/freescale/Kconfig"
392 source "drivers/pinctrl/intel/Kconfig"
393 source "drivers/pinctrl/mvebu/Kconfig"
394 source "drivers/pinctrl/nomadik/Kconfig"
395 source "drivers/pinctrl/nuvoton/Kconfig"
396 source "drivers/pinctrl/pxa/Kconfig"
397 source "drivers/pinctrl/qcom/Kconfig"
398 source "drivers/pinctrl/samsung/Kconfig"
399 source "drivers/pinctrl/sh-pfc/Kconfig"
400 source "drivers/pinctrl/spear/Kconfig"
401 source "drivers/pinctrl/sprd/Kconfig"
402 source "drivers/pinctrl/stm32/Kconfig"
403 source "drivers/pinctrl/sunxi/Kconfig"
404 source "drivers/pinctrl/tegra/Kconfig"
405 source "drivers/pinctrl/ti/Kconfig"
406 source "drivers/pinctrl/uniphier/Kconfig"
407 source "drivers/pinctrl/vt8500/Kconfig"
408 source "drivers/pinctrl/mediatek/Kconfig"
409 source "drivers/pinctrl/zte/Kconfig"
410 source "drivers/pinctrl/meson/Kconfig"
411 source "drivers/pinctrl/cirrus/Kconfig"
415 depends on SOC_TYPE_XWAY
416 depends on PINCTRL_LANTIQ
420 depends on OF && ARC_PLAT_TB10X