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