blob: add257f80d76a7d86575758cd63494800a0ad879 [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
17config PINCONF
Uwe Kleine-König244e95a2014-06-03 10:02:36 +020018 bool "Support pin configuration controllers" if COMPILE_TEST
Linus Walleij2744e8a2011-05-02 20:50:54 +020019
Linus Walleij394349f2011-11-24 18:27:15 +010020config GENERIC_PINCONF
21 bool
22 select PINCONF
23
Linus Walleij2744e8a2011-05-02 20:50:54 +020024config DEBUG_PINCTRL
25 bool "Debug PINCTRL calls"
26 depends on DEBUG_KERNEL
27 help
28 Say Y here to add some extra checks and diagnostics to PINCTRL calls.
29
Sonic Zhange9a03ad2013-09-03 16:28:59 +080030config PINCTRL_ADI2
31 bool "ADI pin controller driver"
Sonic Zhang9d7278d2013-09-23 11:57:00 +080032 depends on BLACKFIN
Sonic Zhange9a03ad2013-09-03 16:28:59 +080033 select PINMUX
34 select IRQ_DOMAIN
35 help
36 This is the pin controller and gpio driver for ADI BF54x, BF60x and
37 future processors. This option is selected automatically when specific
38 machine and arch are selected to build.
39
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053040config PINCTRL_AS3722
Paul Gortmaker9385f352016-06-13 17:10:22 -040041 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053042 depends on MFD_AS3722 && GPIOLIB
43 select PINMUX
44 select GENERIC_PINCONF
45 help
46 AS3722 device supports the configuration of GPIO pins for different
47 functionality. This driver supports the pinmux, push-pull and
48 open drain configuration for the GPIO pins of AS3722 devices. It also
49 supports the GPIO functionality through gpiolib.
50
Sonic Zhange9a03ad2013-09-03 16:28:59 +080051config PINCTRL_BF54x
52 def_bool y if BF54x
53 select PINCTRL_ADI2
54
55config PINCTRL_BF60x
56 def_bool y if BF60x
57 select PINCTRL_ADI2
58
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080059config PINCTRL_AT91
60 bool "AT91 pinctrl driver"
61 depends on OF
62 depends on ARCH_AT91
63 select PINMUX
64 select PINCONF
Alexander Stein80cc3732014-04-15 22:09:41 +020065 select GPIOLIB
66 select OF_GPIO
67 select GPIOLIB_IRQCHIP
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080068 help
69 Say Y here to enable the at91 pinctrl driver
70
Ludovic Desroches77618082015-09-16 17:36:57 +020071config PINCTRL_AT91PIO4
72 bool "AT91 PIO4 pinctrl driver"
73 depends on OF
74 depends on ARCH_AT91
75 select PINMUX
76 select GENERIC_PINCONF
77 select GPIOLIB
78 select GPIOLIB_IRQCHIP
79 select OF_GPIO
80 help
81 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
82 controller available on sama5d2 SoC.
83
Ken Xuedbad75d2015-03-10 15:02:19 +080084config PINCTRL_AMD
Jean Delvare337ea0f2016-02-11 12:06:37 +010085 tristate "AMD GPIO pin control"
Ken Xuedbad75d2015-03-10 15:02:19 +080086 depends on GPIOLIB
87 select GPIOLIB_IRQCHIP
88 select PINCONF
89 select GENERIC_PINCONF
90 help
91 driver for memory mapped GPIO functionality on AMD platforms
92 (x86 or arm).Most pins are usually muxed to some other
93 functionality by firmware,so only a small amount is available
94 for gpio use.
95
96 Requires ACPI/FDT device enumeration code to set up a platform
97 device.
98
David Lechner1ff91f02016-11-28 10:40:25 -060099config PINCTRL_DA850_PUPD
100 tristate "TI DA850/OMAP-L138/AM18XX pullup/pulldown groups"
101 depends on OF && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
102 select PINCONF
103 select GENERIC_PINCONF
104 help
105 Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
106 pullup/pulldown pin groups.
107
Baruch Siach38b0e502015-05-05 13:55:10 +0300108config PINCTRL_DIGICOLOR
109 bool
110 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
111 select PINMUX
112 select GENERIC_PINCONF
113
John Crispin3f8c50c2012-08-28 12:44:59 +0200114config PINCTRL_LANTIQ
115 bool
116 depends on LANTIQ
117 select PINMUX
118 select PINCONF
119
Joachim Eastwood2f77ac92015-04-28 00:14:08 +0200120config PINCTRL_LPC18XX
121 bool "NXP LPC18XX/43XX SCU pinctrl driver"
122 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
123 default ARCH_LPC18XX
124 select PINMUX
125 select GENERIC_PINCONF
126 help
127 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
128
John Crispine316cb22012-05-20 00:33:56 +0200129config PINCTRL_FALCON
130 bool
131 depends on SOC_FALCON
132 depends on PINCTRL_LANTIQ
133
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100134config PINCTRL_MESON
135 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200136 depends on OF
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100137 select PINMUX
138 select PINCONF
139 select GENERIC_PINCONF
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200140 select GPIOLIB
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100141 select OF_GPIO
142 select REGMAP_MMIO
143
Neil Armstrong611dac12016-05-11 09:34:21 +0200144config PINCTRL_OXNAS
145 bool
146 depends on OF
147 select PINMUX
148 select PINCONF
149 select GENERIC_PINCONF
150 select GPIOLIB
151 select OF_GPIO
152 select GPIOLIB_IRQCHIP
153 select MFD_SYSCON
154
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200155config PINCTRL_ROCKCHIP
156 bool
157 select PINMUX
158 select GENERIC_PINCONF
159 select GENERIC_IRQ_CHIP
Heiko Stübner751a99a2014-05-05 13:58:20 +0200160 select MFD_SYSCON
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200161
Tony Lindgren8b8b091b2012-07-10 02:05:46 -0700162config PINCTRL_SINGLE
163 tristate "One-register-per-pin type device tree based pinctrl driver"
164 depends on OF
165 select PINMUX
166 select PINCONF
Haojian Zhuang9dddb4d2013-02-17 19:42:55 +0800167 select GENERIC_PINCONF
Tony Lindgren8b8b091b2012-07-10 02:05:46 -0700168 help
169 This selects the device tree based generic pinctrl driver.
170
Linus Walleij3bece552011-12-18 23:44:26 +0100171config PINCTRL_SIRF
Barry Songa17272a2015-01-11 21:56:41 +0800172 bool "CSR SiRFprimaII pin controller driver"
Barry Songd3e26f22012-09-27 17:56:30 +0800173 depends on ARCH_SIRF
Rongjun Ying393daa82011-10-09 03:11:13 -0700174 select PINMUX
Wei Chenf9367792015-05-18 07:28:32 +0000175 select PINCONF
176 select GENERIC_PINCONF
Linus Walleij7420d2d2014-04-15 14:43:47 +0800177 select GPIOLIB_IRQCHIP
Rongjun Ying393daa82011-10-09 03:11:13 -0700178
Neil Armstrong9e80f902016-10-21 11:09:58 +0200179config PINCTRL_SX150X
180 bool "Semtech SX150x I2C GPIO expander pinctrl driver"
181 depends on GPIOLIB && I2C=y
182 select PINMUX
183 select PINCONF
184 select GENERIC_PINCONF
185 select GPIOLIB_IRQCHIP
Andrey Smirnov0db0f262016-11-07 08:53:16 -0800186 select REGMAP
Neil Armstrong9e80f902016-10-21 11:09:58 +0200187 help
188 Say yes here to provide support for Semtech SX150x-series I2C
189 GPIO expanders as pinctrl module.
190 Compatible models include:
191 - 8 bits: sx1508q, sx1502q
192 - 16 bits: sx1509q, sx1506q
193
Andrew Brestickercefc03e2015-05-06 12:59:03 -0700194config PINCTRL_PISTACHIO
195 def_bool y if MACH_PISTACHIO
196 depends on GPIOLIB
197 select PINMUX
198 select GENERIC_PINCONF
199 select GPIOLIB_IRQCHIP
200 select OF_GPIO
201
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100202config PINCTRL_ST
203 bool
204 depends on OF
205 select PINMUX
206 select PINCONF
Linus Walleij130cbe32014-04-08 14:45:47 +0200207 select GPIOLIB_IRQCHIP
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100208
James Hogand5025f92013-06-20 10:26:27 +0100209config PINCTRL_TZ1090
210 bool "Toumaz Xenif TZ1090 pin control driver"
211 depends on SOC_TZ1090
212 select PINMUX
213 select GENERIC_PINCONF
214
James Hoganb58f0272013-06-20 10:26:29 +0100215config PINCTRL_TZ1090_PDC
216 bool "Toumaz Xenif TZ1090 PDC pin control driver"
217 depends on SOC_TZ1090
218 select PINMUX
219 select PINCONF
220
Linus Walleij3bece552011-12-18 23:44:26 +0100221config PINCTRL_U300
222 bool "U300 pin controller driver"
Linus Walleij98da3522011-05-02 20:54:38 +0200223 depends on ARCH_U300
224 select PINMUX
Linus Walleijdc0b1aa2011-11-16 21:58:10 +0100225 select GENERIC_PINCONF
Linus Walleij45f034e2011-11-05 21:28:46 +0100226
Linus Walleijca402d32011-11-16 09:22:59 +0100227config PINCTRL_COH901
228 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
Linus Walleij3c94d1b2012-06-18 20:07:50 +0200229 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
Linus Walleij523dcce2014-03-25 13:37:17 +0100230 select GPIOLIB_IRQCHIP
Linus Walleijca402d32011-11-16 09:22:59 +0100231 help
232 Say yes here to support GPIO interface on ST-Ericsson U300.
233 The names of the two IP block variants supported are
234 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
235 ports of 8 GPIO pins each.
236
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530237config PINCTRL_MAX77620
238 tristate "MAX77620/MAX20024 Pincontrol support"
Arnd Bergmann24d6a912016-10-28 10:19:05 +0200239 depends on MFD_MAX77620 && OF
Arnd Bergmann79f28b92016-06-13 17:18:35 +0200240 select PINMUX
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530241 select GENERIC_PINCONF
242 help
243 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
244 This PMIC has 8 GPIO pins that work as GPIO as well as special
245 function in alternate mode. This driver also configure push-pull,
246 open drain, FPS slots etc.
247
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530248config PINCTRL_PALMAS
Paul Gortmaker767b8ce2016-06-13 17:10:21 -0400249 tristate "Pinctrl driver for the PALMAS Series MFD devices"
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530250 depends on OF && MFD_PALMAS
Axel Lin63ca8db2013-08-22 14:30:08 +0800251 select PINMUX
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530252 select GENERIC_PINCONF
253 help
254 Palmas device supports the configuration of pins for different
255 functionality. This driver supports the pinmux, push-pull and
256 open drain configuration for the Palmas series devices like
257 TPS65913, TPS80036 etc.
258
Joshua Henderson2ba384e2016-02-01 15:48:30 -0700259config PINCTRL_PIC32
260 bool "Microchip PIC32 pin controller driver"
261 depends on OF
262 depends on MACH_PIC32
263 select PINMUX
264 select GENERIC_PINCONF
265 select GPIOLIB_IRQCHIP
266 select OF_GPIO
267 help
268 This is the pin controller and gpio driver for Microchip PIC32
269 microcontrollers. This option is selected automatically when specific
270 machine and arch are selected to build.
271
272config PINCTRL_PIC32MZDA
273 def_bool y if PIC32MZDA
274 select PINCTRL_PIC32
275
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800276config PINCTRL_ZYNQ
277 bool "Pinctrl driver for Xilinx Zynq"
278 depends on ARCH_ZYNQ
279 select PINMUX
280 select GENERIC_PINCONF
281 help
Masahiro Yamada485dba22015-11-30 16:57:35 +0900282 This selects the pinctrl driver for Xilinx Zynq.
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800283
Andrew Jeffery4d3d0e422016-08-30 17:24:24 +0930284source "drivers/pinctrl/aspeed/Kconfig"
Ray Juib17f2f92015-03-04 16:35:49 -0800285source "drivers/pinctrl/bcm/Kconfig"
Antoine Tenart3de68d32014-05-19 19:36:29 +0200286source "drivers/pinctrl/berlin/Kconfig"
Linus Walleijedad3b22014-09-03 13:37:38 +0200287source "drivers/pinctrl/freescale/Kconfig"
Mika Westerberg5fae8b82014-10-24 15:16:52 +0300288source "drivers/pinctrl/intel/Kconfig"
Thomas Petazzoni06763c72012-10-24 23:38:58 +0200289source "drivers/pinctrl/mvebu/Kconfig"
Linus Walleij3a198052014-07-11 14:57:06 +0200290source "drivers/pinctrl/nomadik/Kconfig"
Robert Jarzmik4b15ec92015-11-21 19:04:53 +0100291source "drivers/pinctrl/pxa/Kconfig"
Linus Walleij69b78b82014-07-09 13:55:12 +0200292source "drivers/pinctrl/qcom/Kconfig"
Sachin Kamatebe629a2014-07-10 17:33:27 +0530293source "drivers/pinctrl/samsung/Kconfig"
Laurent Pinchart6e54d8d2012-12-15 23:51:19 +0100294source "drivers/pinctrl/sh-pfc/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530295source "drivers/pinctrl/spear/Kconfig"
Maxime Coquelinaceb16d2016-01-14 13:16:30 +0100296source "drivers/pinctrl/stm32/Kconfig"
Maxime Ripard5f910772014-04-18 18:53:02 +0200297source "drivers/pinctrl/sunxi/Kconfig"
Masahiro Yamada25cbac72016-01-24 00:30:08 +0900298source "drivers/pinctrl/tegra/Kconfig"
Masahiro Yamada6e908892015-07-14 11:40:01 +0900299source "drivers/pinctrl/uniphier/Kconfig"
Tony Prisk170c6152013-02-20 09:32:19 +1300300source "drivers/pinctrl/vt8500/Kconfig"
Hongzhou Yanga6df4102015-01-21 13:28:15 +0800301source "drivers/pinctrl/mediatek/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530302
John Crispin3f8c50c2012-08-28 12:44:59 +0200303config PINCTRL_XWAY
304 bool
305 depends on SOC_TYPE_XWAY
306 depends on PINCTRL_LANTIQ
307
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200308config PINCTRL_TB10X
309 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200310 depends on OF && ARC_PLAT_TB10X
311 select GPIOLIB
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200312
Linus Walleij45f034e2011-11-05 21:28:46 +0100313endmenu