• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_R8A779A0 if ARCH_R8A779A0
40	select PINCTRL_RZG2L if ARCH_R9A07G044
41	select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203
42	select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264
43	select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269
44	select PINCTRL_PFC_SH73A0 if ARCH_SH73A0
45	select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720
46	select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722
47	select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723
48	select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724
49	select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734
50	select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757
51	select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785
52	select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786
53	select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3
54	help
55	  This enables pin control drivers for Renesas SuperH and ARM platforms
56
57config PINCTRL_SH_PFC
58	bool
59	select GENERIC_PINCONF
60	select PINMUX
61	select PINCONF
62	help
63	  This enables common pin control functionality for EMMA Mobile, R-Car,
64	  R-Mobile, RZ/G, SH, and SH-Mobile platforms.
65
66config PINCTRL_SH_PFC_GPIO
67	bool
68	select GPIOLIB
69	select PINCTRL_SH_PFC
70	help
71	  This enables pin control and GPIO drivers for SH/SH Mobile platforms
72
73config PINCTRL_SH_FUNC_GPIO
74	bool
75	select PINCTRL_SH_PFC_GPIO
76	help
77	  This enables legacy function GPIOs for SH platforms
78
79config PINCTRL_PFC_EMEV2
80	bool "pin control support for Emma Mobile EV2" if COMPILE_TEST
81	select PINCTRL_SH_PFC
82
83config PINCTRL_PFC_R8A77995
84	bool "pin control support for R-Car D3" if COMPILE_TEST
85	select PINCTRL_SH_PFC
86
87config PINCTRL_PFC_R8A7794
88	bool "pin control support for R-Car E2" if COMPILE_TEST
89	select PINCTRL_SH_PFC
90
91config PINCTRL_PFC_R8A77990
92	bool "pin control support for R-Car E3" if COMPILE_TEST
93	select PINCTRL_SH_PFC
94
95config PINCTRL_PFC_R8A7779
96	bool "pin control support for R-Car H1" if COMPILE_TEST
97	select PINCTRL_SH_PFC
98
99config PINCTRL_PFC_R8A7790
100	bool "pin control support for R-Car H2" if COMPILE_TEST
101	select PINCTRL_SH_PFC
102
103config PINCTRL_PFC_R8A77950
104	bool "pin control support for R-Car H3 ES1.x" if COMPILE_TEST
105	select PINCTRL_SH_PFC
106
107config PINCTRL_PFC_R8A77951
108	bool "pin control support for R-Car H3 ES2.0+" if COMPILE_TEST
109	select PINCTRL_SH_PFC
110
111config PINCTRL_PFC_R8A7778
112	bool "pin control support for R-Car M1A" if COMPILE_TEST
113	select PINCTRL_SH_PFC
114
115config PINCTRL_PFC_R8A7793
116	bool "pin control support for R-Car M2-N" if COMPILE_TEST
117	select PINCTRL_SH_PFC
118
119config PINCTRL_PFC_R8A7791
120	bool "pin control support for R-Car M2-W" if COMPILE_TEST
121	select PINCTRL_SH_PFC
122
123config PINCTRL_PFC_R8A77965
124	bool "pin control support for R-Car M3-N" if COMPILE_TEST
125	select PINCTRL_SH_PFC
126
127config PINCTRL_PFC_R8A77960
128	bool "pin control support for R-Car M3-W" if COMPILE_TEST
129	select PINCTRL_SH_PFC
130
131config PINCTRL_PFC_R8A77961
132	bool "pin control support for R-Car M3-W+" if COMPILE_TEST
133	select PINCTRL_SH_PFC
134
135config PINCTRL_PFC_R8A7792
136	bool "pin control support for R-Car V2H" if COMPILE_TEST
137	select PINCTRL_SH_PFC
138
139config PINCTRL_PFC_R8A77980
140	bool "pin control support for R-Car V3H" if COMPILE_TEST
141	select PINCTRL_SH_PFC
142
143config PINCTRL_PFC_R8A77970
144	bool "pin control support for R-Car V3M" if COMPILE_TEST
145	select PINCTRL_SH_PFC
146
147config PINCTRL_PFC_R8A779A0
148	bool "pin control support for R-Car V3U" if COMPILE_TEST
149	select PINCTRL_SH_PFC
150
151config PINCTRL_PFC_R8A7740
152	bool "pin control support for R-Mobile A1" if COMPILE_TEST
153	select PINCTRL_SH_PFC_GPIO
154
155config PINCTRL_PFC_R8A73A4
156	bool "pin control support for R-Mobile APE6" if COMPILE_TEST
157	select PINCTRL_SH_PFC_GPIO
158
159config PINCTRL_RZA1
160	bool "pin control support for RZ/A1"
161	depends on OF
162	depends on ARCH_R7S72100 || COMPILE_TEST
163	select GENERIC_PINCONF
164	select GENERIC_PINCTRL_GROUPS
165	select GENERIC_PINMUX_FUNCTIONS
166	select GPIOLIB
167	help
168	  This selects pinctrl driver for Renesas RZ/A1 platforms.
169
170config PINCTRL_RZA2
171	bool "pin control support for RZ/A2"
172	depends on OF
173	depends on ARCH_R7S9210 || COMPILE_TEST
174	select GENERIC_PINCTRL_GROUPS
175	select GENERIC_PINMUX_FUNCTIONS
176	select GPIOLIB
177	help
178	  This selects GPIO and pinctrl driver for Renesas RZ/A2 platforms.
179
180config PINCTRL_RZG2L
181	bool "pin control support for RZ/G2L" if COMPILE_TEST
182	depends on OF
183	select GPIOLIB
184	select GENERIC_PINCTRL_GROUPS
185	select GENERIC_PINMUX_FUNCTIONS
186	select GENERIC_PINCONF
187	help
188	  This selects GPIO and pinctrl driver for Renesas RZ/G2L platforms.
189
190config PINCTRL_PFC_R8A77470
191	bool "pin control support for RZ/G1C" if COMPILE_TEST
192	select PINCTRL_SH_PFC
193
194config PINCTRL_PFC_R8A7745
195	bool "pin control support for RZ/G1E" if COMPILE_TEST
196	select PINCTRL_SH_PFC
197
198config PINCTRL_PFC_R8A7742
199	bool "pin control support for RZ/G1H" if COMPILE_TEST
200	select PINCTRL_SH_PFC
201
202config PINCTRL_PFC_R8A7743
203	bool "pin control support for RZ/G1M" if COMPILE_TEST
204	select PINCTRL_SH_PFC
205
206config PINCTRL_PFC_R8A7744
207	bool "pin control support for RZ/G1N" if COMPILE_TEST
208	select PINCTRL_SH_PFC
209
210config PINCTRL_PFC_R8A774C0
211	bool "pin control support for RZ/G2E" if COMPILE_TEST
212	select PINCTRL_SH_PFC
213
214config PINCTRL_PFC_R8A774E1
215	bool "pin control support for RZ/G2H" if COMPILE_TEST
216	select PINCTRL_SH_PFC
217
218config PINCTRL_PFC_R8A774A1
219	bool "pin control support for RZ/G2M" if COMPILE_TEST
220	select PINCTRL_SH_PFC
221
222config PINCTRL_PFC_R8A774B1
223	bool "pin control support for RZ/G2N" if COMPILE_TEST
224	select PINCTRL_SH_PFC
225
226config PINCTRL_RZN1
227	bool "pin control support for RZ/N1"
228	depends on OF
229	depends on ARCH_RZN1 || COMPILE_TEST
230	select GENERIC_PINCONF
231	select PINMUX
232	help
233	  This selects pinctrl driver for Renesas RZ/N1 devices.
234
235config PINCTRL_PFC_SH7203
236	bool "pin control support for SH7203" if COMPILE_TEST
237	select PINCTRL_SH_FUNC_GPIO
238
239config PINCTRL_PFC_SH7264
240	bool "pin control support for SH7264" if COMPILE_TEST
241	select PINCTRL_SH_FUNC_GPIO
242
243config PINCTRL_PFC_SH7269
244	bool "pin control support for SH7269" if COMPILE_TEST
245	select PINCTRL_SH_FUNC_GPIO
246
247config PINCTRL_PFC_SH7720
248	bool "pin control support for SH7720" if COMPILE_TEST
249	select PINCTRL_SH_FUNC_GPIO
250
251config PINCTRL_PFC_SH7722
252	bool "pin control support for SH7722" if COMPILE_TEST
253	select PINCTRL_SH_FUNC_GPIO
254
255config PINCTRL_PFC_SH7734
256	bool "pin control support for SH7734" if COMPILE_TEST
257	select PINCTRL_SH_FUNC_GPIO
258
259config PINCTRL_PFC_SH7757
260	bool "pin control support for SH7757" if COMPILE_TEST
261	select PINCTRL_SH_FUNC_GPIO
262
263config PINCTRL_PFC_SH7785
264	bool "pin control support for SH7785" if COMPILE_TEST
265	select PINCTRL_SH_FUNC_GPIO
266
267config PINCTRL_PFC_SH7786
268	bool "pin control support for SH7786" if COMPILE_TEST
269	select PINCTRL_SH_FUNC_GPIO
270
271config PINCTRL_PFC_SH73A0
272	bool "pin control support for SH-Mobile AG5" if COMPILE_TEST
273	select PINCTRL_SH_PFC_GPIO
274	select REGULATOR
275
276config PINCTRL_PFC_SH7723
277	bool "pin control support for SH-Mobile R2" if COMPILE_TEST
278	select PINCTRL_SH_FUNC_GPIO
279
280config PINCTRL_PFC_SH7724
281	bool "pin control support for SH-Mobile R2R" if COMPILE_TEST
282	select PINCTRL_SH_FUNC_GPIO
283
284config PINCTRL_PFC_SHX3
285	bool "pin control support for SH-X3" if COMPILE_TEST
286	select PINCTRL_SH_FUNC_GPIO
287
288endmenu
289