xref: /linux/drivers/pinctrl/bcm/Kconfig (revision 155cca1b0794a8f541e7eaa45be70df0a49964f3)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2b17f2f9bSRay Jui#
3b17f2f9bSRay Jui# Broadcom pinctrl drivers
4b17f2f9bSRay Jui#
5b17f2f9bSRay Jui
6b17f2f9bSRay Juiconfig PINCTRL_BCM281XX
7b17f2f9bSRay Jui	bool "Broadcom BCM281xx pinctrl driver"
8b17f2f9bSRay Jui	depends on OF && (ARCH_BCM_MOBILE || COMPILE_TEST)
9b17f2f9bSRay Jui	select PINMUX
10b17f2f9bSRay Jui	select PINCONF
11b17f2f9bSRay Jui	select GENERIC_PINCONF
12b17f2f9bSRay Jui	select REGMAP_MMIO
13652da824SFlorian Fainelli	default ARCH_BCM_MOBILE
14b17f2f9bSRay Jui	help
15b17f2f9bSRay Jui	  Say Y here to support Broadcom BCM281xx pinctrl driver, which is used
16b17f2f9bSRay Jui	  for the BCM281xx SoC family, including BCM11130, BCM11140, BCM11351,
17b17f2f9bSRay Jui	  BCM28145, and BCM28155 SoCs.  This driver requires the pinctrl
18b17f2f9bSRay Jui	  framework.  GPIO is provided by a separate GPIO driver.
19b17f2f9bSRay Jui
20b17f2f9bSRay Juiconfig PINCTRL_BCM2835
21ee11f864SDoug Berger	bool "Broadcom BCM2835 GPIO (with PINCONF) driver"
22138f79dbSYueHaibing	depends on OF && (ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST)
23b17f2f9bSRay Jui	select PINMUX
24b17f2f9bSRay Jui	select PINCONF
250de70495SMatheus Castello	select GENERIC_PINCONF
26513034d8SNecip Fazil Yildiran	select GPIOLIB
2785ae9e51SLinus Walleij	select GPIOLIB_IRQCHIP
28ee11f864SDoug Berger	default ARCH_BCM2835 || ARCH_BRCMSTB
29ee11f864SDoug Berger	help
30ee11f864SDoug Berger	   Say Y here to enable the Broadcom BCM2835 GPIO driver.
31cbd159edSRay Jui
32132f9501SÁlvaro Fernández Rojasconfig PINCTRL_BCM63XX
33132f9501SÁlvaro Fernández Rojas	bool
34132f9501SÁlvaro Fernández Rojas	select GENERIC_PINCONF
35132f9501SÁlvaro Fernández Rojas	select GPIO_REGMAP
36132f9501SÁlvaro Fernández Rojas	select PINCONF
37132f9501SÁlvaro Fernández Rojas	select PINMUX
38132f9501SÁlvaro Fernández Rojas
399bf34ac5SÁlvaro Fernández Rojasconfig PINCTRL_BCM6328
409bf34ac5SÁlvaro Fernández Rojas	bool "Broadcom BCM6328 GPIO driver"
419bf34ac5SÁlvaro Fernández Rojas	depends on (BMIPS_GENERIC || COMPILE_TEST)
429bf34ac5SÁlvaro Fernández Rojas	select PINCTRL_BCM63XX
439bf34ac5SÁlvaro Fernández Rojas	default BMIPS_GENERIC
449bf34ac5SÁlvaro Fernández Rojas	help
459bf34ac5SÁlvaro Fernández Rojas	   Say Y here to enable the Broadcom BCM6328 GPIO driver.
469bf34ac5SÁlvaro Fernández Rojas
479494b169SÁlvaro Fernández Rojasconfig PINCTRL_BCM6358
489494b169SÁlvaro Fernández Rojas	bool "Broadcom BCM6358 GPIO driver"
499494b169SÁlvaro Fernández Rojas	depends on (BMIPS_GENERIC || COMPILE_TEST)
509494b169SÁlvaro Fernández Rojas	select PINCTRL_BCM63XX
519494b169SÁlvaro Fernández Rojas	default BMIPS_GENERIC
529494b169SÁlvaro Fernández Rojas	help
539494b169SÁlvaro Fernández Rojas	   Say Y here to enable the Broadcom BCM6358 GPIO driver.
549494b169SÁlvaro Fernández Rojas
55705791e2SÁlvaro Fernández Rojasconfig PINCTRL_BCM6362
56705791e2SÁlvaro Fernández Rojas	bool "Broadcom BCM6362 GPIO driver"
57705791e2SÁlvaro Fernández Rojas	depends on (BMIPS_GENERIC || COMPILE_TEST)
58705791e2SÁlvaro Fernández Rojas	select PINCTRL_BCM63XX
59705791e2SÁlvaro Fernández Rojas	default BMIPS_GENERIC
60705791e2SÁlvaro Fernández Rojas	help
61705791e2SÁlvaro Fernández Rojas	   Say Y here to enable the Broadcom BCM6362 GPIO driver.
62705791e2SÁlvaro Fernández Rojas
6350554accSÁlvaro Fernández Rojasconfig PINCTRL_BCM6368
6450554accSÁlvaro Fernández Rojas	bool "Broadcom BCM6368 GPIO driver"
6550554accSÁlvaro Fernández Rojas	depends on (BMIPS_GENERIC || COMPILE_TEST)
6650554accSÁlvaro Fernández Rojas	select PINCTRL_BCM63XX
6750554accSÁlvaro Fernández Rojas	default BMIPS_GENERIC
6850554accSÁlvaro Fernández Rojas	help
6950554accSÁlvaro Fernández Rojas	   Say Y here to enable the Broadcom BCM6368 GPIO driver.
7050554accSÁlvaro Fernández Rojas
71*155cca1bSÁlvaro Fernández Rojasconfig PINCTRL_BCM63268
72*155cca1bSÁlvaro Fernández Rojas	bool "Broadcom BCM63268 GPIO driver"
73*155cca1bSÁlvaro Fernández Rojas	depends on (BMIPS_GENERIC || COMPILE_TEST)
74*155cca1bSÁlvaro Fernández Rojas	select PINCTRL_BCM63XX
75*155cca1bSÁlvaro Fernández Rojas	default BMIPS_GENERIC
76*155cca1bSÁlvaro Fernández Rojas	help
77*155cca1bSÁlvaro Fernández Rojas	   Say Y here to enable the Broadcom BCM63268 GPIO driver.
78*155cca1bSÁlvaro Fernández Rojas
79616043d5SPramod Kumarconfig PINCTRL_IPROC_GPIO
80616043d5SPramod Kumar	bool "Broadcom iProc GPIO (with PINCONF) driver"
81616043d5SPramod Kumar	depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)
82b64333ceSRay Jui	select GPIOLIB_IRQCHIP
83b64333ceSRay Jui	select PINCONF
84b64333ceSRay Jui	select GENERIC_PINCONF
85616043d5SPramod Kumar	default ARCH_BCM_IPROC
86b64333ceSRay Jui	help
87616043d5SPramod Kumar	  Say yes here to enable the Broadcom iProc GPIO driver.
88616043d5SPramod Kumar
89616043d5SPramod Kumar	  The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use
90616043d5SPramod Kumar	  same GPIO Controller IP hence this driver could be used for all.
91b64333ceSRay Jui
92b64333ceSRay Jui	  The Broadcom Cygnus SoC has 3 GPIO controllers including the ASIU
93b64333ceSRay Jui	  GPIO controller (ASIU), the chipCommonG GPIO controller (CCM), and
94b64333ceSRay Jui	  the always-ON GPIO controller (CRMU/AON). All 3 GPIO controllers are
95b64333ceSRay Jui	  supported by this driver.
96b64333ceSRay Jui
97616043d5SPramod Kumar	  The Broadcom NSP has two GPIO controllers including the ChipcommonA
98616043d5SPramod Kumar	  GPIO, the ChipcommonB GPIO. Later controller is supported by this
99616043d5SPramod Kumar	  driver.
100616043d5SPramod Kumar
101616043d5SPramod Kumar	  The Broadcom NS2 has two GPIO controller including the CRMU GPIO,
102616043d5SPramod Kumar	  the ChipcommonG GPIO. Both controllers are supported by this driver.
103616043d5SPramod Kumar
104616043d5SPramod Kumar	  The Broadcom Stingray GPIO controllers are supported by this driver.
105616043d5SPramod Kumar
106616043d5SPramod Kumar	  All above SoCs GPIO controllers support basic PINCONF functions such
107b64333ceSRay Jui	  as bias pull up, pull down, and drive strength configurations, when
108b64333ceSRay Jui	  these pins are muxed to GPIO.
109b64333ceSRay Jui
110616043d5SPramod Kumar	  It provides the framework where pins from the individual GPIO can be
111616043d5SPramod Kumar	  individually muxed to GPIO function, through interaction with the
112616043d5SPramod Kumar	  SoCs IOMUX controller. This features could be used only on SoCs which
113616043d5SPramod Kumar	  support individual pin muxing.
114b64333ceSRay Jui
115cbd159edSRay Juiconfig PINCTRL_CYGNUS_MUX
116cbd159edSRay Jui	bool "Broadcom Cygnus IOMUX driver"
117cbd159edSRay Jui	depends on (ARCH_BCM_CYGNUS || COMPILE_TEST)
11853056f59SArnd Bergmann	depends on OF
119cbd159edSRay Jui	select PINMUX
120cbd159edSRay Jui	select GENERIC_PINCONF
121cbd159edSRay Jui	default ARCH_BCM_CYGNUS
122cbd159edSRay Jui	help
123cbd159edSRay Jui	  Say yes here to enable the Broadcom Cygnus IOMUX driver.
124cbd159edSRay Jui
125cbd159edSRay Jui	  The Broadcom Cygnus IOMUX driver supports group based IOMUX
126cbd159edSRay Jui	  configuration, with the exception that certain individual pins
12703671057SMasahiro Yamada	  can be overridden to GPIO function
1288bfcbbbcSYendapally Reddy Dhananjaya Reddy
129c12fb177SRafał Miłeckiconfig PINCTRL_NS
130c12fb177SRafał Miłecki	bool "Broadcom Northstar pins driver"
131c12fb177SRafał Miłecki	depends on OF && (ARCH_BCM_5301X || COMPILE_TEST)
132c12fb177SRafał Miłecki	select PINMUX
133c12fb177SRafał Miłecki	select GENERIC_PINCONF
134c12fb177SRafał Miłecki	default ARCH_BCM_5301X
135c12fb177SRafał Miłecki	help
136c12fb177SRafał Miłecki	  Say yes here to enable the Broadcom NS SoC pins driver.
137c12fb177SRafał Miłecki
138c12fb177SRafał Miłecki	  The Broadcom Northstar pins driver supports muxing multi-purpose pins
139c12fb177SRafał Miłecki	  that can be used for various functions (e.g. SPI, I2C, UART) as well
140c12fb177SRafał Miłecki	  as GPIOs.
141c12fb177SRafał Miłecki
1428bfcbbbcSYendapally Reddy Dhananjaya Reddyconfig PINCTRL_NSP_GPIO
1438bfcbbbcSYendapally Reddy Dhananjaya Reddy	bool "Broadcom NSP GPIO (with PINCONF) driver"
1448bfcbbbcSYendapally Reddy Dhananjaya Reddy	depends on OF_GPIO && (ARCH_BCM_NSP || COMPILE_TEST)
1458bfcbbbcSYendapally Reddy Dhananjaya Reddy	select GPIOLIB_IRQCHIP
1468bfcbbbcSYendapally Reddy Dhananjaya Reddy	select PINCONF
1478bfcbbbcSYendapally Reddy Dhananjaya Reddy	select GENERIC_PINCONF
1488bfcbbbcSYendapally Reddy Dhananjaya Reddy	default ARCH_BCM_NSP
1498bfcbbbcSYendapally Reddy Dhananjaya Reddy	help
1508bfcbbbcSYendapally Reddy Dhananjaya Reddy	  Say yes here to enable the Broadcom NSP GPIO driver.
1518bfcbbbcSYendapally Reddy Dhananjaya Reddy
1528bfcbbbcSYendapally Reddy Dhananjaya Reddy	  The Broadcom Northstar Plus SoC ChipcommonA GPIO controller is
1538bfcbbbcSYendapally Reddy Dhananjaya Reddy	  supported by this driver.
1548bfcbbbcSYendapally Reddy Dhananjaya Reddy
1558bfcbbbcSYendapally Reddy Dhananjaya Reddy	  The ChipcommonA GPIO controller support basic PINCONF functions such
1568bfcbbbcSYendapally Reddy Dhananjaya Reddy	  as bias pull up, pull down, and drive strength configurations, when
1578bfcbbbcSYendapally Reddy Dhananjaya Reddy	  these pins are muxed to GPIO.
158b5aa1006SYendapally Reddy Dhananjaya Reddy
159b5aa1006SYendapally Reddy Dhananjaya Reddyconfig PINCTRL_NS2_MUX
160b5aa1006SYendapally Reddy Dhananjaya Reddy	bool "Broadcom Northstar2 pinmux driver"
161b5aa1006SYendapally Reddy Dhananjaya Reddy	depends on OF
162b5aa1006SYendapally Reddy Dhananjaya Reddy	depends on ARCH_BCM_IPROC || COMPILE_TEST
163b5aa1006SYendapally Reddy Dhananjaya Reddy	select PINMUX
164b5aa1006SYendapally Reddy Dhananjaya Reddy	select GENERIC_PINCONF
165b5aa1006SYendapally Reddy Dhananjaya Reddy	default ARM64 && ARCH_BCM_IPROC
166b5aa1006SYendapally Reddy Dhananjaya Reddy	help
167b5aa1006SYendapally Reddy Dhananjaya Reddy	  Say yes here to enable the Broadcom NS2 MUX driver.
168b5aa1006SYendapally Reddy Dhananjaya Reddy
169b5aa1006SYendapally Reddy Dhananjaya Reddy	  The Broadcom Northstar2 IOMUX driver supports group based IOMUX
170b5aa1006SYendapally Reddy Dhananjaya Reddy	  configuration.
171cc4fa83fSYendapally Reddy Dhananjaya Reddy
172cc4fa83fSYendapally Reddy Dhananjaya Reddyconfig PINCTRL_NSP_MUX
173cc4fa83fSYendapally Reddy Dhananjaya Reddy	bool "Broadcom NSP IOMUX driver"
174cc4fa83fSYendapally Reddy Dhananjaya Reddy	depends on (ARCH_BCM_NSP || COMPILE_TEST)
17553056f59SArnd Bergmann	depends on OF
176cc4fa83fSYendapally Reddy Dhananjaya Reddy	select PINMUX
177cc4fa83fSYendapally Reddy Dhananjaya Reddy	select GENERIC_PINCONF
178cc4fa83fSYendapally Reddy Dhananjaya Reddy	default ARCH_BCM_NSP
179cc4fa83fSYendapally Reddy Dhananjaya Reddy	help
180cc4fa83fSYendapally Reddy Dhananjaya Reddy	  Say yes here to enable the Broadcom NSP SOC IOMUX driver.
181cc4fa83fSYendapally Reddy Dhananjaya Reddy
182cc4fa83fSYendapally Reddy Dhananjaya Reddy	  The Broadcom Northstar Plus IOMUX driver supports pin based IOMUX
183cc4fa83fSYendapally Reddy Dhananjaya Reddy	  configuration, with certain individual pins can be overridden
184cc4fa83fSYendapally Reddy Dhananjaya Reddy	  to GPIO function.
185