1# SPDX-License-Identifier: GPL-2.0-only 2menu "MediaTek pinctrl drivers" 3 depends on ARCH_MEDIATEK || ARCH_AIROHA || RALINK || COMPILE_TEST 4 5config EINT_MTK 6 tristate "MediaTek External Interrupt Support" 7 depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST 8 select GPIOLIB 9 select IRQ_DOMAIN 10 default y if PINCTRL_MTK || PINCTRL_MTK_MOORE 11 default PINCTRL_MTK_PARIS 12 13config PINCTRL_MTK 14 bool 15 depends on OF 16 select PINMUX 17 select GENERIC_PINCONF 18 select GPIOLIB 19 select EINT_MTK 20 21config PINCTRL_MTK_V2 22 tristate 23 24config PINCTRL_MTK_MTMIPS 25 bool 26 depends on RALINK 27 select PINMUX 28 select GENERIC_PINCONF 29 30config PINCTRL_MTK_MOORE 31 bool 32 depends on OF 33 select GENERIC_PINCONF 34 select GENERIC_PINCTRL_GROUPS 35 select GENERIC_PINMUX_FUNCTIONS 36 select GPIOLIB 37 select EINT_MTK 38 select PINCTRL_MTK_V2 39 40config PINCTRL_MTK_PARIS 41 tristate 42 depends on OF 43 select PINMUX 44 select GENERIC_PINCONF 45 select GPIOLIB 46 select EINT_MTK 47 select PINCTRL_MTK_V2 48 49# For MIPS SoCs 50config PINCTRL_MT7620 51 bool "MediaTek MT7620 pin control" 52 depends on SOC_MT7620 || COMPILE_TEST 53 depends on RALINK 54 default SOC_MT7620 55 select PINCTRL_MTK_MTMIPS 56 57config PINCTRL_MT7621 58 bool "MediaTek MT7621 pin control" 59 depends on SOC_MT7621 || COMPILE_TEST 60 depends on RALINK 61 default SOC_MT7621 62 select PINCTRL_MTK_MTMIPS 63 64config PINCTRL_MT76X8 65 bool "MediaTek MT76X8 pin control" 66 depends on SOC_MT7620 || COMPILE_TEST 67 depends on RALINK 68 default SOC_MT7620 69 select PINCTRL_MTK_MTMIPS 70 71config PINCTRL_RT2880 72 bool "Ralink RT2880 pin control" 73 depends on SOC_RT288X || COMPILE_TEST 74 depends on RALINK 75 default SOC_RT288X 76 select PINCTRL_MTK_MTMIPS 77 78config PINCTRL_RT305X 79 bool "Ralink RT305X pin control" 80 depends on SOC_RT305X || COMPILE_TEST 81 depends on RALINK 82 default SOC_RT305X 83 select PINCTRL_MTK_MTMIPS 84 85config PINCTRL_RT3883 86 bool "Ralink RT3883 pin control" 87 depends on SOC_RT3883 || COMPILE_TEST 88 depends on RALINK 89 default SOC_RT3883 90 select PINCTRL_MTK_MTMIPS 91 92# For ARMv7 SoCs 93config PINCTRL_MT2701 94 bool "MediaTek MT2701 pin control" 95 depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST 96 depends on OF 97 default MACH_MT2701 98 select PINCTRL_MTK 99 100config PINCTRL_MT7623 101 bool "MediaTek MT7623 pin control with generic binding" 102 depends on MACH_MT7623 || COMPILE_TEST 103 depends on OF 104 default MACH_MT7623 105 select PINCTRL_MTK_MOORE 106 107config PINCTRL_MT7629 108 bool "MediaTek MT7629 pin control" 109 depends on MACH_MT7629 || COMPILE_TEST 110 depends on OF 111 default MACH_MT7629 112 select PINCTRL_MTK_MOORE 113 114config PINCTRL_MT8135 115 bool "MediaTek MT8135 pin control" 116 depends on MACH_MT8135 || COMPILE_TEST 117 depends on OF 118 default MACH_MT8135 119 select PINCTRL_MTK 120 121config PINCTRL_MT8127 122 bool "MediaTek MT8127 pin control" 123 depends on MACH_MT8127 || COMPILE_TEST 124 depends on OF 125 default MACH_MT8127 126 select PINCTRL_MTK 127 128# For ARMv8 SoCs 129config PINCTRL_AIROHA 130 tristate "Airoha EN7581 pin control" 131 depends on OF 132 depends on ARM64 || COMPILE_TEST 133 select PINMUX 134 select GENERIC_PINCONF 135 select GENERIC_PINCTRL_GROUPS 136 select GENERIC_PINMUX_FUNCTIONS 137 select GPIOLIB 138 select GPIOLIB_IRQCHIP 139 select REGMAP_MMIO 140 help 141 Say yes here to support pin controller and gpio driver 142 on Airoha EN7581 SoC. 143 144config PINCTRL_MT2712 145 bool "MediaTek MT2712 pin control" 146 depends on OF 147 depends on ARM64 || COMPILE_TEST 148 default ARM64 && ARCH_MEDIATEK 149 select PINCTRL_MTK 150 151config PINCTRL_MT6765 152 tristate "MediaTek MT6765 pin control" 153 depends on OF 154 depends on ARM64 || COMPILE_TEST 155 default ARM64 && ARCH_MEDIATEK 156 select PINCTRL_MTK_PARIS 157 158config PINCTRL_MT6779 159 tristate "MediaTek MT6779 pin control" 160 depends on OF 161 depends on ARM64 || COMPILE_TEST 162 default ARM64 && ARCH_MEDIATEK 163 select PINCTRL_MTK_PARIS 164 help 165 Say yes here to support pin controller and gpio driver 166 on MediaTek MT6779 SoC. 167 In MTK platform, we support virtual gpio and use it to 168 map specific eint which doesn't have real gpio pin. 169 170config PINCTRL_MT6795 171 bool "MediaTek MT6795 pin control" 172 depends on OF 173 depends on ARM64 || COMPILE_TEST 174 default ARM64 && ARCH_MEDIATEK 175 select PINCTRL_MTK_PARIS 176 177config PINCTRL_MT6797 178 bool "MediaTek MT6797 pin control" 179 depends on OF 180 depends on ARM64 || COMPILE_TEST 181 default ARM64 && ARCH_MEDIATEK 182 select PINCTRL_MTK_PARIS 183 184config PINCTRL_MT7622 185 bool "MediaTek MT7622 pin control" 186 depends on OF 187 depends on ARM64 || COMPILE_TEST 188 default ARM64 && ARCH_MEDIATEK 189 select PINCTRL_MTK_MOORE 190 191config PINCTRL_MT7981 192 bool "MediaTek MT7981 pin control" 193 depends on OF 194 depends on ARM64 || COMPILE_TEST 195 default ARM64 && ARCH_MEDIATEK 196 select PINCTRL_MTK_MOORE 197 198config PINCTRL_MT7986 199 bool "MediaTek MT7986 pin control" 200 depends on OF 201 depends on ARM64 || COMPILE_TEST 202 default ARM64 && ARCH_MEDIATEK 203 select PINCTRL_MTK_MOORE 204 205config PINCTRL_MT8167 206 bool "MediaTek MT8167 pin control" 207 depends on OF 208 depends on ARM64 || COMPILE_TEST 209 default ARM64 && ARCH_MEDIATEK 210 select PINCTRL_MTK 211 212config PINCTRL_MT8173 213 bool "MediaTek MT8173 pin control" 214 depends on OF 215 depends on ARM64 || COMPILE_TEST 216 default ARM64 && ARCH_MEDIATEK 217 select PINCTRL_MTK 218 219config PINCTRL_MT8183 220 bool "MediaTek MT8183 pin control" 221 depends on OF 222 depends on ARM64 || COMPILE_TEST 223 default ARM64 && ARCH_MEDIATEK 224 select PINCTRL_MTK_PARIS 225 226config PINCTRL_MT8186 227 bool "MediaTek MT8186 pin control" 228 depends on OF 229 depends on ARM64 || COMPILE_TEST 230 default ARM64 && ARCH_MEDIATEK 231 select PINCTRL_MTK_PARIS 232 233config PINCTRL_MT8188 234 bool "MediaTek MT8188 pin control" 235 depends on OF 236 depends on ARM64 || COMPILE_TEST 237 default ARM64 && ARCH_MEDIATEK 238 select PINCTRL_MTK_PARIS 239 help 240 Say yes here to support pin controller and gpio driver 241 on MediaTek MT8188 SoC. 242 In MTK platform, we support virtual gpio and use it to 243 map specific eint which doesn't have real gpio pin. 244 245config PINCTRL_MT8192 246 bool "MediaTek MT8192 pin control" 247 depends on OF 248 depends on ARM64 || COMPILE_TEST 249 default ARM64 && ARCH_MEDIATEK 250 select PINCTRL_MTK_PARIS 251 252config PINCTRL_MT8195 253 bool "MediaTek MT8195 pin control" 254 depends on OF 255 depends on ARM64 || COMPILE_TEST 256 default ARM64 && ARCH_MEDIATEK 257 select PINCTRL_MTK_PARIS 258 259config PINCTRL_MT8365 260 bool "MediaTek MT8365 pin control" 261 depends on OF 262 depends on ARM64 || COMPILE_TEST 263 default ARM64 && ARCH_MEDIATEK 264 select PINCTRL_MTK 265 266config PINCTRL_MT8516 267 bool "MediaTek MT8516 pin control" 268 depends on OF 269 depends on ARM64 || COMPILE_TEST 270 default ARM64 && ARCH_MEDIATEK 271 select PINCTRL_MTK 272 273# For PMIC 274config PINCTRL_MT6397 275 bool "MediaTek MT6397 pin control" 276 depends on MFD_MT6397 || COMPILE_TEST 277 depends on OF 278 default MFD_MT6397 279 select PINCTRL_MTK 280 281endmenu 282