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_IRQCHIP 27 default ARCH_BCM2835 || ARCH_BRCMSTB 28 help 29 Say Y here to enable the Broadcom BCM2835 GPIO driver. 30 31config PINCTRL_IPROC_GPIO 32 bool "Broadcom iProc GPIO (with PINCONF) driver" 33 depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST) 34 select GPIOLIB_IRQCHIP 35 select PINCONF 36 select GENERIC_PINCONF 37 default ARCH_BCM_IPROC 38 help 39 Say yes here to enable the Broadcom iProc GPIO driver. 40 41 The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use 42 same GPIO Controller IP hence this driver could be used for all. 43 44 The Broadcom Cygnus SoC has 3 GPIO controllers including the ASIU 45 GPIO controller (ASIU), the chipCommonG GPIO controller (CCM), and 46 the always-ON GPIO controller (CRMU/AON). All 3 GPIO controllers are 47 supported by this driver. 48 49 The Broadcom NSP has two GPIO controllers including the ChipcommonA 50 GPIO, the ChipcommonB GPIO. Later controller is supported by this 51 driver. 52 53 The Broadcom NS2 has two GPIO controller including the CRMU GPIO, 54 the ChipcommonG GPIO. Both controllers are supported by this driver. 55 56 The Broadcom Stingray GPIO controllers are supported by this driver. 57 58 All above SoCs GPIO controllers support basic PINCONF functions such 59 as bias pull up, pull down, and drive strength configurations, when 60 these pins are muxed to GPIO. 61 62 It provides the framework where pins from the individual GPIO can be 63 individually muxed to GPIO function, through interaction with the 64 SoCs IOMUX controller. This features could be used only on SoCs which 65 support individual pin muxing. 66 67config PINCTRL_CYGNUS_MUX 68 bool "Broadcom Cygnus IOMUX driver" 69 depends on (ARCH_BCM_CYGNUS || COMPILE_TEST) 70 depends on OF 71 select PINMUX 72 select GENERIC_PINCONF 73 default ARCH_BCM_CYGNUS 74 help 75 Say yes here to enable the Broadcom Cygnus IOMUX driver. 76 77 The Broadcom Cygnus IOMUX driver supports group based IOMUX 78 configuration, with the exception that certain individual pins 79 can be overridden to GPIO function 80 81config PINCTRL_NS 82 bool "Broadcom Northstar pins driver" 83 depends on OF && (ARCH_BCM_5301X || COMPILE_TEST) 84 select PINMUX 85 select GENERIC_PINCONF 86 default ARCH_BCM_5301X 87 help 88 Say yes here to enable the Broadcom NS SoC pins driver. 89 90 The Broadcom Northstar pins driver supports muxing multi-purpose pins 91 that can be used for various functions (e.g. SPI, I2C, UART) as well 92 as GPIOs. 93 94config PINCTRL_NSP_GPIO 95 bool "Broadcom NSP GPIO (with PINCONF) driver" 96 depends on OF_GPIO && (ARCH_BCM_NSP || COMPILE_TEST) 97 select GPIOLIB_IRQCHIP 98 select PINCONF 99 select GENERIC_PINCONF 100 default ARCH_BCM_NSP 101 help 102 Say yes here to enable the Broadcom NSP GPIO driver. 103 104 The Broadcom Northstar Plus SoC ChipcommonA GPIO controller is 105 supported by this driver. 106 107 The ChipcommonA GPIO controller support basic PINCONF functions such 108 as bias pull up, pull down, and drive strength configurations, when 109 these pins are muxed to GPIO. 110 111config PINCTRL_NS2_MUX 112 bool "Broadcom Northstar2 pinmux driver" 113 depends on OF 114 depends on ARCH_BCM_IPROC || COMPILE_TEST 115 select PINMUX 116 select GENERIC_PINCONF 117 default ARM64 && ARCH_BCM_IPROC 118 help 119 Say yes here to enable the Broadcom NS2 MUX driver. 120 121 The Broadcom Northstar2 IOMUX driver supports group based IOMUX 122 configuration. 123 124config PINCTRL_NSP_MUX 125 bool "Broadcom NSP IOMUX driver" 126 depends on (ARCH_BCM_NSP || COMPILE_TEST) 127 depends on OF 128 select PINMUX 129 select GENERIC_PINCONF 130 default ARCH_BCM_NSP 131 help 132 Say yes here to enable the Broadcom NSP SOC IOMUX driver. 133 134 The Broadcom Northstar Plus IOMUX driver supports pin based IOMUX 135 configuration, with certain individual pins can be overridden 136 to GPIO function. 137