xref: /linux/drivers/pinctrl/Kconfig (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
22744e8afSLinus Walleij#
32744e8afSLinus Walleij# PINCTRL infrastructure and drivers
42744e8afSLinus Walleij#
52744e8afSLinus Walleij
6d219b924SPhil Reidmenuconfig PINCTRL
7d219b924SPhil Reid	bool "Pin controllers"
82744e8afSLinus Walleij
9d219b924SPhil Reidif PINCTRL
1045f034efSLinus Walleij
11c033a718SLinus Walleijconfig GENERIC_PINCTRL_GROUPS
12c7059c5aSTony Lindgren	bool
13c7059c5aSTony Lindgren
142744e8afSLinus Walleijconfig PINMUX
15244e95a7SUwe Kleine-König	bool "Support pin multiplexing controllers" if COMPILE_TEST
16ae6b4d85SLinus Walleij
17a76edc89STony Lindgrenconfig GENERIC_PINMUX_FUNCTIONS
18a76edc89STony Lindgren	bool
19a76edc89STony Lindgren	select PINMUX
20a76edc89STony Lindgren
21ae6b4d85SLinus Walleijconfig PINCONF
22244e95a7SUwe Kleine-König	bool "Support pin configuration controllers" if COMPILE_TEST
232744e8afSLinus Walleij
24394349f7SLinus Walleijconfig GENERIC_PINCONF
25394349f7SLinus Walleij	bool
26394349f7SLinus Walleij	select PINCONF
27394349f7SLinus Walleij
282744e8afSLinus Walleijconfig DEBUG_PINCTRL
292744e8afSLinus Walleij	bool "Debug PINCTRL calls"
302744e8afSLinus Walleij	depends on DEBUG_KERNEL
312744e8afSLinus Walleij	help
322744e8afSLinus Walleij	  Say Y here to add some extra checks and diagnostics to PINCTRL calls.
332744e8afSLinus Walleij
34b124c8bdSAndy Shevchenkoconfig PINCTRL_AMD
3541ef3c1aSMario Limonciello	bool "AMD GPIO pin control"
36b124c8bdSAndy Shevchenko	depends on HAS_IOMEM
37b124c8bdSAndy Shevchenko	depends on ACPI || COMPILE_TEST
38b124c8bdSAndy Shevchenko	select GPIOLIB
39b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
40b124c8bdSAndy Shevchenko	select PINMUX
41b124c8bdSAndy Shevchenko	select PINCONF
42b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
43b124c8bdSAndy Shevchenko	help
44b124c8bdSAndy Shevchenko	  The driver for memory mapped GPIO functionality on AMD platforms
45b124c8bdSAndy Shevchenko	  (x86 or arm). Most of the pins are usually muxed to some other
46b124c8bdSAndy Shevchenko	  functionality by firmware, so only a small amount is available
47b124c8bdSAndy Shevchenko	  for GPIO use.
48b124c8bdSAndy Shevchenko
49b124c8bdSAndy Shevchenko	  Requires ACPI/FDT device enumeration code to set up a platform
50b124c8bdSAndy Shevchenko	  device.
51b124c8bdSAndy Shevchenko
52a0f160ffSJoey Goulyconfig PINCTRL_APPLE_GPIO
53a0f160ffSJoey Gouly	tristate "Apple SoC GPIO pin controller driver"
54a0f160ffSJoey Gouly	depends on ARCH_APPLE
55a0f160ffSJoey Gouly	select PINMUX
56a0f160ffSJoey Gouly	select GPIOLIB
57a0f160ffSJoey Gouly	select GPIOLIB_IRQCHIP
58a0f160ffSJoey Gouly	select GENERIC_PINCTRL_GROUPS
59a0f160ffSJoey Gouly	select GENERIC_PINMUX_FUNCTIONS
60a0f160ffSJoey Gouly	select OF_GPIO
61a0f160ffSJoey Gouly	help
62a0f160ffSJoey Gouly	  This is the driver for the GPIO controller found on Apple ARM SoCs,
63a0f160ffSJoey Gouly	  including M1.
64a0f160ffSJoey Gouly
65a0f160ffSJoey Gouly	  This driver can also be built as a module. If so, the module
66a0f160ffSJoey Gouly	  will be called pinctrl-apple-gpio.
67a0f160ffSJoey Gouly
6800df0582SJesper Nilssonconfig PINCTRL_ARTPEC6
6900df0582SJesper Nilsson	bool "Axis ARTPEC-6 pin controller driver"
7000df0582SJesper Nilsson	depends on MACH_ARTPEC6
7100df0582SJesper Nilsson	select PINMUX
7200df0582SJesper Nilsson	select GENERIC_PINCONF
7300df0582SJesper Nilsson	help
7400df0582SJesper Nilsson	  This is the driver for the Axis ARTPEC-6 pin controller. This driver
7500df0582SJesper Nilsson	  supports pin function multiplexing as well as pin bias and drive
7600df0582SJesper Nilsson	  strength configuration. Device tree integration instructions can be
7700df0582SJesper Nilsson	  found in Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt
7800df0582SJesper Nilsson
79c8ce8782SLaxman Dewanganconfig PINCTRL_AS3722
809385f35dSPaul Gortmaker	tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
81c8ce8782SLaxman Dewangan	depends on MFD_AS3722 && GPIOLIB
82c8ce8782SLaxman Dewangan	select PINMUX
83c8ce8782SLaxman Dewangan	select GENERIC_PINCONF
84c8ce8782SLaxman Dewangan	help
85c8ce8782SLaxman Dewangan	  AS3722 device supports the configuration of GPIO pins for different
86c8ce8782SLaxman Dewangan	  functionality. This driver supports the pinmux, push-pull and
87c8ce8782SLaxman Dewangan	  open drain configuration for the GPIO pins of AS3722 devices. It also
88c8ce8782SLaxman Dewangan	  supports the GPIO functionality through gpiolib.
89c8ce8782SLaxman Dewangan
906732ae5cSJean-Christophe PLAGNIOL-VILLARDconfig PINCTRL_AT91
916732ae5cSJean-Christophe PLAGNIOL-VILLARD	bool "AT91 pinctrl driver"
926732ae5cSJean-Christophe PLAGNIOL-VILLARD	depends on OF
936732ae5cSJean-Christophe PLAGNIOL-VILLARD	depends on ARCH_AT91
946732ae5cSJean-Christophe PLAGNIOL-VILLARD	select PINMUX
956732ae5cSJean-Christophe PLAGNIOL-VILLARD	select PINCONF
9680cc3732SAlexander Stein	select GPIOLIB
9780cc3732SAlexander Stein	select OF_GPIO
9880cc3732SAlexander Stein	select GPIOLIB_IRQCHIP
996732ae5cSJean-Christophe PLAGNIOL-VILLARD	help
1006732ae5cSJean-Christophe PLAGNIOL-VILLARD	  Say Y here to enable the at91 pinctrl driver
1016732ae5cSJean-Christophe PLAGNIOL-VILLARD
10277618084SLudovic Desrochesconfig PINCTRL_AT91PIO4
10377618084SLudovic Desroches	bool "AT91 PIO4 pinctrl driver"
10477618084SLudovic Desroches	depends on OF
1050a03658dSTiezhu Yang	depends on HAS_IOMEM
106e682fcc7STiezhu Yang	depends on ARCH_AT91 || COMPILE_TEST
10777618084SLudovic Desroches	select PINMUX
10877618084SLudovic Desroches	select GENERIC_PINCONF
10977618084SLudovic Desroches	select GPIOLIB
11077618084SLudovic Desroches	select GPIOLIB_IRQCHIP
11177618084SLudovic Desroches	select OF_GPIO
11277618084SLudovic Desroches	help
11377618084SLudovic Desroches	  Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
11477618084SLudovic Desroches	  controller available on sama5d2 SoC.
11577618084SLudovic Desroches
116b124c8bdSAndy Shevchenkoconfig PINCTRL_AXP209
117b124c8bdSAndy Shevchenko	tristate "X-Powers AXP209 PMIC pinctrl and GPIO Support"
118b124c8bdSAndy Shevchenko	depends on MFD_AXP20X
119b124c8bdSAndy Shevchenko	depends on OF
12083b31c2aSPetr Mladek	select PINMUX
121dbad75ddSKen Xue	select GENERIC_PINCONF
122b124c8bdSAndy Shevchenko	select GPIOLIB
123dbad75ddSKen Xue	help
124b124c8bdSAndy Shevchenko	  AXP PMICs provides multiple GPIOs that can be muxed for different
125b124c8bdSAndy Shevchenko	  functions. This driver bundles a pinctrl driver to select the function
126b124c8bdSAndy Shevchenko	  muxing and a GPIO driver to handle the GPIO when the GPIO function is
127b124c8bdSAndy Shevchenko	  selected.
128b124c8bdSAndy Shevchenko	  Say Y to enable pinctrl and GPIO support for the AXP209 PMIC.
129dbad75ddSKen Xue
130576623d7SAngeloGioacchino Del Regnoconfig PINCTRL_AW9523
131d295ad7eSLinus Walleij	tristate "Awinic AW9523/AW9523B I2C GPIO expander pinctrl driver"
132576623d7SAngeloGioacchino Del Regno	depends on OF && I2C
133576623d7SAngeloGioacchino Del Regno	select PINMUX
134576623d7SAngeloGioacchino Del Regno	select PINCONF
135576623d7SAngeloGioacchino Del Regno	select GENERIC_PINCONF
136576623d7SAngeloGioacchino Del Regno	select GPIOLIB
137576623d7SAngeloGioacchino Del Regno	select GPIOLIB_IRQCHIP
138576623d7SAngeloGioacchino Del Regno	select REGMAP
139576623d7SAngeloGioacchino Del Regno	select REGMAP_I2C
140576623d7SAngeloGioacchino Del Regno	help
141576623d7SAngeloGioacchino Del Regno	  The Awinic AW9523/AW9523B is a multi-function I2C GPIO
142576623d7SAngeloGioacchino Del Regno	  expander with PWM functionality. This driver bundles a
143576623d7SAngeloGioacchino Del Regno	  pinctrl driver to select the function muxing and a GPIO
144576623d7SAngeloGioacchino Del Regno	  driver to handle GPIO, when the GPIO function is selected.
145576623d7SAngeloGioacchino Del Regno
146576623d7SAngeloGioacchino Del Regno	  Say yes to enable pinctrl and GPIO support for the AW9523(B).
147576623d7SAngeloGioacchino Del Regno
1488f3f0246SManivannan Sadhasivamconfig PINCTRL_BM1880
1498f3f0246SManivannan Sadhasivam	bool "Bitmain BM1880 Pinctrl driver"
1508293b3c6SManivannan Sadhasivam	depends on OF && (ARCH_BITMAIN || COMPILE_TEST)
1518293b3c6SManivannan Sadhasivam	default ARCH_BITMAIN
1528f3f0246SManivannan Sadhasivam	select PINMUX
1538f3f0246SManivannan Sadhasivam	help
1548f3f0246SManivannan Sadhasivam	  Pinctrl driver for Bitmain BM1880 SoC.
1558f3f0246SManivannan Sadhasivam
156e6cbbe42SPatrick Rudolphconfig PINCTRL_CY8C95X0
157e6cbbe42SPatrick Rudolph	tristate "Cypress CY8C95X0 I2C pinctrl and GPIO driver"
1588586466eSAndy Shevchenko	depends on I2C
159e6cbbe42SPatrick Rudolph	select GPIOLIB
160e6cbbe42SPatrick Rudolph	select GPIOLIB_IRQCHIP
161e6cbbe42SPatrick Rudolph	select PINMUX
162e6cbbe42SPatrick Rudolph	select PINCONF
163e6cbbe42SPatrick Rudolph	select GENERIC_PINCONF
164e6cbbe42SPatrick Rudolph	select REGMAP_I2C
165e6cbbe42SPatrick Rudolph	help
166e6cbbe42SPatrick Rudolph	  Support for 20/40/60 pin Cypress Cy8C95x0 pinctrl/gpio I2C expander.
167e6cbbe42SPatrick Rudolph	  This driver can also be built as a module. If so, the module will be
168e6cbbe42SPatrick Rudolph	  called pinctrl-cy8c95x0.
169e6cbbe42SPatrick Rudolph
1701ff91f0aSDavid Lechnerconfig PINCTRL_DA850_PUPD
171b124c8bdSAndy Shevchenko	tristate "TI DA850/OMAP-L138/AM18XX pull-up and pull-down groups"
1721ff91f0aSDavid Lechner	depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
1731ff91f0aSDavid Lechner	select PINCONF
1741ff91f0aSDavid Lechner	select GENERIC_PINCONF
1751ff91f0aSDavid Lechner	help
1761ff91f0aSDavid Lechner	  Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
177b124c8bdSAndy Shevchenko	  pull-up and pull-down pin groups.
1781ff91f0aSDavid Lechner
17956cc3af4SMarco Felschconfig PINCTRL_DA9062
18056cc3af4SMarco Felsch	tristate "Dialog Semiconductor DA9062 PMIC pinctrl and GPIO Support"
18156cc3af4SMarco Felsch	depends on MFD_DA9062
18256cc3af4SMarco Felsch	select GPIOLIB
18356cc3af4SMarco Felsch	help
18456cc3af4SMarco Felsch	  The Dialog DA9062 PMIC provides multiple GPIOs that can be muxed for
18556cc3af4SMarco Felsch	  different functions. This driver bundles a pinctrl driver to select the
18656cc3af4SMarco Felsch	  function muxing and a GPIO driver to handle the GPIO when the GPIO
18756cc3af4SMarco Felsch	  function is selected.
18856cc3af4SMarco Felsch
189b124c8bdSAndy Shevchenko	  Say Y to enable pinctrl and GPIO support for the DA9062 PMIC.
19056cc3af4SMarco Felsch
19138b0e507SBaruch Siachconfig PINCTRL_DIGICOLOR
19238b0e507SBaruch Siach	bool
193083b0230SAndy Shevchenko	depends on ARCH_DIGICOLOR || COMPILE_TEST
19438b0e507SBaruch Siach	select PINMUX
19538b0e507SBaruch Siach	select GENERIC_PINCONF
19638b0e507SBaruch Siach
197b124c8bdSAndy Shevchenkoconfig PINCTRL_EP93XX
198b124c8bdSAndy Shevchenko	bool
199b124c8bdSAndy Shevchenko	depends on ARCH_EP93XX || COMPILE_TEST
200b124c8bdSAndy Shevchenko	select PINMUX
201b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
202b124c8bdSAndy Shevchenko	select MFD_SYSCON
203b124c8bdSAndy Shevchenko
204b124c8bdSAndy Shevchenkoconfig PINCTRL_EQUILIBRIUM
205b124c8bdSAndy Shevchenko	tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC"
206b124c8bdSAndy Shevchenko	depends on OF && HAS_IOMEM
207b124c8bdSAndy Shevchenko	depends on X86 || COMPILE_TEST
208b124c8bdSAndy Shevchenko	select PINMUX
209b124c8bdSAndy Shevchenko	select PINCONF
210b124c8bdSAndy Shevchenko	select GPIOLIB
211b124c8bdSAndy Shevchenko	select GPIO_GENERIC
212b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
213b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
214b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
215b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
21641795aa1SThéo Lebrun	help
21741795aa1SThéo Lebrun	  Equilibrium driver is a pinctrl and GPIO driver for Intel Lightning
21841795aa1SThéo Lebrun	  Mountain network processor SoC that supports both the GPIO and pin
21941795aa1SThéo Lebrun	  control frameworks. It provides interfaces to setup pin muxing, assign
22041795aa1SThéo Lebrun	  desired pin functions, configure GPIO attributes for LGM SoC pins.
22141795aa1SThéo Lebrun	  Pin muxing and pin config settings are retrieved from device tree.
22241795aa1SThéo Lebrun
22341795aa1SThéo Lebrunconfig PINCTRL_EYEQ5
22441795aa1SThéo Lebrun	bool "Mobileye EyeQ5 pinctrl driver"
22541795aa1SThéo Lebrun	depends on OF
22641795aa1SThéo Lebrun	depends on MACH_EYEQ5 || COMPILE_TEST
22741795aa1SThéo Lebrun	select PINMUX
22841795aa1SThéo Lebrun	select GENERIC_PINCONF
22941795aa1SThéo Lebrun	select AUXILIARY_BUS
23041795aa1SThéo Lebrun	default MACH_EYEQ5
231b124c8bdSAndy Shevchenko	help
232b124c8bdSAndy Shevchenko	  Pin controller driver for the Mobileye EyeQ5 platform. It does both
233b124c8bdSAndy Shevchenko	  pin config & pin muxing. It does not handle GPIO.
234b124c8bdSAndy Shevchenko
235b124c8bdSAndy Shevchenko	  Pin muxing supports two functions for each pin: first is GPIO, second
236b124c8bdSAndy Shevchenko	  is pin-dependent. Pin config is about bias & drive strength.
237b124c8bdSAndy Shevchenko
238b124c8bdSAndy Shevchenkoconfig PINCTRL_GEMINI
239b124c8bdSAndy Shevchenko	bool
240b124c8bdSAndy Shevchenko	depends on ARCH_GEMINI
241b124c8bdSAndy Shevchenko	default ARCH_GEMINI
242b124c8bdSAndy Shevchenko	select PINMUX
243b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
244b124c8bdSAndy Shevchenko	select MFD_SYSCON
245b124c8bdSAndy Shevchenko
246b124c8bdSAndy Shevchenkoconfig PINCTRL_INGENIC
247b124c8bdSAndy Shevchenko	bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
248b124c8bdSAndy Shevchenko	default MACH_INGENIC
249b124c8bdSAndy Shevchenko	depends on OF
250b124c8bdSAndy Shevchenko	depends on MIPS || COMPILE_TEST
251b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
252b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
253c1556a9bSYangyu Chen	select GENERIC_PINMUX_FUNCTIONS
254b124c8bdSAndy Shevchenko	select GPIOLIB
255b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
256b124c8bdSAndy Shevchenko	select REGMAP_MMIO
257b124c8bdSAndy Shevchenko
258b124c8bdSAndy Shevchenkoconfig PINCTRL_K210
259c1556a9bSYangyu Chen	bool "Pinctrl driver for the Canaan Kendryte K210 SoC"
260b124c8bdSAndy Shevchenko	depends on RISCV && SOC_CANAAN_K210 && OF
261b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
262b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
263b124c8bdSAndy Shevchenko	select GPIOLIB
264b124c8bdSAndy Shevchenko	select OF_GPIO
265b124c8bdSAndy Shevchenko	select REGMAP_MMIO
266b124c8bdSAndy Shevchenko	default SOC_CANAAN_K210
267b124c8bdSAndy Shevchenko	help
268b124c8bdSAndy Shevchenko	  Add support for the Canaan Kendryte K210 RISC-V SOC Field
269b124c8bdSAndy Shevchenko	  Programmable IO Array (FPIOA) controller.
270b124c8bdSAndy Shevchenko
271b124c8bdSAndy Shevchenkoconfig PINCTRL_KEEMBAY
272b124c8bdSAndy Shevchenko	tristate "Pinctrl driver for Intel Keem Bay SoC"
273b124c8bdSAndy Shevchenko	depends on ARCH_KEEMBAY || (ARM64 && COMPILE_TEST)
274b124c8bdSAndy Shevchenko	depends on HAS_IOMEM
275b124c8bdSAndy Shevchenko	select PINMUX
276b124c8bdSAndy Shevchenko	select PINCONF
277b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
278b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
279b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
280b124c8bdSAndy Shevchenko	select GPIOLIB
281b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
282b124c8bdSAndy Shevchenko	select GPIO_GENERIC
2833f8c50c9SJohn Crispin	help
2843f8c50c9SJohn Crispin	  This selects pin control driver for the Intel Keem Bay SoC.
2853f8c50c9SJohn Crispin	  It provides pin config functions such as pull-up, pull-down,
2863f8c50c9SJohn Crispin	  interrupt, drive strength, sec lock, Schmitt trigger, slew
2873f8c50c9SJohn Crispin	  rate control and direction control. This module will be
2883f8c50c9SJohn Crispin	  called as pinctrl-keembay.
289b124c8bdSAndy Shevchenko
290b124c8bdSAndy Shevchenkoconfig PINCTRL_LANTIQ
291b124c8bdSAndy Shevchenko	bool
292b124c8bdSAndy Shevchenko	depends on LANTIQ
293b124c8bdSAndy Shevchenko	select PINMUX
294f73f88acSzhanghongchen	select PINCONF
295f73f88acSzhanghongchen
296c0f358fdSRen Zhijieconfig PINCTRL_FALCON
297f73f88acSzhanghongchen	bool
298f73f88acSzhanghongchen	depends on SOC_FALCON
299f73f88acSzhanghongchen	depends on PINCTRL_LANTIQ
300f73f88acSzhanghongchen
301f73f88acSzhanghongchenconfig PINCTRL_LOONGSON2
302f73f88acSzhanghongchen	tristate "Pinctrl driver for the Loongson-2 SoC"
303f73f88acSzhanghongchen	depends on OF && (LOONGARCH || COMPILE_TEST)
304f73f88acSzhanghongchen	select PINMUX
305b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
306b124c8bdSAndy Shevchenko	help
307b124c8bdSAndy Shevchenko	 This selects pin control driver for the Loongson-2 SoC. It
308b124c8bdSAndy Shevchenko	 provides pin config functions multiplexing.  GPIO pin pull-up,
309b124c8bdSAndy Shevchenko	 pull-down functions are not supported. Say yes to enable
3102f77ac93SJoachim Eastwood	 pinctrl for Loongson-2 SoC.
3112f77ac93SJoachim Eastwood
3122f77ac93SJoachim Eastwoodconfig PINCTRL_XWAY
3132f77ac93SJoachim Eastwood	bool
3142f77ac93SJoachim Eastwood	depends on SOC_TYPE_XWAY
3152f77ac93SJoachim Eastwood	depends on PINCTRL_LANTIQ
3162f77ac93SJoachim Eastwood
3172f77ac93SJoachim Eastwoodconfig PINCTRL_LPC18XX
3182f77ac93SJoachim Eastwood	bool "NXP LPC18XX/43XX SCU pinctrl driver"
319b124c8bdSAndy Shevchenko	depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
320b124c8bdSAndy Shevchenko	default ARCH_LPC18XX
321b124c8bdSAndy Shevchenko	select PINMUX
32206351d13SLinus Walleij	select GENERIC_PINCONF
3231c5b7f3cSLinus Walleij	help
324b124c8bdSAndy Shevchenko	  Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
325b124c8bdSAndy Shevchenko
326b124c8bdSAndy Shevchenkoconfig PINCTRL_MAX77620
327b124c8bdSAndy Shevchenko	tristate "MAX77620/MAX20024 Pincontrol support"
328b124c8bdSAndy Shevchenko	depends on MFD_MAX77620 && OF
32906351d13SLinus Walleij	select PINMUX
3300f04a817SAndy Shevchenko	select GENERIC_PINCONF
3310f04a817SAndy Shevchenko	help
3320f04a817SAndy Shevchenko	  Say Y here to enable Pin control support for Maxim MAX77620 PMIC.
3330f04a817SAndy Shevchenko	  This PMIC has 8 GPIO pins that work as GPIO as well as special
3340f04a817SAndy Shevchenko	  function in alternate mode. This driver also configure push-pull,
3350f04a817SAndy Shevchenko	  open drain, FPS slots etc.
3360f04a817SAndy Shevchenko
3370f04a817SAndy Shevchenkoconfig PINCTRL_MCP23S08_I2C
33864ac43e6SSebastian Reichel	tristate
33964ac43e6SSebastian Reichel	select REGMAP_I2C
34064ac43e6SSebastian Reichel
341e2a021d4SLinus Walleijconfig PINCTRL_MCP23S08_SPI
34264ac43e6SSebastian Reichel	tristate
34382039d24SSebastian Reichel	select REGMAP_SPI
3440f04a817SAndy Shevchenko
3450f04a817SAndy Shevchenkoconfig PINCTRL_MCP23S08
34664ac43e6SSebastian Reichel	tristate "Microchip MCP23xxx I/O expander"
3476ff45566SJan Kundrát	depends on SPI_MASTER || I2C
3486ff45566SJan Kundrát	select GPIOLIB
3496ff45566SJan Kundrát	select GPIOLIB_IRQCHIP
3506ff45566SJan Kundrát	select GENERIC_PINCONF
35164ac43e6SSebastian Reichel	select PINCTRL_MCP23S08_I2C if I2C
352b124c8bdSAndy Shevchenko	select PINCTRL_MCP23S08_SPI if SPI_MASTER
3532f65923cSColin Foster	help
354b124c8bdSAndy Shevchenko	  SPI/I2C driver for Microchip MCP23S08 / MCP23S17 / MCP23S18 /
355b124c8bdSAndy Shevchenko	  MCP23008 / MCP23017 / MCP23018 I/O expanders.
356b124c8bdSAndy Shevchenko	  This provides a GPIO interface supporting inputs and outputs and a
357b124c8bdSAndy Shevchenko	  corresponding interrupt-controller.
358b124c8bdSAndy Shevchenko
359b124c8bdSAndy Shevchenkoconfig PINCTRL_MICROCHIP_SGPIO
360b124c8bdSAndy Shevchenko	tristate "Pinctrl driver for Microsemi/Microchip Serial GPIO"
361b124c8bdSAndy Shevchenko	depends on OF
362b124c8bdSAndy Shevchenko	depends on HAS_IOMEM
363b124c8bdSAndy Shevchenko	select GPIOLIB
364b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
365b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
366b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
367b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
368b124c8bdSAndy Shevchenko	select OF_GPIO
369b124c8bdSAndy Shevchenko	help
370b124c8bdSAndy Shevchenko	  Support for the serial GPIO interface used on Microsemi and
3712f65923cSColin Foster	  Microchip SoCs. By using a serial interface, the SIO
3722f65923cSColin Foster	  controller significantly extends the number of available
3732f65923cSColin Foster	  GPIOs with a minimum number of additional pins on the
374b124c8bdSAndy Shevchenko	  device. The primary purpose of the SIO controller is to
3754425205eSClément Léger	  connect control signals from SFP modules and to act as an
376b124c8bdSAndy Shevchenko	  LED controller.
377b124c8bdSAndy Shevchenko
378b124c8bdSAndy Shevchenko	  If compiled as a module, the module name will be
379b124c8bdSAndy Shevchenko	  pinctrl-microchip-sgpio.
380b124c8bdSAndy Shevchenko
381b124c8bdSAndy Shevchenkoconfig PINCTRL_OCELOT
382b124c8bdSAndy Shevchenko	tristate "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
383b124c8bdSAndy Shevchenko	depends on OF
384b124c8bdSAndy Shevchenko	depends on HAS_IOMEM
3853f668365SColin Foster	select GPIOLIB
3863f668365SColin Foster	select GPIOLIB_IRQCHIP
3873f668365SColin Foster	select GENERIC_PINCONF
3883f668365SColin Foster	select GENERIC_PINCTRL_GROUPS
3893f668365SColin Foster	select GENERIC_PINMUX_FUNCTIONS
390b124c8bdSAndy Shevchenko	select OF_GPIO
3910a8d3e24SLaxman Dewangan	select REGMAP_MMIO
392767b8ce3SPaul Gortmaker	help
3930a8d3e24SLaxman Dewangan	  Support for the internal GPIO interfaces on Microsemi Ocelot and
39463ca8db7SAxel Lin	  Jaguar2 SoCs.
3950a8d3e24SLaxman Dewangan
3960a8d3e24SLaxman Dewangan	  If conpiled as a module, the module name will be pinctrl-ocelot.
3970a8d3e24SLaxman Dewangan
3980a8d3e24SLaxman Dewanganconfig PINCTRL_PALMAS
3990a8d3e24SLaxman Dewangan	tristate "Pinctrl driver for the PALMAS Series MFD devices"
4000a8d3e24SLaxman Dewangan	depends on OF && MFD_PALMAS
4010a8d3e24SLaxman Dewangan	select PINMUX
40237c646dcSHerve Codina	select GENERIC_PINCONF
40337c646dcSHerve Codina	help
40437c646dcSHerve Codina	  Palmas device supports the configuration of pins for different
40537c646dcSHerve Codina	  functionality. This driver supports the pinmux, push-pull and
40637c646dcSHerve Codina	  open drain configuration for the Palmas series devices like
40737c646dcSHerve Codina	  TPS65913, TPS80036 etc.
40837c646dcSHerve Codina
40937c646dcSHerve Codinaconfig PINCTRL_PEF2256
41037c646dcSHerve Codina	tristate "Lantiq PEF2256 (FALC56) pin controller driver"
41137c646dcSHerve Codina	depends on OF && FRAMER_PEF2256
41237c646dcSHerve Codina	select PINMUX
41337c646dcSHerve Codina	select PINCONF
41437c646dcSHerve Codina	select GENERIC_PINCONF
41537c646dcSHerve Codina	help
41637c646dcSHerve Codina	  This option enables the pin controller support for the Lantiq PEF2256
4172ba384e6SJoshua Henderson	  framer, also known as FALC56.
4182ba384e6SJoshua Henderson
4192ba384e6SJoshua Henderson	  If unsure, say N.
4202ba384e6SJoshua Henderson
4212ba384e6SJoshua Henderson	  To compile this driver as a module, choose M here: the
4222ba384e6SJoshua Henderson	  module will be called pinctrl-pef2256.
4232ba384e6SJoshua Henderson
4242ba384e6SJoshua Hendersonconfig PINCTRL_PIC32
4252ba384e6SJoshua Henderson	bool "Microchip PIC32 pin controller driver"
4262ba384e6SJoshua Henderson	depends on OF
4272ba384e6SJoshua Henderson	depends on MACH_PIC32
4282ba384e6SJoshua Henderson	select PINMUX
4292ba384e6SJoshua Henderson	select GENERIC_PINCONF
4302ba384e6SJoshua Henderson	select GPIOLIB_IRQCHIP
4312ba384e6SJoshua Henderson	select OF_GPIO
4322ba384e6SJoshua Henderson	help
4332ba384e6SJoshua Henderson	  This is the pin controller and gpio driver for Microchip PIC32
434b124c8bdSAndy Shevchenko	  microcontrollers. This option is selected automatically when specific
435b124c8bdSAndy Shevchenko	  machine and arch are selected to build.
436b124c8bdSAndy Shevchenko
437b124c8bdSAndy Shevchenkoconfig PINCTRL_PIC32MZDA
438b124c8bdSAndy Shevchenko	def_bool y if PIC32MZDA
439b124c8bdSAndy Shevchenko	select PINCTRL_PIC32
440b124c8bdSAndy Shevchenko
441b124c8bdSAndy Shevchenkoconfig PINCTRL_PISTACHIO
442b124c8bdSAndy Shevchenko	bool "IMG Pistachio SoC pinctrl driver"
443b124c8bdSAndy Shevchenko	depends on OF && (MIPS || COMPILE_TEST)
444b124c8bdSAndy Shevchenko	depends on GPIOLIB
445b124c8bdSAndy Shevchenko	select PINMUX
446b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
447c20e8c5bSSebastian Reichel	select GPIOLIB_IRQCHIP
448b124c8bdSAndy Shevchenko	select OF_GPIO
449b124c8bdSAndy Shevchenko	help
450b124c8bdSAndy Shevchenko	  This support pinctrl and GPIO driver for IMG Pistachio SoC.
451b124c8bdSAndy Shevchenko
452b124c8bdSAndy Shevchenkoconfig PINCTRL_RK805
453b124c8bdSAndy Shevchenko	tristate "Pinctrl and GPIO driver for RK805 PMIC"
454b58f0273SJames Hogan	depends on MFD_RK8XX
455b58f0273SJames Hogan	select GPIOLIB
456b58f0273SJames Hogan	select PINMUX
457b58f0273SJames Hogan	select GENERIC_PINCONF
458b58f0273SJames Hogan	help
4593bece55aSLinus Walleij	  This selects the pinctrl driver for RK805.
4603bece55aSLinus Walleij
46198da3529SLinus Walleijconfig PINCTRL_ROCKCHIP
46298da3529SLinus Walleij	tristate "Rockchip gpio and pinctrl driver"
463dc0b1aa3SLinus Walleij	depends on ARCH_ROCKCHIP || COMPILE_TEST
46445f034efSLinus Walleij	depends on OF
465ca402d37SLinus Walleij	select GPIOLIB
466b124c8bdSAndy Shevchenko	select PINMUX
467f0b9a7e5SThomas Abraham	select GENERIC_PINCONF
468eb524cb6SPeng Fan	select GENERIC_IRQ_CHIP
469eb524cb6SPeng Fan	select MFD_SYSCON
470eb524cb6SPeng Fan	select OF_GPIO
471eb524cb6SPeng Fan	default ARCH_ROCKCHIP
472eb524cb6SPeng Fan	help
473eb524cb6SPeng Fan          This support pinctrl and GPIO driver for Rockchip SoCs.
474eb524cb6SPeng Fan
475eb524cb6SPeng Fanconfig PINCTRL_SCMI
476eb524cb6SPeng Fan	tristate "Pinctrl driver using SCMI protocol interface"
477eb524cb6SPeng Fan	depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
478eb524cb6SPeng Fan	select PINMUX
479af99a750SHeiko Stuebner	select GENERIC_PINCONF
480af99a750SHeiko Stuebner	help
481af99a750SHeiko Stuebner	  This driver provides support for pinctrl which is controlled
482af99a750SHeiko Stuebner	  by firmware that implements the SCMI interface.
48361dd7261STomasz Figa	  It uses SCMI Message Protocol to interact with the
48461dd7261STomasz Figa	  firmware providing all the pinctrl controls.
48561dd7261STomasz Figa
48661dd7261STomasz Figaconfig PINCTRL_SINGLE
48761dd7261STomasz Figa	tristate "One-register-per-pin type device tree based pinctrl driver"
48806763c74SThomas Petazzoni	depends on OF
489ca402d37SLinus Walleij	depends on HAS_IOMEM
490ca402d37SLinus Walleij	select GENERIC_PINCTRL_GROUPS
491ca402d37SLinus Walleij	select GENERIC_PINMUX_FUNCTIONS
49230574f0dSThomas Abraham	select GENERIC_PINCONF
493cbc351abSArnd Bergmann	help
494924da314SAxel Lin	  This selects the device tree based generic pinctrl driver.
49530574f0dSThomas Abraham
49630574f0dSThomas Abrahamconfig PINCTRL_ST
49730574f0dSThomas Abraham	bool
49843b169dbSThomas Abraham	depends on OF
49943b169dbSThomas Abraham	select PINMUX
500924da314SAxel Lin	select PINCONF
50143b169dbSThomas Abraham	select GPIOLIB_IRQCHIP
50243b169dbSThomas Abraham
5037e8d9415SSebastian Hesselbarthconfig PINCTRL_STMFX
5047e8d9415SSebastian Hesselbarth	tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
5057e8d9415SSebastian Hesselbarth	depends on I2C
5067e8d9415SSebastian Hesselbarth	depends on OF_GPIO
5077e8d9415SSebastian Hesselbarth	select GENERIC_PINCONF
5087e8d9415SSebastian Hesselbarth	select GPIOLIB_IRQCHIP
509c9f95cedSSebastian Hesselbarth	select MFD_STMFX
510b124c8bdSAndy Shevchenko	help
511b124c8bdSAndy Shevchenko	  Driver for STMicroelectronics Multi-Function eXpander (STMFX)
512b124c8bdSAndy Shevchenko	  GPIO expander.
513deda8287SViresh Kumar	  This provides a GPIO interface supporting inputs and outputs,
514b124c8bdSAndy Shevchenko	  and configuring push-pull, open-drain, and can also be used as
5152744e8afSLinus Walleij	  interrupt-controller.
516b124c8bdSAndy Shevchenko
517485dba27SMasahiro Yamadaconfig PINCTRL_SX150X
518b124c8bdSAndy Shevchenko	bool "Semtech SX150x I2C GPIO expander pinctrl driver"
519b17f2f9bSRay Jui	depends on I2C=y
520b124c8bdSAndy Shevchenko	select PINMUX
521b124c8bdSAndy Shevchenko	select PINCONF
522b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
523b124c8bdSAndy Shevchenko	select GPIOLIB
524b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
5252744e8afSLinus Walleij	select REGMAP
526b124c8bdSAndy Shevchenko	help
527b124c8bdSAndy Shevchenko	  Say Y here to provide support for Semtech SX150x-series I2C
528b124c8bdSAndy Shevchenko	  GPIO expanders as pinctrl module.
529b124c8bdSAndy Shevchenko	  Compatible models include:
530b124c8bdSAndy Shevchenko	  - 8 bits:  sx1508q, sx1502q
531901b277eSEsteban Blanc	  - 16 bits: sx1509q, sx1506q
532901b277eSEsteban Blanc
533901b277eSEsteban Blancconfig PINCTRL_TB10X
534901b277eSEsteban Blanc	bool
535901b277eSEsteban Blanc	depends on OF && ARC_PLAT_TB10X
536901b277eSEsteban Blanc	select GPIOLIB
537901b277eSEsteban Blanc
538901b277eSEsteban Blancconfig PINCTRL_TPS6594
539901b277eSEsteban Blanc	tristate "Pinctrl and GPIO driver for TI TPS6594 PMIC"
540901b277eSEsteban Blanc	depends on OF && MFD_TPS6594
541901b277eSEsteban Blanc	default MFD_TPS6594
542901b277eSEsteban Blanc	select PINMUX
543901b277eSEsteban Blanc	select GPIOLIB
544901b277eSEsteban Blanc	select REGMAP
545901b277eSEsteban Blanc	select GPIO_REGMAP
546901b277eSEsteban Blanc	select GENERIC_PINCONF
5472744e8afSLinus Walleij	help
5482744e8afSLinus Walleij	  Say Y to select the pinmuxing and GPIOs driver for the TPS6594
5492744e8afSLinus Walleij	  PMICs chip family.
5502744e8afSLinus Walleij
5512744e8afSLinus Walleij	  This driver can also be built as a module
5522744e8afSLinus Walleij	  called tps6594-pinctrl.
5532744e8afSLinus Walleij
5542744e8afSLinus Walleijconfig PINCTRL_ZYNQ
5558b242ca7SSai Krishna Potthuri	bool "Pinctrl driver for Xilinx Zynq"
5568b242ca7SSai Krishna Potthuri	depends on ARCH_ZYNQ
5578b242ca7SSai Krishna Potthuri	select PINMUX
5588b242ca7SSai Krishna Potthuri	select GENERIC_PINCONF
5598b242ca7SSai Krishna Potthuri	help
5608b242ca7SSai Krishna Potthuri	  This selects the pinctrl driver for Xilinx Zynq.
5618b242ca7SSai Krishna Potthuri
5628b242ca7SSai Krishna Potthuriconfig PINCTRL_ZYNQMP
5638b242ca7SSai Krishna Potthuri	tristate "Pinctrl driver for Xilinx ZynqMP"
5648b242ca7SSai Krishna Potthuri	depends on ZYNQMP_FIRMWARE
5658b242ca7SSai Krishna Potthuri	select PINMUX
5668b242ca7SSai Krishna Potthuri	select GENERIC_PINCONF
5678b242ca7SSai Krishna Potthuri	default ZYNQMP_FIRMWARE
568fa99e701SSai Krishna Potthuri	help
569fa99e701SSai Krishna Potthuri	  This selects the pinctrl driver for Xilinx ZynqMP platform.
5708b242ca7SSai Krishna Potthuri	  This driver will query the pin information from the firmware
571d11f9328SAsmaa Mnebhi	  and allow configuring the pins.
572d11f9328SAsmaa Mnebhi	  Configuration can include the mux function to select on those
573d11f9328SAsmaa Mnebhi	  pin(s)/group(s), and various pin configuration parameters
574d11f9328SAsmaa Mnebhi	  such as pull-up, slew rate, etc.
575d11f9328SAsmaa Mnebhi	  This driver can also be built as a module. If so, the module
576d11f9328SAsmaa Mnebhi	  will be called pinctrl-zynqmp.
577d11f9328SAsmaa Mnebhi
578d11f9328SAsmaa Mnebhiconfig PINCTRL_MLXBF3
579d11f9328SAsmaa Mnebhi	tristate "NVIDIA BlueField-3 SoC Pinctrl driver"
580d11f9328SAsmaa Mnebhi	depends on (MELLANOX_PLATFORM && ARM64) || COMPILE_TEST
581d11f9328SAsmaa Mnebhi	select PINMUX
582d11f9328SAsmaa Mnebhi	select GPIOLIB
5832242ddfbSManivannan Sadhasivam	select GPIOLIB_IRQCHIP
5844d3d0e42SAndrew Jeffery	help
5852744e8afSLinus Walleij	  Say Y to select the pinctrl driver for BlueField-3 SoCs.
5862744e8afSLinus Walleij	  This pin controller allows selecting the mux function for
587b124c8bdSAndy Shevchenko	  each pin. This driver can also be built as a module called
5882744e8afSLinus Walleij	  pinctrl-mlxbf3.
5892744e8afSLinus Walleij
590b124c8bdSAndy Shevchenkosource "drivers/pinctrl/actions/Kconfig"
591b124c8bdSAndy Shevchenkosource "drivers/pinctrl/aspeed/Kconfig"
5922744e8afSLinus Walleijsource "drivers/pinctrl/bcm/Kconfig"
5933a198059SLinus Walleijsource "drivers/pinctrl/berlin/Kconfig"
5943b588e43STomer Maimonsource "drivers/pinctrl/cirrus/Kconfig"
595fd84aaa8SChester Linsource "drivers/pinctrl/freescale/Kconfig"
5964b15ec9dSRobert Jarzmiksource "drivers/pinctrl/intel/Kconfig"
59769b78b8dSLinus Walleijsource "drivers/pinctrl/mediatek/Kconfig"
598e99ce780STzuyi Changsource "drivers/pinctrl/meson/Kconfig"
599077365a9SGeert Uytterhoevensource "drivers/pinctrl/mvebu/Kconfig"
600ebe629a3SSachin Kamatsource "drivers/pinctrl/nomadik/Kconfig"
601*a29d8e93SInochi Amaotosource "drivers/pinctrl/nuvoton/Kconfig"
6022744e8afSLinus Walleijsource "drivers/pinctrl/nxp/Kconfig"
60341d32cfcSBaolin Wangsource "drivers/pinctrl/pxa/Kconfig"
604ba7fdf88SJianlong Huangsource "drivers/pinctrl/qcom/Kconfig"
605aceb16dcSMaxime Coquelinsource "drivers/pinctrl/realtek/Kconfig"
606aa74c44bSWells Lusource "drivers/pinctrl/renesas/Kconfig"
6075f910777SMaxime Ripardsource "drivers/pinctrl/samsung/Kconfig"
60825cbac77SMasahiro Yamadasource "drivers/pinctrl/sophgo/Kconfig"
609003910ebSNishanth Menonsource "drivers/pinctrl/spear/Kconfig"
6106e908892SMasahiro Yamadasource "drivers/pinctrl/sprd/Kconfig"
611a68a7844SNobuhiro Iwamatsusource "drivers/pinctrl/starfive/Kconfig"
612b124c8bdSAndy Shevchenkosource "drivers/pinctrl/stm32/Kconfig"
6131948d5c5SRahul Tanwarsource "drivers/pinctrl/sunplus/Kconfig"
614d219b924SPhil Reidsource "drivers/pinctrl/sunxi/Kconfig"
615source "drivers/pinctrl/tegra/Kconfig"
616source "drivers/pinctrl/ti/Kconfig"
617source "drivers/pinctrl/uniphier/Kconfig"
618source "drivers/pinctrl/visconti/Kconfig"
619source "drivers/pinctrl/vt8500/Kconfig"
620
621endif
622