Merge tag 'copy-struct-from-user-v5.4-rc2' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-block.git] / drivers / pinctrl / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
2744e8af
LW
2#
3# PINCTRL infrastructure and drivers
4#
5
d219b924
PR
6menuconfig PINCTRL
7 bool "Pin controllers"
2744e8af 8
d219b924 9if PINCTRL
45f034ef 10
c033a718 11config GENERIC_PINCTRL_GROUPS
c7059c5a
TL
12 bool
13
2744e8af 14config PINMUX
244e95a7 15 bool "Support pin multiplexing controllers" if COMPILE_TEST
ae6b4d85 16
a76edc89
TL
17config GENERIC_PINMUX_FUNCTIONS
18 bool
19 select PINMUX
20
ae6b4d85 21config PINCONF
244e95a7 22 bool "Support pin configuration controllers" if COMPILE_TEST
2744e8af 23
394349f7
LW
24config GENERIC_PINCONF
25 bool
26 select PINCONF
27
2744e8af
LW
28config DEBUG_PINCTRL
29 bool "Debug PINCTRL calls"
30 depends on DEBUG_KERNEL
31 help
32 Say Y here to add some extra checks and diagnostics to PINCTRL calls.
33
00df0582
JN
34config PINCTRL_ARTPEC6
35 bool "Axis ARTPEC-6 pin controller driver"
36 depends on MACH_ARTPEC6
37 select PINMUX
38 select GENERIC_PINCONF
39 help
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
44
c8ce8782 45config PINCTRL_AS3722
9385f35d 46 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
c8ce8782
LD
47 depends on MFD_AS3722 && GPIOLIB
48 select PINMUX
49 select GENERIC_PINCONF
50 help
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.
55
449317a8
QS
56config PINCTRL_AXP209
57 tristate "X-Powers AXP209 PMIC pinctrl and GPIO Support"
58 depends on MFD_AXP20X
971f1b38
QS
59 depends on OF
60 select PINMUX
61 select GENERIC_PINCONF
62 select GPIOLIB
449317a8
QS
63 help
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
67 selected.
68 Say yes to enable pinctrl and GPIO support for the AXP209 PMIC
69
6732ae5c
JCPV
70config PINCTRL_AT91
71 bool "AT91 pinctrl driver"
72 depends on OF
73 depends on ARCH_AT91
74 select PINMUX
75 select PINCONF
80cc3732
AS
76 select GPIOLIB
77 select OF_GPIO
78 select GPIOLIB_IRQCHIP
6732ae5c
JCPV
79 help
80 Say Y here to enable the at91 pinctrl driver
81
77618084
LD
82config PINCTRL_AT91PIO4
83 bool "AT91 PIO4 pinctrl driver"
84 depends on OF
85 depends on ARCH_AT91
86 select PINMUX
87 select GENERIC_PINCONF
88 select GPIOLIB
89 select GPIOLIB_IRQCHIP
90 select OF_GPIO
91 help
92 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
93 controller available on sama5d2 SoC.
94
dbad75dd 95config PINCTRL_AMD
337ea0fb 96 tristate "AMD GPIO pin control"
fd35b202 97 depends on HAS_IOMEM
e2a021d4 98 select GPIOLIB
dbad75dd 99 select GPIOLIB_IRQCHIP
83b31c2a 100 select PINMUX
dbad75dd
KX
101 select PINCONF
102 select GENERIC_PINCONF
103 help
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
107 for gpio use.
108
109 Requires ACPI/FDT device enumeration code to set up a platform
110 device.
111
8f3f0246
MS
112config PINCTRL_BM1880
113 bool "Bitmain BM1880 Pinctrl driver"
8293b3c6
MS
114 depends on OF && (ARCH_BITMAIN || COMPILE_TEST)
115 default ARCH_BITMAIN
8f3f0246
MS
116 select PINMUX
117 help
118 Pinctrl driver for Bitmain BM1880 SoC.
119
1ff91f0a
DL
120config PINCTRL_DA850_PUPD
121 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
122 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
123 select PINCONF
124 select GENERIC_PINCONF
125 help
126 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
127 pullup/pulldown pin groups.
128
38b0e507
BS
129config PINCTRL_DIGICOLOR
130 bool
131 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
132 select PINMUX
133 select GENERIC_PINCONF
134
3f8c50c9
JC
135config PINCTRL_LANTIQ
136 bool
137 depends on LANTIQ
138 select PINMUX
139 select PINCONF
140
2f77ac93
JE
141config PINCTRL_LPC18XX
142 bool "NXP LPC18XX/43XX SCU pinctrl driver"
143 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
144 default ARCH_LPC18XX
145 select PINMUX
146 select GENERIC_PINCONF
147 help
148 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
149
e316cb2b
JC
150config PINCTRL_FALCON
151 bool
152 depends on SOC_FALCON
153 depends on PINCTRL_LANTIQ
154
06351d13
LW
155config PINCTRL_GEMINI
156 bool
157 depends on ARCH_GEMINI
158 default ARCH_GEMINI
159 select PINMUX
1c5b7f3c 160 select GENERIC_PINCONF
06351d13
LW
161 select MFD_SYSCON
162
64ac43e6
SR
163config PINCTRL_MCP23S08
164 tristate "Microchip MCP23xxx I/O expander"
64ac43e6 165 depends on SPI_MASTER || I2C
adeac775 166 depends on I2C || I2C=n
e2a021d4 167 select GPIOLIB
64ac43e6
SR
168 select GPIOLIB_IRQCHIP
169 select REGMAP_I2C if I2C
170 select REGMAP_SPI if SPI_MASTER
82039d24 171 select GENERIC_PINCONF
64ac43e6 172 help
6ff45566
JK
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.
64ac43e6 177
611dac1e
NA
178config PINCTRL_OXNAS
179 bool
180 depends on OF
181 select PINMUX
182 select PINCONF
183 select GENERIC_PINCONF
184 select GPIOLIB
185 select OF_GPIO
186 select GPIOLIB_IRQCHIP
187 select MFD_SYSCON
188
d3e51161
HS
189config PINCTRL_ROCKCHIP
190 bool
191 select PINMUX
192 select GENERIC_PINCONF
193 select GENERIC_IRQ_CHIP
751a99ab 194 select MFD_SYSCON
d3e51161 195
5a49b644
JM
196config PINCTRL_RZA1
197 bool "Renesas RZ/A1 gpio and pinctrl driver"
198 depends on OF
199 depends on ARCH_R7S72100 || COMPILE_TEST
200 select GPIOLIB
201 select GENERIC_PINCTRL_GROUPS
202 select GENERIC_PINMUX_FUNCTIONS
203 select GENERIC_PINCONF
204 help
205 This selects pinctrl driver for Renesas RZ/A1 platforms.
206
b59d0e78
CB
207config PINCTRL_RZA2
208 bool "Renesas RZ/A2 gpio and pinctrl driver"
209 depends on OF
210 depends on ARCH_R7S9210 || COMPILE_TEST
211 select GPIOLIB
212 select GENERIC_PINCTRL_GROUPS
213 select GENERIC_PINMUX_FUNCTIONS
214 select GENERIC_PINCONF
215 help
216 This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms.
217
4e53b500
PE
218config PINCTRL_RZN1
219 bool "Renesas RZ/N1 pinctrl driver"
220 depends on OF
221 depends on ARCH_RZN1 || COMPILE_TEST
222 select GENERIC_PINCTRL_GROUPS
223 select GENERIC_PINMUX_FUNCTIONS
224 select GENERIC_PINCONF
225 help
226 This selects pinctrl driver for Renesas RZ/N1 devices.
227
8b8b091b
TL
228config PINCTRL_SINGLE
229 tristate "One-register-per-pin type device tree based pinctrl driver"
230 depends on OF
fd35b202 231 depends on HAS_IOMEM
caeb774e 232 select GENERIC_PINCTRL_GROUPS
571aec4d 233 select GENERIC_PINMUX_FUNCTIONS
9dddb4df 234 select GENERIC_PINCONF
8b8b091b
TL
235 help
236 This selects the device tree based generic pinctrl driver.
237
3bece55a 238config PINCTRL_SIRF
a17272a4 239 bool "CSR SiRFprimaII pin controller driver"
d3e26f2f 240 depends on ARCH_SIRF
393daa81 241 select PINMUX
f9367793
WC
242 select PINCONF
243 select GENERIC_PINCONF
7420d2d0 244 select GPIOLIB_IRQCHIP
393daa81 245
9e80f906
NA
246config PINCTRL_SX150X
247 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
e2a021d4 248 depends on I2C=y
9e80f906
NA
249 select PINMUX
250 select PINCONF
251 select GENERIC_PINCONF
e2a021d4 252 select GPIOLIB
9e80f906 253 select GPIOLIB_IRQCHIP
0db0f26c 254 select REGMAP
9e80f906
NA
255 help
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
261
cefc03e5
AB
262config PINCTRL_PISTACHIO
263 def_bool y if MACH_PISTACHIO
264 depends on GPIOLIB
265 select PINMUX
266 select GENERIC_PINCONF
267 select GPIOLIB_IRQCHIP
268 select OF_GPIO
269
701016c0
SK
270config PINCTRL_ST
271 bool
272 depends on OF
273 select PINMUX
274 select PINCONF
130cbe30 275 select GPIOLIB_IRQCHIP
701016c0 276
1490d9f8
AD
277config PINCTRL_STMFX
278 tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
9af2de76 279 depends on I2C
ec2e0f4f 280 depends on OF_GPIO
1490d9f8
AD
281 select GENERIC_PINCONF
282 select GPIOLIB_IRQCHIP
283 select MFD_STMFX
284 help
285 Driver for STMicroelectronics Multi-Function eXpander (STMFX)
286 GPIO expander.
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.
290
3bece55a
LW
291config PINCTRL_U300
292 bool "U300 pin controller driver"
98da3529
LW
293 depends on ARCH_U300
294 select PINMUX
dc0b1aa3 295 select GENERIC_PINCONF
45f034ef 296
ca402d37
LW
297config PINCTRL_COH901
298 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
3c94d1bb 299 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
523dcce7 300 select GPIOLIB_IRQCHIP
ca402d37
LW
301 help
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.
306
2df723d4
LD
307config PINCTRL_MAX77620
308 tristate "MAX77620/MAX20024 Pincontrol support"
24d6a91c 309 depends on MFD_MAX77620 && OF
79f28b9f 310 select PINMUX
2df723d4
LD
311 select GENERIC_PINCONF
312 help
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.
317
0a8d3e24 318config PINCTRL_PALMAS
767b8ce3 319 tristate "Pinctrl driver for the PALMAS Series MFD devices"
0a8d3e24 320 depends on OF && MFD_PALMAS
63ca8db7 321 select PINMUX
0a8d3e24
LD
322 select GENERIC_PINCONF
323 help
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.
328
2ba384e6
JH
329config PINCTRL_PIC32
330 bool "Microchip PIC32 pin controller driver"
331 depends on OF
332 depends on MACH_PIC32
333 select PINMUX
334 select GENERIC_PINCONF
335 select GPIOLIB_IRQCHIP
336 select OF_GPIO
337 help
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.
341
342config PINCTRL_PIC32MZDA
343 def_bool y if PIC32MZDA
344 select PINCTRL_PIC32
345
add958ce
SB
346config PINCTRL_ZYNQ
347 bool "Pinctrl driver for Xilinx Zynq"
348 depends on ARCH_ZYNQ
349 select PINMUX
350 select GENERIC_PINCONF
351 help
485dba27 352 This selects the pinctrl driver for Xilinx Zynq.
add958ce 353
b5c23aa4
PC
354config PINCTRL_INGENIC
355 bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
635c20a1 356 default MACH_INGENIC
c504985e 357 depends on OF
635c20a1 358 depends on MIPS || COMPILE_TEST
b5c23aa4
PC
359 select GENERIC_PINCONF
360 select GENERIC_PINCTRL_GROUPS
361 select GENERIC_PINMUX_FUNCTIONS
e72394e2
PC
362 select GPIOLIB
363 select GPIOLIB_IRQCHIP
b5c23aa4
PC
364 select REGMAP_MMIO
365
ea479996
JC
366config PINCTRL_RK805
367 tristate "Pinctrl and GPIO driver for RK805 PMIC"
368 depends on MFD_RK808
369 select GPIOLIB
370 select PINMUX
371 select GENERIC_PINCONF
372 help
373 This selects the pinctrl driver for RK805.
374
ce8dc094 375config PINCTRL_OCELOT
da801ab5 376 bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
ce8dc094 377 depends on OF
2dab3dd1 378 depends on HAS_IOMEM
ce8dc094 379 select GPIOLIB
be36abb7 380 select GPIOLIB_IRQCHIP
ce8dc094
AB
381 select GENERIC_PINCONF
382 select GENERIC_PINCTRL_GROUPS
383 select GENERIC_PINMUX_FUNCTIONS
da801ab5 384 select OF_GPIO
ce8dc094
AB
385 select REGMAP_MMIO
386
2242ddfb 387source "drivers/pinctrl/actions/Kconfig"
4d3d0e42 388source "drivers/pinctrl/aspeed/Kconfig"
b17f2f9b 389source "drivers/pinctrl/bcm/Kconfig"
3de68d33 390source "drivers/pinctrl/berlin/Kconfig"
edad3b2a 391source "drivers/pinctrl/freescale/Kconfig"
5fae8b86 392source "drivers/pinctrl/intel/Kconfig"
06763c74 393source "drivers/pinctrl/mvebu/Kconfig"
3a198059 394source "drivers/pinctrl/nomadik/Kconfig"
3b588e43 395source "drivers/pinctrl/nuvoton/Kconfig"
4b15ec9d 396source "drivers/pinctrl/pxa/Kconfig"
69b78b8d 397source "drivers/pinctrl/qcom/Kconfig"
ebe629a3 398source "drivers/pinctrl/samsung/Kconfig"
6e54d8d2 399source "drivers/pinctrl/sh-pfc/Kconfig"
deda8287 400source "drivers/pinctrl/spear/Kconfig"
41d32cfc 401source "drivers/pinctrl/sprd/Kconfig"
aceb16dc 402source "drivers/pinctrl/stm32/Kconfig"
5f910777 403source "drivers/pinctrl/sunxi/Kconfig"
25cbac77 404source "drivers/pinctrl/tegra/Kconfig"
003910eb 405source "drivers/pinctrl/ti/Kconfig"
6e908892 406source "drivers/pinctrl/uniphier/Kconfig"
170c6152 407source "drivers/pinctrl/vt8500/Kconfig"
a6df410d 408source "drivers/pinctrl/mediatek/Kconfig"
cbff0c4d 409source "drivers/pinctrl/zte/Kconfig"
277d14eb 410source "drivers/pinctrl/meson/Kconfig"
218d72a7 411source "drivers/pinctrl/cirrus/Kconfig"
deda8287 412
3f8c50c9
JC
413config PINCTRL_XWAY
414 bool
415 depends on SOC_TYPE_XWAY
416 depends on PINCTRL_LANTIQ
417
5aad0db1
CR
418config PINCTRL_TB10X
419 bool
b99e6fb8
LW
420 depends on OF && ARC_PLAT_TB10X
421 select GPIOLIB
5aad0db1 422
d219b924 423endif