18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci# Renesas SH and SH Mobile PINCTRL drivers 48c2ecf20Sopenharmony_ci# 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_cimenu "Renesas pinctrl drivers" 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciconfig PINCTRL_RENESAS 98c2ecf20Sopenharmony_ci bool "Renesas SoC pin control support" if COMPILE_TEST && !(ARCH_RENESAS || SUPERH) 108c2ecf20Sopenharmony_ci default y if ARCH_RENESAS || SUPERH 118c2ecf20Sopenharmony_ci select PINCTRL_PFC_EMEV2 if ARCH_EMEV2 128c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A73A4 if ARCH_R8A73A4 138c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7740 if ARCH_R8A7740 148c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7742 if ARCH_R8A7742 158c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7743 if ARCH_R8A7743 168c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7744 if ARCH_R8A7744 178c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7745 if ARCH_R8A7745 188c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77470 if ARCH_R8A77470 198c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A774A1 if ARCH_R8A774A1 208c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A774B1 if ARCH_R8A774B1 218c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A774C0 if ARCH_R8A774C0 228c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A774E1 if ARCH_R8A774E1 238c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7778 if ARCH_R8A7778 248c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7779 if ARCH_R8A7779 258c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7790 if ARCH_R8A7790 268c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7791 if ARCH_R8A7791 278c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7792 if ARCH_R8A7792 288c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7793 if ARCH_R8A7793 298c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A7794 if ARCH_R8A7794 308c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77950 if ARCH_R8A77950 318c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77951 if ARCH_R8A77951 328c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77960 if ARCH_R8A77960 338c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77961 if ARCH_R8A77961 348c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77965 if ARCH_R8A77965 358c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77970 if ARCH_R8A77970 368c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77980 if ARCH_R8A77980 378c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77990 if ARCH_R8A77990 388c2ecf20Sopenharmony_ci select PINCTRL_PFC_R8A77995 if ARCH_R8A77995 398c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203 408c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264 418c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269 428c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH73A0 if ARCH_SH73A0 438c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720 448c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722 458c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723 468c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724 478c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734 488c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757 498c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785 508c2ecf20Sopenharmony_ci select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786 518c2ecf20Sopenharmony_ci select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3 528c2ecf20Sopenharmony_ci help 538c2ecf20Sopenharmony_ci This enables pin control drivers for Renesas SuperH and ARM platforms 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ciconfig PINCTRL_SH_PFC 568c2ecf20Sopenharmony_ci bool 578c2ecf20Sopenharmony_ci select GENERIC_PINCONF 588c2ecf20Sopenharmony_ci select PINMUX 598c2ecf20Sopenharmony_ci select PINCONF 608c2ecf20Sopenharmony_ci help 618c2ecf20Sopenharmony_ci This enables common pin control functionality for EMMA Mobile, R-Car, 628c2ecf20Sopenharmony_ci R-Mobile, RZ/G, SH, and SH-Mobile platforms. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciconfig PINCTRL_SH_PFC_GPIO 658c2ecf20Sopenharmony_ci bool 668c2ecf20Sopenharmony_ci select GPIOLIB 678c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 688c2ecf20Sopenharmony_ci help 698c2ecf20Sopenharmony_ci This enables pin control and GPIO drivers for SH/SH Mobile platforms 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ciconfig PINCTRL_SH_FUNC_GPIO 728c2ecf20Sopenharmony_ci bool 738c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC_GPIO 748c2ecf20Sopenharmony_ci help 758c2ecf20Sopenharmony_ci This enables legacy function GPIOs for SH platforms 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_EMEV2 788c2ecf20Sopenharmony_ci bool "pin control support for Emma Mobile EV2" if COMPILE_TEST 798c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77995 828c2ecf20Sopenharmony_ci bool "pin control support for R-Car D3" if COMPILE_TEST 838c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7794 868c2ecf20Sopenharmony_ci bool "pin control support for R-Car E2" if COMPILE_TEST 878c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77990 908c2ecf20Sopenharmony_ci bool "pin control support for R-Car E3" if COMPILE_TEST 918c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7779 948c2ecf20Sopenharmony_ci bool "pin control support for R-Car H1" if COMPILE_TEST 958c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 968c2ecf20Sopenharmony_ci 978c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7790 988c2ecf20Sopenharmony_ci bool "pin control support for R-Car H2" if COMPILE_TEST 998c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77950 1028c2ecf20Sopenharmony_ci bool "pin control support for R-Car H3 ES1.x" if COMPILE_TEST 1038c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77951 1068c2ecf20Sopenharmony_ci bool "pin control support for R-Car H3 ES2.0+" if COMPILE_TEST 1078c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7778 1108c2ecf20Sopenharmony_ci bool "pin control support for R-Car M1A" if COMPILE_TEST 1118c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7793 1148c2ecf20Sopenharmony_ci bool "pin control support for R-Car M2-N" if COMPILE_TEST 1158c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7791 1188c2ecf20Sopenharmony_ci bool "pin control support for R-Car M2-W" if COMPILE_TEST 1198c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77965 1228c2ecf20Sopenharmony_ci bool "pin control support for R-Car M3-N" if COMPILE_TEST 1238c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77960 1268c2ecf20Sopenharmony_ci bool "pin control support for R-Car M3-W" if COMPILE_TEST 1278c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77961 1308c2ecf20Sopenharmony_ci bool "pin control support for R-Car M3-W+" if COMPILE_TEST 1318c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7792 1348c2ecf20Sopenharmony_ci bool "pin control support for R-Car V2H" if COMPILE_TEST 1358c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77980 1388c2ecf20Sopenharmony_ci bool "pin control support for R-Car V3H" if COMPILE_TEST 1398c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77970 1428c2ecf20Sopenharmony_ci bool "pin control support for R-Car V3M" if COMPILE_TEST 1438c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1448c2ecf20Sopenharmony_ci 1458c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7740 1468c2ecf20Sopenharmony_ci bool "pin control support for R-Mobile A1" if COMPILE_TEST 1478c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC_GPIO 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A73A4 1508c2ecf20Sopenharmony_ci bool "pin control support for R-Mobile APE6" if COMPILE_TEST 1518c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC_GPIO 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ciconfig PINCTRL_RZA1 1548c2ecf20Sopenharmony_ci bool "pin control support for RZ/A1" 1558c2ecf20Sopenharmony_ci depends on OF 1568c2ecf20Sopenharmony_ci depends on ARCH_R7S72100 || COMPILE_TEST 1578c2ecf20Sopenharmony_ci select GENERIC_PINCONF 1588c2ecf20Sopenharmony_ci select GENERIC_PINCTRL_GROUPS 1598c2ecf20Sopenharmony_ci select GENERIC_PINMUX_FUNCTIONS 1608c2ecf20Sopenharmony_ci select GPIOLIB 1618c2ecf20Sopenharmony_ci help 1628c2ecf20Sopenharmony_ci This selects pinctrl driver for Renesas RZ/A1 platforms. 1638c2ecf20Sopenharmony_ci 1648c2ecf20Sopenharmony_ciconfig PINCTRL_RZA2 1658c2ecf20Sopenharmony_ci bool "pin control support for RZ/A2" 1668c2ecf20Sopenharmony_ci depends on OF 1678c2ecf20Sopenharmony_ci depends on ARCH_R7S9210 || COMPILE_TEST 1688c2ecf20Sopenharmony_ci select GENERIC_PINCTRL_GROUPS 1698c2ecf20Sopenharmony_ci select GENERIC_PINMUX_FUNCTIONS 1708c2ecf20Sopenharmony_ci select GPIOLIB 1718c2ecf20Sopenharmony_ci help 1728c2ecf20Sopenharmony_ci This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms. 1738c2ecf20Sopenharmony_ci 1748c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A77470 1758c2ecf20Sopenharmony_ci bool "pin control support for RZ/G1C" if COMPILE_TEST 1768c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7745 1798c2ecf20Sopenharmony_ci bool "pin control support for RZ/G1E" if COMPILE_TEST 1808c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7742 1838c2ecf20Sopenharmony_ci bool "pin control support for RZ/G1H" if COMPILE_TEST 1848c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7743 1878c2ecf20Sopenharmony_ci bool "pin control support for RZ/G1M" if COMPILE_TEST 1888c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A7744 1918c2ecf20Sopenharmony_ci bool "pin control support for RZ/G1N" if COMPILE_TEST 1928c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A774C0 1958c2ecf20Sopenharmony_ci bool "pin control support for RZ/G2E" if COMPILE_TEST 1968c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A774E1 1998c2ecf20Sopenharmony_ci bool "pin control support for RZ/G2H" if COMPILE_TEST 2008c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A774A1 2038c2ecf20Sopenharmony_ci bool "pin control support for RZ/G2M" if COMPILE_TEST 2048c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 2058c2ecf20Sopenharmony_ci 2068c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_R8A774B1 2078c2ecf20Sopenharmony_ci bool "pin control support for RZ/G2N" if COMPILE_TEST 2088c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC 2098c2ecf20Sopenharmony_ci 2108c2ecf20Sopenharmony_ciconfig PINCTRL_RZN1 2118c2ecf20Sopenharmony_ci bool "pin control support for RZ/N1" 2128c2ecf20Sopenharmony_ci depends on OF 2138c2ecf20Sopenharmony_ci depends on ARCH_RZN1 || COMPILE_TEST 2148c2ecf20Sopenharmony_ci select GENERIC_PINCONF 2158c2ecf20Sopenharmony_ci select PINMUX 2168c2ecf20Sopenharmony_ci help 2178c2ecf20Sopenharmony_ci This selects pinctrl driver for Renesas RZ/N1 devices. 2188c2ecf20Sopenharmony_ci 2198c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7203 2208c2ecf20Sopenharmony_ci bool "pin control support for SH7203" if COMPILE_TEST 2218c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7264 2248c2ecf20Sopenharmony_ci bool "pin control support for SH7264" if COMPILE_TEST 2258c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7269 2288c2ecf20Sopenharmony_ci bool "pin control support for SH7269" if COMPILE_TEST 2298c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7720 2328c2ecf20Sopenharmony_ci bool "pin control support for SH7720" if COMPILE_TEST 2338c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2348c2ecf20Sopenharmony_ci 2358c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7722 2368c2ecf20Sopenharmony_ci bool "pin control support for SH7722" if COMPILE_TEST 2378c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2388c2ecf20Sopenharmony_ci 2398c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7734 2408c2ecf20Sopenharmony_ci bool "pin control support for SH7734" if COMPILE_TEST 2418c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2428c2ecf20Sopenharmony_ci 2438c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7757 2448c2ecf20Sopenharmony_ci bool "pin control support for SH7757" if COMPILE_TEST 2458c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7785 2488c2ecf20Sopenharmony_ci bool "pin control support for SH7785" if COMPILE_TEST 2498c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2508c2ecf20Sopenharmony_ci 2518c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7786 2528c2ecf20Sopenharmony_ci bool "pin control support for SH7786" if COMPILE_TEST 2538c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH73A0 2568c2ecf20Sopenharmony_ci bool "pin control support for SH-Mobile AG5" if COMPILE_TEST 2578c2ecf20Sopenharmony_ci select PINCTRL_SH_PFC_GPIO 2588c2ecf20Sopenharmony_ci select REGULATOR 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7723 2618c2ecf20Sopenharmony_ci bool "pin control support for SH-Mobile R2" if COMPILE_TEST 2628c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2638c2ecf20Sopenharmony_ci 2648c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SH7724 2658c2ecf20Sopenharmony_ci bool "pin control support for SH-Mobile R2R" if COMPILE_TEST 2668c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2678c2ecf20Sopenharmony_ci 2688c2ecf20Sopenharmony_ciconfig PINCTRL_PFC_SHX3 2698c2ecf20Sopenharmony_ci bool "pin control support for SH-X3" if COMPILE_TEST 2708c2ecf20Sopenharmony_ci select PINCTRL_SH_FUNC_GPIO 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ciendmenu 273