blob: 5b4939e709ac54f96c9ab110bd4d96304c7cbb96 [file] [log] [blame]
Linus Walleij2744e8a2011-05-02 20:50:54 +02001#
2# PINCTRL infrastructure and drivers
3#
4
Phil Reidd219b922017-10-06 13:08:05 +08005menuconfig PINCTRL
6 bool "Pin controllers"
Linus Walleij2744e8a2011-05-02 20:50:54 +02007
Phil Reidd219b922017-10-06 13:08:05 +08008if PINCTRL
Linus Walleij45f034e2011-11-05 21:28:46 +01009
Linus Walleijc033a712016-12-30 15:04:43 +010010config GENERIC_PINCTRL_GROUPS
Tony Lindgrenc7059c52016-12-27 09:20:00 -080011 bool
12
Linus Walleij2744e8a2011-05-02 20:50:54 +020013config PINMUX
Uwe Kleine-König244e95a2014-06-03 10:02:36 +020014 bool "Support pin multiplexing controllers" if COMPILE_TEST
Linus Walleijae6b4d82011-10-19 18:14:33 +020015
Tony Lindgrena76edc82016-12-27 09:20:01 -080016config GENERIC_PINMUX_FUNCTIONS
17 bool
18 select PINMUX
19
Linus Walleijae6b4d82011-10-19 18:14:33 +020020config PINCONF
Uwe Kleine-König244e95a2014-06-03 10:02:36 +020021 bool "Support pin configuration controllers" if COMPILE_TEST
Linus Walleij2744e8a2011-05-02 20:50:54 +020022
Linus Walleij394349f2011-11-24 18:27:15 +010023config GENERIC_PINCONF
24 bool
25 select PINCONF
26
Linus Walleij2744e8a2011-05-02 20:50:54 +020027config DEBUG_PINCTRL
28 bool "Debug PINCTRL calls"
29 depends on DEBUG_KERNEL
30 help
31 Say Y here to add some extra checks and diagnostics to PINCTRL calls.
32
Sonic Zhange9a03ad2013-09-03 16:28:59 +080033config PINCTRL_ADI2
34 bool "ADI pin controller driver"
Linus Walleij1c363532017-10-11 11:57:15 +020035 depends on (BF54x || BF60x)
36 depends on !GPIO_ADI
Sonic Zhange9a03ad2013-09-03 16:28:59 +080037 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
Jesper Nilsson00df0582017-04-03 14:47:04 +020044config PINCTRL_ARTPEC6
45 bool "Axis ARTPEC-6 pin controller driver"
46 depends on MACH_ARTPEC6
47 select PINMUX
48 select GENERIC_PINCONF
49 help
50 This is the driver for the Axis ARTPEC-6 pin controller. This driver
51 supports pin function multiplexing as well as pin bias and drive
52 strength configuration. Device tree integration instructions can be
53 found in Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt
54
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053055config PINCTRL_AS3722
Paul Gortmaker9385f352016-06-13 17:10:22 -040056 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053057 depends on MFD_AS3722 && GPIOLIB
58 select PINMUX
59 select GENERIC_PINCONF
60 help
61 AS3722 device supports the configuration of GPIO pins for different
62 functionality. This driver supports the pinmux, push-pull and
63 open drain configuration for the GPIO pins of AS3722 devices. It also
64 supports the GPIO functionality through gpiolib.
65
Sonic Zhange9a03ad2013-09-03 16:28:59 +080066config PINCTRL_BF54x
67 def_bool y if BF54x
68 select PINCTRL_ADI2
69
70config PINCTRL_BF60x
71 def_bool y if BF60x
72 select PINCTRL_ADI2
73
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080074config PINCTRL_AT91
75 bool "AT91 pinctrl driver"
76 depends on OF
77 depends on ARCH_AT91
78 select PINMUX
79 select PINCONF
Alexander Stein80cc3732014-04-15 22:09:41 +020080 select GPIOLIB
81 select OF_GPIO
82 select GPIOLIB_IRQCHIP
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080083 help
84 Say Y here to enable the at91 pinctrl driver
85
Ludovic Desroches77618082015-09-16 17:36:57 +020086config PINCTRL_AT91PIO4
87 bool "AT91 PIO4 pinctrl driver"
88 depends on OF
89 depends on ARCH_AT91
90 select PINMUX
91 select GENERIC_PINCONF
92 select GPIOLIB
93 select GPIOLIB_IRQCHIP
94 select OF_GPIO
95 help
96 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
97 controller available on sama5d2 SoC.
98
Ken Xuedbad75d2015-03-10 15:02:19 +080099config PINCTRL_AMD
Jean Delvare337ea0f2016-02-11 12:06:37 +0100100 tristate "AMD GPIO pin control"
Linus Walleije2a021d2017-10-11 12:04:35 +0200101 select GPIOLIB
Ken Xuedbad75d2015-03-10 15:02:19 +0800102 select GPIOLIB_IRQCHIP
103 select PINCONF
104 select GENERIC_PINCONF
105 help
106 driver for memory mapped GPIO functionality on AMD platforms
107 (x86 or arm).Most pins are usually muxed to some other
108 functionality by firmware,so only a small amount is available
109 for gpio use.
110
111 Requires ACPI/FDT device enumeration code to set up a platform
112 device.
113
David Lechner1ff91f02016-11-28 10:40:25 -0600114config PINCTRL_DA850_PUPD
115 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
116 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
117 select PINCONF
118 select GENERIC_PINCONF
119 help
120 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
121 pullup/pulldown pin groups.
122
Baruch Siach38b0e502015-05-05 13:55:10 +0300123config PINCTRL_DIGICOLOR
124 bool
125 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
126 select PINMUX
127 select GENERIC_PINCONF
128
John Crispin3f8c50c2012-08-28 12:44:59 +0200129config PINCTRL_LANTIQ
130 bool
131 depends on LANTIQ
132 select PINMUX
133 select PINCONF
134
Joachim Eastwood2f77ac92015-04-28 00:14:08 +0200135config PINCTRL_LPC18XX
136 bool "NXP LPC18XX/43XX SCU pinctrl driver"
137 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
138 default ARCH_LPC18XX
139 select PINMUX
140 select GENERIC_PINCONF
141 help
142 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
143
John Crispine316cb22012-05-20 00:33:56 +0200144config PINCTRL_FALCON
145 bool
146 depends on SOC_FALCON
147 depends on PINCTRL_LANTIQ
148
Linus Walleij06351d12017-08-05 23:04:08 +0200149config PINCTRL_GEMINI
150 bool
151 depends on ARCH_GEMINI
152 default ARCH_GEMINI
153 select PINMUX
154 select MFD_SYSCON
155
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200156config PINCTRL_MCP23S08
157 tristate "Microchip MCP23xxx I/O expander"
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200158 depends on SPI_MASTER || I2C
Arnd Bergmannadeac7752017-05-30 11:11:28 +0200159 depends on I2C || I2C=n
Linus Walleije2a021d2017-10-11 12:04:35 +0200160 select GPIOLIB
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200161 select GPIOLIB_IRQCHIP
162 select REGMAP_I2C if I2C
163 select REGMAP_SPI if SPI_MASTER
Sebastian Reichel82039d22017-05-15 11:24:26 +0200164 select GENERIC_PINCONF
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200165 help
166 SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
167 I/O expanders.
168 This provides a GPIO interface supporting inputs and outputs.
169 The I2C versions of the chips can be used as interrupt-controller.
170
Neil Armstrong611dac12016-05-11 09:34:21 +0200171config PINCTRL_OXNAS
172 bool
173 depends on OF
174 select PINMUX
175 select PINCONF
176 select GENERIC_PINCONF
177 select GPIOLIB
178 select OF_GPIO
179 select GPIOLIB_IRQCHIP
180 select MFD_SYSCON
181
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200182config PINCTRL_ROCKCHIP
183 bool
184 select PINMUX
185 select GENERIC_PINCONF
186 select GENERIC_IRQ_CHIP
Heiko Stübner751a99a2014-05-05 13:58:20 +0200187 select MFD_SYSCON
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200188
Jacopo Mondi5a49b6442017-06-22 16:54:29 +0200189config PINCTRL_RZA1
190 bool "Renesas RZ/A1 gpio and pinctrl driver"
191 depends on OF
192 depends on ARCH_R7S72100 || COMPILE_TEST
193 select GPIOLIB
194 select GENERIC_PINCTRL_GROUPS
195 select GENERIC_PINMUX_FUNCTIONS
196 select GENERIC_PINCONF
197 help
198 This selects pinctrl driver for Renesas RZ/A1 platforms.
199
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700200config PINCTRL_SINGLE
201 tristate "One-register-per-pin type device tree based pinctrl driver"
202 depends on OF
Tony Lindgrencaeb7742016-12-27 09:20:02 -0800203 select GENERIC_PINCTRL_GROUPS
Tony Lindgren571aec42016-12-27 09:20:03 -0800204 select GENERIC_PINMUX_FUNCTIONS
Haojian Zhuang9dddb4d2013-02-17 19:42:55 +0800205 select GENERIC_PINCONF
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700206 help
207 This selects the device tree based generic pinctrl driver.
208
Linus Walleij3bece552011-12-18 23:44:26 +0100209config PINCTRL_SIRF
Barry Songa17272a2015-01-11 21:56:41 +0800210 bool "CSR SiRFprimaII pin controller driver"
Barry Songd3e26f22012-09-27 17:56:30 +0800211 depends on ARCH_SIRF
Rongjun Ying393daa82011-10-09 03:11:13 -0700212 select PINMUX
Wei Chenf9367792015-05-18 07:28:32 +0000213 select PINCONF
214 select GENERIC_PINCONF
Linus Walleij7420d2d2014-04-15 14:43:47 +0800215 select GPIOLIB_IRQCHIP
Rongjun Ying393daa82011-10-09 03:11:13 -0700216
Neil Armstrong9e80f902016-10-21 11:09:58 +0200217config PINCTRL_SX150X
218 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
Linus Walleije2a021d2017-10-11 12:04:35 +0200219 depends on I2C=y
Neil Armstrong9e80f902016-10-21 11:09:58 +0200220 select PINMUX
221 select PINCONF
222 select GENERIC_PINCONF
Linus Walleije2a021d2017-10-11 12:04:35 +0200223 select GPIOLIB
Neil Armstrong9e80f902016-10-21 11:09:58 +0200224 select GPIOLIB_IRQCHIP
Andrey Smirnov0db0f262016-11-07 08:53:16 -0800225 select REGMAP
Neil Armstrong9e80f902016-10-21 11:09:58 +0200226 help
227 Say yes here to provide support for Semtech SX150x-series I2C
228 GPIO expanders as pinctrl module.
229 Compatible models include:
230 - 8 bits: sx1508q, sx1502q
231 - 16 bits: sx1509q, sx1506q
232
Andrew Brestickercefc03e2015-05-06 12:59:03 -0700233config PINCTRL_PISTACHIO
234 def_bool y if MACH_PISTACHIO
235 depends on GPIOLIB
236 select PINMUX
237 select GENERIC_PINCONF
238 select GPIOLIB_IRQCHIP
239 select OF_GPIO
240
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100241config PINCTRL_ST
242 bool
243 depends on OF
244 select PINMUX
245 select PINCONF
Linus Walleij130cbe32014-04-08 14:45:47 +0200246 select GPIOLIB_IRQCHIP
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100247
James Hogand5025f92013-06-20 10:26:27 +0100248config PINCTRL_TZ1090
249 bool "Toumaz Xenif TZ1090 pin control driver"
250 depends on SOC_TZ1090
251 select PINMUX
252 select GENERIC_PINCONF
253
James Hoganb58f0272013-06-20 10:26:29 +0100254config PINCTRL_TZ1090_PDC
255 bool "Toumaz Xenif TZ1090 PDC pin control driver"
256 depends on SOC_TZ1090
257 select PINMUX
258 select PINCONF
259
Linus Walleij3bece552011-12-18 23:44:26 +0100260config PINCTRL_U300
261 bool "U300 pin controller driver"
Linus Walleij98da3522011-05-02 20:54:38 +0200262 depends on ARCH_U300
263 select PINMUX
Linus Walleijdc0b1aa2011-11-16 21:58:10 +0100264 select GENERIC_PINCONF
Linus Walleij45f034e2011-11-05 21:28:46 +0100265
Linus Walleijca402d32011-11-16 09:22:59 +0100266config PINCTRL_COH901
267 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
Linus Walleij3c94d1b2012-06-18 20:07:50 +0200268 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
Linus Walleij523dcce2014-03-25 13:37:17 +0100269 select GPIOLIB_IRQCHIP
Linus Walleijca402d32011-11-16 09:22:59 +0100270 help
271 Say yes here to support GPIO interface on ST-Ericsson U300.
272 The names of the two IP block variants supported are
273 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
274 ports of 8 GPIO pins each.
275
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530276config PINCTRL_MAX77620
277 tristate "MAX77620/MAX20024 Pincontrol support"
Arnd Bergmann24d6a912016-10-28 10:19:05 +0200278 depends on MFD_MAX77620 && OF
Arnd Bergmann79f28b92016-06-13 17:18:35 +0200279 select PINMUX
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530280 select GENERIC_PINCONF
281 help
282 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
283 This PMIC has 8 GPIO pins that work as GPIO as well as special
284 function in alternate mode. This driver also configure push-pull,
285 open drain, FPS slots etc.
286
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530287config PINCTRL_PALMAS
Paul Gortmaker767b8ce2016-06-13 17:10:21 -0400288 tristate "Pinctrl driver for the PALMAS Series MFD devices"
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530289 depends on OF && MFD_PALMAS
Axel Lin63ca8db2013-08-22 14:30:08 +0800290 select PINMUX
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530291 select GENERIC_PINCONF
292 help
293 Palmas device supports the configuration of pins for different
294 functionality. This driver supports the pinmux, push-pull and
295 open drain configuration for the Palmas series devices like
296 TPS65913, TPS80036 etc.
297
Joshua Henderson2ba384e2016-02-01 15:48:30 -0700298config PINCTRL_PIC32
299 bool "Microchip PIC32 pin controller driver"
300 depends on OF
301 depends on MACH_PIC32
302 select PINMUX
303 select GENERIC_PINCONF
304 select GPIOLIB_IRQCHIP
305 select OF_GPIO
306 help
307 This is the pin controller and gpio driver for Microchip PIC32
308 microcontrollers. This option is selected automatically when specific
309 machine and arch are selected to build.
310
311config PINCTRL_PIC32MZDA
312 def_bool y if PIC32MZDA
313 select PINCTRL_PIC32
314
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800315config PINCTRL_ZYNQ
316 bool "Pinctrl driver for Xilinx Zynq"
317 depends on ARCH_ZYNQ
318 select PINMUX
319 select GENERIC_PINCONF
320 help
Masahiro Yamada485dba22015-11-30 16:57:35 +0900321 This selects the pinctrl driver for Xilinx Zynq.
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800322
Paul Cercueilb5c23aa2017-05-12 18:52:56 +0200323config PINCTRL_INGENIC
324 bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
325 default y
Linus Walleijc5049852017-05-29 13:40:45 +0200326 depends on OF
Paul Cercueilb5c23aa2017-05-12 18:52:56 +0200327 depends on MACH_INGENIC || COMPILE_TEST
328 select GENERIC_PINCONF
329 select GENERIC_PINCTRL_GROUPS
330 select GENERIC_PINMUX_FUNCTIONS
331 select REGMAP_MMIO
332
Joseph Chenea479992017-08-21 03:28:40 +0200333config PINCTRL_RK805
334 tristate "Pinctrl and GPIO driver for RK805 PMIC"
335 depends on MFD_RK808
336 select GPIOLIB
337 select PINMUX
338 select GENERIC_PINCONF
339 help
340 This selects the pinctrl driver for RK805.
341
Andrew Jeffery4d3d0e42016-08-30 17:24:24 +0930342source "drivers/pinctrl/aspeed/Kconfig"
Ray Juib17f2f92015-03-04 16:35:49 -0800343source "drivers/pinctrl/bcm/Kconfig"
Antoine Tenart3de68d32014-05-19 19:36:29 +0200344source "drivers/pinctrl/berlin/Kconfig"
Linus Walleijedad3b22014-09-03 13:37:38 +0200345source "drivers/pinctrl/freescale/Kconfig"
Mika Westerberg5fae8b82014-10-24 15:16:52 +0300346source "drivers/pinctrl/intel/Kconfig"
Thomas Petazzoni06763c72012-10-24 23:38:58 +0200347source "drivers/pinctrl/mvebu/Kconfig"
Linus Walleij3a198052014-07-11 14:57:06 +0200348source "drivers/pinctrl/nomadik/Kconfig"
Robert Jarzmik4b15ec92015-11-21 19:04:53 +0100349source "drivers/pinctrl/pxa/Kconfig"
Linus Walleij69b78b82014-07-09 13:55:12 +0200350source "drivers/pinctrl/qcom/Kconfig"
Sachin Kamatebe629a2014-07-10 17:33:27 +0530351source "drivers/pinctrl/samsung/Kconfig"
Laurent Pinchart6e54d8d2012-12-15 23:51:19 +0100352source "drivers/pinctrl/sh-pfc/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530353source "drivers/pinctrl/spear/Kconfig"
Baolin Wang41d32cf2017-08-17 14:50:38 +0800354source "drivers/pinctrl/sprd/Kconfig"
Maxime Coquelinaceb16d2016-01-14 13:16:30 +0100355source "drivers/pinctrl/stm32/Kconfig"
Maxime Ripard5f910772014-04-18 18:53:02 +0200356source "drivers/pinctrl/sunxi/Kconfig"
Masahiro Yamada25cbac72016-01-24 00:30:08 +0900357source "drivers/pinctrl/tegra/Kconfig"
Nishanth Menon003910e2017-01-05 10:54:14 -0800358source "drivers/pinctrl/ti/Kconfig"
Masahiro Yamada6e908892015-07-14 11:40:01 +0900359source "drivers/pinctrl/uniphier/Kconfig"
Tony Prisk170c6152013-02-20 09:32:19 +1300360source "drivers/pinctrl/vt8500/Kconfig"
Hongzhou Yanga6df4102015-01-21 13:28:15 +0800361source "drivers/pinctrl/mediatek/Kconfig"
Shawn Guocbff0c42017-04-24 21:01:13 +0800362source "drivers/pinctrl/zte/Kconfig"
Jerome Brunet277d14e2017-10-12 14:40:25 +0200363source "drivers/pinctrl/meson/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530364
John Crispin3f8c50c2012-08-28 12:44:59 +0200365config PINCTRL_XWAY
366 bool
367 depends on SOC_TYPE_XWAY
368 depends on PINCTRL_LANTIQ
369
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200370config PINCTRL_TB10X
371 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200372 depends on OF && ARC_PLAT_TB10X
373 select GPIOLIB
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200374
Phil Reidd219b922017-10-06 13:08:05 +0800375endif