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_R8A77950 if ARCH_R8A77950 31 select PINCTRL_PFC_R8A77951 if ARCH_R8A77951 32 select PINCTRL_PFC_R8A77960 if ARCH_R8A77960 33 select PINCTRL_PFC_R8A77961 if ARCH_R8A77961 34 select PINCTRL_PFC_R8A77965 if ARCH_R8A77965 35 select PINCTRL_PFC_R8A77970 if ARCH_R8A77970 36 select PINCTRL_PFC_R8A77980 if ARCH_R8A77980 37 select PINCTRL_PFC_R8A77990 if ARCH_R8A77990 38 select PINCTRL_PFC_R8A77995 if ARCH_R8A77995 39 select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203 40 select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264 41 select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269 42 select PINCTRL_PFC_SH73A0 if ARCH_SH73A0 43 select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720 44 select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722 45 select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723 46 select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724 47 select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734 48 select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757 49 select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785 50 select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786 51 select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3 52 help 53 This enables pin control drivers for Renesas SuperH and ARM platforms 54 55config PINCTRL_SH_PFC 56 bool 57 select GENERIC_PINCONF 58 select PINMUX 59 select PINCONF 60 help 61 This enables common pin control functionality for EMMA Mobile, R-Car, 62 R-Mobile, RZ/G, SH, and SH-Mobile platforms. 63 64config PINCTRL_SH_PFC_GPIO 65 bool 66 select GPIOLIB 67 select PINCTRL_SH_PFC 68 help 69 This enables pin control and GPIO drivers for SH/SH Mobile platforms 70 71config PINCTRL_SH_FUNC_GPIO 72 bool 73 select PINCTRL_SH_PFC_GPIO 74 help 75 This enables legacy function GPIOs for SH platforms 76 77config PINCTRL_PFC_EMEV2 78 bool "pin control support for Emma Mobile EV2" if COMPILE_TEST 79 select PINCTRL_SH_PFC 80 81config PINCTRL_PFC_R8A77995 82 bool "pin control support for R-Car D3" if COMPILE_TEST 83 select PINCTRL_SH_PFC 84 85config PINCTRL_PFC_R8A7794 86 bool "pin control support for R-Car E2" if COMPILE_TEST 87 select PINCTRL_SH_PFC 88 89config PINCTRL_PFC_R8A77990 90 bool "pin control support for R-Car E3" if COMPILE_TEST 91 select PINCTRL_SH_PFC 92 93config PINCTRL_PFC_R8A7779 94 bool "pin control support for R-Car H1" if COMPILE_TEST 95 select PINCTRL_SH_PFC 96 97config PINCTRL_PFC_R8A7790 98 bool "pin control support for R-Car H2" if COMPILE_TEST 99 select PINCTRL_SH_PFC 100 101config PINCTRL_PFC_R8A77950 102 bool "pin control support for R-Car H3 ES1.x" 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_R8A7792 134 bool "pin control support for R-Car V2H" if COMPILE_TEST 135 select PINCTRL_SH_PFC 136 137config PINCTRL_PFC_R8A77980 138 bool "pin control support for R-Car V3H" if COMPILE_TEST 139 select PINCTRL_SH_PFC 140 141config PINCTRL_PFC_R8A77970 142 bool "pin control support for R-Car V3M" if COMPILE_TEST 143 select PINCTRL_SH_PFC 144 145config PINCTRL_PFC_R8A7740 146 bool "pin control support for R-Mobile A1" if COMPILE_TEST 147 select PINCTRL_SH_PFC_GPIO 148 149config PINCTRL_PFC_R8A73A4 150 bool "pin control support for R-Mobile APE6" if COMPILE_TEST 151 select PINCTRL_SH_PFC_GPIO 152 153config PINCTRL_RZA1 154 bool "pin control support for RZ/A1" 155 depends on OF 156 depends on ARCH_R7S72100 || COMPILE_TEST 157 select GENERIC_PINCONF 158 select GENERIC_PINCTRL_GROUPS 159 select GENERIC_PINMUX_FUNCTIONS 160 select GPIOLIB 161 help 162 This selects pinctrl driver for Renesas RZ/A1 platforms. 163 164config PINCTRL_RZA2 165 bool "pin control support for RZ/A2" 166 depends on OF 167 depends on ARCH_R7S9210 || COMPILE_TEST 168 select GENERIC_PINCTRL_GROUPS 169 select GENERIC_PINMUX_FUNCTIONS 170 select GPIOLIB 171 help 172 This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms. 173 174config PINCTRL_PFC_R8A77470 175 bool "pin control support for RZ/G1C" if COMPILE_TEST 176 select PINCTRL_SH_PFC 177 178config PINCTRL_PFC_R8A7745 179 bool "pin control support for RZ/G1E" if COMPILE_TEST 180 select PINCTRL_SH_PFC 181 182config PINCTRL_PFC_R8A7742 183 bool "pin control support for RZ/G1H" if COMPILE_TEST 184 select PINCTRL_SH_PFC 185 186config PINCTRL_PFC_R8A7743 187 bool "pin control support for RZ/G1M" if COMPILE_TEST 188 select PINCTRL_SH_PFC 189 190config PINCTRL_PFC_R8A7744 191 bool "pin control support for RZ/G1N" if COMPILE_TEST 192 select PINCTRL_SH_PFC 193 194config PINCTRL_PFC_R8A774C0 195 bool "pin control support for RZ/G2E" if COMPILE_TEST 196 select PINCTRL_SH_PFC 197 198config PINCTRL_PFC_R8A774E1 199 bool "pin control support for RZ/G2H" if COMPILE_TEST 200 select PINCTRL_SH_PFC 201 202config PINCTRL_PFC_R8A774A1 203 bool "pin control support for RZ/G2M" if COMPILE_TEST 204 select PINCTRL_SH_PFC 205 206config PINCTRL_PFC_R8A774B1 207 bool "pin control support for RZ/G2N" if COMPILE_TEST 208 select PINCTRL_SH_PFC 209 210config PINCTRL_RZN1 211 bool "pin control support for RZ/N1" 212 depends on OF 213 depends on ARCH_RZN1 || COMPILE_TEST 214 select GENERIC_PINCONF 215 help 216 This selects pinctrl driver for Renesas RZ/N1 devices. 217 218config PINCTRL_PFC_SH7203 219 bool "pin control support for SH7203" if COMPILE_TEST 220 select PINCTRL_SH_FUNC_GPIO 221 222config PINCTRL_PFC_SH7264 223 bool "pin control support for SH7264" if COMPILE_TEST 224 select PINCTRL_SH_FUNC_GPIO 225 226config PINCTRL_PFC_SH7269 227 bool "pin control support for SH7269" if COMPILE_TEST 228 select PINCTRL_SH_FUNC_GPIO 229 230config PINCTRL_PFC_SH7720 231 bool "pin control support for SH7720" if COMPILE_TEST 232 select PINCTRL_SH_FUNC_GPIO 233 234config PINCTRL_PFC_SH7722 235 bool "pin control support for SH7722" if COMPILE_TEST 236 select PINCTRL_SH_FUNC_GPIO 237 238config PINCTRL_PFC_SH7734 239 bool "pin control support for SH7734" if COMPILE_TEST 240 select PINCTRL_SH_FUNC_GPIO 241 242config PINCTRL_PFC_SH7757 243 bool "pin control support for SH7757" if COMPILE_TEST 244 select PINCTRL_SH_FUNC_GPIO 245 246config PINCTRL_PFC_SH7785 247 bool "pin control support for SH7785" if COMPILE_TEST 248 select PINCTRL_SH_FUNC_GPIO 249 250config PINCTRL_PFC_SH7786 251 bool "pin control support for SH7786" if COMPILE_TEST 252 select PINCTRL_SH_FUNC_GPIO 253 254config PINCTRL_PFC_SH73A0 255 bool "pin control support for SH-Mobile AG5" if COMPILE_TEST 256 select PINCTRL_SH_PFC_GPIO 257 select REGULATOR 258 259config PINCTRL_PFC_SH7723 260 bool "pin control support for SH-Mobile R2" if COMPILE_TEST 261 select PINCTRL_SH_FUNC_GPIO 262 263config PINCTRL_PFC_SH7724 264 bool "pin control support for SH-Mobile R2R" if COMPILE_TEST 265 select PINCTRL_SH_FUNC_GPIO 266 267config PINCTRL_PFC_SHX3 268 bool "pin control support for SH-X3" if COMPILE_TEST 269 select PINCTRL_SH_FUNC_GPIO 270 271endmenu 272