blob: b0c0fa0444dd8f59f6e21ff3148dd501d369cef0 [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"
Linus Walleij4fdb1032017-10-11 11:57:15 +020029 depends on (BF54x || BF60x)
30 depends on !GPIO_ADI
Sonic Zhange9a03ad2013-09-03 16:28:59 +080031 select PINMUX
32 select IRQ_DOMAIN
33 help
34 This is the pin controller and gpio driver for ADI BF54x, BF60x and
35 future processors. This option is selected automatically when specific
36 machine and arch are selected to build.
37
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053038config PINCTRL_AS3722
Paul Gortmaker9385f352016-06-13 17:10:22 -040039 tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
Laxman Dewanganc8ce8782013-10-02 21:20:29 +053040 depends on MFD_AS3722 && GPIOLIB
41 select PINMUX
42 select GENERIC_PINCONF
43 help
44 AS3722 device supports the configuration of GPIO pins for different
45 functionality. This driver supports the pinmux, push-pull and
46 open drain configuration for the GPIO pins of AS3722 devices. It also
47 supports the GPIO functionality through gpiolib.
48
Sonic Zhange9a03ad2013-09-03 16:28:59 +080049config PINCTRL_BF54x
50 def_bool y if BF54x
51 select PINCTRL_ADI2
52
53config PINCTRL_BF60x
54 def_bool y if BF60x
55 select PINCTRL_ADI2
56
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080057config PINCTRL_AT91
58 bool "AT91 pinctrl driver"
59 depends on OF
60 depends on ARCH_AT91
61 select PINMUX
62 select PINCONF
Alexander Stein80cc3732014-04-15 22:09:41 +020063 select GPIOLIB
64 select OF_GPIO
65 select GPIOLIB_IRQCHIP
Jean-Christophe PLAGNIOL-VILLARD6732ae52012-07-12 23:35:02 +080066 help
67 Say Y here to enable the at91 pinctrl driver
68
Ludovic Desroches77618082015-09-16 17:36:57 +020069config PINCTRL_AT91PIO4
70 bool "AT91 PIO4 pinctrl driver"
71 depends on OF
72 depends on ARCH_AT91
73 select PINMUX
74 select GENERIC_PINCONF
75 select GPIOLIB
76 select GPIOLIB_IRQCHIP
77 select OF_GPIO
78 help
79 Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
80 controller available on sama5d2 SoC.
81
Ken Xuedbad75d2015-03-10 15:02:19 +080082config PINCTRL_AMD
Jean Delvare337ea0f2016-02-11 12:06:37 +010083 tristate "AMD GPIO pin control"
Ken Xuedbad75d2015-03-10 15:02:19 +080084 depends on GPIOLIB
85 select GPIOLIB_IRQCHIP
Petr Mladek4f28d1a2017-09-26 15:51:28 +020086 select PINMUX
Ken Xuedbad75d2015-03-10 15:02:19 +080087 select PINCONF
88 select GENERIC_PINCONF
89 help
90 driver for memory mapped GPIO functionality on AMD platforms
91 (x86 or arm).Most pins are usually muxed to some other
92 functionality by firmware,so only a small amount is available
93 for gpio use.
94
95 Requires ACPI/FDT device enumeration code to set up a platform
96 device.
97
Baruch Siach38b0e502015-05-05 13:55:10 +030098config PINCTRL_DIGICOLOR
99 bool
100 depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
101 select PINMUX
102 select GENERIC_PINCONF
103
John Crispin3f8c50c2012-08-28 12:44:59 +0200104config PINCTRL_LANTIQ
105 bool
106 depends on LANTIQ
107 select PINMUX
108 select PINCONF
109
Joachim Eastwood2f77ac92015-04-28 00:14:08 +0200110config PINCTRL_LPC18XX
111 bool "NXP LPC18XX/43XX SCU pinctrl driver"
112 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
113 default ARCH_LPC18XX
114 select PINMUX
115 select GENERIC_PINCONF
116 help
117 Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
118
John Crispine316cb22012-05-20 00:33:56 +0200119config PINCTRL_FALCON
120 bool
121 depends on SOC_FALCON
122 depends on PINCTRL_LANTIQ
123
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100124config PINCTRL_MESON
125 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200126 depends on OF
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100127 select PINMUX
128 select PINCONF
129 select GENERIC_PINCONF
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200130 select GPIOLIB
Beniamino Galvani6ac73092015-01-17 19:15:14 +0100131 select OF_GPIO
132 select REGMAP_MMIO
133
Neil Armstrong611dac12016-05-11 09:34:21 +0200134config PINCTRL_OXNAS
135 bool
136 depends on OF
137 select PINMUX
138 select PINCONF
139 select GENERIC_PINCONF
140 select GPIOLIB
141 select OF_GPIO
142 select GPIOLIB_IRQCHIP
143 select MFD_SYSCON
144
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200145config PINCTRL_ROCKCHIP
146 bool
147 select PINMUX
148 select GENERIC_PINCONF
149 select GENERIC_IRQ_CHIP
Heiko Stübner751a99a2014-05-05 13:58:20 +0200150 select MFD_SYSCON
Heiko Stübnerd3e51162013-06-10 22:16:22 +0200151
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700152config PINCTRL_SINGLE
153 tristate "One-register-per-pin type device tree based pinctrl driver"
154 depends on OF
155 select PINMUX
156 select PINCONF
Haojian Zhuang9dddb4d2013-02-17 19:42:55 +0800157 select GENERIC_PINCONF
Tony Lindgren8b8b0912012-07-10 02:05:46 -0700158 help
159 This selects the device tree based generic pinctrl driver.
160
Linus Walleij3bece552011-12-18 23:44:26 +0100161config PINCTRL_SIRF
Barry Songa17272a2015-01-11 21:56:41 +0800162 bool "CSR SiRFprimaII pin controller driver"
Barry Songd3e26f22012-09-27 17:56:30 +0800163 depends on ARCH_SIRF
Rongjun Ying393daa82011-10-09 03:11:13 -0700164 select PINMUX
Wei Chenf9367792015-05-18 07:28:32 +0000165 select PINCONF
166 select GENERIC_PINCONF
Linus Walleij7420d2d2014-04-15 14:43:47 +0800167 select GPIOLIB_IRQCHIP
Rongjun Ying393daa82011-10-09 03:11:13 -0700168
Andrew Brestickercefc03e2015-05-06 12:59:03 -0700169config PINCTRL_PISTACHIO
170 def_bool y if MACH_PISTACHIO
171 depends on GPIOLIB
172 select PINMUX
173 select GENERIC_PINCONF
174 select GPIOLIB_IRQCHIP
175 select OF_GPIO
176
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100177config PINCTRL_ST
178 bool
179 depends on OF
180 select PINMUX
181 select PINCONF
Linus Walleij130cbe32014-04-08 14:45:47 +0200182 select GPIOLIB_IRQCHIP
Srinivas KANDAGATLA701016c2013-06-20 15:05:38 +0100183
James Hogand5025f92013-06-20 10:26:27 +0100184config PINCTRL_TZ1090
185 bool "Toumaz Xenif TZ1090 pin control driver"
186 depends on SOC_TZ1090
187 select PINMUX
188 select GENERIC_PINCONF
189
James Hoganb58f0272013-06-20 10:26:29 +0100190config PINCTRL_TZ1090_PDC
191 bool "Toumaz Xenif TZ1090 PDC pin control driver"
192 depends on SOC_TZ1090
193 select PINMUX
194 select PINCONF
195
Linus Walleij3bece552011-12-18 23:44:26 +0100196config PINCTRL_U300
197 bool "U300 pin controller driver"
Linus Walleij98da3522011-05-02 20:54:38 +0200198 depends on ARCH_U300
199 select PINMUX
Linus Walleijdc0b1aa2011-11-16 21:58:10 +0100200 select GENERIC_PINCONF
Linus Walleij45f034e2011-11-05 21:28:46 +0100201
Linus Walleijca402d32011-11-16 09:22:59 +0100202config PINCTRL_COH901
203 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
Linus Walleij3c94d1b2012-06-18 20:07:50 +0200204 depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
Linus Walleij523dcce2014-03-25 13:37:17 +0100205 select GPIOLIB_IRQCHIP
Linus Walleijca402d32011-11-16 09:22:59 +0100206 help
207 Say yes here to support GPIO interface on ST-Ericsson U300.
208 The names of the two IP block variants supported are
209 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
210 ports of 8 GPIO pins each.
211
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530212config PINCTRL_MAX77620
213 tristate "MAX77620/MAX20024 Pincontrol support"
214 depends on MFD_MAX77620
Arnd Bergmann79f28b9f2016-06-13 17:18:35 +0200215 select PINMUX
Laxman Dewangan2df723d42016-05-13 10:49:15 +0530216 select GENERIC_PINCONF
217 help
218 Say Yes here to enable Pin control support for Maxim PMIC MAX77620.
219 This PMIC has 8 GPIO pins that work as GPIO as well as special
220 function in alternate mode. This driver also configure push-pull,
221 open drain, FPS slots etc.
222
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530223config PINCTRL_PALMAS
Paul Gortmaker767b8ce2016-06-13 17:10:21 -0400224 tristate "Pinctrl driver for the PALMAS Series MFD devices"
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530225 depends on OF && MFD_PALMAS
Axel Lin63ca8db2013-08-22 14:30:08 +0800226 select PINMUX
Laxman Dewangan0a8d3e22013-08-06 18:42:35 +0530227 select GENERIC_PINCONF
228 help
229 Palmas device supports the configuration of pins for different
230 functionality. This driver supports the pinmux, push-pull and
231 open drain configuration for the Palmas series devices like
232 TPS65913, TPS80036 etc.
233
Joshua Henderson2ba384e2016-02-01 15:48:30 -0700234config PINCTRL_PIC32
235 bool "Microchip PIC32 pin controller driver"
236 depends on OF
237 depends on MACH_PIC32
238 select PINMUX
239 select GENERIC_PINCONF
240 select GPIOLIB_IRQCHIP
241 select OF_GPIO
242 help
243 This is the pin controller and gpio driver for Microchip PIC32
244 microcontrollers. This option is selected automatically when specific
245 machine and arch are selected to build.
246
247config PINCTRL_PIC32MZDA
248 def_bool y if PIC32MZDA
249 select PINCTRL_PIC32
250
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800251config PINCTRL_ZYNQ
252 bool "Pinctrl driver for Xilinx Zynq"
253 depends on ARCH_ZYNQ
254 select PINMUX
255 select GENERIC_PINCONF
256 help
Masahiro Yamada485dba22015-11-30 16:57:35 +0900257 This selects the pinctrl driver for Xilinx Zynq.
Soren Brinkmannadd958c2015-01-09 07:43:48 -0800258
Andrew Jeffery4d3d0e42016-08-30 17:24:24 +0930259source "drivers/pinctrl/aspeed/Kconfig"
Ray Juib17f2f92015-03-04 16:35:49 -0800260source "drivers/pinctrl/bcm/Kconfig"
Antoine Tenart3de68d32014-05-19 19:36:29 +0200261source "drivers/pinctrl/berlin/Kconfig"
Linus Walleijedad3b22014-09-03 13:37:38 +0200262source "drivers/pinctrl/freescale/Kconfig"
Mika Westerberg5fae8b82014-10-24 15:16:52 +0300263source "drivers/pinctrl/intel/Kconfig"
Thomas Petazzoni06763c72012-10-24 23:38:58 +0200264source "drivers/pinctrl/mvebu/Kconfig"
Linus Walleij3a198052014-07-11 14:57:06 +0200265source "drivers/pinctrl/nomadik/Kconfig"
Robert Jarzmik4b15ec92015-11-21 19:04:53 +0100266source "drivers/pinctrl/pxa/Kconfig"
Linus Walleij69b78b82014-07-09 13:55:12 +0200267source "drivers/pinctrl/qcom/Kconfig"
Sachin Kamatebe629a2014-07-10 17:33:27 +0530268source "drivers/pinctrl/samsung/Kconfig"
Laurent Pinchart6e54d8d2012-12-15 23:51:19 +0100269source "drivers/pinctrl/sh-pfc/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530270source "drivers/pinctrl/spear/Kconfig"
Maxime Coquelinaceb16d2016-01-14 13:16:30 +0100271source "drivers/pinctrl/stm32/Kconfig"
Maxime Ripard5f910772014-04-18 18:53:02 +0200272source "drivers/pinctrl/sunxi/Kconfig"
Masahiro Yamada25cbac72016-01-24 00:30:08 +0900273source "drivers/pinctrl/tegra/Kconfig"
Masahiro Yamada6e908892015-07-14 11:40:01 +0900274source "drivers/pinctrl/uniphier/Kconfig"
Tony Prisk170c6152013-02-20 09:32:19 +1300275source "drivers/pinctrl/vt8500/Kconfig"
Hongzhou Yanga6df4102015-01-21 13:28:15 +0800276source "drivers/pinctrl/mediatek/Kconfig"
Viresh Kumardeda8282012-03-28 22:27:07 +0530277
John Crispin3f8c50c2012-08-28 12:44:59 +0200278config PINCTRL_XWAY
279 bool
280 depends on SOC_TYPE_XWAY
281 depends on PINCTRL_LANTIQ
282
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200283config PINCTRL_TB10X
284 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +0200285 depends on OF && ARC_PLAT_TB10X
286 select GPIOLIB
Christian Ruppert5aad0db2013-10-15 15:39:38 +0200287
Linus Walleij45f034e2011-11-05 21:28:46 +0100288endmenu