blob: 8f8c2af45781595cf3b1ee5d07a26623703af0d2 [file] [log] [blame]
Linus Walleij2744e8a2011-05-02 20:50:54 +02001#
2# PINCTRL infrastructure and drivers
3#
4
Linus Walleij45f034e2011-11-05 21:28:46 +01005config PINCTRL
6 bool
Linus Walleij2744e8a2011-05-02 20:50:54 +02007
Linus Walleij45f034e2011-11-05 21:28:46 +01008menu "Pin controllers"
9 depends on PINCTRL
10
Linus Walleijc033a712016-12-30 15:04:43 +010011config GENERIC_PINCTRL_GROUPS
Tony Lindgrenc7059c52016-12-27 09:20:00 -080012 bool
13
Linus Walleij2744e8a2011-05-02 20:50:54 +020014config PINMUX
Uwe Kleine-König244e95a2014-06-03 10:02:36 +020015 bool "Support pin multiplexing controllers" if COMPILE_TEST
Linus Walleijae6b4d82011-10-19 18:14:33 +020016
Tony Lindgrena76edc82016-12-27 09:20:01 -080017config GENERIC_PINMUX_FUNCTIONS
18 bool
19 select PINMUX
20
Linus Walleijae6b4d82011-10-19 18:14:33 +020021config PINCONF
Uwe Kleine-König244e95a2014-06-03 10:02:36 +020022 bool "Support pin configuration controllers" if COMPILE_TEST
Linus Walleij2744e8a2011-05-02 20:50:54 +020023
Linus Walleij394349f2011-11-24 18:27:15 +010024config GENERIC_PINCONF
25 bool
26 select PINCONF
27
Linus Walleij2744e8a2011-05-02 20:50:54 +020028config 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
Sonic Zhange9a03ad2013-09-03 16:28:59 +080034config PINCTRL_ADI2
35 bool "ADI pin controller driver"
Sonic Zhang9d7278d2013-09-23 11:57:00 +080036 depends on BLACKFIN
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
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
Sonic Zhange9a03ad2013-09-03 16:28:59 +080055config 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
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080063config PINCTRL_AT91
64 bool "AT91 pinctrl driver"
65 depends on OF
66 depends on ARCH_AT91
67 select PINMUX
68 select PINCONF
Alexander Stein80cc3732014-04-15 22:09:41 +020069 select GPIOLIB
70 select OF_GPIO
71 select GPIOLIB_IRQCHIP
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080072 help
73 Say Y here to enable the at91 pinctrl driver
74
Ludovic Desroches77618082015-09-16 17:36:57 +020075config 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
Ken Xuedbad75d2015-03-10 15:02:19 +080088config PINCTRL_AMD
Jean Delvare337ea0f2016-02-11 12:06:37 +010089 tristate "AMD GPIO pin control"
Ken Xuedbad75d2015-03-10 15:02:19 +080090 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
David Lechner1ff91f02016-11-28 10:40:25 -0600103config 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
Baruch Siach38b0e502015-05-05 13:55:10 +0300112config PINCTRL_DIGICOLOR
113 bool
114 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
115 select PINMUX
116 select GENERIC_PINCONF
117
John Crispin3f8c50c2012-08-28 12:44:59 +0200118config PINCTRL_LANTIQ
119 bool
120 depends on LANTIQ
121 select PINMUX
122 select PINCONF
123
Joachim Eastwood2f77ac92015-04-28 00:14:08 +0200124config 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
John Crispine316cb22012-05-20 00:33:56 +0200133config PINCTRL_FALCON
134 bool
135 depends on SOC_FALCON
136 depends on PINCTRL_LANTIQ
137
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100138config PINCTRL_MESON
139 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200140 depends on OF
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100141 select PINMUX
142 select PINCONF
143 select GENERIC_PINCONF
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200144 select GPIOLIB
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100145 select OF_GPIO
146 select REGMAP_MMIO
147
Neil Armstrong611dac12016-05-11 09:34:21 +0200148config 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
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200159config PINCTRL_ROCKCHIP
160 bool
161 select PINMUX
162 select GENERIC_PINCONF
163 select GENERIC_IRQ_CHIP
Heiko Stübner751a99a2014-05-05 13:58:20 +0200164 select MFD_SYSCON
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200165
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700166config PINCTRL_SINGLE
167 tristate "One-register-per-pin type device tree based pinctrl driver"
168 depends on OF
Tony Lindgrencaeb7742016-12-27 09:20:02 -0800169 select GENERIC_PINCTRL_GROUPS
Tony Lindgren571aec42016-12-27 09:20:03 -0800170 select GENERIC_PINMUX_FUNCTIONS
Haojian Zhuang9dddb4d2013-02-17 19:42:55 +0800171 select GENERIC_PINCONF
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700172 help
173 This selects the device tree based generic pinctrl driver.
174
Linus Walleij3bece552011-12-18 23:44:26 +0100175config PINCTRL_SIRF
Barry Songa17272a2015-01-11 21:56:41 +0800176 bool "CSR SiRFprimaII pin controller driver"
Barry Songd3e26f22012-09-27 17:56:30 +0800177 depends on ARCH_SIRF
Rongjun Ying393daa82011-10-09 03:11:13 -0700178 select PINMUX
Wei Chenf9367792015-05-18 07:28:32 +0000179 select PINCONF
180 select GENERIC_PINCONF
Linus Walleij7420d2d2014-04-15 14:43:47 +0800181 select GPIOLIB_IRQCHIP
Rongjun Ying393daa82011-10-09 03:11:13 -0700182
Neil Armstrong9e80f902016-10-21 11:09:58 +0200183config 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
Andrey Smirnov0db0f262016-11-07 08:53:16 -0800190 select REGMAP
Neil Armstrong9e80f902016-10-21 11:09:58 +0200191 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
Andrew Brestickercefc03e2015-05-06 12:59:03 -0700198config 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
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100206config PINCTRL_ST
207 bool
208 depends on OF
209 select PINMUX
210 select PINCONF
Linus Walleij130cbe32014-04-08 14:45:47 +0200211 select GPIOLIB_IRQCHIP
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100212
James Hogand5025f92013-06-20 10:26:27 +0100213config PINCTRL_TZ1090
214 bool "Toumaz Xenif TZ1090 pin control driver"
215 depends on SOC_TZ1090
216 select PINMUX
217 select GENERIC_PINCONF
218
James Hoganb58f0272013-06-20 10:26:29 +0100219config PINCTRL_TZ1090_PDC
220 bool "Toumaz Xenif TZ1090 PDC pin control driver"
221 depends on SOC_TZ1090
222 select PINMUX
223 select PINCONF
224
Linus Walleij3bece552011-12-18 23:44:26 +0100225config PINCTRL_U300
226 bool "U300 pin controller driver"
Linus Walleij98da3522011-05-02 20:54:38 +0200227 depends on ARCH_U300
228 select PINMUX
Linus Walleijdc0b1aa2011-11-16 21:58:10 +0100229 select GENERIC_PINCONF
Linus Walleij45f034e2011-11-05 21:28:46 +0100230
Linus Walleijca402d32011-11-16 09:22:59 +0100231config PINCTRL_COH901
232 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
Linus Walleij3c94d1b2012-06-18 20:07:50 +0200233 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
Linus Walleij523dcce2014-03-25 13:37:17 +0100234 select GPIOLIB_IRQCHIP
Linus Walleijca402d32011-11-16 09:22:59 +0100235 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
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530241config PINCTRL_MAX77620
242 tristate "MAX77620/MAX20024 Pincontrol support"
Arnd Bergmann24d6a912016-10-28 10:19:05 +0200243 depends on MFD_MAX77620 && OF
Arnd Bergmann79f28b92016-06-13 17:18:35 +0200244 select PINMUX
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530245 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
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530252config PINCTRL_PALMAS
Paul Gortmaker767b8ce2016-06-13 17:10:21 -0400253 tristate "Pinctrl driver for the PALMAS Series MFD devices"
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530254 depends on OF && MFD_PALMAS
Axel Lin63ca8db2013-08-22 14:30:08 +0800255 select PINMUX
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530256 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
Joshua Henderson2ba384e2016-02-01 15:48:30 -0700263config 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
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800280config PINCTRL_ZYNQ
281 bool "Pinctrl driver for Xilinx Zynq"
282 depends on ARCH_ZYNQ
283 select PINMUX
284 select GENERIC_PINCONF
285 help
Masahiro Yamada485dba22015-11-30 16:57:35 +0900286 This selects the pinctrl driver for Xilinx Zynq.
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800287
Andrew Jeffery4d3d0e42016-08-30 17:24:24 +0930288source "drivers/pinctrl/aspeed/Kconfig"
Ray Juib17f2f92015-03-04 16:35:49 -0800289source "drivers/pinctrl/bcm/Kconfig"
Antoine Tenart3de68d32014-05-19 19:36:29 +0200290source "drivers/pinctrl/berlin/Kconfig"
Linus Walleijedad3b22014-09-03 13:37:38 +0200291source "drivers/pinctrl/freescale/Kconfig"
Mika Westerberg5fae8b82014-10-24 15:16:52 +0300292source "drivers/pinctrl/intel/Kconfig"
Thomas Petazzoni06763c72012-10-24 23:38:58 +0200293source "drivers/pinctrl/mvebu/Kconfig"
Linus Walleij3a198052014-07-11 14:57:06 +0200294source "drivers/pinctrl/nomadik/Kconfig"
Robert Jarzmik4b15ec92015-11-21 19:04:53 +0100295source "drivers/pinctrl/pxa/Kconfig"
Linus Walleij69b78b82014-07-09 13:55:12 +0200296source "drivers/pinctrl/qcom/Kconfig"
Sachin Kamatebe629a2014-07-10 17:33:27 +0530297source "drivers/pinctrl/samsung/Kconfig"
Laurent Pinchart6e54d8d2012-12-15 23:51:19 +0100298source "drivers/pinctrl/sh-pfc/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530299source "drivers/pinctrl/spear/Kconfig"
Maxime Coquelinaceb16d2016-01-14 13:16:30 +0100300source "drivers/pinctrl/stm32/Kconfig"
Maxime Ripard5f910772014-04-18 18:53:02 +0200301source "drivers/pinctrl/sunxi/Kconfig"
Masahiro Yamada25cbac72016-01-24 00:30:08 +0900302source "drivers/pinctrl/tegra/Kconfig"
Nishanth Menon003910e2017-01-05 10:54:14 -0800303source "drivers/pinctrl/ti/Kconfig"
Masahiro Yamada6e908892015-07-14 11:40:01 +0900304source "drivers/pinctrl/uniphier/Kconfig"
Tony Prisk170c6152013-02-20 09:32:19 +1300305source "drivers/pinctrl/vt8500/Kconfig"
Hongzhou Yanga6df4102015-01-21 13:28:15 +0800306source "drivers/pinctrl/mediatek/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530307
John Crispin3f8c50c2012-08-28 12:44:59 +0200308config PINCTRL_XWAY
309 bool
310 depends on SOC_TYPE_XWAY
311 depends on PINCTRL_LANTIQ
312
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200313config PINCTRL_TB10X
314 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200315 depends on OF && ARC_PLAT_TB10X
316 select GPIOLIB
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200317
Linus Walleij45f034e2011-11-05 21:28:46 +0100318endmenu