xref: /linux/drivers/pinctrl/renesas/Kconfig (revision 2a6b6c9a226279b4f6668450ddb21ae655558087)
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_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_R8A77951
107	bool "pin control support for R-Car H3 ES2.0+" if COMPILE_TEST
108	select PINCTRL_SH_PFC
109
110config PINCTRL_PFC_R8A7778
111	bool "pin control support for R-Car M1A" if COMPILE_TEST
112	select PINCTRL_SH_PFC
113
114config PINCTRL_PFC_R8A7793
115	bool "pin control support for R-Car M2-N" if COMPILE_TEST
116	select PINCTRL_SH_PFC
117
118config PINCTRL_PFC_R8A7791
119	bool "pin control support for R-Car M2-W" if COMPILE_TEST
120	select PINCTRL_SH_PFC
121
122config PINCTRL_PFC_R8A77965
123	bool "pin control support for R-Car M3-N" if COMPILE_TEST
124	select PINCTRL_SH_PFC
125
126config PINCTRL_PFC_R8A77960
127	bool "pin control support for R-Car M3-W" if COMPILE_TEST
128	select PINCTRL_SH_PFC
129
130config PINCTRL_PFC_R8A77961
131	bool "pin control support for R-Car M3-W+" if COMPILE_TEST
132	select PINCTRL_SH_PFC
133
134config PINCTRL_PFC_R8A779F0
135	bool "pin control support for R-Car S4-8" if COMPILE_TEST
136	select PINCTRL_SH_PFC
137
138config PINCTRL_PFC_R8A7792
139	bool "pin control support for R-Car V2H" if COMPILE_TEST
140	select PINCTRL_SH_PFC
141
142config PINCTRL_PFC_R8A77980
143	bool "pin control support for R-Car V3H" if COMPILE_TEST
144	select PINCTRL_SH_PFC
145
146config PINCTRL_PFC_R8A77970
147	bool "pin control support for R-Car V3M" if COMPILE_TEST
148	select PINCTRL_SH_PFC
149
150config PINCTRL_PFC_R8A779A0
151	bool "pin control support for R-Car V3U" if COMPILE_TEST
152	select PINCTRL_SH_PFC
153
154config PINCTRL_PFC_R8A779G0
155	bool "pin control support for R-Car V4H" if COMPILE_TEST
156	select PINCTRL_SH_PFC
157
158config PINCTRL_PFC_R8A779H0
159	bool "pin control support for R-Car V4M" 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 GPIOLIB_IRQCHIP
196	select GENERIC_PINCTRL_GROUPS
197	select GENERIC_PINMUX_FUNCTIONS
198	select GENERIC_PINCONF
199	select IRQ_DOMAIN_HIERARCHY
200	help
201	  This selects GPIO and pinctrl driver for Renesas RZ/{G2L,G2UL,V2L}
202	  platforms.
203
204config PINCTRL_PFC_R8A77470
205	bool "pin control support for RZ/G1C" if COMPILE_TEST
206	select PINCTRL_SH_PFC
207
208config PINCTRL_PFC_R8A7745
209	bool "pin control support for RZ/G1E" if COMPILE_TEST
210	select PINCTRL_SH_PFC
211
212config PINCTRL_PFC_R8A7742
213	bool "pin control support for RZ/G1H" if COMPILE_TEST
214	select PINCTRL_SH_PFC
215
216config PINCTRL_PFC_R8A7743
217	bool "pin control support for RZ/G1M" if COMPILE_TEST
218	select PINCTRL_SH_PFC
219
220config PINCTRL_PFC_R8A7744
221	bool "pin control support for RZ/G1N" if COMPILE_TEST
222	select PINCTRL_SH_PFC
223
224config PINCTRL_PFC_R8A774C0
225	bool "pin control support for RZ/G2E" if COMPILE_TEST
226	select PINCTRL_SH_PFC
227
228config PINCTRL_PFC_R8A774E1
229	bool "pin control support for RZ/G2H" if COMPILE_TEST
230	select PINCTRL_SH_PFC
231
232config PINCTRL_PFC_R8A774A1
233	bool "pin control support for RZ/G2M" if COMPILE_TEST
234	select PINCTRL_SH_PFC
235
236config PINCTRL_PFC_R8A774B1
237	bool "pin control support for RZ/G2N" if COMPILE_TEST
238	select PINCTRL_SH_PFC
239
240config PINCTRL_RZN1
241	bool "pin control support for RZ/N1"
242	depends on OF
243	depends on ARCH_RZN1 || COMPILE_TEST
244	select GENERIC_PINCONF
245	select PINMUX
246	help
247	  This selects pinctrl driver for Renesas RZ/N1 devices.
248
249config PINCTRL_RZV2M
250	bool "pin control support for RZ/V2M"
251	depends on OF
252	depends on ARCH_R9A09G011 || COMPILE_TEST
253	select GPIOLIB
254	select GENERIC_PINCTRL_GROUPS
255	select GENERIC_PINMUX_FUNCTIONS
256	select GENERIC_PINCONF
257	help
258	  This selects GPIO and pinctrl driver for Renesas RZ/V2M
259	  platforms.
260
261config PINCTRL_PFC_SH7203
262	bool "pin control support for SH7203" if COMPILE_TEST
263	select PINCTRL_SH_FUNC_GPIO
264
265config PINCTRL_PFC_SH7264
266	bool "pin control support for SH7264" if COMPILE_TEST
267	select PINCTRL_SH_FUNC_GPIO
268
269config PINCTRL_PFC_SH7269
270	bool "pin control support for SH7269" if COMPILE_TEST
271	select PINCTRL_SH_FUNC_GPIO
272
273config PINCTRL_PFC_SH7720
274	bool "pin control support for SH7720" if COMPILE_TEST
275	select PINCTRL_SH_FUNC_GPIO
276
277config PINCTRL_PFC_SH7722
278	bool "pin control support for SH7722" if COMPILE_TEST
279	select PINCTRL_SH_FUNC_GPIO
280
281config PINCTRL_PFC_SH7734
282	bool "pin control support for SH7734" if COMPILE_TEST
283	select PINCTRL_SH_FUNC_GPIO
284
285config PINCTRL_PFC_SH7757
286	bool "pin control support for SH7757" if COMPILE_TEST
287	select PINCTRL_SH_FUNC_GPIO
288
289config PINCTRL_PFC_SH7785
290	bool "pin control support for SH7785" if COMPILE_TEST
291	select PINCTRL_SH_FUNC_GPIO
292
293config PINCTRL_PFC_SH7786
294	bool "pin control support for SH7786" if COMPILE_TEST
295	select PINCTRL_SH_FUNC_GPIO
296
297config PINCTRL_PFC_SH73A0
298	bool "pin control support for SH-Mobile AG5" if COMPILE_TEST
299	select PINCTRL_SH_PFC_GPIO
300	select REGULATOR
301
302config PINCTRL_PFC_SH7723
303	bool "pin control support for SH-Mobile R2" if COMPILE_TEST
304	select PINCTRL_SH_FUNC_GPIO
305
306config PINCTRL_PFC_SH7724
307	bool "pin control support for SH-Mobile R2R" if COMPILE_TEST
308	select PINCTRL_SH_FUNC_GPIO
309
310config PINCTRL_PFC_SHX3
311	bool "pin control support for SH-X3" if COMPILE_TEST
312	select PINCTRL_SH_FUNC_GPIO
313
314endmenu
315