xref: /openbmc/linux/drivers/pinctrl/renesas/Kconfig (revision 2f190ac2)
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	help
244	  This selects pinctrl driver for Renesas RZ/N1 devices.
245
246config PINCTRL_RZV2M
247	bool "pin control support for RZ/V2M"
248	depends on OF
249	depends on ARCH_R9A09G011 || COMPILE_TEST
250	select GPIOLIB
251	select GENERIC_PINCTRL_GROUPS
252	select GENERIC_PINMUX_FUNCTIONS
253	select GENERIC_PINCONF
254	help
255	  This selects GPIO and pinctrl driver for Renesas RZ/V2M
256	  platforms.
257
258config PINCTRL_PFC_SH7203
259	bool "pin control support for SH7203" if COMPILE_TEST
260	select PINCTRL_SH_FUNC_GPIO
261
262config PINCTRL_PFC_SH7264
263	bool "pin control support for SH7264" if COMPILE_TEST
264	select PINCTRL_SH_FUNC_GPIO
265
266config PINCTRL_PFC_SH7269
267	bool "pin control support for SH7269" if COMPILE_TEST
268	select PINCTRL_SH_FUNC_GPIO
269
270config PINCTRL_PFC_SH7720
271	bool "pin control support for SH7720" if COMPILE_TEST
272	select PINCTRL_SH_FUNC_GPIO
273
274config PINCTRL_PFC_SH7722
275	bool "pin control support for SH7722" if COMPILE_TEST
276	select PINCTRL_SH_FUNC_GPIO
277
278config PINCTRL_PFC_SH7734
279	bool "pin control support for SH7734" if COMPILE_TEST
280	select PINCTRL_SH_FUNC_GPIO
281
282config PINCTRL_PFC_SH7757
283	bool "pin control support for SH7757" if COMPILE_TEST
284	select PINCTRL_SH_FUNC_GPIO
285
286config PINCTRL_PFC_SH7785
287	bool "pin control support for SH7785" if COMPILE_TEST
288	select PINCTRL_SH_FUNC_GPIO
289
290config PINCTRL_PFC_SH7786
291	bool "pin control support for SH7786" if COMPILE_TEST
292	select PINCTRL_SH_FUNC_GPIO
293
294config PINCTRL_PFC_SH73A0
295	bool "pin control support for SH-Mobile AG5" if COMPILE_TEST
296	select PINCTRL_SH_PFC_GPIO
297	select REGULATOR
298
299config PINCTRL_PFC_SH7723
300	bool "pin control support for SH-Mobile R2" if COMPILE_TEST
301	select PINCTRL_SH_FUNC_GPIO
302
303config PINCTRL_PFC_SH7724
304	bool "pin control support for SH-Mobile R2R" if COMPILE_TEST
305	select PINCTRL_SH_FUNC_GPIO
306
307config PINCTRL_PFC_SHX3
308	bool "pin control support for SH-X3" if COMPILE_TEST
309	select PINCTRL_SH_FUNC_GPIO
310
311endmenu
312