1077365a9SGeert Uytterhoeven# SPDX-License-Identifier: GPL-2.0 2077365a9SGeert Uytterhoeven# 3077365a9SGeert Uytterhoeven# Renesas SH and SH Mobile PINCTRL drivers 4077365a9SGeert Uytterhoeven# 5077365a9SGeert Uytterhoeven 6077365a9SGeert Uytterhoevenmenu "Renesas pinctrl drivers" 7077365a9SGeert Uytterhoeven 8077365a9SGeert Uytterhoevenconfig PINCTRL_RENESAS 9077365a9SGeert Uytterhoeven bool "Renesas SoC pin control support" if COMPILE_TEST && !(ARCH_RENESAS || SUPERH) 10077365a9SGeert Uytterhoeven default y if ARCH_RENESAS || SUPERH 11077365a9SGeert Uytterhoeven select PINCTRL_PFC_EMEV2 if ARCH_EMEV2 12077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A73A4 if ARCH_R8A73A4 13077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7740 if ARCH_R8A7740 14077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7742 if ARCH_R8A7742 15077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7743 if ARCH_R8A7743 16077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7744 if ARCH_R8A7744 17077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7745 if ARCH_R8A7745 18077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77470 if ARCH_R8A77470 19077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A774A1 if ARCH_R8A774A1 20077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A774B1 if ARCH_R8A774B1 21077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A774C0 if ARCH_R8A774C0 22077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A774E1 if ARCH_R8A774E1 23077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7778 if ARCH_R8A7778 24077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7779 if ARCH_R8A7779 25077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7790 if ARCH_R8A7790 26077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7791 if ARCH_R8A7791 27077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7792 if ARCH_R8A7792 28077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7793 if ARCH_R8A7793 29077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A7794 if ARCH_R8A7794 30077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77950 if ARCH_R8A77950 31077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77951 if ARCH_R8A77951 32077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77960 if ARCH_R8A77960 33077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77961 if ARCH_R8A77961 34077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77965 if ARCH_R8A77965 35077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77970 if ARCH_R8A77970 36077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77980 if ARCH_R8A77980 37077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77990 if ARCH_R8A77990 38077365a9SGeert Uytterhoeven select PINCTRL_PFC_R8A77995 if ARCH_R8A77995 39741a7370SUlrich Hecht select PINCTRL_PFC_R8A779A0 if ARCH_R8A779A0 40*030ac6d7SGeert Uytterhoeven select PINCTRL_PFC_R8A779F0 if ARCH_R8A779F0 41c4c4637eSLad Prabhakar select PINCTRL_RZG2L if ARCH_R9A07G044 420c8fce49SBiju Das select PINCTRL_RZG2L if ARCH_R9A07G054 43077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203 44077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264 45077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269 46077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH73A0 if ARCH_SH73A0 47077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720 48077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722 49077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723 50077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724 51077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734 52077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757 53077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785 54077365a9SGeert Uytterhoeven select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786 55077365a9SGeert Uytterhoeven select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3 56077365a9SGeert Uytterhoeven help 57077365a9SGeert Uytterhoeven This enables pin control drivers for Renesas SuperH and ARM platforms 58077365a9SGeert Uytterhoeven 59540d9757SGeert Uytterhoevenconfig PINCTRL_SH_PFC 60077365a9SGeert Uytterhoeven bool 61540d9757SGeert Uytterhoeven select GENERIC_PINCONF 62540d9757SGeert Uytterhoeven select PINMUX 63540d9757SGeert Uytterhoeven select PINCONF 64540d9757SGeert Uytterhoeven help 65540d9757SGeert Uytterhoeven This enables common pin control functionality for EMMA Mobile, R-Car, 66540d9757SGeert Uytterhoeven R-Mobile, RZ/G, SH, and SH-Mobile platforms. 67540d9757SGeert Uytterhoeven 68540d9757SGeert Uytterhoevenconfig PINCTRL_SH_PFC_GPIO 69540d9757SGeert Uytterhoeven bool 70540d9757SGeert Uytterhoeven select GPIOLIB 71540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 72077365a9SGeert Uytterhoeven help 73077365a9SGeert Uytterhoeven This enables pin control and GPIO drivers for SH/SH Mobile platforms 74077365a9SGeert Uytterhoeven 75077365a9SGeert Uytterhoevenconfig PINCTRL_SH_FUNC_GPIO 76077365a9SGeert Uytterhoeven bool 77540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC_GPIO 78077365a9SGeert Uytterhoeven help 79077365a9SGeert Uytterhoeven This enables legacy function GPIOs for SH platforms 80077365a9SGeert Uytterhoeven 81077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_EMEV2 82077365a9SGeert Uytterhoeven bool "pin control support for Emma Mobile EV2" if COMPILE_TEST 83540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 84077365a9SGeert Uytterhoeven 85077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77995 86077365a9SGeert Uytterhoeven bool "pin control support for R-Car D3" if COMPILE_TEST 87540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 88077365a9SGeert Uytterhoeven 89077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7794 90077365a9SGeert Uytterhoeven bool "pin control support for R-Car E2" if COMPILE_TEST 91540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 92077365a9SGeert Uytterhoeven 93077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77990 94077365a9SGeert Uytterhoeven bool "pin control support for R-Car E3" if COMPILE_TEST 95540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 96077365a9SGeert Uytterhoeven 97077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7779 98077365a9SGeert Uytterhoeven bool "pin control support for R-Car H1" if COMPILE_TEST 99540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 100077365a9SGeert Uytterhoeven 101077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7790 102077365a9SGeert Uytterhoeven bool "pin control support for R-Car H2" if COMPILE_TEST 103540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 104077365a9SGeert Uytterhoeven 105077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77950 106077365a9SGeert Uytterhoeven bool "pin control support for R-Car H3 ES1.x" if COMPILE_TEST 107540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 108077365a9SGeert Uytterhoeven 109077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77951 110077365a9SGeert Uytterhoeven bool "pin control support for R-Car H3 ES2.0+" if COMPILE_TEST 111540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 112077365a9SGeert Uytterhoeven 113077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7778 114077365a9SGeert Uytterhoeven bool "pin control support for R-Car M1A" if COMPILE_TEST 115540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 116077365a9SGeert Uytterhoeven 117077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7793 118077365a9SGeert Uytterhoeven bool "pin control support for R-Car M2-N" if COMPILE_TEST 119540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 120077365a9SGeert Uytterhoeven 121077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7791 122077365a9SGeert Uytterhoeven bool "pin control support for R-Car M2-W" if COMPILE_TEST 123540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 124077365a9SGeert Uytterhoeven 125077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77965 126077365a9SGeert Uytterhoeven bool "pin control support for R-Car M3-N" if COMPILE_TEST 127540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 128077365a9SGeert Uytterhoeven 129077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77960 130077365a9SGeert Uytterhoeven bool "pin control support for R-Car M3-W" if COMPILE_TEST 131540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 132077365a9SGeert Uytterhoeven 133077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77961 134077365a9SGeert Uytterhoeven bool "pin control support for R-Car M3-W+" if COMPILE_TEST 135540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 136077365a9SGeert Uytterhoeven 137*030ac6d7SGeert Uytterhoevenconfig PINCTRL_PFC_R8A779F0 138*030ac6d7SGeert Uytterhoeven bool "pin control support for R-Car S4-8" if COMPILE_TEST 139*030ac6d7SGeert Uytterhoeven select PINCTRL_SH_PFC 140*030ac6d7SGeert Uytterhoeven 141077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7792 142077365a9SGeert Uytterhoeven bool "pin control support for R-Car V2H" if COMPILE_TEST 143540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 144077365a9SGeert Uytterhoeven 145077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77980 146077365a9SGeert Uytterhoeven bool "pin control support for R-Car V3H" if COMPILE_TEST 147540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 148077365a9SGeert Uytterhoeven 149077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77970 150077365a9SGeert Uytterhoeven bool "pin control support for R-Car V3M" if COMPILE_TEST 151540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 152077365a9SGeert Uytterhoeven 153741a7370SUlrich Hechtconfig PINCTRL_PFC_R8A779A0 154741a7370SUlrich Hecht bool "pin control support for R-Car V3U" if COMPILE_TEST 155741a7370SUlrich Hecht select PINCTRL_SH_PFC 156741a7370SUlrich Hecht 157077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7740 158077365a9SGeert Uytterhoeven bool "pin control support for R-Mobile A1" if COMPILE_TEST 159077365a9SGeert Uytterhoeven select PINCTRL_SH_PFC_GPIO 160077365a9SGeert Uytterhoeven 161077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A73A4 162077365a9SGeert Uytterhoeven bool "pin control support for R-Mobile APE6" if COMPILE_TEST 163077365a9SGeert Uytterhoeven select PINCTRL_SH_PFC_GPIO 164077365a9SGeert Uytterhoeven 165077365a9SGeert Uytterhoevenconfig PINCTRL_RZA1 166077365a9SGeert Uytterhoeven bool "pin control support for RZ/A1" 167077365a9SGeert Uytterhoeven depends on OF 168077365a9SGeert Uytterhoeven depends on ARCH_R7S72100 || COMPILE_TEST 169540d9757SGeert Uytterhoeven select GENERIC_PINCONF 170077365a9SGeert Uytterhoeven select GENERIC_PINCTRL_GROUPS 171077365a9SGeert Uytterhoeven select GENERIC_PINMUX_FUNCTIONS 172540d9757SGeert Uytterhoeven select GPIOLIB 173077365a9SGeert Uytterhoeven help 174077365a9SGeert Uytterhoeven This selects pinctrl driver for Renesas RZ/A1 platforms. 175077365a9SGeert Uytterhoeven 176077365a9SGeert Uytterhoevenconfig PINCTRL_RZA2 177077365a9SGeert Uytterhoeven bool "pin control support for RZ/A2" 178077365a9SGeert Uytterhoeven depends on OF 179077365a9SGeert Uytterhoeven depends on ARCH_R7S9210 || COMPILE_TEST 180077365a9SGeert Uytterhoeven select GENERIC_PINCTRL_GROUPS 181077365a9SGeert Uytterhoeven select GENERIC_PINMUX_FUNCTIONS 182540d9757SGeert Uytterhoeven select GPIOLIB 183077365a9SGeert Uytterhoeven help 184077365a9SGeert Uytterhoeven This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms. 185077365a9SGeert Uytterhoeven 186c4c4637eSLad Prabhakarconfig PINCTRL_RZG2L 1870c8fce49SBiju Das bool "pin control support for RZ/{G2L,V2L}" if COMPILE_TEST 188c4c4637eSLad Prabhakar depends on OF 189c4c4637eSLad Prabhakar select GPIOLIB 190c4c4637eSLad Prabhakar select GENERIC_PINCTRL_GROUPS 191c4c4637eSLad Prabhakar select GENERIC_PINMUX_FUNCTIONS 192c4c4637eSLad Prabhakar select GENERIC_PINCONF 193c4c4637eSLad Prabhakar help 1940c8fce49SBiju Das This selects GPIO and pinctrl driver for Renesas RZ/{G2L,V2L} 1950c8fce49SBiju Das platforms. 196c4c4637eSLad Prabhakar 197077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A77470 198077365a9SGeert Uytterhoeven bool "pin control support for RZ/G1C" if COMPILE_TEST 199540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 200077365a9SGeert Uytterhoeven 201077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7745 202077365a9SGeert Uytterhoeven bool "pin control support for RZ/G1E" if COMPILE_TEST 203540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 204077365a9SGeert Uytterhoeven 205077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7742 206077365a9SGeert Uytterhoeven bool "pin control support for RZ/G1H" if COMPILE_TEST 207540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 208077365a9SGeert Uytterhoeven 209077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7743 210077365a9SGeert Uytterhoeven bool "pin control support for RZ/G1M" if COMPILE_TEST 211540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 212077365a9SGeert Uytterhoeven 213077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A7744 214077365a9SGeert Uytterhoeven bool "pin control support for RZ/G1N" if COMPILE_TEST 215540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 216077365a9SGeert Uytterhoeven 217077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A774C0 218077365a9SGeert Uytterhoeven bool "pin control support for RZ/G2E" if COMPILE_TEST 219540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 220077365a9SGeert Uytterhoeven 221077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A774E1 222077365a9SGeert Uytterhoeven bool "pin control support for RZ/G2H" if COMPILE_TEST 223540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 224077365a9SGeert Uytterhoeven 225077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A774A1 226077365a9SGeert Uytterhoeven bool "pin control support for RZ/G2M" if COMPILE_TEST 227540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 228077365a9SGeert Uytterhoeven 229077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_R8A774B1 230077365a9SGeert Uytterhoeven bool "pin control support for RZ/G2N" if COMPILE_TEST 231540d9757SGeert Uytterhoeven select PINCTRL_SH_PFC 232077365a9SGeert Uytterhoeven 233077365a9SGeert Uytterhoevenconfig PINCTRL_RZN1 234077365a9SGeert Uytterhoeven bool "pin control support for RZ/N1" 235077365a9SGeert Uytterhoeven depends on OF 236077365a9SGeert Uytterhoeven depends on ARCH_RZN1 || COMPILE_TEST 237077365a9SGeert Uytterhoeven select GENERIC_PINCONF 238077365a9SGeert Uytterhoeven help 239077365a9SGeert Uytterhoeven This selects pinctrl driver for Renesas RZ/N1 devices. 240077365a9SGeert Uytterhoeven 241077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7203 242077365a9SGeert Uytterhoeven bool "pin control support for SH7203" if COMPILE_TEST 243077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 244077365a9SGeert Uytterhoeven 245077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7264 246077365a9SGeert Uytterhoeven bool "pin control support for SH7264" if COMPILE_TEST 247077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 248077365a9SGeert Uytterhoeven 249077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7269 250077365a9SGeert Uytterhoeven bool "pin control support for SH7269" if COMPILE_TEST 251077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 252077365a9SGeert Uytterhoeven 253077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7720 254077365a9SGeert Uytterhoeven bool "pin control support for SH7720" if COMPILE_TEST 255077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 256077365a9SGeert Uytterhoeven 257077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7722 258077365a9SGeert Uytterhoeven bool "pin control support for SH7722" if COMPILE_TEST 259077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 260077365a9SGeert Uytterhoeven 261077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7734 262077365a9SGeert Uytterhoeven bool "pin control support for SH7734" if COMPILE_TEST 263077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 264077365a9SGeert Uytterhoeven 265077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7757 266077365a9SGeert Uytterhoeven bool "pin control support for SH7757" if COMPILE_TEST 267077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 268077365a9SGeert Uytterhoeven 269077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7785 270077365a9SGeert Uytterhoeven bool "pin control support for SH7785" if COMPILE_TEST 271077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 272077365a9SGeert Uytterhoeven 273077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7786 274077365a9SGeert Uytterhoeven bool "pin control support for SH7786" if COMPILE_TEST 275077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 276077365a9SGeert Uytterhoeven 277077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH73A0 278077365a9SGeert Uytterhoeven bool "pin control support for SH-Mobile AG5" if COMPILE_TEST 279077365a9SGeert Uytterhoeven select PINCTRL_SH_PFC_GPIO 280077365a9SGeert Uytterhoeven select REGULATOR 281077365a9SGeert Uytterhoeven 282077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7723 283077365a9SGeert Uytterhoeven bool "pin control support for SH-Mobile R2" if COMPILE_TEST 284077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 285077365a9SGeert Uytterhoeven 286077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SH7724 287077365a9SGeert Uytterhoeven bool "pin control support for SH-Mobile R2R" if COMPILE_TEST 288077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 289077365a9SGeert Uytterhoeven 290077365a9SGeert Uytterhoevenconfig PINCTRL_PFC_SHX3 291077365a9SGeert Uytterhoeven bool "pin control support for SH-X3" if COMPILE_TEST 292077365a9SGeert Uytterhoeven select PINCTRL_SH_FUNC_GPIO 293077365a9SGeert Uytterhoeven 294077365a9SGeert Uytterhoevenendmenu 295