xref: /linux/drivers/pinctrl/bcm/Kconfig (revision 9bf34ac5ab5805f0a798d40423c05596b7a0cee6)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Broadcom pinctrl drivers
4#
5
6config PINCTRL_BCM281XX
7	bool "Broadcom BCM281xx pinctrl driver"
8	depends on OF && (ARCH_BCM_MOBILE || COMPILE_TEST)
9	select PINMUX
10	select PINCONF
11	select GENERIC_PINCONF
12	select REGMAP_MMIO
13	default ARCH_BCM_MOBILE
14	help
15	  Say Y here to support Broadcom BCM281xx pinctrl driver, which is used
16	  for the BCM281xx SoC family, including BCM11130, BCM11140, BCM11351,
17	  BCM28145, and BCM28155 SoCs.  This driver requires the pinctrl
18	  framework.  GPIO is provided by a separate GPIO driver.
19
20config PINCTRL_BCM2835
21	bool "Broadcom BCM2835 GPIO (with PINCONF) driver"
22	depends on OF && (ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST)
23	select PINMUX
24	select PINCONF
25	select GENERIC_PINCONF
26	select GPIOLIB
27	select GPIOLIB_IRQCHIP
28	default ARCH_BCM2835 || ARCH_BRCMSTB
29	help
30	   Say Y here to enable the Broadcom BCM2835 GPIO driver.
31
32config PINCTRL_BCM63XX
33	bool
34	select GENERIC_PINCONF
35	select GPIO_REGMAP
36	select PINCONF
37	select PINMUX
38
39config PINCTRL_BCM6328
40	bool "Broadcom BCM6328 GPIO driver"
41	depends on (BMIPS_GENERIC || COMPILE_TEST)
42	select PINCTRL_BCM63XX
43	default BMIPS_GENERIC
44	help
45	   Say Y here to enable the Broadcom BCM6328 GPIO driver.
46
47config PINCTRL_IPROC_GPIO
48	bool "Broadcom iProc GPIO (with PINCONF) driver"
49	depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)
50	select GPIOLIB_IRQCHIP
51	select PINCONF
52	select GENERIC_PINCONF
53	default ARCH_BCM_IPROC
54	help
55	  Say yes here to enable the Broadcom iProc GPIO driver.
56
57	  The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use
58	  same GPIO Controller IP hence this driver could be used for all.
59
60	  The Broadcom Cygnus SoC has 3 GPIO controllers including the ASIU
61	  GPIO controller (ASIU), the chipCommonG GPIO controller (CCM), and
62	  the always-ON GPIO controller (CRMU/AON). All 3 GPIO controllers are
63	  supported by this driver.
64
65	  The Broadcom NSP has two GPIO controllers including the ChipcommonA
66	  GPIO, the ChipcommonB GPIO. Later controller is supported by this
67	  driver.
68
69	  The Broadcom NS2 has two GPIO controller including the CRMU GPIO,
70	  the ChipcommonG GPIO. Both controllers are supported by this driver.
71
72	  The Broadcom Stingray GPIO controllers are supported by this driver.
73
74	  All above SoCs GPIO controllers support basic PINCONF functions such
75	  as bias pull up, pull down, and drive strength configurations, when
76	  these pins are muxed to GPIO.
77
78	  It provides the framework where pins from the individual GPIO can be
79	  individually muxed to GPIO function, through interaction with the
80	  SoCs IOMUX controller. This features could be used only on SoCs which
81	  support individual pin muxing.
82
83config PINCTRL_CYGNUS_MUX
84	bool "Broadcom Cygnus IOMUX driver"
85	depends on (ARCH_BCM_CYGNUS || COMPILE_TEST)
86	depends on OF
87	select PINMUX
88	select GENERIC_PINCONF
89	default ARCH_BCM_CYGNUS
90	help
91	  Say yes here to enable the Broadcom Cygnus IOMUX driver.
92
93	  The Broadcom Cygnus IOMUX driver supports group based IOMUX
94	  configuration, with the exception that certain individual pins
95	  can be overridden to GPIO function
96
97config PINCTRL_NS
98	bool "Broadcom Northstar pins driver"
99	depends on OF && (ARCH_BCM_5301X || COMPILE_TEST)
100	select PINMUX
101	select GENERIC_PINCONF
102	default ARCH_BCM_5301X
103	help
104	  Say yes here to enable the Broadcom NS SoC pins driver.
105
106	  The Broadcom Northstar pins driver supports muxing multi-purpose pins
107	  that can be used for various functions (e.g. SPI, I2C, UART) as well
108	  as GPIOs.
109
110config PINCTRL_NSP_GPIO
111	bool "Broadcom NSP GPIO (with PINCONF) driver"
112	depends on OF_GPIO && (ARCH_BCM_NSP || COMPILE_TEST)
113	select GPIOLIB_IRQCHIP
114	select PINCONF
115	select GENERIC_PINCONF
116	default ARCH_BCM_NSP
117	help
118	  Say yes here to enable the Broadcom NSP GPIO driver.
119
120	  The Broadcom Northstar Plus SoC ChipcommonA GPIO controller is
121	  supported by this driver.
122
123	  The ChipcommonA GPIO controller support basic PINCONF functions such
124	  as bias pull up, pull down, and drive strength configurations, when
125	  these pins are muxed to GPIO.
126
127config PINCTRL_NS2_MUX
128	bool "Broadcom Northstar2 pinmux driver"
129	depends on OF
130	depends on ARCH_BCM_IPROC || COMPILE_TEST
131	select PINMUX
132	select GENERIC_PINCONF
133	default ARM64 && ARCH_BCM_IPROC
134	help
135	  Say yes here to enable the Broadcom NS2 MUX driver.
136
137	  The Broadcom Northstar2 IOMUX driver supports group based IOMUX
138	  configuration.
139
140config PINCTRL_NSP_MUX
141	bool "Broadcom NSP IOMUX driver"
142	depends on (ARCH_BCM_NSP || COMPILE_TEST)
143	depends on OF
144	select PINMUX
145	select GENERIC_PINCONF
146	default ARCH_BCM_NSP
147	help
148	  Say yes here to enable the Broadcom NSP SOC IOMUX driver.
149
150	  The Broadcom Northstar Plus IOMUX driver supports pin based IOMUX
151	  configuration, with certain individual pins can be overridden
152	  to GPIO function.
153