1# SPDX-License-Identifier: GPL-2.0 2# 3# Renesas SH and SH Mobile PINCTRL drivers 4# 5 6menu "Renesas pinctrl drivers" 7 8config PINCTRL_RENESAS 9 bool "Renesas SoC pin control support" if COMPILE_TEST && !(ARCH_RENESAS || SUPERH) 10 default y if ARCH_RENESAS || SUPERH 11 select PINCTRL_PFC_EMEV2 if ARCH_EMEV2 12 select PINCTRL_PFC_R8A73A4 if ARCH_R8A73A4 13 select PINCTRL_PFC_R8A7740 if ARCH_R8A7740 14 select PINCTRL_PFC_R8A7742 if ARCH_R8A7742 15 select PINCTRL_PFC_R8A7743 if ARCH_R8A7743 16 select PINCTRL_PFC_R8A7744 if ARCH_R8A7744 17 select PINCTRL_PFC_R8A7745 if ARCH_R8A7745 18 select PINCTRL_PFC_R8A77470 if ARCH_R8A77470 19 select PINCTRL_PFC_R8A774A1 if ARCH_R8A774A1 20 select PINCTRL_PFC_R8A774B1 if ARCH_R8A774B1 21 select PINCTRL_PFC_R8A774C0 if ARCH_R8A774C0 22 select PINCTRL_PFC_R8A774E1 if ARCH_R8A774E1 23 select PINCTRL_PFC_R8A7778 if ARCH_R8A7778 24 select PINCTRL_PFC_R8A7779 if ARCH_R8A7779 25 select PINCTRL_PFC_R8A7790 if ARCH_R8A7790 26 select PINCTRL_PFC_R8A7791 if ARCH_R8A7791 27 select PINCTRL_PFC_R8A7792 if ARCH_R8A7792 28 select PINCTRL_PFC_R8A7793 if ARCH_R8A7793 29 select PINCTRL_PFC_R8A7794 if ARCH_R8A7794 30 select PINCTRL_PFC_R8A77951 if ARCH_R8A77951 31 select PINCTRL_PFC_R8A77960 if ARCH_R8A77960 32 select PINCTRL_PFC_R8A77961 if ARCH_R8A77961 33 select PINCTRL_PFC_R8A77965 if ARCH_R8A77965 34 select PINCTRL_PFC_R8A77970 if ARCH_R8A77970 35 select PINCTRL_PFC_R8A77980 if ARCH_R8A77980 36 select PINCTRL_PFC_R8A77990 if ARCH_R8A77990 37 select PINCTRL_PFC_R8A77995 if ARCH_R8A77995 38 select PINCTRL_PFC_R8A779A0 if ARCH_R8A779A0 39 select PINCTRL_PFC_R8A779F0 if ARCH_R8A779F0 40 select PINCTRL_PFC_R8A779G0 if ARCH_R8A779G0 41 select PINCTRL_RZG2L if ARCH_RZG2L 42 select PINCTRL_RZV2M if ARCH_R9A09G011 43 select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203 44 select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264 45 select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269 46 select PINCTRL_PFC_SH73A0 if ARCH_SH73A0 47 select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720 48 select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722 49 select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723 50 select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724 51 select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734 52 select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757 53 select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785 54 select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786 55 select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3 56 help 57 This enables pin control drivers for Renesas SuperH and ARM platforms 58 59config PINCTRL_SH_PFC 60 bool 61 select GENERIC_PINCONF 62 select PINMUX 63 select PINCONF 64 help 65 This enables common pin control functionality for EMMA Mobile, R-Car, 66 R-Mobile, RZ/G, SH, and SH-Mobile platforms. 67 68config PINCTRL_SH_PFC_GPIO 69 bool 70 select GPIOLIB 71 select PINCTRL_SH_PFC 72 help 73 This enables pin control and GPIO drivers for SH/SH Mobile platforms 74 75config PINCTRL_SH_FUNC_GPIO 76 bool 77 select PINCTRL_SH_PFC_GPIO 78 help 79 This enables legacy function GPIOs for SH platforms 80 81config PINCTRL_PFC_EMEV2 82 bool "pin control support for Emma Mobile EV2" if COMPILE_TEST 83 select PINCTRL_SH_PFC 84 85config PINCTRL_PFC_R8A77995 86 bool "pin control support for R-Car D3" if COMPILE_TEST 87 select PINCTRL_SH_PFC 88 89config PINCTRL_PFC_R8A7794 90 bool "pin control support for R-Car E2" if COMPILE_TEST 91 select PINCTRL_SH_PFC 92 93config PINCTRL_PFC_R8A77990 94 bool "pin control support for R-Car E3" if COMPILE_TEST 95 select PINCTRL_SH_PFC 96 97config PINCTRL_PFC_R8A7779 98 bool "pin control support for R-Car H1" if COMPILE_TEST 99 select PINCTRL_SH_PFC 100 101config PINCTRL_PFC_R8A7790 102 bool "pin control support for R-Car H2" if COMPILE_TEST 103 select PINCTRL_SH_PFC 104 105config PINCTRL_PFC_R8A77951 106 bool "pin control support for R-Car H3 ES2.0+" if COMPILE_TEST 107 select PINCTRL_SH_PFC 108 109config PINCTRL_PFC_R8A7778 110 bool "pin control support for R-Car M1A" if COMPILE_TEST 111 select PINCTRL_SH_PFC 112 113config PINCTRL_PFC_R8A7793 114 bool "pin control support for R-Car M2-N" if COMPILE_TEST 115 select PINCTRL_SH_PFC 116 117config PINCTRL_PFC_R8A7791 118 bool "pin control support for R-Car M2-W" if COMPILE_TEST 119 select PINCTRL_SH_PFC 120 121config PINCTRL_PFC_R8A77965 122 bool "pin control support for R-Car M3-N" if COMPILE_TEST 123 select PINCTRL_SH_PFC 124 125config PINCTRL_PFC_R8A77960 126 bool "pin control support for R-Car M3-W" if COMPILE_TEST 127 select PINCTRL_SH_PFC 128 129config PINCTRL_PFC_R8A77961 130 bool "pin control support for R-Car M3-W+" if COMPILE_TEST 131 select PINCTRL_SH_PFC 132 133config PINCTRL_PFC_R8A779F0 134 bool "pin control support for R-Car S4-8" if COMPILE_TEST 135 select PINCTRL_SH_PFC 136 137config PINCTRL_PFC_R8A7792 138 bool "pin control support for R-Car V2H" if COMPILE_TEST 139 select PINCTRL_SH_PFC 140 141config PINCTRL_PFC_R8A77980 142 bool "pin control support for R-Car V3H" if COMPILE_TEST 143 select PINCTRL_SH_PFC 144 145config PINCTRL_PFC_R8A77970 146 bool "pin control support for R-Car V3M" if COMPILE_TEST 147 select PINCTRL_SH_PFC 148 149config PINCTRL_PFC_R8A779A0 150 bool "pin control support for R-Car V3U" if COMPILE_TEST 151 select PINCTRL_SH_PFC 152 153config PINCTRL_PFC_R8A779G0 154 bool "pin control support for R-Car V4H" if COMPILE_TEST 155 select PINCTRL_SH_PFC 156 157config PINCTRL_PFC_R8A7740 158 bool "pin control support for R-Mobile A1" if COMPILE_TEST 159 select PINCTRL_SH_PFC_GPIO 160 161config PINCTRL_PFC_R8A73A4 162 bool "pin control support for R-Mobile APE6" if COMPILE_TEST 163 select PINCTRL_SH_PFC_GPIO 164 165config PINCTRL_RZA1 166 bool "pin control support for RZ/A1" 167 depends on OF 168 depends on ARCH_R7S72100 || COMPILE_TEST 169 select GENERIC_PINCONF 170 select GENERIC_PINCTRL_GROUPS 171 select GENERIC_PINMUX_FUNCTIONS 172 select GPIOLIB 173 help 174 This selects pinctrl driver for Renesas RZ/A1 platforms. 175 176config PINCTRL_RZA2 177 bool "pin control support for RZ/A2" 178 depends on OF 179 depends on ARCH_R7S9210 || COMPILE_TEST 180 select GENERIC_PINCTRL_GROUPS 181 select GENERIC_PINMUX_FUNCTIONS 182 select GPIOLIB 183 help 184 This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms. 185 186config PINCTRL_RZG2L 187 bool "pin control support for RZ/{G2L,G2UL,V2L}" if COMPILE_TEST 188 depends on OF 189 select GPIOLIB 190 select GENERIC_PINCTRL_GROUPS 191 select GENERIC_PINMUX_FUNCTIONS 192 select GENERIC_PINCONF 193 help 194 This selects GPIO and pinctrl driver for Renesas RZ/{G2L,G2UL,V2L} 195 platforms. 196 197config PINCTRL_PFC_R8A77470 198 bool "pin control support for RZ/G1C" if COMPILE_TEST 199 select PINCTRL_SH_PFC 200 201config PINCTRL_PFC_R8A7745 202 bool "pin control support for RZ/G1E" if COMPILE_TEST 203 select PINCTRL_SH_PFC 204 205config PINCTRL_PFC_R8A7742 206 bool "pin control support for RZ/G1H" if COMPILE_TEST 207 select PINCTRL_SH_PFC 208 209config PINCTRL_PFC_R8A7743 210 bool "pin control support for RZ/G1M" if COMPILE_TEST 211 select PINCTRL_SH_PFC 212 213config PINCTRL_PFC_R8A7744 214 bool "pin control support for RZ/G1N" if COMPILE_TEST 215 select PINCTRL_SH_PFC 216 217config PINCTRL_PFC_R8A774C0 218 bool "pin control support for RZ/G2E" if COMPILE_TEST 219 select PINCTRL_SH_PFC 220 221config PINCTRL_PFC_R8A774E1 222 bool "pin control support for RZ/G2H" if COMPILE_TEST 223 select PINCTRL_SH_PFC 224 225config PINCTRL_PFC_R8A774A1 226 bool "pin control support for RZ/G2M" if COMPILE_TEST 227 select PINCTRL_SH_PFC 228 229config PINCTRL_PFC_R8A774B1 230 bool "pin control support for RZ/G2N" if COMPILE_TEST 231 select PINCTRL_SH_PFC 232 233config PINCTRL_RZN1 234 bool "pin control support for RZ/N1" 235 depends on OF 236 depends on ARCH_RZN1 || COMPILE_TEST 237 select GENERIC_PINCONF 238 select PINMUX 239 help 240 This selects pinctrl driver for Renesas RZ/N1 devices. 241 242config PINCTRL_RZV2M 243 bool "pin control support for RZ/V2M" 244 depends on OF 245 depends on ARCH_R9A09G011 || COMPILE_TEST 246 select GPIOLIB 247 select GENERIC_PINCTRL_GROUPS 248 select GENERIC_PINMUX_FUNCTIONS 249 select GENERIC_PINCONF 250 help 251 This selects GPIO and pinctrl driver for Renesas RZ/V2M 252 platforms. 253 254config PINCTRL_PFC_SH7203 255 bool "pin control support for SH7203" if COMPILE_TEST 256 select PINCTRL_SH_FUNC_GPIO 257 258config PINCTRL_PFC_SH7264 259 bool "pin control support for SH7264" if COMPILE_TEST 260 select PINCTRL_SH_FUNC_GPIO 261 262config PINCTRL_PFC_SH7269 263 bool "pin control support for SH7269" if COMPILE_TEST 264 select PINCTRL_SH_FUNC_GPIO 265 266config PINCTRL_PFC_SH7720 267 bool "pin control support for SH7720" if COMPILE_TEST 268 select PINCTRL_SH_FUNC_GPIO 269 270config PINCTRL_PFC_SH7722 271 bool "pin control support for SH7722" if COMPILE_TEST 272 select PINCTRL_SH_FUNC_GPIO 273 274config PINCTRL_PFC_SH7734 275 bool "pin control support for SH7734" if COMPILE_TEST 276 select PINCTRL_SH_FUNC_GPIO 277 278config PINCTRL_PFC_SH7757 279 bool "pin control support for SH7757" if COMPILE_TEST 280 select PINCTRL_SH_FUNC_GPIO 281 282config PINCTRL_PFC_SH7785 283 bool "pin control support for SH7785" if COMPILE_TEST 284 select PINCTRL_SH_FUNC_GPIO 285 286config PINCTRL_PFC_SH7786 287 bool "pin control support for SH7786" if COMPILE_TEST 288 select PINCTRL_SH_FUNC_GPIO 289 290config PINCTRL_PFC_SH73A0 291 bool "pin control support for SH-Mobile AG5" if COMPILE_TEST 292 select PINCTRL_SH_PFC_GPIO 293 select REGULATOR 294 295config PINCTRL_PFC_SH7723 296 bool "pin control support for SH-Mobile R2" if COMPILE_TEST 297 select PINCTRL_SH_FUNC_GPIO 298 299config PINCTRL_PFC_SH7724 300 bool "pin control support for SH-Mobile R2R" if COMPILE_TEST 301 select PINCTRL_SH_FUNC_GPIO 302 303config PINCTRL_PFC_SHX3 304 bool "pin control support for SH-X3" if COMPILE_TEST 305 select PINCTRL_SH_FUNC_GPIO 306 307endmenu 308