blob: 5123f4c33854bf74f911ff14173a9c6ba7630f5c [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Ray Juib17f2f92015-03-04 16:35:49 -08002#
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
Florian Fainelli652da8242015-12-01 17:41:30 -080013 default ARCH_BCM_MOBILE
Ray Juib17f2f92015-03-04 16:35:49 -080014 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
Florian Fainelli4434f4c52021-10-19 15:11:21 -070021 tristate "Broadcom BCM2835 GPIO (with PINCONF) driver"
YueHaibing138f79d2019-05-28 17:13:04 +080022 depends on OF && (ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST)
Ray Juib17f2f92015-03-04 16:35:49 -080023 select PINMUX
24 select PINCONF
Matheus Castello0de70492018-04-30 20:42:13 -040025 select GENERIC_PINCONF
Necip Fazil Yildiran513034d2020-09-14 17:40:26 +030026 select GPIOLIB
Linus Walleij85ae9e52016-11-14 18:48:19 +010027 select GPIOLIB_IRQCHIP
Doug Bergeree11f862019-05-09 13:59:54 -070028 default ARCH_BCM2835 || ARCH_BRCMSTB
29 help
30 Say Y here to enable the Broadcom BCM2835 GPIO driver.
Ray Juicbd159e2015-03-04 16:35:51 -080031
Álvaro Fernández Rojas132f9502021-03-24 09:19:05 +010032config PINCTRL_BCM63XX
33 bool
Álvaro Fernández Rojas132f9502021-03-24 09:19:05 +010034 select PINMUX
Linus Walleij26ea7ac2021-03-31 14:45:05 +020035 select PINCONF
36 select GENERIC_PINCONF
37 select GPIOLIB
38 select GPIO_REGMAP
Álvaro Fernández Rojas132f9502021-03-24 09:19:05 +010039
Álvaro Fernández Rojasd28039f2021-03-24 09:19:23 +010040config PINCTRL_BCM6318
41 bool "Broadcom BCM6318 GPIO driver"
42 depends on (BMIPS_GENERIC || COMPILE_TEST)
Randy Dunlapda35b192021-04-01 10:47:03 -070043 depends on OF
Álvaro Fernández Rojasd28039f2021-03-24 09:19:23 +010044 select PINCTRL_BCM63XX
45 default BMIPS_GENERIC
46 help
47 Say Y here to enable the Broadcom BCM6318 GPIO driver.
48
Álvaro Fernández Rojas9bf34ac2021-03-24 09:19:08 +010049config PINCTRL_BCM6328
50 bool "Broadcom BCM6328 GPIO driver"
51 depends on (BMIPS_GENERIC || COMPILE_TEST)
Randy Dunlapda35b192021-04-01 10:47:03 -070052 depends on OF
Álvaro Fernández Rojas9bf34ac2021-03-24 09:19:08 +010053 select PINCTRL_BCM63XX
54 default BMIPS_GENERIC
55 help
56 Say Y here to enable the Broadcom BCM6328 GPIO driver.
57
Álvaro Fernández Rojas9494b162021-03-24 09:19:11 +010058config PINCTRL_BCM6358
59 bool "Broadcom BCM6358 GPIO driver"
60 depends on (BMIPS_GENERIC || COMPILE_TEST)
Randy Dunlapda35b192021-04-01 10:47:03 -070061 depends on OF
Álvaro Fernández Rojas9494b162021-03-24 09:19:11 +010062 select PINCTRL_BCM63XX
63 default BMIPS_GENERIC
64 help
65 Say Y here to enable the Broadcom BCM6358 GPIO driver.
66
Álvaro Fernández Rojas705791e2021-03-24 09:19:14 +010067config PINCTRL_BCM6362
68 bool "Broadcom BCM6362 GPIO driver"
69 depends on (BMIPS_GENERIC || COMPILE_TEST)
Randy Dunlapda35b192021-04-01 10:47:03 -070070 depends on OF
Álvaro Fernández Rojas705791e2021-03-24 09:19:14 +010071 select PINCTRL_BCM63XX
72 default BMIPS_GENERIC
73 help
74 Say Y here to enable the Broadcom BCM6362 GPIO driver.
75
Álvaro Fernández Rojas50554ac2021-03-24 09:19:17 +010076config PINCTRL_BCM6368
77 bool "Broadcom BCM6368 GPIO driver"
78 depends on (BMIPS_GENERIC || COMPILE_TEST)
Randy Dunlapda35b192021-04-01 10:47:03 -070079 depends on OF
Álvaro Fernández Rojas50554ac2021-03-24 09:19:17 +010080 select PINCTRL_BCM63XX
81 default BMIPS_GENERIC
82 help
83 Say Y here to enable the Broadcom BCM6368 GPIO driver.
84
Álvaro Fernández Rojas155cca12021-03-24 09:19:20 +010085config PINCTRL_BCM63268
86 bool "Broadcom BCM63268 GPIO driver"
87 depends on (BMIPS_GENERIC || COMPILE_TEST)
Randy Dunlapda35b192021-04-01 10:47:03 -070088 depends on OF
Álvaro Fernández Rojas155cca12021-03-24 09:19:20 +010089 select PINCTRL_BCM63XX
90 default BMIPS_GENERIC
91 help
92 Say Y here to enable the Broadcom BCM63268 GPIO driver.
93
Pramod Kumar616043d2015-11-19 09:22:19 +053094config PINCTRL_IPROC_GPIO
95 bool "Broadcom iProc GPIO (with PINCONF) driver"
96 depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)
Ray Juib64333c2015-03-09 13:45:00 -070097 select GPIOLIB_IRQCHIP
98 select PINCONF
99 select GENERIC_PINCONF
Pramod Kumar616043d2015-11-19 09:22:19 +0530100 default ARCH_BCM_IPROC
Ray Juib64333c2015-03-09 13:45:00 -0700101 help
Pramod Kumar616043d2015-11-19 09:22:19 +0530102 Say yes here to enable the Broadcom iProc GPIO driver.
103
104 The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use
105 same GPIO Controller IP hence this driver could be used for all.
Ray Juib64333c2015-03-09 13:45:00 -0700106
107 The Broadcom Cygnus SoC has 3 GPIO controllers including the ASIU
108 GPIO controller (ASIU), the chipCommonG GPIO controller (CCM), and
109 the always-ON GPIO controller (CRMU/AON). All 3 GPIO controllers are
110 supported by this driver.
111
Pramod Kumar616043d2015-11-19 09:22:19 +0530112 The Broadcom NSP has two GPIO controllers including the ChipcommonA
113 GPIO, the ChipcommonB GPIO. Later controller is supported by this
114 driver.
115
116 The Broadcom NS2 has two GPIO controller including the CRMU GPIO,
117 the ChipcommonG GPIO. Both controllers are supported by this driver.
118
119 The Broadcom Stingray GPIO controllers are supported by this driver.
120
121 All above SoCs GPIO controllers support basic PINCONF functions such
Ray Juib64333c2015-03-09 13:45:00 -0700122 as bias pull up, pull down, and drive strength configurations, when
123 these pins are muxed to GPIO.
124
Pramod Kumar616043d2015-11-19 09:22:19 +0530125 It provides the framework where pins from the individual GPIO can be
126 individually muxed to GPIO function, through interaction with the
127 SoCs IOMUX controller. This features could be used only on SoCs which
128 support individual pin muxing.
Ray Juib64333c2015-03-09 13:45:00 -0700129
Ray Juicbd159e2015-03-04 16:35:51 -0800130config PINCTRL_CYGNUS_MUX
131 bool "Broadcom Cygnus IOMUX driver"
132 depends on (ARCH_BCM_CYGNUS || COMPILE_TEST)
Arnd Bergmann53056f52016-07-15 22:29:54 +0200133 depends on OF
Ray Juicbd159e2015-03-04 16:35:51 -0800134 select PINMUX
135 select GENERIC_PINCONF
136 default ARCH_BCM_CYGNUS
137 help
138 Say yes here to enable the Broadcom Cygnus IOMUX driver.
139
140 The Broadcom Cygnus IOMUX driver supports group based IOMUX
141 configuration, with the exception that certain individual pins
Masahiro Yamada03671052017-02-27 14:29:28 -0800142 can be overridden to GPIO function
Yendapally Reddy Dhananjaya Reddy8bfcbbb2015-12-04 12:11:42 -0500143
Rafał Miłeckic12fb172018-09-26 21:31:03 +0200144config PINCTRL_NS
145 bool "Broadcom Northstar pins driver"
146 depends on OF && (ARCH_BCM_5301X || COMPILE_TEST)
147 select PINMUX
148 select GENERIC_PINCONF
Rafał Miłecki4b1643c2021-12-22 07:43:44 +0100149 select GENERIC_PINCTRL_GROUPS
150 select GENERIC_PINMUX_FUNCTIONS
Rafał Miłeckic12fb172018-09-26 21:31:03 +0200151 default ARCH_BCM_5301X
152 help
153 Say yes here to enable the Broadcom NS SoC pins driver.
154
155 The Broadcom Northstar pins driver supports muxing multi-purpose pins
156 that can be used for various functions (e.g. SPI, I2C, UART) as well
157 as GPIOs.
158
Yendapally Reddy Dhananjaya Reddy8bfcbbb2015-12-04 12:11:42 -0500159config PINCTRL_NSP_GPIO
160 bool "Broadcom NSP GPIO (with PINCONF) driver"
161 depends on OF_GPIO && (ARCH_BCM_NSP || COMPILE_TEST)
162 select GPIOLIB_IRQCHIP
163 select PINCONF
164 select GENERIC_PINCONF
165 default ARCH_BCM_NSP
166 help
167 Say yes here to enable the Broadcom NSP GPIO driver.
168
169 The Broadcom Northstar Plus SoC ChipcommonA GPIO controller is
170 supported by this driver.
171
172 The ChipcommonA GPIO controller support basic PINCONF functions such
173 as bias pull up, pull down, and drive strength configurations, when
174 these pins are muxed to GPIO.
Yendapally Reddy Dhananjaya Reddyb5aa1002016-04-29 08:51:38 -0400175
176config PINCTRL_NS2_MUX
177 bool "Broadcom Northstar2 pinmux driver"
178 depends on OF
179 depends on ARCH_BCM_IPROC || COMPILE_TEST
180 select PINMUX
181 select GENERIC_PINCONF
182 default ARM64 && ARCH_BCM_IPROC
183 help
184 Say yes here to enable the Broadcom NS2 MUX driver.
185
186 The Broadcom Northstar2 IOMUX driver supports group based IOMUX
187 configuration.
Yendapally Reddy Dhananjaya Reddycc4fa832016-06-23 13:35:07 -0400188
189config PINCTRL_NSP_MUX
190 bool "Broadcom NSP IOMUX driver"
191 depends on (ARCH_BCM_NSP || COMPILE_TEST)
Arnd Bergmann53056f52016-07-15 22:29:54 +0200192 depends on OF
Yendapally Reddy Dhananjaya Reddycc4fa832016-06-23 13:35:07 -0400193 select PINMUX
194 select GENERIC_PINCONF
195 default ARCH_BCM_NSP
196 help
197 Say yes here to enable the Broadcom NSP SOC IOMUX driver.
198
199 The Broadcom Northstar Plus IOMUX driver supports pin based IOMUX
200 configuration, with certain individual pins can be overridden
201 to GPIO function.