blob: 54044a8ecbd7f7e923cb44634bf97f4bf97afa38 [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 Walleij2744e8a2011-05-02 20:50:54 +020011config PINMUX
Uwe Kleine-König244e95a2014-06-03 10:02:36 +020012 bool "Support pin multiplexing controllers" if COMPILE_TEST
Linus Walleijae6b4d82011-10-19 18:14:33 +020013
14config PINCONF
Uwe Kleine-König244e95a2014-06-03 10:02:36 +020015 bool "Support pin configuration controllers" if COMPILE_TEST
Linus Walleij2744e8a2011-05-02 20:50:54 +020016
Linus Walleij394349f2011-11-24 18:27:15 +010017config GENERIC_PINCONF
18 bool
19 select PINCONF
20
Linus Walleij2744e8a2011-05-02 20:50:54 +020021config DEBUG_PINCTRL
22 bool "Debug PINCTRL calls"
23 depends on DEBUG_KERNEL
24 help
25 Say Y here to add some extra checks and diagnostics to PINCTRL calls.
26
Sonic Zhange9a03ad2013-09-03 16:28:59 +080027config PINCTRL_ADI2
28 bool "ADI pin controller driver"
Sonic Zhang9d7278d2013-09-23 11:57:00 +080029 depends on BLACKFIN
Sonic Zhange9a03ad2013-09-03 16:28:59 +080030 select PINMUX
31 select IRQ_DOMAIN
32 help
33 This is the pin controller and gpio driver for ADI BF54x, BF60x and
34 future processors. This option is selected automatically when specific
35 machine and arch are selected to build.
36
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053037config PINCTRL_AS3722
Paul Gortmaker9385f352016-06-13 17:10:22 -040038 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053039 depends on MFD_AS3722 && GPIOLIB
40 select PINMUX
41 select GENERIC_PINCONF
42 help
43 AS3722 device supports the configuration of GPIO pins for different
44 functionality. This driver supports the pinmux, push-pull and
45 open drain configuration for the GPIO pins of AS3722 devices. It also
46 supports the GPIO functionality through gpiolib.
47
Sonic Zhange9a03ad2013-09-03 16:28:59 +080048config PINCTRL_BF54x
49 def_bool y if BF54x
50 select PINCTRL_ADI2
51
52config PINCTRL_BF60x
53 def_bool y if BF60x
54 select PINCTRL_ADI2
55
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080056config PINCTRL_AT91
57 bool "AT91 pinctrl driver"
58 depends on OF
59 depends on ARCH_AT91
60 select PINMUX
61 select PINCONF
Alexander Stein80cc3732014-04-15 22:09:41 +020062 select GPIOLIB
63 select OF_GPIO
64 select GPIOLIB_IRQCHIP
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080065 help
66 Say Y here to enable the at91 pinctrl driver
67
Ludovic Desroches77618082015-09-16 17:36:57 +020068config PINCTRL_AT91PIO4
69 bool "AT91 PIO4 pinctrl driver"
70 depends on OF
71 depends on ARCH_AT91
72 select PINMUX
73 select GENERIC_PINCONF
74 select GPIOLIB
75 select GPIOLIB_IRQCHIP
76 select OF_GPIO
77 help
78 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
79 controller available on sama5d2 SoC.
80
Ken Xuedbad75d2015-03-10 15:02:19 +080081config PINCTRL_AMD
Jean Delvare337ea0f2016-02-11 12:06:37 +010082 tristate "AMD GPIO pin control"
Ken Xuedbad75d2015-03-10 15:02:19 +080083 depends on GPIOLIB
84 select GPIOLIB_IRQCHIP
85 select PINCONF
86 select GENERIC_PINCONF
87 help
88 driver for memory mapped GPIO functionality on AMD platforms
89 (x86 or arm).Most pins are usually muxed to some other
90 functionality by firmware,so only a small amount is available
91 for gpio use.
92
93 Requires ACPI/FDT device enumeration code to set up a platform
94 device.
95
David Lechner1ff91f02016-11-28 10:40:25 -060096config PINCTRL_DA850_PUPD
97 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
98 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
99 select PINCONF
100 select GENERIC_PINCONF
101 help
102 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
103 pullup/pulldown pin groups.
104
Baruch Siach38b0e502015-05-05 13:55:10 +0300105config PINCTRL_DIGICOLOR
106 bool
107 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
108 select PINMUX
109 select GENERIC_PINCONF
110
John Crispin3f8c50c2012-08-28 12:44:59 +0200111config PINCTRL_LANTIQ
112 bool
113 depends on LANTIQ
114 select PINMUX
115 select PINCONF
116
Joachim Eastwood2f77ac92015-04-28 00:14:08 +0200117config PINCTRL_LPC18XX
118 bool "NXP LPC18XX/43XX SCU pinctrl driver"
119 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
120 default ARCH_LPC18XX
121 select PINMUX
122 select GENERIC_PINCONF
123 help
124 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
125
John Crispine316cb22012-05-20 00:33:56 +0200126config PINCTRL_FALCON
127 bool
128 depends on SOC_FALCON
129 depends on PINCTRL_LANTIQ
130
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100131config PINCTRL_MESON
132 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200133 depends on OF
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100134 select PINMUX
135 select PINCONF
136 select GENERIC_PINCONF
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200137 select GPIOLIB
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100138 select OF_GPIO
139 select REGMAP_MMIO
140
Neil Armstrong611dac12016-05-11 09:34:21 +0200141config PINCTRL_OXNAS
142 bool
143 depends on OF
144 select PINMUX
145 select PINCONF
146 select GENERIC_PINCONF
147 select GPIOLIB
148 select OF_GPIO
149 select GPIOLIB_IRQCHIP
150 select MFD_SYSCON
151
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200152config PINCTRL_ROCKCHIP
153 bool
154 select PINMUX
155 select GENERIC_PINCONF
156 select GENERIC_IRQ_CHIP
Heiko Stübner751a99a2014-05-05 13:58:20 +0200157 select MFD_SYSCON
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200158
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700159config PINCTRL_SINGLE
160 tristate "One-register-per-pin type device tree based pinctrl driver"
161 depends on OF
162 select PINMUX
163 select PINCONF
Haojian Zhuang9dddb4d2013-02-17 19:42:55 +0800164 select GENERIC_PINCONF
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700165 help
166 This selects the device tree based generic pinctrl driver.
167
Linus Walleij3bece552011-12-18 23:44:26 +0100168config PINCTRL_SIRF
Barry Songa17272a2015-01-11 21:56:41 +0800169 bool "CSR SiRFprimaII pin controller driver"
Barry Songd3e26f22012-09-27 17:56:30 +0800170 depends on ARCH_SIRF
Rongjun Ying393daa82011-10-09 03:11:13 -0700171 select PINMUX
Wei Chenf9367792015-05-18 07:28:32 +0000172 select PINCONF
173 select GENERIC_PINCONF
Linus Walleij7420d2d2014-04-15 14:43:47 +0800174 select GPIOLIB_IRQCHIP
Rongjun Ying393daa82011-10-09 03:11:13 -0700175
Neil Armstrong9e80f902016-10-21 11:09:58 +0200176config PINCTRL_SX150X
177 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
178 depends on GPIOLIB && I2C=y
179 select PINMUX
180 select PINCONF
181 select GENERIC_PINCONF
182 select GPIOLIB_IRQCHIP
Andrey Smirnov0db0f262016-11-07 08:53:16 -0800183 select REGMAP
Neil Armstrong9e80f902016-10-21 11:09:58 +0200184 help
185 Say yes here to provide support for Semtech SX150x-series I2C
186 GPIO expanders as pinctrl module.
187 Compatible models include:
188 - 8 bits: sx1508q, sx1502q
189 - 16 bits: sx1509q, sx1506q
190
Andrew Brestickercefc03e2015-05-06 12:59:03 -0700191config PINCTRL_PISTACHIO
192 def_bool y if MACH_PISTACHIO
193 depends on GPIOLIB
194 select PINMUX
195 select GENERIC_PINCONF
196 select GPIOLIB_IRQCHIP
197 select OF_GPIO
198
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100199config PINCTRL_ST
200 bool
201 depends on OF
202 select PINMUX
203 select PINCONF
Linus Walleij130cbe32014-04-08 14:45:47 +0200204 select GPIOLIB_IRQCHIP
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100205
James Hogand5025f92013-06-20 10:26:27 +0100206config PINCTRL_TZ1090
207 bool "Toumaz Xenif TZ1090 pin control driver"
208 depends on SOC_TZ1090
209 select PINMUX
210 select GENERIC_PINCONF
211
James Hoganb58f0272013-06-20 10:26:29 +0100212config PINCTRL_TZ1090_PDC
213 bool "Toumaz Xenif TZ1090 PDC pin control driver"
214 depends on SOC_TZ1090
215 select PINMUX
216 select PINCONF
217
Linus Walleij3bece552011-12-18 23:44:26 +0100218config PINCTRL_U300
219 bool "U300 pin controller driver"
Linus Walleij98da3522011-05-02 20:54:38 +0200220 depends on ARCH_U300
221 select PINMUX
Linus Walleijdc0b1aa2011-11-16 21:58:10 +0100222 select GENERIC_PINCONF
Linus Walleij45f034e2011-11-05 21:28:46 +0100223
Linus Walleijca402d32011-11-16 09:22:59 +0100224config PINCTRL_COH901
225 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
Linus Walleij3c94d1b2012-06-18 20:07:50 +0200226 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
Linus Walleij523dcce2014-03-25 13:37:17 +0100227 select GPIOLIB_IRQCHIP
Linus Walleijca402d32011-11-16 09:22:59 +0100228 help
229 Say yes here to support GPIO interface on ST-Ericsson U300.
230 The names of the two IP block variants supported are
231 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
232 ports of 8 GPIO pins each.
233
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530234config PINCTRL_MAX77620
235 tristate "MAX77620/MAX20024 Pincontrol support"
Arnd Bergmann24d6a912016-10-28 10:19:05 +0200236 depends on MFD_MAX77620 && OF
Arnd Bergmann79f28b92016-06-13 17:18:35 +0200237 select PINMUX
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530238 select GENERIC_PINCONF
239 help
240 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
241 This PMIC has 8 GPIO pins that work as GPIO as well as special
242 function in alternate mode. This driver also configure push-pull,
243 open drain, FPS slots etc.
244
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530245config PINCTRL_PALMAS
Paul Gortmaker767b8ce2016-06-13 17:10:21 -0400246 tristate "Pinctrl driver for the PALMAS Series MFD devices"
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530247 depends on OF && MFD_PALMAS
Axel Lin63ca8db2013-08-22 14:30:08 +0800248 select PINMUX
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530249 select GENERIC_PINCONF
250 help
251 Palmas device supports the configuration of pins for different
252 functionality. This driver supports the pinmux, push-pull and
253 open drain configuration for the Palmas series devices like
254 TPS65913, TPS80036 etc.
255
Joshua Henderson2ba384e2016-02-01 15:48:30 -0700256config PINCTRL_PIC32
257 bool "Microchip PIC32 pin controller driver"
258 depends on OF
259 depends on MACH_PIC32
260 select PINMUX
261 select GENERIC_PINCONF
262 select GPIOLIB_IRQCHIP
263 select OF_GPIO
264 help
265 This is the pin controller and gpio driver for Microchip PIC32
266 microcontrollers. This option is selected automatically when specific
267 machine and arch are selected to build.
268
269config PINCTRL_PIC32MZDA
270 def_bool y if PIC32MZDA
271 select PINCTRL_PIC32
272
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800273config PINCTRL_ZYNQ
274 bool "Pinctrl driver for Xilinx Zynq"
275 depends on ARCH_ZYNQ
276 select PINMUX
277 select GENERIC_PINCONF
278 help
Masahiro Yamada485dba22015-11-30 16:57:35 +0900279 This selects the pinctrl driver for Xilinx Zynq.
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800280
Andrew Jeffery4d3d0e42016-08-30 17:24:24 +0930281source "drivers/pinctrl/aspeed/Kconfig"
Ray Juib17f2f92015-03-04 16:35:49 -0800282source "drivers/pinctrl/bcm/Kconfig"
Antoine Tenart3de68d32014-05-19 19:36:29 +0200283source "drivers/pinctrl/berlin/Kconfig"
Linus Walleijedad3b22014-09-03 13:37:38 +0200284source "drivers/pinctrl/freescale/Kconfig"
Mika Westerberg5fae8b82014-10-24 15:16:52 +0300285source "drivers/pinctrl/intel/Kconfig"
Thomas Petazzoni06763c72012-10-24 23:38:58 +0200286source "drivers/pinctrl/mvebu/Kconfig"
Linus Walleij3a198052014-07-11 14:57:06 +0200287source "drivers/pinctrl/nomadik/Kconfig"
Robert Jarzmik4b15ec92015-11-21 19:04:53 +0100288source "drivers/pinctrl/pxa/Kconfig"
Linus Walleij69b78b82014-07-09 13:55:12 +0200289source "drivers/pinctrl/qcom/Kconfig"
Sachin Kamatebe629a2014-07-10 17:33:27 +0530290source "drivers/pinctrl/samsung/Kconfig"
Laurent Pinchart6e54d8d2012-12-15 23:51:19 +0100291source "drivers/pinctrl/sh-pfc/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530292source "drivers/pinctrl/spear/Kconfig"
Maxime Coquelinaceb16d2016-01-14 13:16:30 +0100293source "drivers/pinctrl/stm32/Kconfig"
Maxime Ripard5f910772014-04-18 18:53:02 +0200294source "drivers/pinctrl/sunxi/Kconfig"
Masahiro Yamada25cbac72016-01-24 00:30:08 +0900295source "drivers/pinctrl/tegra/Kconfig"
Masahiro Yamada6e908892015-07-14 11:40:01 +0900296source "drivers/pinctrl/uniphier/Kconfig"
Tony Prisk170c6152013-02-20 09:32:19 +1300297source "drivers/pinctrl/vt8500/Kconfig"
Hongzhou Yanga6df4102015-01-21 13:28:15 +0800298source "drivers/pinctrl/mediatek/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530299
John Crispin3f8c50c2012-08-28 12:44:59 +0200300config PINCTRL_XWAY
301 bool
302 depends on SOC_TYPE_XWAY
303 depends on PINCTRL_LANTIQ
304
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200305config PINCTRL_TB10X
306 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200307 depends on OF && ARC_PLAT_TB10X
308 select GPIOLIB
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200309
Linus Walleij45f034e2011-11-05 21:28:46 +0100310endmenu