pinctrl: core: Add generic pinctrl functions for managing groups
[linux-block.git] / drivers / pinctrl / Kconfig
CommitLineData
2744e8af
LW
1#
2# PINCTRL infrastructure and drivers
3#
4
45f034ef
LW
5config PINCTRL
6 bool
2744e8af 7
45f034ef
LW
8menu "Pin controllers"
9 depends on PINCTRL
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
e9a03add
SZ
34config PINCTRL_ADI2
35 bool "ADI pin controller driver"
9d7278d0 36 depends on BLACKFIN
e9a03add
SZ
37 select PINMUX
38 select IRQ_DOMAIN
39 help
40 This is the pin controller and gpio driver for ADI BF54x, BF60x and
41 future processors. This option is selected automatically when specific
42 machine and arch are selected to build.
43
c8ce8782 44config PINCTRL_AS3722
9385f35d 45 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
c8ce8782
LD
46 depends on MFD_AS3722 && GPIOLIB
47 select PINMUX
48 select GENERIC_PINCONF
49 help
50 AS3722 device supports the configuration of GPIO pins for different
51 functionality. This driver supports the pinmux, push-pull and
52 open drain configuration for the GPIO pins of AS3722 devices. It also
53 supports the GPIO functionality through gpiolib.
54
e9a03add
SZ
55config PINCTRL_BF54x
56 def_bool y if BF54x
57 select PINCTRL_ADI2
58
59config PINCTRL_BF60x
60 def_bool y if BF60x
61 select PINCTRL_ADI2
62
6732ae5c
JCPV
63config PINCTRL_AT91
64 bool "AT91 pinctrl driver"
65 depends on OF
66 depends on ARCH_AT91
67 select PINMUX
68 select PINCONF
80cc3732
AS
69 select GPIOLIB
70 select OF_GPIO
71 select GPIOLIB_IRQCHIP
6732ae5c
JCPV
72 help
73 Say Y here to enable the at91 pinctrl driver
74
77618084
LD
75config PINCTRL_AT91PIO4
76 bool "AT91 PIO4 pinctrl driver"
77 depends on OF
78 depends on ARCH_AT91
79 select PINMUX
80 select GENERIC_PINCONF
81 select GPIOLIB
82 select GPIOLIB_IRQCHIP
83 select OF_GPIO
84 help
85 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
86 controller available on sama5d2 SoC.
87
dbad75dd 88config PINCTRL_AMD
337ea0fb 89 tristate "AMD GPIO pin control"
dbad75dd
KX
90 depends on GPIOLIB
91 select GPIOLIB_IRQCHIP
92 select PINCONF
93 select GENERIC_PINCONF
94 help
95 driver for memory mapped GPIO functionality on AMD platforms
96 (x86 or arm).Most pins are usually muxed to some other
97 functionality by firmware,so only a small amount is available
98 for gpio use.
99
100 Requires ACPI/FDT device enumeration code to set up a platform
101 device.
102
1ff91f0a
DL
103config PINCTRL_DA850_PUPD
104 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
105 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
106 select PINCONF
107 select GENERIC_PINCONF
108 help
109 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
110 pullup/pulldown pin groups.
111
38b0e507
BS
112config PINCTRL_DIGICOLOR
113 bool
114 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
115 select PINMUX
116 select GENERIC_PINCONF
117
3f8c50c9
JC
118config PINCTRL_LANTIQ
119 bool
120 depends on LANTIQ
121 select PINMUX
122 select PINCONF
123
2f77ac93
JE
124config PINCTRL_LPC18XX
125 bool "NXP LPC18XX/43XX SCU pinctrl driver"
126 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
127 default ARCH_LPC18XX
128 select PINMUX
129 select GENERIC_PINCONF
130 help
131 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
132
e316cb2b
JC
133config PINCTRL_FALCON
134 bool
135 depends on SOC_FALCON
136 depends on PINCTRL_LANTIQ
137
6ac73095
BG
138config PINCTRL_MESON
139 bool
b99e6fb8 140 depends on OF
6ac73095
BG
141 select PINMUX
142 select PINCONF
143 select GENERIC_PINCONF
b99e6fb8 144 select GPIOLIB
6ac73095
BG
145 select OF_GPIO
146 select REGMAP_MMIO
147
611dac1e
NA
148config PINCTRL_OXNAS
149 bool
150 depends on OF
151 select PINMUX
152 select PINCONF
153 select GENERIC_PINCONF
154 select GPIOLIB
155 select OF_GPIO
156 select GPIOLIB_IRQCHIP
157 select MFD_SYSCON
158
d3e51161
HS
159config PINCTRL_ROCKCHIP
160 bool
161 select PINMUX
162 select GENERIC_PINCONF
163 select GENERIC_IRQ_CHIP
751a99ab 164 select MFD_SYSCON
d3e51161 165
8b8b091b
TL
166config PINCTRL_SINGLE
167 tristate "One-register-per-pin type device tree based pinctrl driver"
168 depends on OF
169 select PINMUX
170 select PINCONF
9dddb4df 171 select GENERIC_PINCONF
8b8b091b
TL
172 help
173 This selects the device tree based generic pinctrl driver.
174
3bece55a 175config PINCTRL_SIRF
a17272a4 176 bool "CSR SiRFprimaII pin controller driver"
d3e26f2f 177 depends on ARCH_SIRF
393daa81 178 select PINMUX
f9367793
WC
179 select PINCONF
180 select GENERIC_PINCONF
7420d2d0 181 select GPIOLIB_IRQCHIP
393daa81 182
9e80f906
NA
183config PINCTRL_SX150X
184 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
185 depends on GPIOLIB && I2C=y
186 select PINMUX
187 select PINCONF
188 select GENERIC_PINCONF
189 select GPIOLIB_IRQCHIP
0db0f26c 190 select REGMAP
9e80f906
NA
191 help
192 Say yes here to provide support for Semtech SX150x-series I2C
193 GPIO expanders as pinctrl module.
194 Compatible models include:
195 - 8 bits: sx1508q, sx1502q
196 - 16 bits: sx1509q, sx1506q
197
cefc03e5
AB
198config PINCTRL_PISTACHIO
199 def_bool y if MACH_PISTACHIO
200 depends on GPIOLIB
201 select PINMUX
202 select GENERIC_PINCONF
203 select GPIOLIB_IRQCHIP
204 select OF_GPIO
205
701016c0
SK
206config PINCTRL_ST
207 bool
208 depends on OF
209 select PINMUX
210 select PINCONF
130cbe30 211 select GPIOLIB_IRQCHIP
701016c0 212
d5025f9f
JH
213config PINCTRL_TZ1090
214 bool "Toumaz Xenif TZ1090 pin control driver"
215 depends on SOC_TZ1090
216 select PINMUX
217 select GENERIC_PINCONF
218
b58f0273
JH
219config PINCTRL_TZ1090_PDC
220 bool "Toumaz Xenif TZ1090 PDC pin control driver"
221 depends on SOC_TZ1090
222 select PINMUX
223 select PINCONF
224
3bece55a
LW
225config PINCTRL_U300
226 bool "U300 pin controller driver"
98da3529
LW
227 depends on ARCH_U300
228 select PINMUX
dc0b1aa3 229 select GENERIC_PINCONF
45f034ef 230
ca402d37
LW
231config PINCTRL_COH901
232 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
3c94d1bb 233 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
523dcce7 234 select GPIOLIB_IRQCHIP
ca402d37
LW
235 help
236 Say yes here to support GPIO interface on ST-Ericsson U300.
237 The names of the two IP block variants supported are
238 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
239 ports of 8 GPIO pins each.
240
2df723d4
LD
241config PINCTRL_MAX77620
242 tristate "MAX77620/MAX20024 Pincontrol support"
24d6a91c 243 depends on MFD_MAX77620 && OF
79f28b9f 244 select PINMUX
2df723d4
LD
245 select GENERIC_PINCONF
246 help
247 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
248 This PMIC has 8 GPIO pins that work as GPIO as well as special
249 function in alternate mode. This driver also configure push-pull,
250 open drain, FPS slots etc.
251
0a8d3e24 252config PINCTRL_PALMAS
767b8ce3 253 tristate "Pinctrl driver for the PALMAS Series MFD devices"
0a8d3e24 254 depends on OF && MFD_PALMAS
63ca8db7 255 select PINMUX
0a8d3e24
LD
256 select GENERIC_PINCONF
257 help
258 Palmas device supports the configuration of pins for different
259 functionality. This driver supports the pinmux, push-pull and
260 open drain configuration for the Palmas series devices like
261 TPS65913, TPS80036 etc.
262
2ba384e6
JH
263config PINCTRL_PIC32
264 bool "Microchip PIC32 pin controller driver"
265 depends on OF
266 depends on MACH_PIC32
267 select PINMUX
268 select GENERIC_PINCONF
269 select GPIOLIB_IRQCHIP
270 select OF_GPIO
271 help
272 This is the pin controller and gpio driver for Microchip PIC32
273 microcontrollers. This option is selected automatically when specific
274 machine and arch are selected to build.
275
276config PINCTRL_PIC32MZDA
277 def_bool y if PIC32MZDA
278 select PINCTRL_PIC32
279
add958ce
SB
280config PINCTRL_ZYNQ
281 bool "Pinctrl driver for Xilinx Zynq"
282 depends on ARCH_ZYNQ
283 select PINMUX
284 select GENERIC_PINCONF
285 help
485dba27 286 This selects the pinctrl driver for Xilinx Zynq.
add958ce 287
4d3d0e42 288source "drivers/pinctrl/aspeed/Kconfig"
b17f2f9b 289source "drivers/pinctrl/bcm/Kconfig"
3de68d33 290source "drivers/pinctrl/berlin/Kconfig"
edad3b2a 291source "drivers/pinctrl/freescale/Kconfig"
5fae8b86 292source "drivers/pinctrl/intel/Kconfig"
06763c74 293source "drivers/pinctrl/mvebu/Kconfig"
3a198059 294source "drivers/pinctrl/nomadik/Kconfig"
4b15ec9d 295source "drivers/pinctrl/pxa/Kconfig"
69b78b8d 296source "drivers/pinctrl/qcom/Kconfig"
ebe629a3 297source "drivers/pinctrl/samsung/Kconfig"
6e54d8d2 298source "drivers/pinctrl/sh-pfc/Kconfig"
deda8287 299source "drivers/pinctrl/spear/Kconfig"
aceb16dc 300source "drivers/pinctrl/stm32/Kconfig"
5f910777 301source "drivers/pinctrl/sunxi/Kconfig"
25cbac77 302source "drivers/pinctrl/tegra/Kconfig"
6e908892 303source "drivers/pinctrl/uniphier/Kconfig"
170c6152 304source "drivers/pinctrl/vt8500/Kconfig"
a6df410d 305source "drivers/pinctrl/mediatek/Kconfig"
deda8287 306
3f8c50c9
JC
307config PINCTRL_XWAY
308 bool
309 depends on SOC_TYPE_XWAY
310 depends on PINCTRL_LANTIQ
311
5aad0db1
CR
312config PINCTRL_TB10X
313 bool
b99e6fb8
LW
314 depends on OF && ARC_PLAT_TB10X
315 select GPIOLIB
5aad0db1 316
45f034ef 317endmenu