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