xref: /linux/drivers/pinctrl/Kconfig (revision 9d7278d0b4238575739a96f64fb14b30ed0589b5)
12744e8afSLinus Walleij#
22744e8afSLinus Walleij# PINCTRL infrastructure and drivers
32744e8afSLinus Walleij#
42744e8afSLinus Walleij
545f034efSLinus Walleijconfig PINCTRL
645f034efSLinus Walleij	bool
72744e8afSLinus Walleij
82744e8afSLinus Walleijif PINCTRL
92744e8afSLinus Walleij
1045f034efSLinus Walleijmenu "Pin controllers"
1145f034efSLinus Walleij	depends on PINCTRL
1245f034efSLinus Walleij
132744e8afSLinus Walleijconfig PINMUX
14ae6b4d85SLinus Walleij	bool "Support pin multiplexing controllers"
15ae6b4d85SLinus Walleij
16ae6b4d85SLinus Walleijconfig PINCONF
17ae6b4d85SLinus Walleij	bool "Support pin configuration controllers"
182744e8afSLinus Walleij
19394349f7SLinus Walleijconfig GENERIC_PINCONF
20394349f7SLinus Walleij	bool
21394349f7SLinus Walleij	select PINCONF
22394349f7SLinus Walleij
232744e8afSLinus Walleijconfig DEBUG_PINCTRL
242744e8afSLinus Walleij	bool "Debug PINCTRL calls"
252744e8afSLinus Walleij	depends on DEBUG_KERNEL
262744e8afSLinus Walleij	help
272744e8afSLinus Walleij	  Say Y here to add some extra checks and diagnostics to PINCTRL calls.
282744e8afSLinus Walleij
290493e649SPatrice Chotardconfig PINCTRL_ABX500
300493e649SPatrice Chotard	bool "ST-Ericsson ABx500 family Mixed Signal Circuit gpio functions"
310493e649SPatrice Chotard	depends on AB8500_CORE
320493e649SPatrice Chotard	select GENERIC_PINCONF
330493e649SPatrice Chotard	help
340493e649SPatrice Chotard	  Select this to enable the ABx500 family IC GPIO driver
350493e649SPatrice Chotard
363c937993SPatrice Chotardconfig PINCTRL_AB8500
373c937993SPatrice Chotard	bool "AB8500 pin controller driver"
383c937993SPatrice Chotard	depends on PINCTRL_ABX500 && ARCH_U8500
393c937993SPatrice Chotard
40a8f96e41SPatrice Chotardconfig PINCTRL_AB8540
41a8f96e41SPatrice Chotard	bool "AB8540 pin controller driver"
42a8f96e41SPatrice Chotard	depends on PINCTRL_ABX500 && ARCH_U8500
43a8f96e41SPatrice Chotard
4409dbec3fSPatrice Chotardconfig PINCTRL_AB9540
4509dbec3fSPatrice Chotard	bool "AB9540 pin controller driver"
4609dbec3fSPatrice Chotard	depends on PINCTRL_ABX500 && ARCH_U8500
4709dbec3fSPatrice Chotard
481aa2d8d4SPatrice Chotardconfig PINCTRL_AB8505
491aa2d8d4SPatrice Chotard	bool "AB8505 pin controller driver"
501aa2d8d4SPatrice Chotard	depends on PINCTRL_ABX500 && ARCH_U8500
511aa2d8d4SPatrice Chotard
52e9a03addSSonic Zhangconfig PINCTRL_ADI2
53e9a03addSSonic Zhang	bool "ADI pin controller driver"
54*9d7278d0SSonic Zhang	depends on BLACKFIN
55e9a03addSSonic Zhang	select PINMUX
56e9a03addSSonic Zhang	select IRQ_DOMAIN
57e9a03addSSonic Zhang	help
58e9a03addSSonic Zhang	  This is the pin controller and gpio driver for ADI BF54x, BF60x and
59e9a03addSSonic Zhang	  future processors. This option is selected automatically when specific
60e9a03addSSonic Zhang	  machine and arch are selected to build.
61e9a03addSSonic Zhang
62e9a03addSSonic Zhangconfig PINCTRL_BF54x
63e9a03addSSonic Zhang	def_bool y if BF54x
64e9a03addSSonic Zhang	select PINCTRL_ADI2
65e9a03addSSonic Zhang
66e9a03addSSonic Zhangconfig PINCTRL_BF60x
67e9a03addSSonic Zhang	def_bool y if BF60x
68e9a03addSSonic Zhang	select PINCTRL_ADI2
69e9a03addSSonic Zhang
706732ae5cSJean-Christophe PLAGNIOL-VILLARDconfig PINCTRL_AT91
716732ae5cSJean-Christophe PLAGNIOL-VILLARD	bool "AT91 pinctrl driver"
726732ae5cSJean-Christophe PLAGNIOL-VILLARD	depends on OF
736732ae5cSJean-Christophe PLAGNIOL-VILLARD	depends on ARCH_AT91
746732ae5cSJean-Christophe PLAGNIOL-VILLARD	select PINMUX
756732ae5cSJean-Christophe PLAGNIOL-VILLARD	select PINCONF
766732ae5cSJean-Christophe PLAGNIOL-VILLARD	help
776732ae5cSJean-Christophe PLAGNIOL-VILLARD	  Say Y here to enable the at91 pinctrl driver
786732ae5cSJean-Christophe PLAGNIOL-VILLARD
79a5d811bbSMathias Nymanconfig PINCTRL_BAYTRAIL
80a5d811bbSMathias Nyman	bool "Intel Baytrail GPIO pin control"
81a5d811bbSMathias Nyman	depends on GPIOLIB && ACPI && X86
82a5d811bbSMathias Nyman	select IRQ_DOMAIN
83a5d811bbSMathias Nyman	help
84a5d811bbSMathias Nyman	  driver for memory mapped GPIO functionality on Intel Baytrail
85a5d811bbSMathias Nyman	  platforms. Supports 3 banks with 102, 28 and 44 gpios.
86a5d811bbSMathias Nyman	  Most pins are usually muxed to some other functionality by firmware,
87a5d811bbSMathias Nyman	  so only a small amount is available for gpio use.
88a5d811bbSMathias Nyman
89a5d811bbSMathias Nyman	  Requires ACPI device enumeration code to set up a platform device.
90a5d811bbSMathias Nyman
91e1b2dc70SSimon Arlottconfig PINCTRL_BCM2835
92e1b2dc70SSimon Arlott	bool
93e1b2dc70SSimon Arlott	select PINMUX
94e1b2dc70SSimon Arlott	select PINCONF
95e1b2dc70SSimon Arlott
96ae75ff81SDong Aishengconfig PINCTRL_IMX
97ae75ff81SDong Aisheng	bool
98ae75ff81SDong Aisheng	select PINMUX
99ae75ff81SDong Aisheng	select PINCONF
100ae75ff81SDong Aisheng
101b9aa8f13SUwe Kleine-Königconfig PINCTRL_IMX35
102b9aa8f13SUwe Kleine-König	bool "IMX35 pinctrl driver"
103b9aa8f13SUwe Kleine-König	depends on OF
104b9aa8f13SUwe Kleine-König	depends on SOC_IMX35
105b9aa8f13SUwe Kleine-König	select PINCTRL_IMX
106b9aa8f13SUwe Kleine-König	help
107b9aa8f13SUwe Kleine-König	  Say Y here to enable the imx35 pinctrl driver
108b9aa8f13SUwe Kleine-König
1094f6a16bfSDong Aishengconfig PINCTRL_IMX51
1104f6a16bfSDong Aisheng	bool "IMX51 pinctrl driver"
1114f6a16bfSDong Aisheng	depends on OF
1124f6a16bfSDong Aisheng	depends on SOC_IMX51
1134f6a16bfSDong Aisheng	select PINCTRL_IMX
1144f6a16bfSDong Aisheng	help
1154f6a16bfSDong Aisheng	  Say Y here to enable the imx51 pinctrl driver
1164f6a16bfSDong Aisheng
11793fbd3c0SDong Aishengconfig PINCTRL_IMX53
11893fbd3c0SDong Aisheng	bool "IMX53 pinctrl driver"
11993fbd3c0SDong Aisheng	depends on OF
12093fbd3c0SDong Aisheng	depends on SOC_IMX53
12193fbd3c0SDong Aisheng	select PINCTRL_IMX
12293fbd3c0SDong Aisheng	help
12393fbd3c0SDong Aisheng	  Say Y here to enable the imx53 pinctrl driver
12493fbd3c0SDong Aisheng
125d8fe3572SDong Aishengconfig PINCTRL_IMX6Q
1263f551d6aSShawn Guo	bool "IMX6Q/DL pinctrl driver"
127d8fe3572SDong Aisheng	depends on OF
128d8fe3572SDong Aisheng	depends on SOC_IMX6Q
129d8fe3572SDong Aisheng	select PINCTRL_IMX
130d8fe3572SDong Aisheng	help
1313f551d6aSShawn Guo	  Say Y here to enable the imx6q/dl pinctrl driver
132d8fe3572SDong Aisheng
13321e59123SShawn Guoconfig PINCTRL_IMX6SL
13421e59123SShawn Guo	bool "IMX6SL pinctrl driver"
13521e59123SShawn Guo	depends on OF
13621e59123SShawn Guo	depends on SOC_IMX6SL
13721e59123SShawn Guo	select PINCTRL_IMX
13821e59123SShawn Guo	help
13921e59123SShawn Guo	  Say Y here to enable the imx6sl pinctrl driver
140f4e66983SHaojian Zhuang
14178bafc66SJingchang Luconfig PINCTRL_VF610
14278bafc66SJingchang Lu	bool "Freescale Vybrid VF610 pinctrl driver"
14378bafc66SJingchang Lu	depends on OF
14478bafc66SJingchang Lu	depends on SOC_VF610
14578bafc66SJingchang Lu	select PINCTRL_IMX
14678bafc66SJingchang Lu	help
14778bafc66SJingchang Lu	  Say Y here to enable the Freescale Vybrid VF610 pinctrl driver
14878bafc66SJingchang Lu
1493f8c50c9SJohn Crispinconfig PINCTRL_LANTIQ
1503f8c50c9SJohn Crispin	bool
1513f8c50c9SJohn Crispin	depends on LANTIQ
1523f8c50c9SJohn Crispin	select PINMUX
1533f8c50c9SJohn Crispin	select PINCONF
1543f8c50c9SJohn Crispin
155e316cb2bSJohn Crispinconfig PINCTRL_FALCON
156e316cb2bSJohn Crispin	bool
157e316cb2bSJohn Crispin	depends on SOC_FALCON
158e316cb2bSJohn Crispin	depends on PINCTRL_LANTIQ
159e316cb2bSJohn Crispin
16017723111SShawn Guoconfig PINCTRL_MXS
16117723111SShawn Guo	bool
16290db8a14SAxel Lin	select PINMUX
16390db8a14SAxel Lin	select PINCONF
16417723111SShawn Guo
16517723111SShawn Guoconfig PINCTRL_IMX23
16617723111SShawn Guo	bool
16717723111SShawn Guo	select PINCTRL_MXS
16817723111SShawn Guo
16917723111SShawn Guoconfig PINCTRL_IMX28
17017723111SShawn Guo	bool
17117723111SShawn Guo	select PINCTRL_MXS
17217723111SShawn Guo
173e98ea774SLinus Walleijconfig PINCTRL_NOMADIK
174e98ea774SLinus Walleij	bool "Nomadik pin controller driver"
1750fa7be40SArnd Bergmann	depends on ARCH_U8500 || ARCH_NOMADIK
176dbfe8ca2SLinus Walleij	select PINMUX
177d41af627SLinus Walleij	select PINCONF
178e98ea774SLinus Walleij
179f79c5ed9SLinus Walleijconfig PINCTRL_STN8815
180f79c5ed9SLinus Walleij	bool "STN8815 pin controller driver"
181f79c5ed9SLinus Walleij	depends on PINCTRL_NOMADIK && ARCH_NOMADIK
182f79c5ed9SLinus Walleij
183e98ea774SLinus Walleijconfig PINCTRL_DB8500
184e98ea774SLinus Walleij	bool "DB8500 pin controller driver"
185e98ea774SLinus Walleij	depends on PINCTRL_NOMADIK && ARCH_U8500
186e98ea774SLinus Walleij
18745a1b531SPatrice Chotardconfig PINCTRL_DB8540
18845a1b531SPatrice Chotard	bool "DB8540 pin controller driver"
18945a1b531SPatrice Chotard	depends on PINCTRL_NOMADIK && ARCH_U8500
19045a1b531SPatrice Chotard
191d3e51161SHeiko Stübnerconfig PINCTRL_ROCKCHIP
192d3e51161SHeiko Stübner	bool
193d3e51161SHeiko Stübner	select PINMUX
194d3e51161SHeiko Stübner	select GENERIC_PINCONF
195d3e51161SHeiko Stübner	select GENERIC_IRQ_CHIP
196d3e51161SHeiko Stübner
1978b8b091bSTony Lindgrenconfig PINCTRL_SINGLE
1988b8b091bSTony Lindgren	tristate "One-register-per-pin type device tree based pinctrl driver"
1998b8b091bSTony Lindgren	depends on OF
2008b8b091bSTony Lindgren	select PINMUX
2018b8b091bSTony Lindgren	select PINCONF
2029dddb4dfSHaojian Zhuang	select GENERIC_PINCONF
2038b8b091bSTony Lindgren	help
2048b8b091bSTony Lindgren	  This selects the device tree based generic pinctrl driver.
2058b8b091bSTony Lindgren
2063bece55aSLinus Walleijconfig PINCTRL_SIRF
207d3e26f2fSBarry Song	bool "CSR SiRFprimaII/SiRFmarco pin controller driver"
208d3e26f2fSBarry Song	depends on ARCH_SIRF
209393daa81SRongjun Ying	select PINMUX
210393daa81SRongjun Ying
2110e37f88dSMaxime Ripardconfig PINCTRL_SUNXI
2120e37f88dSMaxime Ripard	bool
2130e37f88dSMaxime Ripard	select PINMUX
2140e37f88dSMaxime Ripard	select GENERIC_PINCONF
2150e37f88dSMaxime Ripard
216701016c0SSrinivas KANDAGATLAconfig PINCTRL_ST
217701016c0SSrinivas KANDAGATLA	bool
218701016c0SSrinivas KANDAGATLA	depends on OF
219701016c0SSrinivas KANDAGATLA	select PINMUX
220701016c0SSrinivas KANDAGATLA	select PINCONF
221701016c0SSrinivas KANDAGATLA
222971dac71SStephen Warrenconfig PINCTRL_TEGRA
223971dac71SStephen Warren	bool
224507ccdbfSAxel Lin	select PINMUX
225507ccdbfSAxel Lin	select PINCONF
226971dac71SStephen Warren
227971dac71SStephen Warrenconfig PINCTRL_TEGRA20
228971dac71SStephen Warren	bool
229971dac71SStephen Warren	select PINCTRL_TEGRA
230971dac71SStephen Warren
231971dac71SStephen Warrenconfig PINCTRL_TEGRA30
232971dac71SStephen Warren	bool
233971dac71SStephen Warren	select PINCTRL_TEGRA
234971dac71SStephen Warren
235b6ae7a26SPritesh Raithathaconfig PINCTRL_TEGRA114
236b6ae7a26SPritesh Raithatha	bool
237b6ae7a26SPritesh Raithatha	select PINCTRL_TEGRA
238b6ae7a26SPritesh Raithatha
239d5025f9fSJames Hoganconfig PINCTRL_TZ1090
240d5025f9fSJames Hogan	bool "Toumaz Xenif TZ1090 pin control driver"
241d5025f9fSJames Hogan	depends on SOC_TZ1090
242d5025f9fSJames Hogan	select PINMUX
243d5025f9fSJames Hogan	select GENERIC_PINCONF
244d5025f9fSJames Hogan
245b58f0273SJames Hoganconfig PINCTRL_TZ1090_PDC
246b58f0273SJames Hogan	bool "Toumaz Xenif TZ1090 PDC pin control driver"
247b58f0273SJames Hogan	depends on SOC_TZ1090
248b58f0273SJames Hogan	select PINMUX
249b58f0273SJames Hogan	select PINCONF
250b58f0273SJames Hogan
2513bece55aSLinus Walleijconfig PINCTRL_U300
2523bece55aSLinus Walleij	bool "U300 pin controller driver"
25398da3529SLinus Walleij	depends on ARCH_U300
25498da3529SLinus Walleij	select PINMUX
255dc0b1aa3SLinus Walleij	select GENERIC_PINCONF
25645f034efSLinus Walleij
257ca402d37SLinus Walleijconfig PINCTRL_COH901
258ca402d37SLinus Walleij	bool "ST-Ericsson U300 COH 901 335/571 GPIO"
2593c94d1bbSLinus Walleij	depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
260ca402d37SLinus Walleij	help
261ca402d37SLinus Walleij	  Say yes here to support GPIO interface on ST-Ericsson U300.
262ca402d37SLinus Walleij	  The names of the two IP block variants supported are
263ca402d37SLinus Walleij	  COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
264ca402d37SLinus Walleij	  ports of 8 GPIO pins each.
265ca402d37SLinus Walleij
26630574f0dSThomas Abrahamconfig PINCTRL_SAMSUNG
267cbc351abSArnd Bergmann	bool
26830574f0dSThomas Abraham	select PINMUX
26930574f0dSThomas Abraham	select PINCONF
27030574f0dSThomas Abraham
271a1ed2670SKukjin Kimconfig PINCTRL_EXYNOS
27283978253SDoug Anderson	bool "Pinctrl driver data for Samsung EXYNOS SoCs other than 5440"
273608a26a7SMateusz Krawczuk	depends on OF && GPIOLIB && (ARCH_EXYNOS || ARCH_S5PV210)
27443b169dbSThomas Abraham	select PINCTRL_SAMSUNG
27543b169dbSThomas Abraham
276f0b9a7e5SThomas Abrahamconfig PINCTRL_EXYNOS5440
277f0b9a7e5SThomas Abraham	bool "Samsung EXYNOS5440 SoC pinctrl driver"
27883978253SDoug Anderson	depends on SOC_EXYNOS5440
279f0b9a7e5SThomas Abraham	select PINMUX
280f0b9a7e5SThomas Abraham	select PINCONF
281f0b9a7e5SThomas Abraham
2820a8d3e24SLaxman Dewanganconfig PINCTRL_PALMAS
283736658c5SMark Brown	bool "Pinctrl driver for the PALMAS Series MFD devices"
2840a8d3e24SLaxman Dewangan	depends on OF && MFD_PALMAS
28563ca8db7SAxel Lin	select PINMUX
2860a8d3e24SLaxman Dewangan	select GENERIC_PINCONF
2870a8d3e24SLaxman Dewangan	help
2880a8d3e24SLaxman Dewangan	  Palmas device supports the configuration of pins for different
2890a8d3e24SLaxman Dewangan	  functionality. This driver supports the pinmux, push-pull and
2900a8d3e24SLaxman Dewangan	  open drain configuration for the Palmas series devices like
2910a8d3e24SLaxman Dewangan	  TPS65913, TPS80036 etc.
2920a8d3e24SLaxman Dewangan
293af99a750SHeiko Stuebnerconfig PINCTRL_S3C24XX
294af99a750SHeiko Stuebner	bool "Samsung S3C24XX SoC pinctrl driver"
295af99a750SHeiko Stuebner	depends on ARCH_S3C24XX
296af99a750SHeiko Stuebner	select PINCTRL_SAMSUNG
297af99a750SHeiko Stuebner
29861dd7261STomasz Figaconfig PINCTRL_S3C64XX
29961dd7261STomasz Figa	bool "Samsung S3C64XX SoC pinctrl driver"
30061dd7261STomasz Figa	depends on ARCH_S3C64XX
30161dd7261STomasz Figa	select PINCTRL_SAMSUNG
30261dd7261STomasz Figa
30306763c74SThomas Petazzonisource "drivers/pinctrl/mvebu/Kconfig"
3046e54d8d2SLaurent Pinchartsource "drivers/pinctrl/sh-pfc/Kconfig"
305deda8287SViresh Kumarsource "drivers/pinctrl/spear/Kconfig"
306170c6152STony Prisksource "drivers/pinctrl/vt8500/Kconfig"
307deda8287SViresh Kumar
3083f8c50c9SJohn Crispinconfig PINCTRL_XWAY
3093f8c50c9SJohn Crispin	bool
3103f8c50c9SJohn Crispin	depends on SOC_TYPE_XWAY
3113f8c50c9SJohn Crispin	depends on PINCTRL_LANTIQ
3123f8c50c9SJohn Crispin
31345f034efSLinus Walleijendmenu
31498da3529SLinus Walleij
3152744e8afSLinus Walleijendif
316