xref: /linux/drivers/pinctrl/Kconfig (revision f9367793293d2262460942b0a4904c21857a1a8b)
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
14244e95a7SUwe Kleine-König	bool "Support pin multiplexing controllers" if COMPILE_TEST
15ae6b4d85SLinus Walleij
16ae6b4d85SLinus Walleijconfig PINCONF
17244e95a7SUwe Kleine-König	bool "Support pin configuration controllers" if COMPILE_TEST
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
29e9a03addSSonic Zhangconfig PINCTRL_ADI2
30e9a03addSSonic Zhang	bool "ADI pin controller driver"
319d7278d0SSonic Zhang	depends on BLACKFIN
32e9a03addSSonic Zhang	select PINMUX
33e9a03addSSonic Zhang	select IRQ_DOMAIN
34e9a03addSSonic Zhang	help
35e9a03addSSonic Zhang	  This is the pin controller and gpio driver for ADI BF54x, BF60x and
36e9a03addSSonic Zhang	  future processors. This option is selected automatically when specific
37e9a03addSSonic Zhang	  machine and arch are selected to build.
38e9a03addSSonic Zhang
39c8ce8782SLaxman Dewanganconfig PINCTRL_AS3722
40c8ce8782SLaxman Dewangan	bool "Pinctrl and GPIO driver for ams AS3722 PMIC"
41c8ce8782SLaxman Dewangan	depends on MFD_AS3722 && GPIOLIB
42c8ce8782SLaxman Dewangan	select PINMUX
43c8ce8782SLaxman Dewangan	select GENERIC_PINCONF
44c8ce8782SLaxman Dewangan	help
45c8ce8782SLaxman Dewangan	  AS3722 device supports the configuration of GPIO pins for different
46c8ce8782SLaxman Dewangan	  functionality. This driver supports the pinmux, push-pull and
47c8ce8782SLaxman Dewangan	  open drain configuration for the GPIO pins of AS3722 devices. It also
48c8ce8782SLaxman Dewangan	  supports the GPIO functionality through gpiolib.
49c8ce8782SLaxman Dewangan
50e9a03addSSonic Zhangconfig PINCTRL_BF54x
51e9a03addSSonic Zhang	def_bool y if BF54x
52e9a03addSSonic Zhang	select PINCTRL_ADI2
53e9a03addSSonic Zhang
54e9a03addSSonic Zhangconfig PINCTRL_BF60x
55e9a03addSSonic Zhang	def_bool y if BF60x
56e9a03addSSonic Zhang	select PINCTRL_ADI2
57e9a03addSSonic Zhang
586732ae5cSJean-Christophe PLAGNIOL-VILLARDconfig PINCTRL_AT91
596732ae5cSJean-Christophe PLAGNIOL-VILLARD	bool "AT91 pinctrl driver"
606732ae5cSJean-Christophe PLAGNIOL-VILLARD	depends on OF
616732ae5cSJean-Christophe PLAGNIOL-VILLARD	depends on ARCH_AT91
626732ae5cSJean-Christophe PLAGNIOL-VILLARD	select PINMUX
636732ae5cSJean-Christophe PLAGNIOL-VILLARD	select PINCONF
6480cc3732SAlexander Stein	select GPIOLIB
6580cc3732SAlexander Stein	select OF_GPIO
6680cc3732SAlexander Stein	select GPIOLIB_IRQCHIP
676732ae5cSJean-Christophe PLAGNIOL-VILLARD	help
686732ae5cSJean-Christophe PLAGNIOL-VILLARD	  Say Y here to enable the at91 pinctrl driver
696732ae5cSJean-Christophe PLAGNIOL-VILLARD
70dbad75ddSKen Xueconfig PINCTRL_AMD
71dbad75ddSKen Xue	bool "AMD GPIO pin control"
72dbad75ddSKen Xue	depends on GPIOLIB
73dbad75ddSKen Xue	select GPIOLIB_IRQCHIP
74dbad75ddSKen Xue	select PINCONF
75dbad75ddSKen Xue	select GENERIC_PINCONF
76dbad75ddSKen Xue	help
77dbad75ddSKen Xue	  driver for memory mapped GPIO functionality on AMD platforms
78dbad75ddSKen Xue	  (x86 or arm).Most pins are usually muxed to some other
79dbad75ddSKen Xue	  functionality by firmware,so only a small amount is available
80dbad75ddSKen Xue	  for gpio use.
81dbad75ddSKen Xue
82dbad75ddSKen Xue	  Requires ACPI/FDT device enumeration code to set up a platform
83dbad75ddSKen Xue	  device.
84dbad75ddSKen Xue
853f8c50c9SJohn Crispinconfig PINCTRL_LANTIQ
863f8c50c9SJohn Crispin	bool
873f8c50c9SJohn Crispin	depends on LANTIQ
883f8c50c9SJohn Crispin	select PINMUX
893f8c50c9SJohn Crispin	select PINCONF
903f8c50c9SJohn Crispin
912f77ac93SJoachim Eastwoodconfig PINCTRL_LPC18XX
922f77ac93SJoachim Eastwood	bool "NXP LPC18XX/43XX SCU pinctrl driver"
932f77ac93SJoachim Eastwood	depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
942f77ac93SJoachim Eastwood	default ARCH_LPC18XX
952f77ac93SJoachim Eastwood	select PINMUX
962f77ac93SJoachim Eastwood	select GENERIC_PINCONF
972f77ac93SJoachim Eastwood	help
982f77ac93SJoachim Eastwood	  Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
992f77ac93SJoachim Eastwood
100e316cb2bSJohn Crispinconfig PINCTRL_FALCON
101e316cb2bSJohn Crispin	bool
102e316cb2bSJohn Crispin	depends on SOC_FALCON
103e316cb2bSJohn Crispin	depends on PINCTRL_LANTIQ
104e316cb2bSJohn Crispin
1056ac73095SBeniamino Galvaniconfig PINCTRL_MESON
1066ac73095SBeniamino Galvani	bool
107b99e6fb8SLinus Walleij	depends on OF
1086ac73095SBeniamino Galvani	select PINMUX
1096ac73095SBeniamino Galvani	select PINCONF
1106ac73095SBeniamino Galvani	select GENERIC_PINCONF
111b99e6fb8SLinus Walleij	select GPIOLIB
1126ac73095SBeniamino Galvani	select OF_GPIO
1136ac73095SBeniamino Galvani	select REGMAP_MMIO
1146ac73095SBeniamino Galvani
115d3e51161SHeiko Stübnerconfig PINCTRL_ROCKCHIP
116d3e51161SHeiko Stübner	bool
117d3e51161SHeiko Stübner	select PINMUX
118d3e51161SHeiko Stübner	select GENERIC_PINCONF
119d3e51161SHeiko Stübner	select GENERIC_IRQ_CHIP
120751a99abSHeiko Stübner	select MFD_SYSCON
121d3e51161SHeiko Stübner
1228b8b091bSTony Lindgrenconfig PINCTRL_SINGLE
1238b8b091bSTony Lindgren	tristate "One-register-per-pin type device tree based pinctrl driver"
1248b8b091bSTony Lindgren	depends on OF
1258b8b091bSTony Lindgren	select PINMUX
1268b8b091bSTony Lindgren	select PINCONF
1279dddb4dfSHaojian Zhuang	select GENERIC_PINCONF
1288b8b091bSTony Lindgren	help
1298b8b091bSTony Lindgren	  This selects the device tree based generic pinctrl driver.
1308b8b091bSTony Lindgren
1313bece55aSLinus Walleijconfig PINCTRL_SIRF
132a17272a4SBarry Song	bool "CSR SiRFprimaII pin controller driver"
133d3e26f2fSBarry Song	depends on ARCH_SIRF
134393daa81SRongjun Ying	select PINMUX
135*f9367793SWei Chen	select PINCONF
136*f9367793SWei Chen	select GENERIC_PINCONF
1377420d2d0SLinus Walleij	select GPIOLIB_IRQCHIP
138393daa81SRongjun Ying
139cefc03e5SAndrew Brestickerconfig PINCTRL_PISTACHIO
140cefc03e5SAndrew Bresticker	def_bool y if MACH_PISTACHIO
141cefc03e5SAndrew Bresticker	depends on GPIOLIB
142cefc03e5SAndrew Bresticker	select PINMUX
143cefc03e5SAndrew Bresticker	select GENERIC_PINCONF
144cefc03e5SAndrew Bresticker	select GPIOLIB_IRQCHIP
145cefc03e5SAndrew Bresticker	select OF_GPIO
146cefc03e5SAndrew Bresticker
147701016c0SSrinivas KANDAGATLAconfig PINCTRL_ST
148701016c0SSrinivas KANDAGATLA	bool
149701016c0SSrinivas KANDAGATLA	depends on OF
150701016c0SSrinivas KANDAGATLA	select PINMUX
151701016c0SSrinivas KANDAGATLA	select PINCONF
152130cbe30SLinus Walleij	select GPIOLIB_IRQCHIP
153701016c0SSrinivas KANDAGATLA
154971dac71SStephen Warrenconfig PINCTRL_TEGRA
155971dac71SStephen Warren	bool
156507ccdbfSAxel Lin	select PINMUX
157507ccdbfSAxel Lin	select PINCONF
158971dac71SStephen Warren
159971dac71SStephen Warrenconfig PINCTRL_TEGRA20
160971dac71SStephen Warren	bool
161971dac71SStephen Warren	select PINCTRL_TEGRA
162971dac71SStephen Warren
163971dac71SStephen Warrenconfig PINCTRL_TEGRA30
164971dac71SStephen Warren	bool
165971dac71SStephen Warren	select PINCTRL_TEGRA
166971dac71SStephen Warren
167b6ae7a26SPritesh Raithathaconfig PINCTRL_TEGRA114
168b6ae7a26SPritesh Raithatha	bool
169b6ae7a26SPritesh Raithatha	select PINCTRL_TEGRA
170b6ae7a26SPritesh Raithatha
1711a16bee6SAshwini Ghugeconfig PINCTRL_TEGRA124
1721a16bee6SAshwini Ghuge	bool
1731a16bee6SAshwini Ghuge	select PINCTRL_TEGRA
1741a16bee6SAshwini Ghuge
1759184f756SStephen Warrenconfig PINCTRL_TEGRA210
1769184f756SStephen Warren	bool
1779184f756SStephen Warren	select PINCTRL_TEGRA
1789184f756SStephen Warren
179dc0a3938SThierry Redingconfig PINCTRL_TEGRA_XUSB
180dc0a3938SThierry Reding	def_bool y if ARCH_TEGRA
181dc0a3938SThierry Reding	select GENERIC_PHY
182dc0a3938SThierry Reding	select PINCONF
183dc0a3938SThierry Reding	select PINMUX
184dc0a3938SThierry Reding
185d5025f9fSJames Hoganconfig PINCTRL_TZ1090
186d5025f9fSJames Hogan	bool "Toumaz Xenif TZ1090 pin control driver"
187d5025f9fSJames Hogan	depends on SOC_TZ1090
188d5025f9fSJames Hogan	select PINMUX
189d5025f9fSJames Hogan	select GENERIC_PINCONF
190d5025f9fSJames Hogan
191b58f0273SJames Hoganconfig PINCTRL_TZ1090_PDC
192b58f0273SJames Hogan	bool "Toumaz Xenif TZ1090 PDC pin control driver"
193b58f0273SJames Hogan	depends on SOC_TZ1090
194b58f0273SJames Hogan	select PINMUX
195b58f0273SJames Hogan	select PINCONF
196b58f0273SJames Hogan
1973bece55aSLinus Walleijconfig PINCTRL_U300
1983bece55aSLinus Walleij	bool "U300 pin controller driver"
19998da3529SLinus Walleij	depends on ARCH_U300
20098da3529SLinus Walleij	select PINMUX
201dc0b1aa3SLinus Walleij	select GENERIC_PINCONF
20245f034efSLinus Walleij
203ca402d37SLinus Walleijconfig PINCTRL_COH901
204ca402d37SLinus Walleij	bool "ST-Ericsson U300 COH 901 335/571 GPIO"
2053c94d1bbSLinus Walleij	depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
206523dcce7SLinus Walleij	select GPIOLIB_IRQCHIP
207ca402d37SLinus Walleij	help
208ca402d37SLinus Walleij	  Say yes here to support GPIO interface on ST-Ericsson U300.
209ca402d37SLinus Walleij	  The names of the two IP block variants supported are
210ca402d37SLinus Walleij	  COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
211ca402d37SLinus Walleij	  ports of 8 GPIO pins each.
212ca402d37SLinus Walleij
2130a8d3e24SLaxman Dewanganconfig PINCTRL_PALMAS
214736658c5SMark Brown	bool "Pinctrl driver for the PALMAS Series MFD devices"
2150a8d3e24SLaxman Dewangan	depends on OF && MFD_PALMAS
21663ca8db7SAxel Lin	select PINMUX
2170a8d3e24SLaxman Dewangan	select GENERIC_PINCONF
2180a8d3e24SLaxman Dewangan	help
2190a8d3e24SLaxman Dewangan	  Palmas device supports the configuration of pins for different
2200a8d3e24SLaxman Dewangan	  functionality. This driver supports the pinmux, push-pull and
2210a8d3e24SLaxman Dewangan	  open drain configuration for the Palmas series devices like
2220a8d3e24SLaxman Dewangan	  TPS65913, TPS80036 etc.
2230a8d3e24SLaxman Dewangan
224add958ceSSoren Brinkmannconfig PINCTRL_ZYNQ
225add958ceSSoren Brinkmann	bool "Pinctrl driver for Xilinx Zynq"
226add958ceSSoren Brinkmann	depends on ARCH_ZYNQ
227add958ceSSoren Brinkmann	select PINMUX
228add958ceSSoren Brinkmann	select GENERIC_PINCONF
229add958ceSSoren Brinkmann	help
230add958ceSSoren Brinkmann	  This selectes the pinctrl driver for Xilinx Zynq.
231add958ceSSoren Brinkmann
232b17f2f9bSRay Juisource "drivers/pinctrl/bcm/Kconfig"
2333de68d33SAntoine Tenartsource "drivers/pinctrl/berlin/Kconfig"
234edad3b2aSLinus Walleijsource "drivers/pinctrl/freescale/Kconfig"
2355fae8b86SMika Westerbergsource "drivers/pinctrl/intel/Kconfig"
23606763c74SThomas Petazzonisource "drivers/pinctrl/mvebu/Kconfig"
2373a198059SLinus Walleijsource "drivers/pinctrl/nomadik/Kconfig"
23869b78b8dSLinus Walleijsource "drivers/pinctrl/qcom/Kconfig"
239ebe629a3SSachin Kamatsource "drivers/pinctrl/samsung/Kconfig"
2406e54d8d2SLaurent Pinchartsource "drivers/pinctrl/sh-pfc/Kconfig"
241deda8287SViresh Kumarsource "drivers/pinctrl/spear/Kconfig"
2425f910777SMaxime Ripardsource "drivers/pinctrl/sunxi/Kconfig"
243170c6152STony Prisksource "drivers/pinctrl/vt8500/Kconfig"
244a6df410dSHongzhou Yangsource "drivers/pinctrl/mediatek/Kconfig"
245deda8287SViresh Kumar
2463f8c50c9SJohn Crispinconfig PINCTRL_XWAY
2473f8c50c9SJohn Crispin	bool
2483f8c50c9SJohn Crispin	depends on SOC_TYPE_XWAY
2493f8c50c9SJohn Crispin	depends on PINCTRL_LANTIQ
2503f8c50c9SJohn Crispin
2515aad0db1SChristian Ruppertconfig PINCTRL_TB10X
2525aad0db1SChristian Ruppert	bool
253b99e6fb8SLinus Walleij	depends on OF && ARC_PLAT_TB10X
254b99e6fb8SLinus Walleij	select GPIOLIB
2555aad0db1SChristian Ruppert
25645f034efSLinus Walleijendmenu
25798da3529SLinus Walleij
2582744e8afSLinus Walleijendif
259