xref: /linux/drivers/pinctrl/Kconfig (revision 035f90076fd1cafb17468a2dcef7aad189190980)
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
197*035f9007SNikita Shubinconfig PINCTRL_EP93XX
198*035f9007SNikita Shubin	bool
199*035f9007SNikita Shubin	depends on ARCH_EP93XX || COMPILE_TEST
200*035f9007SNikita Shubin	select PINMUX
201*035f9007SNikita Shubin	select GENERIC_PINCONF
202*035f9007SNikita Shubin	select MFD_SYSCON
203*035f9007SNikita Shubin
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
216b124c8bdSAndy Shevchenko	help
217b124c8bdSAndy Shevchenko	  Equilibrium driver is a pinctrl and GPIO driver for Intel Lightning
218b124c8bdSAndy Shevchenko	  Mountain network processor SoC that supports both the GPIO and pin
219b124c8bdSAndy Shevchenko	  control frameworks. It provides interfaces to setup pin muxing, assign
220b124c8bdSAndy Shevchenko	  desired pin functions, configure GPIO attributes for LGM SoC pins.
221b124c8bdSAndy Shevchenko	  Pin muxing and pin config settings are retrieved from device tree.
222b124c8bdSAndy Shevchenko
223b124c8bdSAndy Shevchenkoconfig PINCTRL_GEMINI
224b124c8bdSAndy Shevchenko	bool
225b124c8bdSAndy Shevchenko	depends on ARCH_GEMINI
226b124c8bdSAndy Shevchenko	default ARCH_GEMINI
227b124c8bdSAndy Shevchenko	select PINMUX
228b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
229b124c8bdSAndy Shevchenko	select MFD_SYSCON
230b124c8bdSAndy Shevchenko
231b124c8bdSAndy Shevchenkoconfig PINCTRL_INGENIC
232b124c8bdSAndy Shevchenko	bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
233b124c8bdSAndy Shevchenko	default MACH_INGENIC
234b124c8bdSAndy Shevchenko	depends on OF
235b124c8bdSAndy Shevchenko	depends on MIPS || COMPILE_TEST
236b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
237b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
238b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
239b124c8bdSAndy Shevchenko	select GPIOLIB
240b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
241b124c8bdSAndy Shevchenko	select REGMAP_MMIO
242b124c8bdSAndy Shevchenko
243b124c8bdSAndy Shevchenkoconfig PINCTRL_K210
244b124c8bdSAndy Shevchenko	bool "Pinctrl driver for the Canaan Kendryte K210 SoC"
245c1556a9bSYangyu Chen	depends on RISCV && SOC_CANAAN_K210 && OF
246b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
247b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
248b124c8bdSAndy Shevchenko	select GPIOLIB
249b124c8bdSAndy Shevchenko	select OF_GPIO
250b124c8bdSAndy Shevchenko	select REGMAP_MMIO
251c1556a9bSYangyu Chen	default SOC_CANAAN_K210
252b124c8bdSAndy Shevchenko	help
253b124c8bdSAndy Shevchenko	  Add support for the Canaan Kendryte K210 RISC-V SOC Field
254b124c8bdSAndy Shevchenko	  Programmable IO Array (FPIOA) controller.
255b124c8bdSAndy Shevchenko
256b124c8bdSAndy Shevchenkoconfig PINCTRL_KEEMBAY
257b124c8bdSAndy Shevchenko	tristate "Pinctrl driver for Intel Keem Bay SoC"
258b124c8bdSAndy Shevchenko	depends on ARCH_KEEMBAY || (ARM64 && COMPILE_TEST)
259b124c8bdSAndy Shevchenko	depends on HAS_IOMEM
260b124c8bdSAndy Shevchenko	select PINMUX
261b124c8bdSAndy Shevchenko	select PINCONF
262b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
263b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
264b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
265b124c8bdSAndy Shevchenko	select GPIOLIB
266b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
267b124c8bdSAndy Shevchenko	select GPIO_GENERIC
268b124c8bdSAndy Shevchenko	help
269b124c8bdSAndy Shevchenko	  This selects pin control driver for the Intel Keem Bay SoC.
270b124c8bdSAndy Shevchenko	  It provides pin config functions such as pull-up, pull-down,
271b124c8bdSAndy Shevchenko	  interrupt, drive strength, sec lock, Schmitt trigger, slew
272b124c8bdSAndy Shevchenko	  rate control and direction control. This module will be
273b124c8bdSAndy Shevchenko	  called as pinctrl-keembay.
274b124c8bdSAndy Shevchenko
2753f8c50c9SJohn Crispinconfig PINCTRL_LANTIQ
2763f8c50c9SJohn Crispin	bool
2773f8c50c9SJohn Crispin	depends on LANTIQ
2783f8c50c9SJohn Crispin	select PINMUX
2793f8c50c9SJohn Crispin	select PINCONF
2803f8c50c9SJohn Crispin
281b124c8bdSAndy Shevchenkoconfig PINCTRL_FALCON
282b124c8bdSAndy Shevchenko	bool
283b124c8bdSAndy Shevchenko	depends on SOC_FALCON
284b124c8bdSAndy Shevchenko	depends on PINCTRL_LANTIQ
285b124c8bdSAndy Shevchenko
286f73f88acSzhanghongchenconfig PINCTRL_LOONGSON2
287f73f88acSzhanghongchen	tristate "Pinctrl driver for the Loongson-2 SoC"
288c0f358fdSRen Zhijie	depends on OF && (LOONGARCH || COMPILE_TEST)
289f73f88acSzhanghongchen	select PINMUX
290f73f88acSzhanghongchen	select GENERIC_PINCONF
291f73f88acSzhanghongchen	help
292f73f88acSzhanghongchen	 This selects pin control driver for the Loongson-2 SoC. It
293f73f88acSzhanghongchen	 provides pin config functions multiplexing.  GPIO pin pull-up,
294f73f88acSzhanghongchen	 pull-down functions are not supported. Say yes to enable
295f73f88acSzhanghongchen	 pinctrl for Loongson-2 SoC.
296f73f88acSzhanghongchen
297b124c8bdSAndy Shevchenkoconfig PINCTRL_XWAY
298b124c8bdSAndy Shevchenko	bool
299b124c8bdSAndy Shevchenko	depends on SOC_TYPE_XWAY
300b124c8bdSAndy Shevchenko	depends on PINCTRL_LANTIQ
301b124c8bdSAndy Shevchenko
3022f77ac93SJoachim Eastwoodconfig PINCTRL_LPC18XX
3032f77ac93SJoachim Eastwood	bool "NXP LPC18XX/43XX SCU pinctrl driver"
3042f77ac93SJoachim Eastwood	depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
3052f77ac93SJoachim Eastwood	default ARCH_LPC18XX
3062f77ac93SJoachim Eastwood	select PINMUX
3072f77ac93SJoachim Eastwood	select GENERIC_PINCONF
3082f77ac93SJoachim Eastwood	help
3092f77ac93SJoachim Eastwood	  Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
3102f77ac93SJoachim Eastwood
311b124c8bdSAndy Shevchenkoconfig PINCTRL_MAX77620
312b124c8bdSAndy Shevchenko	tristate "MAX77620/MAX20024 Pincontrol support"
313b124c8bdSAndy Shevchenko	depends on MFD_MAX77620 && OF
31406351d13SLinus Walleij	select PINMUX
3151c5b7f3cSLinus Walleij	select GENERIC_PINCONF
316b124c8bdSAndy Shevchenko	help
317b124c8bdSAndy Shevchenko	  Say Y here to enable Pin control support for Maxim MAX77620 PMIC.
318b124c8bdSAndy Shevchenko	  This PMIC has 8 GPIO pins that work as GPIO as well as special
319b124c8bdSAndy Shevchenko	  function in alternate mode. This driver also configure push-pull,
320b124c8bdSAndy Shevchenko	  open drain, FPS slots etc.
32106351d13SLinus Walleij
3220f04a817SAndy Shevchenkoconfig PINCTRL_MCP23S08_I2C
3230f04a817SAndy Shevchenko	tristate
3240f04a817SAndy Shevchenko	select REGMAP_I2C
3250f04a817SAndy Shevchenko
3260f04a817SAndy Shevchenkoconfig PINCTRL_MCP23S08_SPI
3270f04a817SAndy Shevchenko	tristate
3280f04a817SAndy Shevchenko	select REGMAP_SPI
3290f04a817SAndy Shevchenko
33064ac43e6SSebastian Reichelconfig PINCTRL_MCP23S08
33164ac43e6SSebastian Reichel	tristate "Microchip MCP23xxx I/O expander"
33264ac43e6SSebastian Reichel	depends on SPI_MASTER || I2C
333e2a021d4SLinus Walleij	select GPIOLIB
33464ac43e6SSebastian Reichel	select GPIOLIB_IRQCHIP
33582039d24SSebastian Reichel	select GENERIC_PINCONF
3360f04a817SAndy Shevchenko	select PINCTRL_MCP23S08_I2C if I2C
3370f04a817SAndy Shevchenko	select PINCTRL_MCP23S08_SPI if SPI_MASTER
33864ac43e6SSebastian Reichel	help
3396ff45566SJan Kundrát	  SPI/I2C driver for Microchip MCP23S08 / MCP23S17 / MCP23S18 /
3406ff45566SJan Kundrát	  MCP23008 / MCP23017 / MCP23018 I/O expanders.
3416ff45566SJan Kundrát	  This provides a GPIO interface supporting inputs and outputs and a
3426ff45566SJan Kundrát	  corresponding interrupt-controller.
34364ac43e6SSebastian Reichel
344b124c8bdSAndy Shevchenkoconfig PINCTRL_MICROCHIP_SGPIO
3452f65923cSColin Foster	tristate "Pinctrl driver for Microsemi/Microchip Serial GPIO"
346b124c8bdSAndy Shevchenko	depends on OF
347b124c8bdSAndy Shevchenko	depends on HAS_IOMEM
348b124c8bdSAndy Shevchenko	select GPIOLIB
349b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
350b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
351b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
352b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
353b124c8bdSAndy Shevchenko	select OF_GPIO
354b124c8bdSAndy Shevchenko	help
355b124c8bdSAndy Shevchenko	  Support for the serial GPIO interface used on Microsemi and
356b124c8bdSAndy Shevchenko	  Microchip SoCs. By using a serial interface, the SIO
357b124c8bdSAndy Shevchenko	  controller significantly extends the number of available
358b124c8bdSAndy Shevchenko	  GPIOs with a minimum number of additional pins on the
359b124c8bdSAndy Shevchenko	  device. The primary purpose of the SIO controller is to
360b124c8bdSAndy Shevchenko	  connect control signals from SFP modules and to act as an
361b124c8bdSAndy Shevchenko	  LED controller.
362b124c8bdSAndy Shevchenko
3632f65923cSColin Foster	  If compiled as a module, the module name will be
3642f65923cSColin Foster	  pinctrl-microchip-sgpio.
3652f65923cSColin Foster
366b124c8bdSAndy Shevchenkoconfig PINCTRL_OCELOT
3674425205eSClément Léger	tristate "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
368b124c8bdSAndy Shevchenko	depends on OF
369b124c8bdSAndy Shevchenko	depends on HAS_IOMEM
370b124c8bdSAndy Shevchenko	select GPIOLIB
371b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
372b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
373b124c8bdSAndy Shevchenko	select GENERIC_PINCTRL_GROUPS
374b124c8bdSAndy Shevchenko	select GENERIC_PINMUX_FUNCTIONS
375b124c8bdSAndy Shevchenko	select OF_GPIO
376b124c8bdSAndy Shevchenko	select REGMAP_MMIO
3773f668365SColin Foster	help
3783f668365SColin Foster	  Support for the internal GPIO interfaces on Microsemi Ocelot and
3793f668365SColin Foster	  Jaguar2 SoCs.
3803f668365SColin Foster
3813f668365SColin Foster	  If conpiled as a module, the module name will be pinctrl-ocelot.
382b124c8bdSAndy Shevchenko
3830a8d3e24SLaxman Dewanganconfig PINCTRL_PALMAS
384767b8ce3SPaul Gortmaker	tristate "Pinctrl driver for the PALMAS Series MFD devices"
3850a8d3e24SLaxman Dewangan	depends on OF && MFD_PALMAS
38663ca8db7SAxel Lin	select PINMUX
3870a8d3e24SLaxman Dewangan	select GENERIC_PINCONF
3880a8d3e24SLaxman Dewangan	help
3890a8d3e24SLaxman Dewangan	  Palmas device supports the configuration of pins for different
3900a8d3e24SLaxman Dewangan	  functionality. This driver supports the pinmux, push-pull and
3910a8d3e24SLaxman Dewangan	  open drain configuration for the Palmas series devices like
3920a8d3e24SLaxman Dewangan	  TPS65913, TPS80036 etc.
3930a8d3e24SLaxman Dewangan
39437c646dcSHerve Codinaconfig PINCTRL_PEF2256
39537c646dcSHerve Codina	tristate "Lantiq PEF2256 (FALC56) pin controller driver"
39637c646dcSHerve Codina	depends on OF && FRAMER_PEF2256
39737c646dcSHerve Codina	select PINMUX
39837c646dcSHerve Codina	select PINCONF
39937c646dcSHerve Codina	select GENERIC_PINCONF
40037c646dcSHerve Codina	help
40137c646dcSHerve Codina	  This option enables the pin controller support for the Lantiq PEF2256
40237c646dcSHerve Codina	  framer, also known as FALC56.
40337c646dcSHerve Codina
40437c646dcSHerve Codina	  If unsure, say N.
40537c646dcSHerve Codina
40637c646dcSHerve Codina	  To compile this driver as a module, choose M here: the
40737c646dcSHerve Codina	  module will be called pinctrl-pef2256.
40837c646dcSHerve Codina
4092ba384e6SJoshua Hendersonconfig PINCTRL_PIC32
4102ba384e6SJoshua Henderson	bool "Microchip PIC32 pin controller driver"
4112ba384e6SJoshua Henderson	depends on OF
4122ba384e6SJoshua Henderson	depends on MACH_PIC32
4132ba384e6SJoshua Henderson	select PINMUX
4142ba384e6SJoshua Henderson	select GENERIC_PINCONF
4152ba384e6SJoshua Henderson	select GPIOLIB_IRQCHIP
4162ba384e6SJoshua Henderson	select OF_GPIO
4172ba384e6SJoshua Henderson	help
4182ba384e6SJoshua Henderson	  This is the pin controller and gpio driver for Microchip PIC32
4192ba384e6SJoshua Henderson	  microcontrollers. This option is selected automatically when specific
4202ba384e6SJoshua Henderson	  machine and arch are selected to build.
4212ba384e6SJoshua Henderson
4222ba384e6SJoshua Hendersonconfig PINCTRL_PIC32MZDA
4232ba384e6SJoshua Henderson	def_bool y if PIC32MZDA
4242ba384e6SJoshua Henderson	select PINCTRL_PIC32
4252ba384e6SJoshua Henderson
426b124c8bdSAndy Shevchenkoconfig PINCTRL_PISTACHIO
427b124c8bdSAndy Shevchenko	bool "IMG Pistachio SoC pinctrl driver"
428b124c8bdSAndy Shevchenko	depends on OF && (MIPS || COMPILE_TEST)
429b124c8bdSAndy Shevchenko	depends on GPIOLIB
430b124c8bdSAndy Shevchenko	select PINMUX
431b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
432b124c8bdSAndy Shevchenko	select GPIOLIB_IRQCHIP
433b124c8bdSAndy Shevchenko	select OF_GPIO
434b124c8bdSAndy Shevchenko	help
435b124c8bdSAndy Shevchenko	  This support pinctrl and GPIO driver for IMG Pistachio SoC.
436b124c8bdSAndy Shevchenko
437b124c8bdSAndy Shevchenkoconfig PINCTRL_RK805
438b124c8bdSAndy Shevchenko	tristate "Pinctrl and GPIO driver for RK805 PMIC"
439c20e8c5bSSebastian Reichel	depends on MFD_RK8XX
440b124c8bdSAndy Shevchenko	select GPIOLIB
441b124c8bdSAndy Shevchenko	select PINMUX
442b124c8bdSAndy Shevchenko	select GENERIC_PINCONF
443b124c8bdSAndy Shevchenko	help
444b124c8bdSAndy Shevchenko	  This selects the pinctrl driver for RK805.
445b124c8bdSAndy Shevchenko
446b58f0273SJames Hoganconfig PINCTRL_ROCKCHIP
447b58f0273SJames Hogan	tristate "Rockchip gpio and pinctrl driver"
448b58f0273SJames Hogan	depends on ARCH_ROCKCHIP || COMPILE_TEST
449b58f0273SJames Hogan	depends on OF
450b58f0273SJames Hogan	select GPIOLIB
4513bece55aSLinus Walleij	select PINMUX
4523bece55aSLinus Walleij	select GENERIC_PINCONF
45398da3529SLinus Walleij	select GENERIC_IRQ_CHIP
45498da3529SLinus Walleij	select MFD_SYSCON
455dc0b1aa3SLinus Walleij	select OF_GPIO
45645f034efSLinus Walleij	default ARCH_ROCKCHIP
457ca402d37SLinus Walleij	help
458b124c8bdSAndy Shevchenko          This support pinctrl and GPIO driver for Rockchip SoCs.
459f0b9a7e5SThomas Abraham
460eb524cb6SPeng Fanconfig PINCTRL_SCMI
461eb524cb6SPeng Fan	tristate "Pinctrl driver using SCMI protocol interface"
462eb524cb6SPeng Fan	depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
463eb524cb6SPeng Fan	select PINMUX
464eb524cb6SPeng Fan	select GENERIC_PINCONF
465eb524cb6SPeng Fan	help
466eb524cb6SPeng Fan	  This driver provides support for pinctrl which is controlled
467eb524cb6SPeng Fan	  by firmware that implements the SCMI interface.
468eb524cb6SPeng Fan	  It uses SCMI Message Protocol to interact with the
469eb524cb6SPeng Fan	  firmware providing all the pinctrl controls.
470eb524cb6SPeng Fan
471af99a750SHeiko Stuebnerconfig PINCTRL_SINGLE
472af99a750SHeiko Stuebner	tristate "One-register-per-pin type device tree based pinctrl driver"
473af99a750SHeiko Stuebner	depends on OF
474af99a750SHeiko Stuebner	depends on HAS_IOMEM
47561dd7261STomasz Figa	select GENERIC_PINCTRL_GROUPS
47661dd7261STomasz Figa	select GENERIC_PINMUX_FUNCTIONS
47761dd7261STomasz Figa	select GENERIC_PINCONF
47861dd7261STomasz Figa	help
47961dd7261STomasz Figa	  This selects the device tree based generic pinctrl driver.
48006763c74SThomas Petazzoni
481ca402d37SLinus Walleijconfig PINCTRL_ST
482ca402d37SLinus Walleij	bool
483ca402d37SLinus Walleij	depends on OF
48430574f0dSThomas Abraham	select PINMUX
485cbc351abSArnd Bergmann	select PINCONF
486924da314SAxel Lin	select GPIOLIB_IRQCHIP
48730574f0dSThomas Abraham
48830574f0dSThomas Abrahamconfig PINCTRL_STMFX
48930574f0dSThomas Abraham	tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
49043b169dbSThomas Abraham	depends on I2C
49143b169dbSThomas Abraham	depends on OF_GPIO
492924da314SAxel Lin	select GENERIC_PINCONF
49343b169dbSThomas Abraham	select GPIOLIB_IRQCHIP
49443b169dbSThomas Abraham	select MFD_STMFX
4957e8d9415SSebastian Hesselbarth	help
4967e8d9415SSebastian Hesselbarth	  Driver for STMicroelectronics Multi-Function eXpander (STMFX)
4977e8d9415SSebastian Hesselbarth	  GPIO expander.
4987e8d9415SSebastian Hesselbarth	  This provides a GPIO interface supporting inputs and outputs,
4997e8d9415SSebastian Hesselbarth	  and configuring push-pull, open-drain, and can also be used as
5007e8d9415SSebastian Hesselbarth	  interrupt-controller.
501c9f95cedSSebastian Hesselbarth
502b124c8bdSAndy Shevchenkoconfig PINCTRL_SX150X
503b124c8bdSAndy Shevchenko	bool "Semtech SX150x I2C GPIO expander pinctrl driver"
504b124c8bdSAndy Shevchenko	depends on I2C=y
505deda8287SViresh Kumar	select PINMUX
506b124c8bdSAndy Shevchenko	select PINCONF
5072744e8afSLinus Walleij	select GENERIC_PINCONF
508b124c8bdSAndy Shevchenko	select GPIOLIB
509485dba27SMasahiro Yamada	select GPIOLIB_IRQCHIP
510b124c8bdSAndy Shevchenko	select REGMAP
511b17f2f9bSRay Jui	help
512b124c8bdSAndy Shevchenko	  Say Y here to provide support for Semtech SX150x-series I2C
513b124c8bdSAndy Shevchenko	  GPIO expanders as pinctrl module.
514b124c8bdSAndy Shevchenko	  Compatible models include:
515b124c8bdSAndy Shevchenko	  - 8 bits:  sx1508q, sx1502q
516b124c8bdSAndy Shevchenko	  - 16 bits: sx1509q, sx1506q
5172744e8afSLinus Walleij
518b124c8bdSAndy Shevchenkoconfig PINCTRL_TB10X
519b124c8bdSAndy Shevchenko	bool
520b124c8bdSAndy Shevchenko	depends on OF && ARC_PLAT_TB10X
521b124c8bdSAndy Shevchenko	select GPIOLIB
522b124c8bdSAndy Shevchenko
523901b277eSEsteban Blancconfig PINCTRL_TPS6594
524901b277eSEsteban Blanc	tristate "Pinctrl and GPIO driver for TI TPS6594 PMIC"
525901b277eSEsteban Blanc	depends on OF && MFD_TPS6594
526901b277eSEsteban Blanc	default MFD_TPS6594
527901b277eSEsteban Blanc	select PINMUX
528901b277eSEsteban Blanc	select GPIOLIB
529901b277eSEsteban Blanc	select REGMAP
530901b277eSEsteban Blanc	select GPIO_REGMAP
531901b277eSEsteban Blanc	select GENERIC_PINCONF
532901b277eSEsteban Blanc	help
533901b277eSEsteban Blanc	  Say Y to select the pinmuxing and GPIOs driver for the TPS6594
534901b277eSEsteban Blanc	  PMICs chip family.
535901b277eSEsteban Blanc
536901b277eSEsteban Blanc	  This driver can also be built as a module
537901b277eSEsteban Blanc	  called tps6594-pinctrl.
538901b277eSEsteban Blanc
5392744e8afSLinus Walleijconfig PINCTRL_ZYNQ
5402744e8afSLinus Walleij	bool "Pinctrl driver for Xilinx Zynq"
5412744e8afSLinus Walleij	depends on ARCH_ZYNQ
5422744e8afSLinus Walleij	select PINMUX
5432744e8afSLinus Walleij	select GENERIC_PINCONF
5442744e8afSLinus Walleij	help
5452744e8afSLinus Walleij	  This selects the pinctrl driver for Xilinx Zynq.
5462744e8afSLinus Walleij
5478b242ca7SSai Krishna Potthuriconfig PINCTRL_ZYNQMP
5488b242ca7SSai Krishna Potthuri	tristate "Pinctrl driver for Xilinx ZynqMP"
5498b242ca7SSai Krishna Potthuri	depends on ZYNQMP_FIRMWARE
5508b242ca7SSai Krishna Potthuri	select PINMUX
5518b242ca7SSai Krishna Potthuri	select GENERIC_PINCONF
5528b242ca7SSai Krishna Potthuri	default ZYNQMP_FIRMWARE
5538b242ca7SSai Krishna Potthuri	help
5548b242ca7SSai Krishna Potthuri	  This selects the pinctrl driver for Xilinx ZynqMP platform.
5558b242ca7SSai Krishna Potthuri	  This driver will query the pin information from the firmware
5568b242ca7SSai Krishna Potthuri	  and allow configuring the pins.
5578b242ca7SSai Krishna Potthuri	  Configuration can include the mux function to select on those
5588b242ca7SSai Krishna Potthuri	  pin(s)/group(s), and various pin configuration parameters
5598b242ca7SSai Krishna Potthuri	  such as pull-up, slew rate, etc.
560fa99e701SSai Krishna Potthuri	  This driver can also be built as a module. If so, the module
561fa99e701SSai Krishna Potthuri	  will be called pinctrl-zynqmp.
5628b242ca7SSai Krishna Potthuri
563d11f9328SAsmaa Mnebhiconfig PINCTRL_MLXBF3
564d11f9328SAsmaa Mnebhi	tristate "NVIDIA BlueField-3 SoC Pinctrl driver"
565d11f9328SAsmaa Mnebhi	depends on (MELLANOX_PLATFORM && ARM64) || COMPILE_TEST
566d11f9328SAsmaa Mnebhi	select PINMUX
567d11f9328SAsmaa Mnebhi	select GPIOLIB
568d11f9328SAsmaa Mnebhi	select GPIOLIB_IRQCHIP
569d11f9328SAsmaa Mnebhi	help
570d11f9328SAsmaa Mnebhi	  Say Y to select the pinctrl driver for BlueField-3 SoCs.
571d11f9328SAsmaa Mnebhi	  This pin controller allows selecting the mux function for
572d11f9328SAsmaa Mnebhi	  each pin. This driver can also be built as a module called
573d11f9328SAsmaa Mnebhi	  pinctrl-mlxbf3.
574d11f9328SAsmaa Mnebhi
5752242ddfbSManivannan Sadhasivamsource "drivers/pinctrl/actions/Kconfig"
5764d3d0e42SAndrew Jefferysource "drivers/pinctrl/aspeed/Kconfig"
5772744e8afSLinus Walleijsource "drivers/pinctrl/bcm/Kconfig"
5782744e8afSLinus Walleijsource "drivers/pinctrl/berlin/Kconfig"
579b124c8bdSAndy Shevchenkosource "drivers/pinctrl/cirrus/Kconfig"
5802744e8afSLinus Walleijsource "drivers/pinctrl/freescale/Kconfig"
5812744e8afSLinus Walleijsource "drivers/pinctrl/intel/Kconfig"
582b124c8bdSAndy Shevchenkosource "drivers/pinctrl/mediatek/Kconfig"
583b124c8bdSAndy Shevchenkosource "drivers/pinctrl/meson/Kconfig"
5842744e8afSLinus Walleijsource "drivers/pinctrl/mvebu/Kconfig"
5853a198059SLinus Walleijsource "drivers/pinctrl/nomadik/Kconfig"
5863b588e43STomer Maimonsource "drivers/pinctrl/nuvoton/Kconfig"
587fd84aaa8SChester Linsource "drivers/pinctrl/nxp/Kconfig"
5884b15ec9dSRobert Jarzmiksource "drivers/pinctrl/pxa/Kconfig"
58969b78b8dSLinus Walleijsource "drivers/pinctrl/qcom/Kconfig"
590e99ce780STzuyi Changsource "drivers/pinctrl/realtek/Kconfig"
591077365a9SGeert Uytterhoevensource "drivers/pinctrl/renesas/Kconfig"
592ebe629a3SSachin Kamatsource "drivers/pinctrl/samsung/Kconfig"
5932744e8afSLinus Walleijsource "drivers/pinctrl/spear/Kconfig"
59441d32cfcSBaolin Wangsource "drivers/pinctrl/sprd/Kconfig"
595ba7fdf88SJianlong Huangsource "drivers/pinctrl/starfive/Kconfig"
596aceb16dcSMaxime Coquelinsource "drivers/pinctrl/stm32/Kconfig"
597aa74c44bSWells Lusource "drivers/pinctrl/sunplus/Kconfig"
5985f910777SMaxime Ripardsource "drivers/pinctrl/sunxi/Kconfig"
59925cbac77SMasahiro Yamadasource "drivers/pinctrl/tegra/Kconfig"
600003910ebSNishanth Menonsource "drivers/pinctrl/ti/Kconfig"
6016e908892SMasahiro Yamadasource "drivers/pinctrl/uniphier/Kconfig"
602a68a7844SNobuhiro Iwamatsusource "drivers/pinctrl/visconti/Kconfig"
603b124c8bdSAndy Shevchenkosource "drivers/pinctrl/vt8500/Kconfig"
6041948d5c5SRahul Tanwar
605d219b924SPhil Reidendif
606