blob: dd50371225bcc74e9b58df691301f35c810594df [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
Jesper Nilsson00df0582017-04-03 14:47:04 +020033config PINCTRL_ARTPEC6
34 bool "Axis ARTPEC-6 pin controller driver"
35 depends on MACH_ARTPEC6
36 select PINMUX
37 select GENERIC_PINCONF
38 help
39 This is the driver for the Axis ARTPEC-6 pin controller. This driver
40 supports pin function multiplexing as well as pin bias and drive
41 strength configuration. Device tree integration instructions can be
42 found in Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt
43
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053044config PINCTRL_AS3722
Paul Gortmaker9385f352016-06-13 17:10:22 -040045 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053046 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
Quentin Schulz449317a82017-12-05 15:46:40 +010055config PINCTRL_AXP209
56 tristate "X-Powers AXP209 PMIC pinctrl and GPIO Support"
57 depends on MFD_AXP20X
Quentin Schulz971f1b32017-12-14 10:43:35 +010058 depends on OF
59 select PINMUX
60 select GENERIC_PINCONF
61 select GPIOLIB
Quentin Schulz449317a82017-12-05 15:46:40 +010062 help
63 AXP PMICs provides multiple GPIOs that can be muxed for different
64 functions. This driver bundles a pinctrl driver to select the function
65 muxing and a GPIO driver to handle the GPIO when the GPIO function is
66 selected.
67 Say yes to enable pinctrl and GPIO support for the AXP209 PMIC
68
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080069config PINCTRL_AT91
70 bool "AT91 pinctrl driver"
71 depends on OF
72 depends on ARCH_AT91
73 select PINMUX
74 select PINCONF
Alexander Stein80cc3732014-04-15 22:09:41 +020075 select GPIOLIB
76 select OF_GPIO
77 select GPIOLIB_IRQCHIP
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080078 help
79 Say Y here to enable the at91 pinctrl driver
80
Ludovic Desroches77618082015-09-16 17:36:57 +020081config PINCTRL_AT91PIO4
82 bool "AT91 PIO4 pinctrl driver"
83 depends on OF
84 depends on ARCH_AT91
85 select PINMUX
86 select GENERIC_PINCONF
87 select GPIOLIB
88 select GPIOLIB_IRQCHIP
89 select OF_GPIO
90 help
91 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
92 controller available on sama5d2 SoC.
93
Ken Xuedbad75d2015-03-10 15:02:19 +080094config PINCTRL_AMD
Jean Delvare337ea0f2016-02-11 12:06:37 +010095 tristate "AMD GPIO pin control"
Linus Walleijfd35b202017-11-13 11:04:27 +010096 depends on HAS_IOMEM
Linus Walleije2a021d2017-10-11 12:04:35 +020097 select GPIOLIB
Ken Xuedbad75d2015-03-10 15:02:19 +080098 select GPIOLIB_IRQCHIP
Petr Mladek83b31c22017-09-26 15:51:28 +020099 select PINMUX
Ken Xuedbad75d2015-03-10 15:02:19 +0800100 select PINCONF
101 select GENERIC_PINCONF
102 help
103 driver for memory mapped GPIO functionality on AMD platforms
104 (x86 or arm).Most pins are usually muxed to some other
105 functionality by firmware,so only a small amount is available
106 for gpio use.
107
108 Requires ACPI/FDT device enumeration code to set up a platform
109 device.
110
David Lechner1ff91f02016-11-28 10:40:25 -0600111config PINCTRL_DA850_PUPD
112 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
113 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
114 select PINCONF
115 select GENERIC_PINCONF
116 help
117 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
118 pullup/pulldown pin groups.
119
Baruch Siach38b0e502015-05-05 13:55:10 +0300120config PINCTRL_DIGICOLOR
121 bool
122 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
123 select PINMUX
124 select GENERIC_PINCONF
125
John Crispin3f8c50c2012-08-28 12:44:59 +0200126config PINCTRL_LANTIQ
127 bool
128 depends on LANTIQ
129 select PINMUX
130 select PINCONF
131
Joachim Eastwood2f77ac92015-04-28 00:14:08 +0200132config PINCTRL_LPC18XX
133 bool "NXP LPC18XX/43XX SCU pinctrl driver"
134 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
135 default ARCH_LPC18XX
136 select PINMUX
137 select GENERIC_PINCONF
138 help
139 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
140
John Crispine316cb22012-05-20 00:33:56 +0200141config PINCTRL_FALCON
142 bool
143 depends on SOC_FALCON
144 depends on PINCTRL_LANTIQ
145
Linus Walleij06351d12017-08-05 23:04:08 +0200146config PINCTRL_GEMINI
147 bool
148 depends on ARCH_GEMINI
149 default ARCH_GEMINI
150 select PINMUX
Linus Walleij1c5b7f32017-10-28 15:37:18 +0200151 select GENERIC_PINCONF
Linus Walleij06351d12017-08-05 23:04:08 +0200152 select MFD_SYSCON
153
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200154config PINCTRL_MCP23S08
155 tristate "Microchip MCP23xxx I/O expander"
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200156 depends on SPI_MASTER || I2C
Arnd Bergmannadeac772017-05-30 11:11:28 +0200157 depends on I2C || I2C=n
Linus Walleije2a021d2017-10-11 12:04:35 +0200158 select GPIOLIB
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200159 select GPIOLIB_IRQCHIP
160 select REGMAP_I2C if I2C
161 select REGMAP_SPI if SPI_MASTER
Sebastian Reichel82039d22017-05-15 11:24:26 +0200162 select GENERIC_PINCONF
Sebastian Reichel64ac43e2017-05-15 11:24:25 +0200163 help
164 SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
165 I/O expanders.
166 This provides a GPIO interface supporting inputs and outputs.
167 The I2C versions of the chips can be used as interrupt-controller.
168
Neil Armstrong611dac12016-05-11 09:34:21 +0200169config PINCTRL_OXNAS
170 bool
171 depends on OF
172 select PINMUX
173 select PINCONF
174 select GENERIC_PINCONF
175 select GPIOLIB
176 select OF_GPIO
177 select GPIOLIB_IRQCHIP
178 select MFD_SYSCON
179
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200180config PINCTRL_ROCKCHIP
181 bool
182 select PINMUX
183 select GENERIC_PINCONF
184 select GENERIC_IRQ_CHIP
Heiko Stübner751a99a2014-05-05 13:58:20 +0200185 select MFD_SYSCON
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200186
Jacopo Mondi5a49b6442017-06-22 16:54:29 +0200187config PINCTRL_RZA1
188 bool "Renesas RZ/A1 gpio and pinctrl driver"
189 depends on OF
190 depends on ARCH_R7S72100 || COMPILE_TEST
191 select GPIOLIB
192 select GENERIC_PINCTRL_GROUPS
193 select GENERIC_PINMUX_FUNCTIONS
194 select GENERIC_PINCONF
195 help
196 This selects pinctrl driver for Renesas RZ/A1 platforms.
197
Tony Lindgren8b8b091b2012-07-10 02:05:46 -0700198config PINCTRL_SINGLE
199 tristate "One-register-per-pin type device tree based pinctrl driver"
200 depends on OF
Linus Walleijfd35b202017-11-13 11:04:27 +0100201 depends on HAS_IOMEM
Tony Lindgrencaeb7742016-12-27 09:20:02 -0800202 select GENERIC_PINCTRL_GROUPS
Tony Lindgren571aec42016-12-27 09:20:03 -0800203 select GENERIC_PINMUX_FUNCTIONS
Haojian Zhuang9dddb4d2013-02-17 19:42:55 +0800204 select GENERIC_PINCONF
Tony Lindgren8b8b091b2012-07-10 02:05:46 -0700205 help
206 This selects the device tree based generic pinctrl driver.
207
Linus Walleij3bece552011-12-18 23:44:26 +0100208config PINCTRL_SIRF
Barry Songa17272a2015-01-11 21:56:41 +0800209 bool "CSR SiRFprimaII pin controller driver"
Barry Songd3e26f22012-09-27 17:56:30 +0800210 depends on ARCH_SIRF
Rongjun Ying393daa82011-10-09 03:11:13 -0700211 select PINMUX
Wei Chenf9367792015-05-18 07:28:32 +0000212 select PINCONF
213 select GENERIC_PINCONF
Linus Walleij7420d2d2014-04-15 14:43:47 +0800214 select GPIOLIB_IRQCHIP
Rongjun Ying393daa82011-10-09 03:11:13 -0700215
Neil Armstrong9e80f902016-10-21 11:09:58 +0200216config PINCTRL_SX150X
217 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
Linus Walleije2a021d2017-10-11 12:04:35 +0200218 depends on I2C=y
Neil Armstrong9e80f902016-10-21 11:09:58 +0200219 select PINMUX
220 select PINCONF
221 select GENERIC_PINCONF
Linus Walleije2a021d2017-10-11 12:04:35 +0200222 select GPIOLIB
Neil Armstrong9e80f902016-10-21 11:09:58 +0200223 select GPIOLIB_IRQCHIP
Andrey Smirnov0db0f262016-11-07 08:53:16 -0800224 select REGMAP
Neil Armstrong9e80f902016-10-21 11:09:58 +0200225 help
226 Say yes here to provide support for Semtech SX150x-series I2C
227 GPIO expanders as pinctrl module.
228 Compatible models include:
229 - 8 bits: sx1508q, sx1502q
230 - 16 bits: sx1509q, sx1506q
231
Andrew Brestickercefc03e2015-05-06 12:59:03 -0700232config PINCTRL_PISTACHIO
233 def_bool y if MACH_PISTACHIO
234 depends on GPIOLIB
235 select PINMUX
236 select GENERIC_PINCONF
237 select GPIOLIB_IRQCHIP
238 select OF_GPIO
239
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100240config PINCTRL_ST
241 bool
242 depends on OF
243 select PINMUX
244 select PINCONF
Linus Walleij130cbe32014-04-08 14:45:47 +0200245 select GPIOLIB_IRQCHIP
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100246
Linus Walleij3bece552011-12-18 23:44:26 +0100247config PINCTRL_U300
248 bool "U300 pin controller driver"
Linus Walleij98da3522011-05-02 20:54:38 +0200249 depends on ARCH_U300
250 select PINMUX
Linus Walleijdc0b1aa2011-11-16 21:58:10 +0100251 select GENERIC_PINCONF
Linus Walleij45f034e2011-11-05 21:28:46 +0100252
Linus Walleijca402d32011-11-16 09:22:59 +0100253config PINCTRL_COH901
254 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
Linus Walleij3c94d1b2012-06-18 20:07:50 +0200255 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
Linus Walleij523dcce2014-03-25 13:37:17 +0100256 select GPIOLIB_IRQCHIP
Linus Walleijca402d32011-11-16 09:22:59 +0100257 help
258 Say yes here to support GPIO interface on ST-Ericsson U300.
259 The names of the two IP block variants supported are
260 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
261 ports of 8 GPIO pins each.
262
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530263config PINCTRL_MAX77620
264 tristate "MAX77620/MAX20024 Pincontrol support"
Arnd Bergmann24d6a912016-10-28 10:19:05 +0200265 depends on MFD_MAX77620 && OF
Arnd Bergmann79f28b92016-06-13 17:18:35 +0200266 select PINMUX
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530267 select GENERIC_PINCONF
268 help
269 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
270 This PMIC has 8 GPIO pins that work as GPIO as well as special
271 function in alternate mode. This driver also configure push-pull,
272 open drain, FPS slots etc.
273
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530274config PINCTRL_PALMAS
Paul Gortmaker767b8ce2016-06-13 17:10:21 -0400275 tristate "Pinctrl driver for the PALMAS Series MFD devices"
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530276 depends on OF && MFD_PALMAS
Axel Lin63ca8db2013-08-22 14:30:08 +0800277 select PINMUX
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530278 select GENERIC_PINCONF
279 help
280 Palmas device supports the configuration of pins for different
281 functionality. This driver supports the pinmux, push-pull and
282 open drain configuration for the Palmas series devices like
283 TPS65913, TPS80036 etc.
284
Joshua Henderson2ba384e2016-02-01 15:48:30 -0700285config PINCTRL_PIC32
286 bool "Microchip PIC32 pin controller driver"
287 depends on OF
288 depends on MACH_PIC32
289 select PINMUX
290 select GENERIC_PINCONF
291 select GPIOLIB_IRQCHIP
292 select OF_GPIO
293 help
294 This is the pin controller and gpio driver for Microchip PIC32
295 microcontrollers. This option is selected automatically when specific
296 machine and arch are selected to build.
297
298config PINCTRL_PIC32MZDA
299 def_bool y if PIC32MZDA
300 select PINCTRL_PIC32
301
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800302config PINCTRL_ZYNQ
303 bool "Pinctrl driver for Xilinx Zynq"
304 depends on ARCH_ZYNQ
305 select PINMUX
306 select GENERIC_PINCONF
307 help
Masahiro Yamada485dba22015-11-30 16:57:35 +0900308 This selects the pinctrl driver for Xilinx Zynq.
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800309
Paul Cercueilb5c23aa2017-05-12 18:52:56 +0200310config PINCTRL_INGENIC
311 bool "Pinctrl driver for the Ingenic JZ47xx SoCs"
312 default y
Linus Walleijc5049852017-05-29 13:40:45 +0200313 depends on OF
Paul Cercueilb5c23aa2017-05-12 18:52:56 +0200314 depends on MACH_INGENIC || COMPILE_TEST
315 select GENERIC_PINCONF
316 select GENERIC_PINCTRL_GROUPS
317 select GENERIC_PINMUX_FUNCTIONS
318 select REGMAP_MMIO
319
Joseph Chenea479992017-08-21 03:28:40 +0200320config PINCTRL_RK805
321 tristate "Pinctrl and GPIO driver for RK805 PMIC"
322 depends on MFD_RK808
323 select GPIOLIB
324 select PINMUX
325 select GENERIC_PINCONF
326 help
327 This selects the pinctrl driver for RK805.
328
Alexandre Bellonice8dc092018-01-06 01:09:26 +0100329config PINCTRL_OCELOT
330 bool "Pinctrl driver for the Microsemi Ocelot SoCs"
331 default y
332 depends on OF
333 depends on MSCC_OCELOT || COMPILE_TEST
334 select GPIOLIB
335 select GENERIC_PINCONF
336 select GENERIC_PINCTRL_GROUPS
337 select GENERIC_PINMUX_FUNCTIONS
338 select REGMAP_MMIO
339
Manivannan Sadhasivam2242ddf2018-04-04 22:52:52 +0530340source "drivers/pinctrl/actions/Kconfig"
Andrew Jeffery4d3d0e422016-08-30 17:24:24 +0930341source "drivers/pinctrl/aspeed/Kconfig"
Ray Juib17f2f92015-03-04 16:35:49 -0800342source "drivers/pinctrl/bcm/Kconfig"
Antoine Tenart3de68d32014-05-19 19:36:29 +0200343source "drivers/pinctrl/berlin/Kconfig"
Linus Walleijedad3b22014-09-03 13:37:38 +0200344source "drivers/pinctrl/freescale/Kconfig"
Mika Westerberg5fae8b82014-10-24 15:16:52 +0300345source "drivers/pinctrl/intel/Kconfig"
Thomas Petazzoni06763c72012-10-24 23:38:58 +0200346source "drivers/pinctrl/mvebu/Kconfig"
Linus Walleij3a198052014-07-11 14:57:06 +0200347source "drivers/pinctrl/nomadik/Kconfig"
Robert Jarzmik4b15ec92015-11-21 19:04:53 +0100348source "drivers/pinctrl/pxa/Kconfig"
Linus Walleij69b78b82014-07-09 13:55:12 +0200349source "drivers/pinctrl/qcom/Kconfig"
Sachin Kamatebe629a2014-07-10 17:33:27 +0530350source "drivers/pinctrl/samsung/Kconfig"
Laurent Pinchart6e54d8d2012-12-15 23:51:19 +0100351source "drivers/pinctrl/sh-pfc/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530352source "drivers/pinctrl/spear/Kconfig"
Baolin Wang41d32cf2017-08-17 14:50:38 +0800353source "drivers/pinctrl/sprd/Kconfig"
Maxime Coquelinaceb16d2016-01-14 13:16:30 +0100354source "drivers/pinctrl/stm32/Kconfig"
Maxime Ripard5f910772014-04-18 18:53:02 +0200355source "drivers/pinctrl/sunxi/Kconfig"
Masahiro Yamada25cbac72016-01-24 00:30:08 +0900356source "drivers/pinctrl/tegra/Kconfig"
Nishanth Menon003910e2017-01-05 10:54:14 -0800357source "drivers/pinctrl/ti/Kconfig"
Masahiro Yamada6e908892015-07-14 11:40:01 +0900358source "drivers/pinctrl/uniphier/Kconfig"
Tony Prisk170c6152013-02-20 09:32:19 +1300359source "drivers/pinctrl/vt8500/Kconfig"
Hongzhou Yanga6df4102015-01-21 13:28:15 +0800360source "drivers/pinctrl/mediatek/Kconfig"
Shawn Guocbff0c42017-04-24 21:01:13 +0800361source "drivers/pinctrl/zte/Kconfig"
Jerome Brunet277d14e2017-10-12 14:40:25 +0200362source "drivers/pinctrl/meson/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530363
John Crispin3f8c50c2012-08-28 12:44:59 +0200364config PINCTRL_XWAY
365 bool
366 depends on SOC_TYPE_XWAY
367 depends on PINCTRL_LANTIQ
368
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200369config PINCTRL_TB10X
370 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200371 depends on OF && ARC_PLAT_TB10X
372 select GPIOLIB
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200373
Phil Reidd219b922017-10-06 13:08:05 +0800374endif