162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Renesas SH and SH Mobile PINCTRL drivers
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_cimenu "Renesas pinctrl drivers"
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciconfig PINCTRL_RENESAS
962306a36Sopenharmony_ci	bool "Renesas SoC pin control support" if COMPILE_TEST && !(ARCH_RENESAS || SUPERH)
1062306a36Sopenharmony_ci	default y if ARCH_RENESAS || SUPERH
1162306a36Sopenharmony_ci	select PINCTRL_PFC_EMEV2 if ARCH_EMEV2
1262306a36Sopenharmony_ci	select PINCTRL_PFC_R8A73A4 if ARCH_R8A73A4
1362306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7740 if ARCH_R8A7740
1462306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7742 if ARCH_R8A7742
1562306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7743 if ARCH_R8A7743
1662306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7744 if ARCH_R8A7744
1762306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7745 if ARCH_R8A7745
1862306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77470 if ARCH_R8A77470
1962306a36Sopenharmony_ci	select PINCTRL_PFC_R8A774A1 if ARCH_R8A774A1
2062306a36Sopenharmony_ci	select PINCTRL_PFC_R8A774B1 if ARCH_R8A774B1
2162306a36Sopenharmony_ci	select PINCTRL_PFC_R8A774C0 if ARCH_R8A774C0
2262306a36Sopenharmony_ci	select PINCTRL_PFC_R8A774E1 if ARCH_R8A774E1
2362306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7778 if ARCH_R8A7778
2462306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7779 if ARCH_R8A7779
2562306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7790 if ARCH_R8A7790
2662306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7791 if ARCH_R8A7791
2762306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7792 if ARCH_R8A7792
2862306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7793 if ARCH_R8A7793
2962306a36Sopenharmony_ci	select PINCTRL_PFC_R8A7794 if ARCH_R8A7794
3062306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77951 if ARCH_R8A77951
3162306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77960 if ARCH_R8A77960
3262306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77961 if ARCH_R8A77961
3362306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77965 if ARCH_R8A77965
3462306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77970 if ARCH_R8A77970
3562306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77980 if ARCH_R8A77980
3662306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77990 if ARCH_R8A77990
3762306a36Sopenharmony_ci	select PINCTRL_PFC_R8A77995 if ARCH_R8A77995
3862306a36Sopenharmony_ci	select PINCTRL_PFC_R8A779A0 if ARCH_R8A779A0
3962306a36Sopenharmony_ci	select PINCTRL_PFC_R8A779F0 if ARCH_R8A779F0
4062306a36Sopenharmony_ci	select PINCTRL_PFC_R8A779G0 if ARCH_R8A779G0
4162306a36Sopenharmony_ci	select PINCTRL_RZG2L if ARCH_RZG2L
4262306a36Sopenharmony_ci	select PINCTRL_RZV2M if ARCH_R9A09G011
4362306a36Sopenharmony_ci	select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203
4462306a36Sopenharmony_ci	select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264
4562306a36Sopenharmony_ci	select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269
4662306a36Sopenharmony_ci	select PINCTRL_PFC_SH73A0 if ARCH_SH73A0
4762306a36Sopenharmony_ci	select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720
4862306a36Sopenharmony_ci	select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722
4962306a36Sopenharmony_ci	select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723
5062306a36Sopenharmony_ci	select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724
5162306a36Sopenharmony_ci	select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734
5262306a36Sopenharmony_ci	select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757
5362306a36Sopenharmony_ci	select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785
5462306a36Sopenharmony_ci	select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786
5562306a36Sopenharmony_ci	select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3
5662306a36Sopenharmony_ci	help
5762306a36Sopenharmony_ci	  This enables pin control drivers for Renesas SuperH and ARM platforms
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ciconfig PINCTRL_SH_PFC
6062306a36Sopenharmony_ci	bool
6162306a36Sopenharmony_ci	select GENERIC_PINCONF
6262306a36Sopenharmony_ci	select PINMUX
6362306a36Sopenharmony_ci	select PINCONF
6462306a36Sopenharmony_ci	help
6562306a36Sopenharmony_ci	  This enables common pin control functionality for EMMA Mobile, R-Car,
6662306a36Sopenharmony_ci	  R-Mobile, RZ/G, SH, and SH-Mobile platforms.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciconfig PINCTRL_SH_PFC_GPIO
6962306a36Sopenharmony_ci	bool
7062306a36Sopenharmony_ci	select GPIOLIB
7162306a36Sopenharmony_ci	select PINCTRL_SH_PFC
7262306a36Sopenharmony_ci	help
7362306a36Sopenharmony_ci	  This enables pin control and GPIO drivers for SH/SH Mobile platforms
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ciconfig PINCTRL_SH_FUNC_GPIO
7662306a36Sopenharmony_ci	bool
7762306a36Sopenharmony_ci	select PINCTRL_SH_PFC_GPIO
7862306a36Sopenharmony_ci	help
7962306a36Sopenharmony_ci	  This enables legacy function GPIOs for SH platforms
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ciconfig PINCTRL_PFC_EMEV2
8262306a36Sopenharmony_ci	bool "pin control support for Emma Mobile EV2" if COMPILE_TEST
8362306a36Sopenharmony_ci	select PINCTRL_SH_PFC
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77995
8662306a36Sopenharmony_ci	bool "pin control support for R-Car D3" if COMPILE_TEST
8762306a36Sopenharmony_ci	select PINCTRL_SH_PFC
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7794
9062306a36Sopenharmony_ci	bool "pin control support for R-Car E2" if COMPILE_TEST
9162306a36Sopenharmony_ci	select PINCTRL_SH_PFC
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77990
9462306a36Sopenharmony_ci	bool "pin control support for R-Car E3" if COMPILE_TEST
9562306a36Sopenharmony_ci	select PINCTRL_SH_PFC
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7779
9862306a36Sopenharmony_ci	bool "pin control support for R-Car H1" if COMPILE_TEST
9962306a36Sopenharmony_ci	select PINCTRL_SH_PFC
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7790
10262306a36Sopenharmony_ci	bool "pin control support for R-Car H2" if COMPILE_TEST
10362306a36Sopenharmony_ci	select PINCTRL_SH_PFC
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77951
10662306a36Sopenharmony_ci	bool "pin control support for R-Car H3 ES2.0+" if COMPILE_TEST
10762306a36Sopenharmony_ci	select PINCTRL_SH_PFC
10862306a36Sopenharmony_ci
10962306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7778
11062306a36Sopenharmony_ci	bool "pin control support for R-Car M1A" if COMPILE_TEST
11162306a36Sopenharmony_ci	select PINCTRL_SH_PFC
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7793
11462306a36Sopenharmony_ci	bool "pin control support for R-Car M2-N" if COMPILE_TEST
11562306a36Sopenharmony_ci	select PINCTRL_SH_PFC
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7791
11862306a36Sopenharmony_ci	bool "pin control support for R-Car M2-W" if COMPILE_TEST
11962306a36Sopenharmony_ci	select PINCTRL_SH_PFC
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77965
12262306a36Sopenharmony_ci	bool "pin control support for R-Car M3-N" if COMPILE_TEST
12362306a36Sopenharmony_ci	select PINCTRL_SH_PFC
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77960
12662306a36Sopenharmony_ci	bool "pin control support for R-Car M3-W" if COMPILE_TEST
12762306a36Sopenharmony_ci	select PINCTRL_SH_PFC
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77961
13062306a36Sopenharmony_ci	bool "pin control support for R-Car M3-W+" if COMPILE_TEST
13162306a36Sopenharmony_ci	select PINCTRL_SH_PFC
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A779F0
13462306a36Sopenharmony_ci	bool "pin control support for R-Car S4-8" if COMPILE_TEST
13562306a36Sopenharmony_ci	select PINCTRL_SH_PFC
13662306a36Sopenharmony_ci
13762306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7792
13862306a36Sopenharmony_ci	bool "pin control support for R-Car V2H" if COMPILE_TEST
13962306a36Sopenharmony_ci	select PINCTRL_SH_PFC
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77980
14262306a36Sopenharmony_ci	bool "pin control support for R-Car V3H" if COMPILE_TEST
14362306a36Sopenharmony_ci	select PINCTRL_SH_PFC
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77970
14662306a36Sopenharmony_ci	bool "pin control support for R-Car V3M" if COMPILE_TEST
14762306a36Sopenharmony_ci	select PINCTRL_SH_PFC
14862306a36Sopenharmony_ci
14962306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A779A0
15062306a36Sopenharmony_ci	bool "pin control support for R-Car V3U" if COMPILE_TEST
15162306a36Sopenharmony_ci	select PINCTRL_SH_PFC
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A779G0
15462306a36Sopenharmony_ci	bool "pin control support for R-Car V4H" if COMPILE_TEST
15562306a36Sopenharmony_ci	select PINCTRL_SH_PFC
15662306a36Sopenharmony_ci
15762306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7740
15862306a36Sopenharmony_ci	bool "pin control support for R-Mobile A1" if COMPILE_TEST
15962306a36Sopenharmony_ci	select PINCTRL_SH_PFC_GPIO
16062306a36Sopenharmony_ci
16162306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A73A4
16262306a36Sopenharmony_ci	bool "pin control support for R-Mobile APE6" if COMPILE_TEST
16362306a36Sopenharmony_ci	select PINCTRL_SH_PFC_GPIO
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ciconfig PINCTRL_RZA1
16662306a36Sopenharmony_ci	bool "pin control support for RZ/A1"
16762306a36Sopenharmony_ci	depends on OF
16862306a36Sopenharmony_ci	depends on ARCH_R7S72100 || COMPILE_TEST
16962306a36Sopenharmony_ci	select GENERIC_PINCONF
17062306a36Sopenharmony_ci	select GENERIC_PINCTRL_GROUPS
17162306a36Sopenharmony_ci	select GENERIC_PINMUX_FUNCTIONS
17262306a36Sopenharmony_ci	select GPIOLIB
17362306a36Sopenharmony_ci	help
17462306a36Sopenharmony_ci	  This selects pinctrl driver for Renesas RZ/A1 platforms.
17562306a36Sopenharmony_ci
17662306a36Sopenharmony_ciconfig PINCTRL_RZA2
17762306a36Sopenharmony_ci	bool "pin control support for RZ/A2"
17862306a36Sopenharmony_ci	depends on OF
17962306a36Sopenharmony_ci	depends on ARCH_R7S9210 || COMPILE_TEST
18062306a36Sopenharmony_ci	select GENERIC_PINCTRL_GROUPS
18162306a36Sopenharmony_ci	select GENERIC_PINMUX_FUNCTIONS
18262306a36Sopenharmony_ci	select GPIOLIB
18362306a36Sopenharmony_ci	help
18462306a36Sopenharmony_ci	  This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms.
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ciconfig PINCTRL_RZG2L
18762306a36Sopenharmony_ci	bool "pin control support for RZ/{G2L,G2UL,V2L}" if COMPILE_TEST
18862306a36Sopenharmony_ci	depends on OF
18962306a36Sopenharmony_ci	select GPIOLIB
19062306a36Sopenharmony_ci	select GENERIC_PINCTRL_GROUPS
19162306a36Sopenharmony_ci	select GENERIC_PINMUX_FUNCTIONS
19262306a36Sopenharmony_ci	select GENERIC_PINCONF
19362306a36Sopenharmony_ci	help
19462306a36Sopenharmony_ci	  This selects GPIO and pinctrl driver for Renesas RZ/{G2L,G2UL,V2L}
19562306a36Sopenharmony_ci	  platforms.
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A77470
19862306a36Sopenharmony_ci	bool "pin control support for RZ/G1C" if COMPILE_TEST
19962306a36Sopenharmony_ci	select PINCTRL_SH_PFC
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7745
20262306a36Sopenharmony_ci	bool "pin control support for RZ/G1E" if COMPILE_TEST
20362306a36Sopenharmony_ci	select PINCTRL_SH_PFC
20462306a36Sopenharmony_ci
20562306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7742
20662306a36Sopenharmony_ci	bool "pin control support for RZ/G1H" if COMPILE_TEST
20762306a36Sopenharmony_ci	select PINCTRL_SH_PFC
20862306a36Sopenharmony_ci
20962306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7743
21062306a36Sopenharmony_ci	bool "pin control support for RZ/G1M" if COMPILE_TEST
21162306a36Sopenharmony_ci	select PINCTRL_SH_PFC
21262306a36Sopenharmony_ci
21362306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A7744
21462306a36Sopenharmony_ci	bool "pin control support for RZ/G1N" if COMPILE_TEST
21562306a36Sopenharmony_ci	select PINCTRL_SH_PFC
21662306a36Sopenharmony_ci
21762306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A774C0
21862306a36Sopenharmony_ci	bool "pin control support for RZ/G2E" if COMPILE_TEST
21962306a36Sopenharmony_ci	select PINCTRL_SH_PFC
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A774E1
22262306a36Sopenharmony_ci	bool "pin control support for RZ/G2H" if COMPILE_TEST
22362306a36Sopenharmony_ci	select PINCTRL_SH_PFC
22462306a36Sopenharmony_ci
22562306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A774A1
22662306a36Sopenharmony_ci	bool "pin control support for RZ/G2M" if COMPILE_TEST
22762306a36Sopenharmony_ci	select PINCTRL_SH_PFC
22862306a36Sopenharmony_ci
22962306a36Sopenharmony_ciconfig PINCTRL_PFC_R8A774B1
23062306a36Sopenharmony_ci	bool "pin control support for RZ/G2N" if COMPILE_TEST
23162306a36Sopenharmony_ci	select PINCTRL_SH_PFC
23262306a36Sopenharmony_ci
23362306a36Sopenharmony_ciconfig PINCTRL_RZN1
23462306a36Sopenharmony_ci	bool "pin control support for RZ/N1"
23562306a36Sopenharmony_ci	depends on OF
23662306a36Sopenharmony_ci	depends on ARCH_RZN1 || COMPILE_TEST
23762306a36Sopenharmony_ci	select GENERIC_PINCONF
23862306a36Sopenharmony_ci	select PINMUX
23962306a36Sopenharmony_ci	help
24062306a36Sopenharmony_ci	  This selects pinctrl driver for Renesas RZ/N1 devices.
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_ciconfig PINCTRL_RZV2M
24362306a36Sopenharmony_ci	bool "pin control support for RZ/V2M"
24462306a36Sopenharmony_ci	depends on OF
24562306a36Sopenharmony_ci	depends on ARCH_R9A09G011 || COMPILE_TEST
24662306a36Sopenharmony_ci	select GPIOLIB
24762306a36Sopenharmony_ci	select GENERIC_PINCTRL_GROUPS
24862306a36Sopenharmony_ci	select GENERIC_PINMUX_FUNCTIONS
24962306a36Sopenharmony_ci	select GENERIC_PINCONF
25062306a36Sopenharmony_ci	help
25162306a36Sopenharmony_ci	  This selects GPIO and pinctrl driver for Renesas RZ/V2M
25262306a36Sopenharmony_ci	  platforms.
25362306a36Sopenharmony_ci
25462306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7203
25562306a36Sopenharmony_ci	bool "pin control support for SH7203" if COMPILE_TEST
25662306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7264
25962306a36Sopenharmony_ci	bool "pin control support for SH7264" if COMPILE_TEST
26062306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
26162306a36Sopenharmony_ci
26262306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7269
26362306a36Sopenharmony_ci	bool "pin control support for SH7269" if COMPILE_TEST
26462306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
26562306a36Sopenharmony_ci
26662306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7720
26762306a36Sopenharmony_ci	bool "pin control support for SH7720" if COMPILE_TEST
26862306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
26962306a36Sopenharmony_ci
27062306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7722
27162306a36Sopenharmony_ci	bool "pin control support for SH7722" if COMPILE_TEST
27262306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
27362306a36Sopenharmony_ci
27462306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7734
27562306a36Sopenharmony_ci	bool "pin control support for SH7734" if COMPILE_TEST
27662306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
27762306a36Sopenharmony_ci
27862306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7757
27962306a36Sopenharmony_ci	bool "pin control support for SH7757" if COMPILE_TEST
28062306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
28162306a36Sopenharmony_ci
28262306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7785
28362306a36Sopenharmony_ci	bool "pin control support for SH7785" if COMPILE_TEST
28462306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
28562306a36Sopenharmony_ci
28662306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7786
28762306a36Sopenharmony_ci	bool "pin control support for SH7786" if COMPILE_TEST
28862306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
28962306a36Sopenharmony_ci
29062306a36Sopenharmony_ciconfig PINCTRL_PFC_SH73A0
29162306a36Sopenharmony_ci	bool "pin control support for SH-Mobile AG5" if COMPILE_TEST
29262306a36Sopenharmony_ci	select PINCTRL_SH_PFC_GPIO
29362306a36Sopenharmony_ci	select REGULATOR
29462306a36Sopenharmony_ci
29562306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7723
29662306a36Sopenharmony_ci	bool "pin control support for SH-Mobile R2" if COMPILE_TEST
29762306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
29862306a36Sopenharmony_ci
29962306a36Sopenharmony_ciconfig PINCTRL_PFC_SH7724
30062306a36Sopenharmony_ci	bool "pin control support for SH-Mobile R2R" if COMPILE_TEST
30162306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
30262306a36Sopenharmony_ci
30362306a36Sopenharmony_ciconfig PINCTRL_PFC_SHX3
30462306a36Sopenharmony_ci	bool "pin control support for SH-X3" if COMPILE_TEST
30562306a36Sopenharmony_ci	select PINCTRL_SH_FUNC_GPIO
30662306a36Sopenharmony_ci
30762306a36Sopenharmony_ciendmenu
308