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 214434f4c5SFlorian Fainelli tristate "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 32f7e322d9SRafał Miłeckiconfig PINCTRL_BCM4908 33f7e322d9SRafał Miłecki tristate "Broadcom BCM4908 pinmux driver" 34*7bb49d77SWilliam Zhang depends on OF && (ARCH_BCMBCA || COMPILE_TEST) 35f7e322d9SRafał Miłecki select PINMUX 36f7e322d9SRafał Miłecki select PINCONF 37f7e322d9SRafał Miłecki select GENERIC_PINCONF 38f7e322d9SRafał Miłecki select GENERIC_PINCTRL_GROUPS 39f7e322d9SRafał Miłecki select GENERIC_PINMUX_FUNCTIONS 40*7bb49d77SWilliam Zhang default ARCH_BCMBCA 41f7e322d9SRafał Miłecki help 42f7e322d9SRafał Miłecki Driver for BCM4908 family SoCs with integrated pin controller. 43f7e322d9SRafał Miłecki 44f7e322d9SRafał Miłecki If compiled as module it will be called pinctrl-bcm4908. 45f7e322d9SRafał Miłecki 46132f9501SÁlvaro Fernández Rojasconfig PINCTRL_BCM63XX 47132f9501SÁlvaro Fernández Rojas bool 48132f9501SÁlvaro Fernández Rojas select PINMUX 4926ea7ac9SLinus Walleij select PINCONF 5026ea7ac9SLinus Walleij select GENERIC_PINCONF 5126ea7ac9SLinus Walleij select GPIOLIB 523a528695SJulian Braha select REGMAP 5326ea7ac9SLinus Walleij select GPIO_REGMAP 54132f9501SÁlvaro Fernández Rojas 55d28039fcSÁlvaro Fernández Rojasconfig PINCTRL_BCM6318 56d28039fcSÁlvaro Fernández Rojas bool "Broadcom BCM6318 GPIO driver" 57d28039fcSÁlvaro Fernández Rojas depends on (BMIPS_GENERIC || COMPILE_TEST) 58da35b19dSRandy Dunlap depends on OF 59d28039fcSÁlvaro Fernández Rojas select PINCTRL_BCM63XX 60d28039fcSÁlvaro Fernández Rojas default BMIPS_GENERIC 61d28039fcSÁlvaro Fernández Rojas help 62d28039fcSÁlvaro Fernández Rojas Say Y here to enable the Broadcom BCM6318 GPIO driver. 63d28039fcSÁlvaro Fernández Rojas 649bf34ac5SÁlvaro Fernández Rojasconfig PINCTRL_BCM6328 659bf34ac5SÁlvaro Fernández Rojas bool "Broadcom BCM6328 GPIO driver" 669bf34ac5SÁlvaro Fernández Rojas depends on (BMIPS_GENERIC || COMPILE_TEST) 67da35b19dSRandy Dunlap depends on OF 689bf34ac5SÁlvaro Fernández Rojas select PINCTRL_BCM63XX 699bf34ac5SÁlvaro Fernández Rojas default BMIPS_GENERIC 709bf34ac5SÁlvaro Fernández Rojas help 719bf34ac5SÁlvaro Fernández Rojas Say Y here to enable the Broadcom BCM6328 GPIO driver. 729bf34ac5SÁlvaro Fernández Rojas 739494b169SÁlvaro Fernández Rojasconfig PINCTRL_BCM6358 749494b169SÁlvaro Fernández Rojas bool "Broadcom BCM6358 GPIO driver" 759494b169SÁlvaro Fernández Rojas depends on (BMIPS_GENERIC || COMPILE_TEST) 76da35b19dSRandy Dunlap depends on OF 779494b169SÁlvaro Fernández Rojas select PINCTRL_BCM63XX 789494b169SÁlvaro Fernández Rojas default BMIPS_GENERIC 799494b169SÁlvaro Fernández Rojas help 809494b169SÁlvaro Fernández Rojas Say Y here to enable the Broadcom BCM6358 GPIO driver. 819494b169SÁlvaro Fernández Rojas 82705791e2SÁlvaro Fernández Rojasconfig PINCTRL_BCM6362 83705791e2SÁlvaro Fernández Rojas bool "Broadcom BCM6362 GPIO driver" 84705791e2SÁlvaro Fernández Rojas depends on (BMIPS_GENERIC || COMPILE_TEST) 85da35b19dSRandy Dunlap depends on OF 86705791e2SÁlvaro Fernández Rojas select PINCTRL_BCM63XX 87705791e2SÁlvaro Fernández Rojas default BMIPS_GENERIC 88705791e2SÁlvaro Fernández Rojas help 89705791e2SÁlvaro Fernández Rojas Say Y here to enable the Broadcom BCM6362 GPIO driver. 90705791e2SÁlvaro Fernández Rojas 9150554accSÁlvaro Fernández Rojasconfig PINCTRL_BCM6368 9250554accSÁlvaro Fernández Rojas bool "Broadcom BCM6368 GPIO driver" 9350554accSÁlvaro Fernández Rojas depends on (BMIPS_GENERIC || COMPILE_TEST) 94da35b19dSRandy Dunlap depends on OF 9550554accSÁlvaro Fernández Rojas select PINCTRL_BCM63XX 9650554accSÁlvaro Fernández Rojas default BMIPS_GENERIC 9750554accSÁlvaro Fernández Rojas help 9850554accSÁlvaro Fernández Rojas Say Y here to enable the Broadcom BCM6368 GPIO driver. 9950554accSÁlvaro Fernández Rojas 100155cca1bSÁlvaro Fernández Rojasconfig PINCTRL_BCM63268 101155cca1bSÁlvaro Fernández Rojas bool "Broadcom BCM63268 GPIO driver" 102155cca1bSÁlvaro Fernández Rojas depends on (BMIPS_GENERIC || COMPILE_TEST) 103da35b19dSRandy Dunlap depends on OF 104155cca1bSÁlvaro Fernández Rojas select PINCTRL_BCM63XX 105155cca1bSÁlvaro Fernández Rojas default BMIPS_GENERIC 106155cca1bSÁlvaro Fernández Rojas help 107155cca1bSÁlvaro Fernández Rojas Say Y here to enable the Broadcom BCM63268 GPIO driver. 108155cca1bSÁlvaro Fernández Rojas 109616043d5SPramod Kumarconfig PINCTRL_IPROC_GPIO 110616043d5SPramod Kumar bool "Broadcom iProc GPIO (with PINCONF) driver" 111616043d5SPramod Kumar depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST) 112b64333ceSRay Jui select GPIOLIB_IRQCHIP 113b64333ceSRay Jui select PINCONF 114b64333ceSRay Jui select GENERIC_PINCONF 115616043d5SPramod Kumar default ARCH_BCM_IPROC 116b64333ceSRay Jui help 117616043d5SPramod Kumar Say yes here to enable the Broadcom iProc GPIO driver. 118616043d5SPramod Kumar 119616043d5SPramod Kumar The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use 120616043d5SPramod Kumar same GPIO Controller IP hence this driver could be used for all. 121b64333ceSRay Jui 122b64333ceSRay Jui The Broadcom Cygnus SoC has 3 GPIO controllers including the ASIU 123b64333ceSRay Jui GPIO controller (ASIU), the chipCommonG GPIO controller (CCM), and 124b64333ceSRay Jui the always-ON GPIO controller (CRMU/AON). All 3 GPIO controllers are 125b64333ceSRay Jui supported by this driver. 126b64333ceSRay Jui 127616043d5SPramod Kumar The Broadcom NSP has two GPIO controllers including the ChipcommonA 128616043d5SPramod Kumar GPIO, the ChipcommonB GPIO. Later controller is supported by this 129616043d5SPramod Kumar driver. 130616043d5SPramod Kumar 131616043d5SPramod Kumar The Broadcom NS2 has two GPIO controller including the CRMU GPIO, 132616043d5SPramod Kumar the ChipcommonG GPIO. Both controllers are supported by this driver. 133616043d5SPramod Kumar 134616043d5SPramod Kumar The Broadcom Stingray GPIO controllers are supported by this driver. 135616043d5SPramod Kumar 136616043d5SPramod Kumar All above SoCs GPIO controllers support basic PINCONF functions such 137b64333ceSRay Jui as bias pull up, pull down, and drive strength configurations, when 138b64333ceSRay Jui these pins are muxed to GPIO. 139b64333ceSRay Jui 140616043d5SPramod Kumar It provides the framework where pins from the individual GPIO can be 141616043d5SPramod Kumar individually muxed to GPIO function, through interaction with the 142616043d5SPramod Kumar SoCs IOMUX controller. This features could be used only on SoCs which 143616043d5SPramod Kumar support individual pin muxing. 144b64333ceSRay Jui 145cbd159edSRay Juiconfig PINCTRL_CYGNUS_MUX 146cbd159edSRay Jui bool "Broadcom Cygnus IOMUX driver" 147cbd159edSRay Jui depends on (ARCH_BCM_CYGNUS || COMPILE_TEST) 14853056f59SArnd Bergmann depends on OF 149cbd159edSRay Jui select PINMUX 150cbd159edSRay Jui select GENERIC_PINCONF 151cbd159edSRay Jui default ARCH_BCM_CYGNUS 152cbd159edSRay Jui help 153cbd159edSRay Jui Say yes here to enable the Broadcom Cygnus IOMUX driver. 154cbd159edSRay Jui 155cbd159edSRay Jui The Broadcom Cygnus IOMUX driver supports group based IOMUX 156cbd159edSRay Jui configuration, with the exception that certain individual pins 15703671057SMasahiro Yamada can be overridden to GPIO function 1588bfcbbbcSYendapally Reddy Dhananjaya Reddy 159c12fb177SRafał Miłeckiconfig PINCTRL_NS 160c12fb177SRafał Miłecki bool "Broadcom Northstar pins driver" 161c12fb177SRafał Miłecki depends on OF && (ARCH_BCM_5301X || COMPILE_TEST) 162c12fb177SRafał Miłecki select PINMUX 163c12fb177SRafał Miłecki select GENERIC_PINCONF 1644b1643cbSRafał Miłecki select GENERIC_PINCTRL_GROUPS 1654b1643cbSRafał Miłecki select GENERIC_PINMUX_FUNCTIONS 166c12fb177SRafał Miłecki default ARCH_BCM_5301X 167c12fb177SRafał Miłecki help 168c12fb177SRafał Miłecki Say yes here to enable the Broadcom NS SoC pins driver. 169c12fb177SRafał Miłecki 170c12fb177SRafał Miłecki The Broadcom Northstar pins driver supports muxing multi-purpose pins 171c12fb177SRafał Miłecki that can be used for various functions (e.g. SPI, I2C, UART) as well 172c12fb177SRafał Miłecki as GPIOs. 173c12fb177SRafał Miłecki 1748bfcbbbcSYendapally Reddy Dhananjaya Reddyconfig PINCTRL_NSP_GPIO 1758bfcbbbcSYendapally Reddy Dhananjaya Reddy bool "Broadcom NSP GPIO (with PINCONF) driver" 1768bfcbbbcSYendapally Reddy Dhananjaya Reddy depends on OF_GPIO && (ARCH_BCM_NSP || COMPILE_TEST) 1778bfcbbbcSYendapally Reddy Dhananjaya Reddy select GPIOLIB_IRQCHIP 1788bfcbbbcSYendapally Reddy Dhananjaya Reddy select PINCONF 1798bfcbbbcSYendapally Reddy Dhananjaya Reddy select GENERIC_PINCONF 1808bfcbbbcSYendapally Reddy Dhananjaya Reddy default ARCH_BCM_NSP 1818bfcbbbcSYendapally Reddy Dhananjaya Reddy help 1828bfcbbbcSYendapally Reddy Dhananjaya Reddy Say yes here to enable the Broadcom NSP GPIO driver. 1838bfcbbbcSYendapally Reddy Dhananjaya Reddy 1848bfcbbbcSYendapally Reddy Dhananjaya Reddy The Broadcom Northstar Plus SoC ChipcommonA GPIO controller is 1858bfcbbbcSYendapally Reddy Dhananjaya Reddy supported by this driver. 1868bfcbbbcSYendapally Reddy Dhananjaya Reddy 1878bfcbbbcSYendapally Reddy Dhananjaya Reddy The ChipcommonA GPIO controller support basic PINCONF functions such 1888bfcbbbcSYendapally Reddy Dhananjaya Reddy as bias pull up, pull down, and drive strength configurations, when 1898bfcbbbcSYendapally Reddy Dhananjaya Reddy these pins are muxed to GPIO. 190b5aa1006SYendapally Reddy Dhananjaya Reddy 191b5aa1006SYendapally Reddy Dhananjaya Reddyconfig PINCTRL_NS2_MUX 192b5aa1006SYendapally Reddy Dhananjaya Reddy bool "Broadcom Northstar2 pinmux driver" 193b5aa1006SYendapally Reddy Dhananjaya Reddy depends on OF 194b5aa1006SYendapally Reddy Dhananjaya Reddy depends on ARCH_BCM_IPROC || COMPILE_TEST 195b5aa1006SYendapally Reddy Dhananjaya Reddy select PINMUX 196b5aa1006SYendapally Reddy Dhananjaya Reddy select GENERIC_PINCONF 197b5aa1006SYendapally Reddy Dhananjaya Reddy default ARM64 && ARCH_BCM_IPROC 198b5aa1006SYendapally Reddy Dhananjaya Reddy help 199b5aa1006SYendapally Reddy Dhananjaya Reddy Say yes here to enable the Broadcom NS2 MUX driver. 200b5aa1006SYendapally Reddy Dhananjaya Reddy 201b5aa1006SYendapally Reddy Dhananjaya Reddy The Broadcom Northstar2 IOMUX driver supports group based IOMUX 202b5aa1006SYendapally Reddy Dhananjaya Reddy configuration. 203cc4fa83fSYendapally Reddy Dhananjaya Reddy 204cc4fa83fSYendapally Reddy Dhananjaya Reddyconfig PINCTRL_NSP_MUX 205cc4fa83fSYendapally Reddy Dhananjaya Reddy bool "Broadcom NSP IOMUX driver" 206cc4fa83fSYendapally Reddy Dhananjaya Reddy depends on (ARCH_BCM_NSP || COMPILE_TEST) 20753056f59SArnd Bergmann depends on OF 208cc4fa83fSYendapally Reddy Dhananjaya Reddy select PINMUX 209cc4fa83fSYendapally Reddy Dhananjaya Reddy select GENERIC_PINCONF 210cc4fa83fSYendapally Reddy Dhananjaya Reddy default ARCH_BCM_NSP 211cc4fa83fSYendapally Reddy Dhananjaya Reddy help 212cc4fa83fSYendapally Reddy Dhananjaya Reddy Say yes here to enable the Broadcom NSP SOC IOMUX driver. 213cc4fa83fSYendapally Reddy Dhananjaya Reddy 214cc4fa83fSYendapally Reddy Dhananjaya Reddy The Broadcom Northstar Plus IOMUX driver supports pin based IOMUX 215cc4fa83fSYendapally Reddy Dhananjaya Reddy configuration, with certain individual pins can be overridden 216cc4fa83fSYendapally Reddy Dhananjaya Reddy to GPIO function. 217