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