xref: /linux/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c (revision 0883c2c06fb5bcf5b9e008270827e63c09a88c1e)
1 /*
2  * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program5 is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  */
14 
15 #include <linux/kernel.h>
16 #include <linux/module.h>
17 #include <linux/pinctrl/pinctrl.h>
18 #include <linux/platform_device.h>
19 
20 #include "pinctrl-uniphier.h"
21 
22 #define DRIVER_NAME "ph1-pro4-pinctrl"
23 
24 static const struct pinctrl_pin_desc ph1_pro4_pins[] = {
25 	UNIPHIER_PINCTRL_PIN(0, "CK24O", UNIPHIER_PIN_IECTRL_NONE,
26 			     0, UNIPHIER_PIN_DRV_4_8,
27 			     0, UNIPHIER_PIN_PULL_DOWN),
28 	UNIPHIER_PINCTRL_PIN(1, "VC27A", UNIPHIER_PIN_IECTRL_NONE,
29 			     1, UNIPHIER_PIN_DRV_4_8,
30 			     1, UNIPHIER_PIN_PULL_DOWN),
31 	UNIPHIER_PINCTRL_PIN(2, "CK27AI", UNIPHIER_PIN_IECTRL_NONE,
32 			     2, UNIPHIER_PIN_DRV_4_8,
33 			     2, UNIPHIER_PIN_PULL_DOWN),
34 	UNIPHIER_PINCTRL_PIN(3, "CK27AO", UNIPHIER_PIN_IECTRL_NONE,
35 			     3, UNIPHIER_PIN_DRV_4_8,
36 			     3, UNIPHIER_PIN_PULL_DOWN),
37 	UNIPHIER_PINCTRL_PIN(4, "CKSEL", UNIPHIER_PIN_IECTRL_NONE,
38 			     4, UNIPHIER_PIN_DRV_4_8,
39 			     4, UNIPHIER_PIN_PULL_UP),
40 	UNIPHIER_PINCTRL_PIN(5, "CK27AV", UNIPHIER_PIN_IECTRL_NONE,
41 			     5, UNIPHIER_PIN_DRV_4_8,
42 			     5, UNIPHIER_PIN_PULL_DOWN),
43 	UNIPHIER_PINCTRL_PIN(6, "AEXCKA", UNIPHIER_PIN_IECTRL_NONE,
44 			     6, UNIPHIER_PIN_DRV_4_8,
45 			     6, UNIPHIER_PIN_PULL_DOWN),
46 	UNIPHIER_PINCTRL_PIN(7, "ASEL", UNIPHIER_PIN_IECTRL_NONE,
47 			     7, UNIPHIER_PIN_DRV_4_8,
48 			     7, UNIPHIER_PIN_PULL_DOWN),
49 	UNIPHIER_PINCTRL_PIN(8, "ARCRESET", UNIPHIER_PIN_IECTRL_NONE,
50 			     8, UNIPHIER_PIN_DRV_4_8,
51 			     8, UNIPHIER_PIN_PULL_DOWN),
52 	UNIPHIER_PINCTRL_PIN(9, "ARCUNLOCK", UNIPHIER_PIN_IECTRL_NONE,
53 			     9, UNIPHIER_PIN_DRV_4_8,
54 			     9, UNIPHIER_PIN_PULL_DOWN),
55 	UNIPHIER_PINCTRL_PIN(10, "XSRST", UNIPHIER_PIN_IECTRL_NONE,
56 			     10, UNIPHIER_PIN_DRV_4_8,
57 			     10, UNIPHIER_PIN_PULL_DOWN),
58 	UNIPHIER_PINCTRL_PIN(11, "XNMIRQ", UNIPHIER_PIN_IECTRL_NONE,
59 			     11, UNIPHIER_PIN_DRV_4_8,
60 			     11, UNIPHIER_PIN_PULL_UP),
61 	UNIPHIER_PINCTRL_PIN(12, "XSCIRQ", UNIPHIER_PIN_IECTRL_NONE,
62 			     12, UNIPHIER_PIN_DRV_4_8,
63 			     12, UNIPHIER_PIN_PULL_UP),
64 	UNIPHIER_PINCTRL_PIN(13, "EXTRG", UNIPHIER_PIN_IECTRL_NONE,
65 			     13, UNIPHIER_PIN_DRV_4_8,
66 			     13, UNIPHIER_PIN_PULL_DOWN),
67 	UNIPHIER_PINCTRL_PIN(14, "TRCCLK", UNIPHIER_PIN_IECTRL_NONE,
68 			     14, UNIPHIER_PIN_DRV_4_8,
69 			     14, UNIPHIER_PIN_PULL_DOWN),
70 	UNIPHIER_PINCTRL_PIN(15, "TRCCTL", UNIPHIER_PIN_IECTRL_NONE,
71 			     15, UNIPHIER_PIN_DRV_4_8,
72 			     15, UNIPHIER_PIN_PULL_DOWN),
73 	UNIPHIER_PINCTRL_PIN(16, "TRCD0", UNIPHIER_PIN_IECTRL_NONE,
74 			     16, UNIPHIER_PIN_DRV_4_8,
75 			     16, UNIPHIER_PIN_PULL_DOWN),
76 	UNIPHIER_PINCTRL_PIN(17, "TRCD1", UNIPHIER_PIN_IECTRL_NONE,
77 			     17, UNIPHIER_PIN_DRV_4_8,
78 			     17, UNIPHIER_PIN_PULL_DOWN),
79 	UNIPHIER_PINCTRL_PIN(18, "TRCD2", UNIPHIER_PIN_IECTRL_NONE,
80 			     18, UNIPHIER_PIN_DRV_4_8,
81 			     18, UNIPHIER_PIN_PULL_DOWN),
82 	UNIPHIER_PINCTRL_PIN(19, "TRCD3", UNIPHIER_PIN_IECTRL_NONE,
83 			     19, UNIPHIER_PIN_DRV_4_8,
84 			     19, UNIPHIER_PIN_PULL_DOWN),
85 	UNIPHIER_PINCTRL_PIN(20, "TRCD4", UNIPHIER_PIN_IECTRL_NONE,
86 			     20, UNIPHIER_PIN_DRV_4_8,
87 			     20, UNIPHIER_PIN_PULL_DOWN),
88 	UNIPHIER_PINCTRL_PIN(21, "TRCD5", UNIPHIER_PIN_IECTRL_NONE,
89 			     21, UNIPHIER_PIN_DRV_4_8,
90 			     21, UNIPHIER_PIN_PULL_DOWN),
91 	UNIPHIER_PINCTRL_PIN(22, "TRCD6", UNIPHIER_PIN_IECTRL_NONE,
92 			     22, UNIPHIER_PIN_DRV_4_8,
93 			     22, UNIPHIER_PIN_PULL_DOWN),
94 	UNIPHIER_PINCTRL_PIN(23, "TRCD7", UNIPHIER_PIN_IECTRL_NONE,
95 			     23, UNIPHIER_PIN_DRV_4_8,
96 			     23, UNIPHIER_PIN_PULL_DOWN),
97 	UNIPHIER_PINCTRL_PIN(24, "XECS1", UNIPHIER_PIN_IECTRL_NONE,
98 			     24, UNIPHIER_PIN_DRV_4_8,
99 			     24, UNIPHIER_PIN_PULL_UP),
100 	UNIPHIER_PINCTRL_PIN(25, "ERXW", UNIPHIER_PIN_IECTRL_NONE,
101 			     25, UNIPHIER_PIN_DRV_4_8,
102 			     25, UNIPHIER_PIN_PULL_UP),
103 	UNIPHIER_PINCTRL_PIN(26, "XERWE0", UNIPHIER_PIN_IECTRL_NONE,
104 			     26, UNIPHIER_PIN_DRV_4_8,
105 			     26, UNIPHIER_PIN_PULL_UP),
106 	UNIPHIER_PINCTRL_PIN(27, "XERWE1", UNIPHIER_PIN_IECTRL_NONE,
107 			     27, UNIPHIER_PIN_DRV_4_8,
108 			     27, UNIPHIER_PIN_PULL_UP),
109 	UNIPHIER_PINCTRL_PIN(28, "ES0", UNIPHIER_PIN_IECTRL_NONE,
110 			     28, UNIPHIER_PIN_DRV_4_8,
111 			     28, UNIPHIER_PIN_PULL_DOWN),
112 	UNIPHIER_PINCTRL_PIN(29, "ES1", UNIPHIER_PIN_IECTRL_NONE,
113 			     29, UNIPHIER_PIN_DRV_4_8,
114 			     29, UNIPHIER_PIN_PULL_DOWN),
115 	UNIPHIER_PINCTRL_PIN(30, "ES2", UNIPHIER_PIN_IECTRL_NONE,
116 			     30, UNIPHIER_PIN_DRV_4_8,
117 			     30, UNIPHIER_PIN_PULL_DOWN),
118 	UNIPHIER_PINCTRL_PIN(31, "ED0", UNIPHIER_PIN_IECTRL_NONE,
119 			     31, UNIPHIER_PIN_DRV_4_8,
120 			     31, UNIPHIER_PIN_PULL_DOWN),
121 	UNIPHIER_PINCTRL_PIN(32, "ED1", UNIPHIER_PIN_IECTRL_NONE,
122 			     32, UNIPHIER_PIN_DRV_4_8,
123 			     32, UNIPHIER_PIN_PULL_DOWN),
124 	UNIPHIER_PINCTRL_PIN(33, "ED2", UNIPHIER_PIN_IECTRL_NONE,
125 			     33, UNIPHIER_PIN_DRV_4_8,
126 			     33, UNIPHIER_PIN_PULL_DOWN),
127 	UNIPHIER_PINCTRL_PIN(34, "ED3", UNIPHIER_PIN_IECTRL_NONE,
128 			     34, UNIPHIER_PIN_DRV_4_8,
129 			     34, UNIPHIER_PIN_PULL_DOWN),
130 	UNIPHIER_PINCTRL_PIN(35, "ED4", UNIPHIER_PIN_IECTRL_NONE,
131 			     35, UNIPHIER_PIN_DRV_4_8,
132 			     35, UNIPHIER_PIN_PULL_DOWN),
133 	UNIPHIER_PINCTRL_PIN(36, "ED5", UNIPHIER_PIN_IECTRL_NONE,
134 			     36, UNIPHIER_PIN_DRV_4_8,
135 			     36, UNIPHIER_PIN_PULL_DOWN),
136 	UNIPHIER_PINCTRL_PIN(37, "ED6", UNIPHIER_PIN_IECTRL_NONE,
137 			     37, UNIPHIER_PIN_DRV_4_8,
138 			     37, UNIPHIER_PIN_PULL_DOWN),
139 	UNIPHIER_PINCTRL_PIN(38, "ED7", UNIPHIER_PIN_IECTRL_NONE,
140 			     38, UNIPHIER_PIN_DRV_4_8,
141 			     38, UNIPHIER_PIN_PULL_DOWN),
142 	UNIPHIER_PINCTRL_PIN(39, "BOOTSWAP", UNIPHIER_PIN_IECTRL_NONE,
143 			     39, UNIPHIER_PIN_DRV_NONE,
144 			     39, UNIPHIER_PIN_PULL_UP),
145 	UNIPHIER_PINCTRL_PIN(40, "NFD0", UNIPHIER_PIN_IECTRL_NONE,
146 			     2, UNIPHIER_PIN_DRV_8_12_16_20,
147 			     40, UNIPHIER_PIN_PULL_UP),
148 	UNIPHIER_PINCTRL_PIN(41, "NFD1", UNIPHIER_PIN_IECTRL_NONE,
149 			     3, UNIPHIER_PIN_DRV_8_12_16_20,
150 			     41, UNIPHIER_PIN_PULL_UP),
151 	UNIPHIER_PINCTRL_PIN(42, "NFD2", UNIPHIER_PIN_IECTRL_NONE,
152 			     4, UNIPHIER_PIN_DRV_8_12_16_20,
153 			     42, UNIPHIER_PIN_PULL_UP),
154 	UNIPHIER_PINCTRL_PIN(43, "NFD3", UNIPHIER_PIN_IECTRL_NONE,
155 			     5, UNIPHIER_PIN_DRV_8_12_16_20,
156 			     43, UNIPHIER_PIN_PULL_UP),
157 	UNIPHIER_PINCTRL_PIN(44, "NFD4", UNIPHIER_PIN_IECTRL_NONE,
158 			     6, UNIPHIER_PIN_DRV_8_12_16_20,
159 			     44, UNIPHIER_PIN_PULL_UP),
160 	UNIPHIER_PINCTRL_PIN(45, "NFD5", UNIPHIER_PIN_IECTRL_NONE,
161 			     7, UNIPHIER_PIN_DRV_8_12_16_20,
162 			     45, UNIPHIER_PIN_PULL_UP),
163 	UNIPHIER_PINCTRL_PIN(46, "NFD6", UNIPHIER_PIN_IECTRL_NONE,
164 			     8, UNIPHIER_PIN_DRV_8_12_16_20,
165 			     46, UNIPHIER_PIN_PULL_UP),
166 	UNIPHIER_PINCTRL_PIN(47, "NFD7", UNIPHIER_PIN_IECTRL_NONE,
167 			     9, UNIPHIER_PIN_DRV_8_12_16_20,
168 			     47, UNIPHIER_PIN_PULL_UP),
169 	UNIPHIER_PINCTRL_PIN(48, "NFALE", UNIPHIER_PIN_IECTRL_NONE,
170 			     48, UNIPHIER_PIN_DRV_4_8,
171 			     48, UNIPHIER_PIN_PULL_DOWN),
172 	UNIPHIER_PINCTRL_PIN(49, "NFCLE", UNIPHIER_PIN_IECTRL_NONE,
173 			     49, UNIPHIER_PIN_DRV_4_8,
174 			     49, UNIPHIER_PIN_PULL_DOWN),
175 	UNIPHIER_PINCTRL_PIN(50, "XNFRE", UNIPHIER_PIN_IECTRL_NONE,
176 			     50, UNIPHIER_PIN_DRV_4_8,
177 			     50, UNIPHIER_PIN_PULL_UP),
178 	UNIPHIER_PINCTRL_PIN(51, "XNFWE", UNIPHIER_PIN_IECTRL_NONE,
179 			     0, UNIPHIER_PIN_DRV_8_12_16_20,
180 			     51, UNIPHIER_PIN_PULL_UP),
181 	UNIPHIER_PINCTRL_PIN(52, "XNFWP", UNIPHIER_PIN_IECTRL_NONE,
182 			     52, UNIPHIER_PIN_DRV_4_8,
183 			     52, UNIPHIER_PIN_PULL_DOWN),
184 	UNIPHIER_PINCTRL_PIN(53, "XNFCE0", UNIPHIER_PIN_IECTRL_NONE,
185 			     1, UNIPHIER_PIN_DRV_8_12_16_20,
186 			     53, UNIPHIER_PIN_PULL_UP),
187 	UNIPHIER_PINCTRL_PIN(54, "NRYBY0", UNIPHIER_PIN_IECTRL_NONE,
188 			     54, UNIPHIER_PIN_DRV_4_8,
189 			     54, UNIPHIER_PIN_PULL_UP),
190 	UNIPHIER_PINCTRL_PIN(55, "DMDSCLTST", UNIPHIER_PIN_IECTRL_NONE,
191 			     -1, UNIPHIER_PIN_DRV_NONE,
192 			     -1, UNIPHIER_PIN_PULL_NONE),
193 	UNIPHIER_PINCTRL_PIN(56, "DMDSDATST", UNIPHIER_PIN_IECTRL_NONE,
194 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
195 			     -1, UNIPHIER_PIN_PULL_NONE),
196 	UNIPHIER_PINCTRL_PIN(57, "AGCI0", 3,
197 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
198 			     55, UNIPHIER_PIN_PULL_DOWN),
199 	UNIPHIER_PINCTRL_PIN(58, "DMDSCL0", UNIPHIER_PIN_IECTRL_NONE,
200 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
201 			     -1, UNIPHIER_PIN_PULL_NONE),
202 	UNIPHIER_PINCTRL_PIN(59, "DMDSDA0", UNIPHIER_PIN_IECTRL_NONE,
203 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
204 			     -1, UNIPHIER_PIN_PULL_NONE),
205 	UNIPHIER_PINCTRL_PIN(60, "AGCBS0", 5,
206 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
207 			     56, UNIPHIER_PIN_PULL_DOWN),
208 	UNIPHIER_PINCTRL_PIN(61, "DMDSCL1", UNIPHIER_PIN_IECTRL_NONE,
209 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
210 			     -1, UNIPHIER_PIN_PULL_NONE),
211 	UNIPHIER_PINCTRL_PIN(62, "DMDSDA1", UNIPHIER_PIN_IECTRL_NONE,
212 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
213 			     -1, UNIPHIER_PIN_PULL_NONE),
214 	UNIPHIER_PINCTRL_PIN(63, "ANTSHORT", UNIPHIER_PIN_IECTRL_NONE,
215 			     57, UNIPHIER_PIN_DRV_4_8,
216 			     57, UNIPHIER_PIN_PULL_UP),
217 	UNIPHIER_PINCTRL_PIN(64, "CH0CLK", UNIPHIER_PIN_IECTRL_NONE,
218 			     58, UNIPHIER_PIN_DRV_4_8,
219 			     58, UNIPHIER_PIN_PULL_DOWN),
220 	UNIPHIER_PINCTRL_PIN(65, "CH0VAL", UNIPHIER_PIN_IECTRL_NONE,
221 			     59, UNIPHIER_PIN_DRV_4_8,
222 			     59, UNIPHIER_PIN_PULL_DOWN),
223 	UNIPHIER_PINCTRL_PIN(66, "CH0PSYNC", UNIPHIER_PIN_IECTRL_NONE,
224 			     60, UNIPHIER_PIN_DRV_4_8,
225 			     60, UNIPHIER_PIN_PULL_DOWN),
226 	UNIPHIER_PINCTRL_PIN(67, "CH0DATA", UNIPHIER_PIN_IECTRL_NONE,
227 			     61, UNIPHIER_PIN_DRV_4_8,
228 			     61, UNIPHIER_PIN_PULL_DOWN),
229 	UNIPHIER_PINCTRL_PIN(68, "CH1CLK", UNIPHIER_PIN_IECTRL_NONE,
230 			     62, UNIPHIER_PIN_DRV_4_8,
231 			     62, UNIPHIER_PIN_PULL_DOWN),
232 	UNIPHIER_PINCTRL_PIN(69, "CH1VAL", UNIPHIER_PIN_IECTRL_NONE,
233 			     63, UNIPHIER_PIN_DRV_4_8,
234 			     63, UNIPHIER_PIN_PULL_DOWN),
235 	UNIPHIER_PINCTRL_PIN(70, "CH1PSYNC", UNIPHIER_PIN_IECTRL_NONE,
236 			     64, UNIPHIER_PIN_DRV_4_8,
237 			     64, UNIPHIER_PIN_PULL_DOWN),
238 	UNIPHIER_PINCTRL_PIN(71, "CH1DATA", UNIPHIER_PIN_IECTRL_NONE,
239 			     65, UNIPHIER_PIN_DRV_4_8,
240 			     65, UNIPHIER_PIN_PULL_DOWN),
241 	UNIPHIER_PINCTRL_PIN(72, "CH2CLK", UNIPHIER_PIN_IECTRL_NONE,
242 			     66, UNIPHIER_PIN_DRV_4_8,
243 			     66, UNIPHIER_PIN_PULL_DOWN),
244 	UNIPHIER_PINCTRL_PIN(73, "CH2VAL", UNIPHIER_PIN_IECTRL_NONE,
245 			     67, UNIPHIER_PIN_DRV_4_8,
246 			     67, UNIPHIER_PIN_PULL_DOWN),
247 	UNIPHIER_PINCTRL_PIN(74, "CH2PSYNC", UNIPHIER_PIN_IECTRL_NONE,
248 			     68, UNIPHIER_PIN_DRV_4_8,
249 			     68, UNIPHIER_PIN_PULL_DOWN),
250 	UNIPHIER_PINCTRL_PIN(75, "CH2DATA", UNIPHIER_PIN_IECTRL_NONE,
251 			     69, UNIPHIER_PIN_DRV_4_8,
252 			     69, UNIPHIER_PIN_PULL_DOWN),
253 	UNIPHIER_PINCTRL_PIN(76, "CH3CLK", UNIPHIER_PIN_IECTRL_NONE,
254 			     70, UNIPHIER_PIN_DRV_4_8,
255 			     70, UNIPHIER_PIN_PULL_DOWN),
256 	UNIPHIER_PINCTRL_PIN(77, "CH3VAL", UNIPHIER_PIN_IECTRL_NONE,
257 			     71, UNIPHIER_PIN_DRV_4_8,
258 			     71, UNIPHIER_PIN_PULL_DOWN),
259 	UNIPHIER_PINCTRL_PIN(78, "CH3PSYNC", UNIPHIER_PIN_IECTRL_NONE,
260 			     72, UNIPHIER_PIN_DRV_4_8,
261 			     72, UNIPHIER_PIN_PULL_DOWN),
262 	UNIPHIER_PINCTRL_PIN(79, "CH3DATA", UNIPHIER_PIN_IECTRL_NONE,
263 			     73, UNIPHIER_PIN_DRV_4_8,
264 			     73, UNIPHIER_PIN_PULL_DOWN),
265 	UNIPHIER_PINCTRL_PIN(80, "CH4CLK", UNIPHIER_PIN_IECTRL_NONE,
266 			     74, UNIPHIER_PIN_DRV_4_8,
267 			     74, UNIPHIER_PIN_PULL_DOWN),
268 	UNIPHIER_PINCTRL_PIN(81, "CH4VAL", UNIPHIER_PIN_IECTRL_NONE,
269 			     75, UNIPHIER_PIN_DRV_4_8,
270 			     75, UNIPHIER_PIN_PULL_DOWN),
271 	UNIPHIER_PINCTRL_PIN(82, "CH4PSYNC", UNIPHIER_PIN_IECTRL_NONE,
272 			     76, UNIPHIER_PIN_DRV_4_8,
273 			     76, UNIPHIER_PIN_PULL_DOWN),
274 	UNIPHIER_PINCTRL_PIN(83, "CH4DATA", UNIPHIER_PIN_IECTRL_NONE,
275 			     77, UNIPHIER_PIN_DRV_4_8,
276 			     77, UNIPHIER_PIN_PULL_DOWN),
277 	UNIPHIER_PINCTRL_PIN(84, "CH5CLK", UNIPHIER_PIN_IECTRL_NONE,
278 			     78, UNIPHIER_PIN_DRV_4_8,
279 			     78, UNIPHIER_PIN_PULL_DOWN),
280 	UNIPHIER_PINCTRL_PIN(85, "CH5VAL", UNIPHIER_PIN_IECTRL_NONE,
281 			     79, UNIPHIER_PIN_DRV_4_8,
282 			     79, UNIPHIER_PIN_PULL_DOWN),
283 	UNIPHIER_PINCTRL_PIN(86, "CH5PSYNC", UNIPHIER_PIN_IECTRL_NONE,
284 			     80, UNIPHIER_PIN_DRV_4_8,
285 			     80, UNIPHIER_PIN_PULL_DOWN),
286 	UNIPHIER_PINCTRL_PIN(87, "CH5DATA", UNIPHIER_PIN_IECTRL_NONE,
287 			     81, UNIPHIER_PIN_DRV_4_8,
288 			     81, UNIPHIER_PIN_PULL_DOWN),
289 	UNIPHIER_PINCTRL_PIN(88, "CH6CLK", UNIPHIER_PIN_IECTRL_NONE,
290 			     82, UNIPHIER_PIN_DRV_4_8,
291 			     82, UNIPHIER_PIN_PULL_DOWN),
292 	UNIPHIER_PINCTRL_PIN(89, "CH6VAL", UNIPHIER_PIN_IECTRL_NONE,
293 			     83, UNIPHIER_PIN_DRV_4_8,
294 			     83, UNIPHIER_PIN_PULL_DOWN),
295 	UNIPHIER_PINCTRL_PIN(90, "CH6PSYNC", UNIPHIER_PIN_IECTRL_NONE,
296 			     84, UNIPHIER_PIN_DRV_4_8,
297 			     84, UNIPHIER_PIN_PULL_DOWN),
298 	UNIPHIER_PINCTRL_PIN(91, "CH6DATA", UNIPHIER_PIN_IECTRL_NONE,
299 			     85, UNIPHIER_PIN_DRV_4_8,
300 			     85, UNIPHIER_PIN_PULL_DOWN),
301 	UNIPHIER_PINCTRL_PIN(92, "CKFEO", UNIPHIER_PIN_IECTRL_NONE,
302 			     86, UNIPHIER_PIN_DRV_4_8,
303 			     86, UNIPHIER_PIN_PULL_DOWN),
304 	UNIPHIER_PINCTRL_PIN(93, "XFERST", UNIPHIER_PIN_IECTRL_NONE,
305 			     87, UNIPHIER_PIN_DRV_4_8,
306 			     87, UNIPHIER_PIN_PULL_DOWN),
307 	UNIPHIER_PINCTRL_PIN(94, "P_FE_ON", UNIPHIER_PIN_IECTRL_NONE,
308 			     88, UNIPHIER_PIN_DRV_4_8,
309 			     88, UNIPHIER_PIN_PULL_DOWN),
310 	UNIPHIER_PINCTRL_PIN(95, "P_TU0_ON", UNIPHIER_PIN_IECTRL_NONE,
311 			     89, UNIPHIER_PIN_DRV_4_8,
312 			     89, UNIPHIER_PIN_PULL_DOWN),
313 	UNIPHIER_PINCTRL_PIN(96, "XFEIRQ0", UNIPHIER_PIN_IECTRL_NONE,
314 			     90, UNIPHIER_PIN_DRV_4_8,
315 			     90, UNIPHIER_PIN_PULL_DOWN),
316 	UNIPHIER_PINCTRL_PIN(97, "XFEIRQ1", UNIPHIER_PIN_IECTRL_NONE,
317 			     91, UNIPHIER_PIN_DRV_4_8,
318 			     91, UNIPHIER_PIN_PULL_DOWN),
319 	UNIPHIER_PINCTRL_PIN(98, "XFEIRQ2", UNIPHIER_PIN_IECTRL_NONE,
320 			     92, UNIPHIER_PIN_DRV_4_8,
321 			     92, UNIPHIER_PIN_PULL_DOWN),
322 	UNIPHIER_PINCTRL_PIN(99, "XFEIRQ3", UNIPHIER_PIN_IECTRL_NONE,
323 			     93, UNIPHIER_PIN_DRV_4_8,
324 			     93, UNIPHIER_PIN_PULL_DOWN),
325 	UNIPHIER_PINCTRL_PIN(100, "XFEIRQ4", UNIPHIER_PIN_IECTRL_NONE,
326 			     94, UNIPHIER_PIN_DRV_4_8,
327 			     94, UNIPHIER_PIN_PULL_DOWN),
328 	UNIPHIER_PINCTRL_PIN(101, "XFEIRQ5", UNIPHIER_PIN_IECTRL_NONE,
329 			     95, UNIPHIER_PIN_DRV_4_8,
330 			     95, UNIPHIER_PIN_PULL_DOWN),
331 	UNIPHIER_PINCTRL_PIN(102, "XFEIRQ6", UNIPHIER_PIN_IECTRL_NONE,
332 			     96, UNIPHIER_PIN_DRV_4_8,
333 			     96, UNIPHIER_PIN_PULL_DOWN),
334 	UNIPHIER_PINCTRL_PIN(103, "SMTCLK0", UNIPHIER_PIN_IECTRL_NONE,
335 			     97, UNIPHIER_PIN_DRV_4_8,
336 			     97, UNIPHIER_PIN_PULL_DOWN),
337 	UNIPHIER_PINCTRL_PIN(104, "SMTRST0", UNIPHIER_PIN_IECTRL_NONE,
338 			     98, UNIPHIER_PIN_DRV_4_8,
339 			     98, UNIPHIER_PIN_PULL_DOWN),
340 	UNIPHIER_PINCTRL_PIN(105, "SMTCMD0", UNIPHIER_PIN_IECTRL_NONE,
341 			     99, UNIPHIER_PIN_DRV_4_8,
342 			     99, UNIPHIER_PIN_PULL_UP),
343 	UNIPHIER_PINCTRL_PIN(106, "SMTD0", UNIPHIER_PIN_IECTRL_NONE,
344 			     100, UNIPHIER_PIN_DRV_4_8,
345 			     100, UNIPHIER_PIN_PULL_UP),
346 	UNIPHIER_PINCTRL_PIN(107, "SMTSEL0", UNIPHIER_PIN_IECTRL_NONE,
347 			     101, UNIPHIER_PIN_DRV_4_8,
348 			     101, UNIPHIER_PIN_PULL_DOWN),
349 	UNIPHIER_PINCTRL_PIN(108, "SMTDET0", UNIPHIER_PIN_IECTRL_NONE,
350 			     102, UNIPHIER_PIN_DRV_4_8,
351 			     102, UNIPHIER_PIN_PULL_UP),
352 	UNIPHIER_PINCTRL_PIN(109, "SMTCLK1", UNIPHIER_PIN_IECTRL_NONE,
353 			     103, UNIPHIER_PIN_DRV_4_8,
354 			     103, UNIPHIER_PIN_PULL_DOWN),
355 	UNIPHIER_PINCTRL_PIN(110, "SMTRST1", UNIPHIER_PIN_IECTRL_NONE,
356 			     104, UNIPHIER_PIN_DRV_4_8,
357 			     104, UNIPHIER_PIN_PULL_DOWN),
358 	UNIPHIER_PINCTRL_PIN(111, "SMTCMD1", UNIPHIER_PIN_IECTRL_NONE,
359 			     105, UNIPHIER_PIN_DRV_4_8,
360 			     105, UNIPHIER_PIN_PULL_UP),
361 	UNIPHIER_PINCTRL_PIN(112, "SMTD1", UNIPHIER_PIN_IECTRL_NONE,
362 			     106, UNIPHIER_PIN_DRV_4_8,
363 			     106, UNIPHIER_PIN_PULL_UP),
364 	UNIPHIER_PINCTRL_PIN(113, "SMTSEL1", UNIPHIER_PIN_IECTRL_NONE,
365 			     107, UNIPHIER_PIN_DRV_4_8,
366 			     107, UNIPHIER_PIN_PULL_DOWN),
367 	UNIPHIER_PINCTRL_PIN(114, "SMTDET1", UNIPHIER_PIN_IECTRL_NONE,
368 			     108, UNIPHIER_PIN_DRV_4_8,
369 			     108, UNIPHIER_PIN_PULL_UP),
370 	UNIPHIER_PINCTRL_PIN(115, "XINTM", UNIPHIER_PIN_IECTRL_NONE,
371 			     109, UNIPHIER_PIN_DRV_4_8,
372 			     109, UNIPHIER_PIN_PULL_UP),
373 	UNIPHIER_PINCTRL_PIN(116, "SCLKM", UNIPHIER_PIN_IECTRL_NONE,
374 			     110, UNIPHIER_PIN_DRV_4_8,
375 			     110, UNIPHIER_PIN_PULL_UP),
376 	UNIPHIER_PINCTRL_PIN(117, "SBMTP", UNIPHIER_PIN_IECTRL_NONE,
377 			     111, UNIPHIER_PIN_DRV_4_8,
378 			     111, UNIPHIER_PIN_PULL_UP),
379 	UNIPHIER_PINCTRL_PIN(118, "SBPTM", UNIPHIER_PIN_IECTRL_NONE,
380 			     112, UNIPHIER_PIN_DRV_4_8,
381 			     112, UNIPHIER_PIN_PULL_UP),
382 	UNIPHIER_PINCTRL_PIN(119, "XMPREQ", UNIPHIER_PIN_IECTRL_NONE,
383 			     113, UNIPHIER_PIN_DRV_4_8,
384 			     113, UNIPHIER_PIN_PULL_UP),
385 	UNIPHIER_PINCTRL_PIN(120, "XINTP", UNIPHIER_PIN_IECTRL_NONE,
386 			     114, UNIPHIER_PIN_DRV_4_8,
387 			     114, UNIPHIER_PIN_PULL_UP),
388 	UNIPHIER_PINCTRL_PIN(121, "LPST", UNIPHIER_PIN_IECTRL_NONE,
389 			     115, UNIPHIER_PIN_DRV_4_8,
390 			     115, UNIPHIER_PIN_PULL_DOWN),
391 	UNIPHIER_PINCTRL_PIN(122, "SDBOOT", UNIPHIER_PIN_IECTRL_NONE,
392 			     116, UNIPHIER_PIN_DRV_4_8,
393 			     116, UNIPHIER_PIN_PULL_UP),
394 	UNIPHIER_PINCTRL_PIN(123, "BFAIL", UNIPHIER_PIN_IECTRL_NONE,
395 			     117, UNIPHIER_PIN_DRV_4_8,
396 			     117, UNIPHIER_PIN_PULL_DOWN),
397 	UNIPHIER_PINCTRL_PIN(124, "XFWE", UNIPHIER_PIN_IECTRL_NONE,
398 			     118, UNIPHIER_PIN_DRV_4_8,
399 			     118, UNIPHIER_PIN_PULL_UP),
400 	UNIPHIER_PINCTRL_PIN(125, "RF_COM_RDY", UNIPHIER_PIN_IECTRL_NONE,
401 			     119, UNIPHIER_PIN_DRV_4_8,
402 			     119, UNIPHIER_PIN_PULL_UP),
403 	UNIPHIER_PINCTRL_PIN(126, "XDIAG0", UNIPHIER_PIN_IECTRL_NONE,
404 			     120, UNIPHIER_PIN_DRV_4_8,
405 			     120, UNIPHIER_PIN_PULL_UP),
406 	UNIPHIER_PINCTRL_PIN(127, "RXD0", UNIPHIER_PIN_IECTRL_NONE,
407 			     121, UNIPHIER_PIN_DRV_4_8,
408 			     121, UNIPHIER_PIN_PULL_UP),
409 	UNIPHIER_PINCTRL_PIN(128, "TXD0", UNIPHIER_PIN_IECTRL_NONE,
410 			     122, UNIPHIER_PIN_DRV_4_8,
411 			     122, UNIPHIER_PIN_PULL_UP),
412 	UNIPHIER_PINCTRL_PIN(129, "RXD1", UNIPHIER_PIN_IECTRL_NONE,
413 			     123, UNIPHIER_PIN_DRV_4_8,
414 			     123, UNIPHIER_PIN_PULL_UP),
415 	UNIPHIER_PINCTRL_PIN(130, "TXD1", UNIPHIER_PIN_IECTRL_NONE,
416 			     124, UNIPHIER_PIN_DRV_4_8,
417 			     124, UNIPHIER_PIN_PULL_UP),
418 	UNIPHIER_PINCTRL_PIN(131, "RXD2", UNIPHIER_PIN_IECTRL_NONE,
419 			     125, UNIPHIER_PIN_DRV_4_8,
420 			     125, UNIPHIER_PIN_PULL_UP),
421 	UNIPHIER_PINCTRL_PIN(132, "TXD2", UNIPHIER_PIN_IECTRL_NONE,
422 			     126, UNIPHIER_PIN_DRV_4_8,
423 			     126, UNIPHIER_PIN_PULL_UP),
424 	UNIPHIER_PINCTRL_PIN(133, "SS0CS", UNIPHIER_PIN_IECTRL_NONE,
425 			     127, UNIPHIER_PIN_DRV_4_8,
426 			     127, UNIPHIER_PIN_PULL_UP),
427 	UNIPHIER_PINCTRL_PIN(134, "SS0CLK", UNIPHIER_PIN_IECTRL_NONE,
428 			     128, UNIPHIER_PIN_DRV_4_8,
429 			     128, UNIPHIER_PIN_PULL_UP),
430 	UNIPHIER_PINCTRL_PIN(135, "SS0DO", UNIPHIER_PIN_IECTRL_NONE,
431 			     129, UNIPHIER_PIN_DRV_4_8,
432 			     129, UNIPHIER_PIN_PULL_UP),
433 	UNIPHIER_PINCTRL_PIN(136, "SS0DI", UNIPHIER_PIN_IECTRL_NONE,
434 			     130, UNIPHIER_PIN_DRV_4_8,
435 			     130, UNIPHIER_PIN_PULL_UP),
436 	UNIPHIER_PINCTRL_PIN(137, "MS0CS0", UNIPHIER_PIN_IECTRL_NONE,
437 			     131, UNIPHIER_PIN_DRV_4_8,
438 			     131, UNIPHIER_PIN_PULL_UP),
439 	UNIPHIER_PINCTRL_PIN(138, "MS0CLK", UNIPHIER_PIN_IECTRL_NONE,
440 			     132, UNIPHIER_PIN_DRV_4_8,
441 			     132, UNIPHIER_PIN_PULL_UP),
442 	UNIPHIER_PINCTRL_PIN(139, "MS0DI", UNIPHIER_PIN_IECTRL_NONE,
443 			     133, UNIPHIER_PIN_DRV_4_8,
444 			     133, UNIPHIER_PIN_PULL_UP),
445 	UNIPHIER_PINCTRL_PIN(140, "MS0DO", UNIPHIER_PIN_IECTRL_NONE,
446 			     134, UNIPHIER_PIN_DRV_4_8,
447 			     134, UNIPHIER_PIN_PULL_UP),
448 	UNIPHIER_PINCTRL_PIN(141, "XMDMRST", UNIPHIER_PIN_IECTRL_NONE,
449 			     135, UNIPHIER_PIN_DRV_4_8,
450 			     135, UNIPHIER_PIN_PULL_DOWN),
451 	UNIPHIER_PINCTRL_PIN(142, "SCL0", UNIPHIER_PIN_IECTRL_NONE,
452 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
453 			     -1, UNIPHIER_PIN_PULL_NONE),
454 	UNIPHIER_PINCTRL_PIN(143, "SDA0", UNIPHIER_PIN_IECTRL_NONE,
455 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
456 			     -1, UNIPHIER_PIN_PULL_NONE),
457 	UNIPHIER_PINCTRL_PIN(144, "SCL1", UNIPHIER_PIN_IECTRL_NONE,
458 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
459 			     -1, UNIPHIER_PIN_PULL_NONE),
460 	UNIPHIER_PINCTRL_PIN(145, "SDA1", UNIPHIER_PIN_IECTRL_NONE,
461 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
462 			     -1, UNIPHIER_PIN_PULL_NONE),
463 	UNIPHIER_PINCTRL_PIN(146, "SCL2", UNIPHIER_PIN_IECTRL_NONE,
464 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
465 			     -1, UNIPHIER_PIN_PULL_NONE),
466 	UNIPHIER_PINCTRL_PIN(147, "SDA2", UNIPHIER_PIN_IECTRL_NONE,
467 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
468 			     -1, UNIPHIER_PIN_PULL_NONE),
469 	UNIPHIER_PINCTRL_PIN(148, "SCL3", UNIPHIER_PIN_IECTRL_NONE,
470 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
471 			     -1, UNIPHIER_PIN_PULL_NONE),
472 	UNIPHIER_PINCTRL_PIN(149, "SDA3", UNIPHIER_PIN_IECTRL_NONE,
473 			     -1, UNIPHIER_PIN_DRV_FIXED_4,
474 			     -1, UNIPHIER_PIN_PULL_NONE),
475 	UNIPHIER_PINCTRL_PIN(150, "SD0DAT0", UNIPHIER_PIN_IECTRL_NONE,
476 			     12, UNIPHIER_PIN_DRV_8_12_16_20,
477 			     136, UNIPHIER_PIN_PULL_UP),
478 	UNIPHIER_PINCTRL_PIN(151, "SD0DAT1", UNIPHIER_PIN_IECTRL_NONE,
479 			     13, UNIPHIER_PIN_DRV_8_12_16_20,
480 			     137, UNIPHIER_PIN_PULL_UP),
481 	UNIPHIER_PINCTRL_PIN(152, "SD0DAT2", UNIPHIER_PIN_IECTRL_NONE,
482 			     14, UNIPHIER_PIN_DRV_8_12_16_20,
483 			     138, UNIPHIER_PIN_PULL_UP),
484 	UNIPHIER_PINCTRL_PIN(153, "SD0DAT3", UNIPHIER_PIN_IECTRL_NONE,
485 			     15, UNIPHIER_PIN_DRV_8_12_16_20,
486 			     139, UNIPHIER_PIN_PULL_UP),
487 	UNIPHIER_PINCTRL_PIN(154, "SD0CMD", UNIPHIER_PIN_IECTRL_NONE,
488 			     11, UNIPHIER_PIN_DRV_8_12_16_20,
489 			     141, UNIPHIER_PIN_PULL_UP),
490 	UNIPHIER_PINCTRL_PIN(155, "SD0CLK", UNIPHIER_PIN_IECTRL_NONE,
491 			     10, UNIPHIER_PIN_DRV_8_12_16_20,
492 			     140, UNIPHIER_PIN_PULL_UP),
493 	UNIPHIER_PINCTRL_PIN(156, "SD0CD", UNIPHIER_PIN_IECTRL_NONE,
494 			     142, UNIPHIER_PIN_DRV_4_8,
495 			     142, UNIPHIER_PIN_PULL_UP),
496 	UNIPHIER_PINCTRL_PIN(157, "SD0WP", UNIPHIER_PIN_IECTRL_NONE,
497 			     143, UNIPHIER_PIN_DRV_4_8,
498 			     143, UNIPHIER_PIN_PULL_UP),
499 	UNIPHIER_PINCTRL_PIN(158, "SD0VTCG", UNIPHIER_PIN_IECTRL_NONE,
500 			     144, UNIPHIER_PIN_DRV_4_8,
501 			     144, UNIPHIER_PIN_PULL_UP),
502 	UNIPHIER_PINCTRL_PIN(159, "CK25O", UNIPHIER_PIN_IECTRL_NONE,
503 			     145, UNIPHIER_PIN_DRV_4_8,
504 			     145, UNIPHIER_PIN_PULL_UP),
505 	UNIPHIER_PINCTRL_PIN(160, "RGMII_TXCLK", 6,
506 			     146, UNIPHIER_PIN_DRV_4_8,
507 			     146, UNIPHIER_PIN_PULL_DOWN),
508 	UNIPHIER_PINCTRL_PIN(161, "RGMII_TXD0", 6,
509 			     147, UNIPHIER_PIN_DRV_4_8,
510 			     147, UNIPHIER_PIN_PULL_DOWN),
511 	UNIPHIER_PINCTRL_PIN(162, "RGMII_TXD1", 6,
512 			     148, UNIPHIER_PIN_DRV_4_8,
513 			     148, UNIPHIER_PIN_PULL_DOWN),
514 	UNIPHIER_PINCTRL_PIN(163, "RGMII_TXD2", 6,
515 			     149, UNIPHIER_PIN_DRV_4_8,
516 			     149, UNIPHIER_PIN_PULL_DOWN),
517 	UNIPHIER_PINCTRL_PIN(164, "RGMII_TXD3", 6,
518 			     150, UNIPHIER_PIN_DRV_4_8,
519 			     150, UNIPHIER_PIN_PULL_DOWN),
520 	UNIPHIER_PINCTRL_PIN(165, "RGMII_TXCTL", 6,
521 			     151, UNIPHIER_PIN_DRV_4_8,
522 			     151, UNIPHIER_PIN_PULL_DOWN),
523 	UNIPHIER_PINCTRL_PIN(166, "MII_TXER", UNIPHIER_PIN_IECTRL_NONE,
524 			     152, UNIPHIER_PIN_DRV_4_8,
525 			     152, UNIPHIER_PIN_PULL_DOWN),
526 	UNIPHIER_PINCTRL_PIN(167, "RGMII_RXCLK", 6,
527 			     153, UNIPHIER_PIN_DRV_4_8,
528 			     153, UNIPHIER_PIN_PULL_DOWN),
529 	UNIPHIER_PINCTRL_PIN(168, "RGMII_RXD0", 6,
530 			     154, UNIPHIER_PIN_DRV_4_8,
531 			     154, UNIPHIER_PIN_PULL_DOWN),
532 	UNIPHIER_PINCTRL_PIN(169, "RGMII_RXD1", 6,
533 			     155, UNIPHIER_PIN_DRV_4_8,
534 			     155, UNIPHIER_PIN_PULL_DOWN),
535 	UNIPHIER_PINCTRL_PIN(170, "RGMII_RXD2", 6,
536 			     156, UNIPHIER_PIN_DRV_4_8,
537 			     156, UNIPHIER_PIN_PULL_DOWN),
538 	UNIPHIER_PINCTRL_PIN(171, "RGMII_RXD3", 6,
539 			     157, UNIPHIER_PIN_DRV_4_8,
540 			     157, UNIPHIER_PIN_PULL_DOWN),
541 	UNIPHIER_PINCTRL_PIN(172, "RGMII_RXCTL", 6,
542 			     158, UNIPHIER_PIN_DRV_4_8,
543 			     158, UNIPHIER_PIN_PULL_DOWN),
544 	UNIPHIER_PINCTRL_PIN(173, "MII_RXER", 6,
545 			     159, UNIPHIER_PIN_DRV_4_8,
546 			     159, UNIPHIER_PIN_PULL_DOWN),
547 	UNIPHIER_PINCTRL_PIN(174, "MII_CRS", 6,
548 			     160, UNIPHIER_PIN_DRV_4_8,
549 			     160, UNIPHIER_PIN_PULL_DOWN),
550 	UNIPHIER_PINCTRL_PIN(175, "MII_COL", 6,
551 			     161, UNIPHIER_PIN_DRV_4_8,
552 			     161, UNIPHIER_PIN_PULL_DOWN),
553 	UNIPHIER_PINCTRL_PIN(176, "MDC", 6,
554 			     162, UNIPHIER_PIN_DRV_4_8,
555 			     162, UNIPHIER_PIN_PULL_UP),
556 	UNIPHIER_PINCTRL_PIN(177, "MDIO", 6,
557 			     163, UNIPHIER_PIN_DRV_4_8,
558 			     163, UNIPHIER_PIN_PULL_UP),
559 	UNIPHIER_PINCTRL_PIN(178, "MDIO_INTL", 6,
560 			     164, UNIPHIER_PIN_DRV_4_8,
561 			     164, UNIPHIER_PIN_PULL_UP),
562 	UNIPHIER_PINCTRL_PIN(179, "XETH_RST", 6,
563 			     165, UNIPHIER_PIN_DRV_4_8,
564 			     165, UNIPHIER_PIN_PULL_DOWN),
565 	UNIPHIER_PINCTRL_PIN(180, "USB0VBUS", UNIPHIER_PIN_IECTRL_NONE,
566 			     166, UNIPHIER_PIN_DRV_4_8,
567 			     166, UNIPHIER_PIN_PULL_DOWN),
568 	UNIPHIER_PINCTRL_PIN(181, "USB0OD", UNIPHIER_PIN_IECTRL_NONE,
569 			     167, UNIPHIER_PIN_DRV_4_8,
570 			     167, UNIPHIER_PIN_PULL_UP),
571 	UNIPHIER_PINCTRL_PIN(182, "USB1VBUS", UNIPHIER_PIN_IECTRL_NONE,
572 			     168, UNIPHIER_PIN_DRV_4_8,
573 			     168, UNIPHIER_PIN_PULL_DOWN),
574 	UNIPHIER_PINCTRL_PIN(183, "USB1OD", UNIPHIER_PIN_IECTRL_NONE,
575 			     169, UNIPHIER_PIN_DRV_4_8,
576 			     169, UNIPHIER_PIN_PULL_UP),
577 	UNIPHIER_PINCTRL_PIN(184, "USB2VBUS", UNIPHIER_PIN_IECTRL_NONE,
578 			     170, UNIPHIER_PIN_DRV_4_8,
579 			     170, UNIPHIER_PIN_PULL_DOWN),
580 	UNIPHIER_PINCTRL_PIN(185, "USB2OD", UNIPHIER_PIN_IECTRL_NONE,
581 			     171, UNIPHIER_PIN_DRV_4_8,
582 			     171, UNIPHIER_PIN_PULL_UP),
583 	UNIPHIER_PINCTRL_PIN(186, "USB2ID", UNIPHIER_PIN_IECTRL_NONE,
584 			     172, UNIPHIER_PIN_DRV_4_8,
585 			     172, UNIPHIER_PIN_PULL_UP),
586 	UNIPHIER_PINCTRL_PIN(187, "USB3VBUS", UNIPHIER_PIN_IECTRL_NONE,
587 			     173, UNIPHIER_PIN_DRV_4_8,
588 			     173, UNIPHIER_PIN_PULL_DOWN),
589 	UNIPHIER_PINCTRL_PIN(188, "USB3OD", UNIPHIER_PIN_IECTRL_NONE,
590 			     174, UNIPHIER_PIN_DRV_4_8,
591 			     174, UNIPHIER_PIN_PULL_UP),
592 	UNIPHIER_PINCTRL_PIN(189, "LINKCLK", UNIPHIER_PIN_IECTRL_NONE,
593 			     175, UNIPHIER_PIN_DRV_4_8,
594 			     175, UNIPHIER_PIN_PULL_DOWN),
595 	UNIPHIER_PINCTRL_PIN(190, "LINKREQ", UNIPHIER_PIN_IECTRL_NONE,
596 			     176, UNIPHIER_PIN_DRV_4_8,
597 			     176, UNIPHIER_PIN_PULL_DOWN),
598 	UNIPHIER_PINCTRL_PIN(191, "LINKCTL0", UNIPHIER_PIN_IECTRL_NONE,
599 			     177, UNIPHIER_PIN_DRV_4_8,
600 			     177, UNIPHIER_PIN_PULL_DOWN),
601 	UNIPHIER_PINCTRL_PIN(192, "LINKCTL1", UNIPHIER_PIN_IECTRL_NONE,
602 			     178, UNIPHIER_PIN_DRV_4_8,
603 			     178, UNIPHIER_PIN_PULL_DOWN),
604 	UNIPHIER_PINCTRL_PIN(193, "LINKDT0", UNIPHIER_PIN_IECTRL_NONE,
605 			     179, UNIPHIER_PIN_DRV_4_8,
606 			     179, UNIPHIER_PIN_PULL_DOWN),
607 	UNIPHIER_PINCTRL_PIN(194, "LINKDT1", UNIPHIER_PIN_IECTRL_NONE,
608 			     180, UNIPHIER_PIN_DRV_4_8,
609 			     180, UNIPHIER_PIN_PULL_DOWN),
610 	UNIPHIER_PINCTRL_PIN(195, "LINKDT2", UNIPHIER_PIN_IECTRL_NONE,
611 			     181, UNIPHIER_PIN_DRV_4_8,
612 			     181, UNIPHIER_PIN_PULL_DOWN),
613 	UNIPHIER_PINCTRL_PIN(196, "LINKDT3", UNIPHIER_PIN_IECTRL_NONE,
614 			     182, UNIPHIER_PIN_DRV_4_8,
615 			     182, UNIPHIER_PIN_PULL_DOWN),
616 	UNIPHIER_PINCTRL_PIN(197, "LINKDT4", UNIPHIER_PIN_IECTRL_NONE,
617 			     183, UNIPHIER_PIN_DRV_4_8,
618 			     183, UNIPHIER_PIN_PULL_DOWN),
619 	UNIPHIER_PINCTRL_PIN(198, "LINKDT5", UNIPHIER_PIN_IECTRL_NONE,
620 			     184, UNIPHIER_PIN_DRV_4_8,
621 			     184, UNIPHIER_PIN_PULL_DOWN),
622 	UNIPHIER_PINCTRL_PIN(199, "LINKDT6", UNIPHIER_PIN_IECTRL_NONE,
623 			     185, UNIPHIER_PIN_DRV_4_8,
624 			     185, UNIPHIER_PIN_PULL_DOWN),
625 	UNIPHIER_PINCTRL_PIN(200, "LINKDT7", UNIPHIER_PIN_IECTRL_NONE,
626 			     186, UNIPHIER_PIN_DRV_4_8,
627 			     186, UNIPHIER_PIN_PULL_DOWN),
628 	UNIPHIER_PINCTRL_PIN(201, "CKDVO", UNIPHIER_PIN_IECTRL_NONE,
629 			     187, UNIPHIER_PIN_DRV_4_8,
630 			     187, UNIPHIER_PIN_PULL_DOWN),
631 	UNIPHIER_PINCTRL_PIN(202, "PHY_PD", UNIPHIER_PIN_IECTRL_NONE,
632 			     188, UNIPHIER_PIN_DRV_4_8,
633 			     188, UNIPHIER_PIN_PULL_DOWN),
634 	UNIPHIER_PINCTRL_PIN(203, "X1394_RST", UNIPHIER_PIN_IECTRL_NONE,
635 			     189, UNIPHIER_PIN_DRV_4_8,
636 			     189, UNIPHIER_PIN_PULL_DOWN),
637 	UNIPHIER_PINCTRL_PIN(204, "VOUT_MUTE_L", UNIPHIER_PIN_IECTRL_NONE,
638 			     190, UNIPHIER_PIN_DRV_4_8,
639 			     190, UNIPHIER_PIN_PULL_DOWN),
640 	UNIPHIER_PINCTRL_PIN(205, "CLK54O", UNIPHIER_PIN_IECTRL_NONE,
641 			     191, UNIPHIER_PIN_DRV_4_8,
642 			     191, UNIPHIER_PIN_PULL_DOWN),
643 	UNIPHIER_PINCTRL_PIN(206, "CLK54I", UNIPHIER_PIN_IECTRL_NONE,
644 			     192, UNIPHIER_PIN_DRV_NONE,
645 			     192, UNIPHIER_PIN_PULL_DOWN),
646 	UNIPHIER_PINCTRL_PIN(207, "YIN0", UNIPHIER_PIN_IECTRL_NONE,
647 			     193, UNIPHIER_PIN_DRV_4_8,
648 			     193, UNIPHIER_PIN_PULL_DOWN),
649 	UNIPHIER_PINCTRL_PIN(208, "YIN1", UNIPHIER_PIN_IECTRL_NONE,
650 			     194, UNIPHIER_PIN_DRV_4_8,
651 			     194, UNIPHIER_PIN_PULL_DOWN),
652 	UNIPHIER_PINCTRL_PIN(209, "YIN2", UNIPHIER_PIN_IECTRL_NONE,
653 			     195, UNIPHIER_PIN_DRV_4_8,
654 			     195, UNIPHIER_PIN_PULL_DOWN),
655 	UNIPHIER_PINCTRL_PIN(210, "YIN3", UNIPHIER_PIN_IECTRL_NONE,
656 			     196, UNIPHIER_PIN_DRV_4_8,
657 			     196, UNIPHIER_PIN_PULL_DOWN),
658 	UNIPHIER_PINCTRL_PIN(211, "YIN4", UNIPHIER_PIN_IECTRL_NONE,
659 			     197, UNIPHIER_PIN_DRV_4_8,
660 			     197, UNIPHIER_PIN_PULL_DOWN),
661 	UNIPHIER_PINCTRL_PIN(212, "YIN5", UNIPHIER_PIN_IECTRL_NONE,
662 			     198, UNIPHIER_PIN_DRV_4_8,
663 			     198, UNIPHIER_PIN_PULL_DOWN),
664 	UNIPHIER_PINCTRL_PIN(213, "CIN0", UNIPHIER_PIN_IECTRL_NONE,
665 			     199, UNIPHIER_PIN_DRV_4_8,
666 			     199, UNIPHIER_PIN_PULL_DOWN),
667 	UNIPHIER_PINCTRL_PIN(214, "CIN1", UNIPHIER_PIN_IECTRL_NONE,
668 			     200, UNIPHIER_PIN_DRV_4_8,
669 			     200, UNIPHIER_PIN_PULL_DOWN),
670 	UNIPHIER_PINCTRL_PIN(215, "CIN2", UNIPHIER_PIN_IECTRL_NONE,
671 			     201, UNIPHIER_PIN_DRV_4_8,
672 			     201, UNIPHIER_PIN_PULL_DOWN),
673 	UNIPHIER_PINCTRL_PIN(216, "CIN3", UNIPHIER_PIN_IECTRL_NONE,
674 			     202, UNIPHIER_PIN_DRV_4_8,
675 			     202, UNIPHIER_PIN_PULL_DOWN),
676 	UNIPHIER_PINCTRL_PIN(217, "CIN4", UNIPHIER_PIN_IECTRL_NONE,
677 			     203, UNIPHIER_PIN_DRV_4_8,
678 			     203, UNIPHIER_PIN_PULL_DOWN),
679 	UNIPHIER_PINCTRL_PIN(218, "CIN5", UNIPHIER_PIN_IECTRL_NONE,
680 			     204, UNIPHIER_PIN_DRV_4_8,
681 			     204, UNIPHIER_PIN_PULL_DOWN),
682 	UNIPHIER_PINCTRL_PIN(219, "GCP", UNIPHIER_PIN_IECTRL_NONE,
683 			     205, UNIPHIER_PIN_DRV_4_8,
684 			     205, UNIPHIER_PIN_PULL_DOWN),
685 	UNIPHIER_PINCTRL_PIN(220, "ADFLG", UNIPHIER_PIN_IECTRL_NONE,
686 			     206, UNIPHIER_PIN_DRV_4_8,
687 			     206, UNIPHIER_PIN_PULL_DOWN),
688 	UNIPHIER_PINCTRL_PIN(221, "CK27AIOF", UNIPHIER_PIN_IECTRL_NONE,
689 			     207, UNIPHIER_PIN_DRV_4_8,
690 			     207, UNIPHIER_PIN_PULL_DOWN),
691 	UNIPHIER_PINCTRL_PIN(222, "DACOUT", UNIPHIER_PIN_IECTRL_NONE,
692 			     208, UNIPHIER_PIN_DRV_4_8,
693 			     208, UNIPHIER_PIN_PULL_DOWN),
694 	UNIPHIER_PINCTRL_PIN(223, "DAFLG", UNIPHIER_PIN_IECTRL_NONE,
695 			     209, UNIPHIER_PIN_DRV_4_8,
696 			     209, UNIPHIER_PIN_PULL_DOWN),
697 	UNIPHIER_PINCTRL_PIN(224, "VBIH", UNIPHIER_PIN_IECTRL_NONE,
698 			     210, UNIPHIER_PIN_DRV_4_8,
699 			     210, UNIPHIER_PIN_PULL_DOWN),
700 	UNIPHIER_PINCTRL_PIN(225, "VBIL", UNIPHIER_PIN_IECTRL_NONE,
701 			     211, UNIPHIER_PIN_DRV_4_8,
702 			     211, UNIPHIER_PIN_PULL_DOWN),
703 	UNIPHIER_PINCTRL_PIN(226, "XSUB_RST", UNIPHIER_PIN_IECTRL_NONE,
704 			     212, UNIPHIER_PIN_DRV_4_8,
705 			     212, UNIPHIER_PIN_PULL_DOWN),
706 	UNIPHIER_PINCTRL_PIN(227, "XADC_PD", UNIPHIER_PIN_IECTRL_NONE,
707 			     213, UNIPHIER_PIN_DRV_4_8,
708 			     213, UNIPHIER_PIN_PULL_DOWN),
709 	UNIPHIER_PINCTRL_PIN(228, "AI1ADCCK", UNIPHIER_PIN_IECTRL_NONE,
710 			     214, UNIPHIER_PIN_DRV_4_8,
711 			     214, UNIPHIER_PIN_PULL_DOWN),
712 	UNIPHIER_PINCTRL_PIN(229, "AI1BCK", UNIPHIER_PIN_IECTRL_NONE,
713 			     215, UNIPHIER_PIN_DRV_4_8,
714 			     215, UNIPHIER_PIN_PULL_DOWN),
715 	UNIPHIER_PINCTRL_PIN(230, "AI1LRCK", UNIPHIER_PIN_IECTRL_NONE,
716 			     216, UNIPHIER_PIN_DRV_4_8,
717 			     216, UNIPHIER_PIN_PULL_DOWN),
718 	UNIPHIER_PINCTRL_PIN(231, "AI1DMIX", UNIPHIER_PIN_IECTRL_NONE,
719 			     217, UNIPHIER_PIN_DRV_4_8,
720 			     217, UNIPHIER_PIN_PULL_DOWN),
721 	UNIPHIER_PINCTRL_PIN(232, "CK27HD", UNIPHIER_PIN_IECTRL_NONE,
722 			     218, UNIPHIER_PIN_DRV_4_8,
723 			     218, UNIPHIER_PIN_PULL_DOWN),
724 	UNIPHIER_PINCTRL_PIN(233, "XHD_RST", UNIPHIER_PIN_IECTRL_NONE,
725 			     219, UNIPHIER_PIN_DRV_4_8,
726 			     219, UNIPHIER_PIN_PULL_DOWN),
727 	UNIPHIER_PINCTRL_PIN(234, "INTHD", UNIPHIER_PIN_IECTRL_NONE,
728 			     220, UNIPHIER_PIN_DRV_4_8,
729 			     220, UNIPHIER_PIN_PULL_UP),
730 	UNIPHIER_PINCTRL_PIN(235, "VO1HDCK", UNIPHIER_PIN_IECTRL_NONE,
731 			     221, UNIPHIER_PIN_DRV_4_8,
732 			     221, UNIPHIER_PIN_PULL_DOWN),
733 	UNIPHIER_PINCTRL_PIN(236, "VO1HSYNC", UNIPHIER_PIN_IECTRL_NONE,
734 			     222, UNIPHIER_PIN_DRV_4_8,
735 			     222, UNIPHIER_PIN_PULL_DOWN),
736 	UNIPHIER_PINCTRL_PIN(237, "VO1VSYNC", UNIPHIER_PIN_IECTRL_NONE,
737 			     223, UNIPHIER_PIN_DRV_4_8,
738 			     223, UNIPHIER_PIN_PULL_DOWN),
739 	UNIPHIER_PINCTRL_PIN(238, "VO1DE", UNIPHIER_PIN_IECTRL_NONE,
740 			     224, UNIPHIER_PIN_DRV_4_8,
741 			     224, UNIPHIER_PIN_PULL_DOWN),
742 	UNIPHIER_PINCTRL_PIN(239, "VO1Y0", UNIPHIER_PIN_IECTRL_NONE,
743 			     225, UNIPHIER_PIN_DRV_4_8,
744 			     225, UNIPHIER_PIN_PULL_DOWN),
745 	UNIPHIER_PINCTRL_PIN(240, "VO1Y1", UNIPHIER_PIN_IECTRL_NONE,
746 			     226, UNIPHIER_PIN_DRV_4_8,
747 			     226, UNIPHIER_PIN_PULL_DOWN),
748 	UNIPHIER_PINCTRL_PIN(241, "VO1Y2", UNIPHIER_PIN_IECTRL_NONE,
749 			     227, UNIPHIER_PIN_DRV_4_8,
750 			     227, UNIPHIER_PIN_PULL_DOWN),
751 	UNIPHIER_PINCTRL_PIN(242, "VO1Y3", UNIPHIER_PIN_IECTRL_NONE,
752 			     228, UNIPHIER_PIN_DRV_4_8,
753 			     228, UNIPHIER_PIN_PULL_DOWN),
754 	UNIPHIER_PINCTRL_PIN(243, "VO1Y4", UNIPHIER_PIN_IECTRL_NONE,
755 			     229, UNIPHIER_PIN_DRV_4_8,
756 			     229, UNIPHIER_PIN_PULL_DOWN),
757 	UNIPHIER_PINCTRL_PIN(244, "VO1Y5", UNIPHIER_PIN_IECTRL_NONE,
758 			     230, UNIPHIER_PIN_DRV_4_8,
759 			     230, UNIPHIER_PIN_PULL_DOWN),
760 	UNIPHIER_PINCTRL_PIN(245, "VO1Y6", UNIPHIER_PIN_IECTRL_NONE,
761 			     231, UNIPHIER_PIN_DRV_4_8,
762 			     231, UNIPHIER_PIN_PULL_DOWN),
763 	UNIPHIER_PINCTRL_PIN(246, "VO1Y7", UNIPHIER_PIN_IECTRL_NONE,
764 			     232, UNIPHIER_PIN_DRV_4_8,
765 			     232, UNIPHIER_PIN_PULL_DOWN),
766 	UNIPHIER_PINCTRL_PIN(247, "VO1Y8", UNIPHIER_PIN_IECTRL_NONE,
767 			     233, UNIPHIER_PIN_DRV_4_8,
768 			     233, UNIPHIER_PIN_PULL_DOWN),
769 	UNIPHIER_PINCTRL_PIN(248, "VO1Y9", UNIPHIER_PIN_IECTRL_NONE,
770 			     234, UNIPHIER_PIN_DRV_4_8,
771 			     234, UNIPHIER_PIN_PULL_DOWN),
772 	UNIPHIER_PINCTRL_PIN(249, "VO1Y10", UNIPHIER_PIN_IECTRL_NONE,
773 			     235, UNIPHIER_PIN_DRV_4_8,
774 			     235, UNIPHIER_PIN_PULL_DOWN),
775 	UNIPHIER_PINCTRL_PIN(250, "VO1Y11", UNIPHIER_PIN_IECTRL_NONE,
776 			     236, UNIPHIER_PIN_DRV_4_8,
777 			     236, UNIPHIER_PIN_PULL_DOWN),
778 	UNIPHIER_PINCTRL_PIN(251, "VO1CB0", UNIPHIER_PIN_IECTRL_NONE,
779 			     237, UNIPHIER_PIN_DRV_4_8,
780 			     237, UNIPHIER_PIN_PULL_DOWN),
781 	UNIPHIER_PINCTRL_PIN(252, "VO1CB1", UNIPHIER_PIN_IECTRL_NONE,
782 			     238, UNIPHIER_PIN_DRV_4_8,
783 			     238, UNIPHIER_PIN_PULL_DOWN),
784 	UNIPHIER_PINCTRL_PIN(253, "VO1CB2", UNIPHIER_PIN_IECTRL_NONE,
785 			     239, UNIPHIER_PIN_DRV_4_8,
786 			     239, UNIPHIER_PIN_PULL_DOWN),
787 	UNIPHIER_PINCTRL_PIN(254, "VO1CB3", UNIPHIER_PIN_IECTRL_NONE,
788 			     240, UNIPHIER_PIN_DRV_4_8,
789 			     240, UNIPHIER_PIN_PULL_DOWN),
790 	UNIPHIER_PINCTRL_PIN(255, "VO1CB4", UNIPHIER_PIN_IECTRL_NONE,
791 			     241, UNIPHIER_PIN_DRV_4_8,
792 			     241, UNIPHIER_PIN_PULL_DOWN),
793 	UNIPHIER_PINCTRL_PIN(256, "VO1CB5", UNIPHIER_PIN_IECTRL_NONE,
794 			     242, UNIPHIER_PIN_DRV_4_8,
795 			     242, UNIPHIER_PIN_PULL_DOWN),
796 	UNIPHIER_PINCTRL_PIN(257, "VO1CB6", UNIPHIER_PIN_IECTRL_NONE,
797 			     243, UNIPHIER_PIN_DRV_4_8,
798 			     243, UNIPHIER_PIN_PULL_DOWN),
799 	UNIPHIER_PINCTRL_PIN(258, "VO1CB7", UNIPHIER_PIN_IECTRL_NONE,
800 			     244, UNIPHIER_PIN_DRV_4_8,
801 			     244, UNIPHIER_PIN_PULL_DOWN),
802 	UNIPHIER_PINCTRL_PIN(259, "VO1CB8", UNIPHIER_PIN_IECTRL_NONE,
803 			     245, UNIPHIER_PIN_DRV_4_8,
804 			     245, UNIPHIER_PIN_PULL_DOWN),
805 	UNIPHIER_PINCTRL_PIN(260, "VO1CB9", UNIPHIER_PIN_IECTRL_NONE,
806 			     246, UNIPHIER_PIN_DRV_4_8,
807 			     246, UNIPHIER_PIN_PULL_DOWN),
808 	UNIPHIER_PINCTRL_PIN(261, "VO1CB10", UNIPHIER_PIN_IECTRL_NONE,
809 			     247, UNIPHIER_PIN_DRV_4_8,
810 			     247, UNIPHIER_PIN_PULL_DOWN),
811 	UNIPHIER_PINCTRL_PIN(262, "VO1CB11", UNIPHIER_PIN_IECTRL_NONE,
812 			     248, UNIPHIER_PIN_DRV_4_8,
813 			     248, UNIPHIER_PIN_PULL_DOWN),
814 	UNIPHIER_PINCTRL_PIN(263, "VO1CR0", UNIPHIER_PIN_IECTRL_NONE,
815 			     249, UNIPHIER_PIN_DRV_4_8,
816 			     249, UNIPHIER_PIN_PULL_DOWN),
817 	UNIPHIER_PINCTRL_PIN(264, "VO1CR1", UNIPHIER_PIN_IECTRL_NONE,
818 			     250, UNIPHIER_PIN_DRV_4_8,
819 			     250, UNIPHIER_PIN_PULL_DOWN),
820 	UNIPHIER_PINCTRL_PIN(265, "VO1CR2", UNIPHIER_PIN_IECTRL_NONE,
821 			     251, UNIPHIER_PIN_DRV_4_8,
822 			     251, UNIPHIER_PIN_PULL_DOWN),
823 	UNIPHIER_PINCTRL_PIN(266, "VO1CR3", UNIPHIER_PIN_IECTRL_NONE,
824 			     252, UNIPHIER_PIN_DRV_4_8,
825 			     252, UNIPHIER_PIN_PULL_DOWN),
826 	UNIPHIER_PINCTRL_PIN(267, "VO1CR4", UNIPHIER_PIN_IECTRL_NONE,
827 			     253, UNIPHIER_PIN_DRV_4_8,
828 			     253, UNIPHIER_PIN_PULL_DOWN),
829 	UNIPHIER_PINCTRL_PIN(268, "VO1CR5", UNIPHIER_PIN_IECTRL_NONE,
830 			     254, UNIPHIER_PIN_DRV_4_8,
831 			     254, UNIPHIER_PIN_PULL_DOWN),
832 	UNIPHIER_PINCTRL_PIN(269, "VO1CR6", UNIPHIER_PIN_IECTRL_NONE,
833 			     255, UNIPHIER_PIN_DRV_4_8,
834 			     255, UNIPHIER_PIN_PULL_DOWN),
835 	UNIPHIER_PINCTRL_PIN(270, "VO1CR7", UNIPHIER_PIN_IECTRL_NONE,
836 			     256, UNIPHIER_PIN_DRV_4_8,
837 			     256, UNIPHIER_PIN_PULL_DOWN),
838 	UNIPHIER_PINCTRL_PIN(271, "VO1CR8", UNIPHIER_PIN_IECTRL_NONE,
839 			     257, UNIPHIER_PIN_DRV_4_8,
840 			     257, UNIPHIER_PIN_PULL_DOWN),
841 	UNIPHIER_PINCTRL_PIN(272, "VO1CR9", UNIPHIER_PIN_IECTRL_NONE,
842 			     258, UNIPHIER_PIN_DRV_4_8,
843 			     258, UNIPHIER_PIN_PULL_DOWN),
844 	UNIPHIER_PINCTRL_PIN(273, "VO1CR10", UNIPHIER_PIN_IECTRL_NONE,
845 			     259, UNIPHIER_PIN_DRV_4_8,
846 			     259, UNIPHIER_PIN_PULL_DOWN),
847 	UNIPHIER_PINCTRL_PIN(274, "VO1CR11", UNIPHIER_PIN_IECTRL_NONE,
848 			     260, UNIPHIER_PIN_DRV_4_8,
849 			     260, UNIPHIER_PIN_PULL_DOWN),
850 	UNIPHIER_PINCTRL_PIN(275, "VO1EX0", UNIPHIER_PIN_IECTRL_NONE,
851 			     261, UNIPHIER_PIN_DRV_4_8,
852 			     261, UNIPHIER_PIN_PULL_DOWN),
853 	UNIPHIER_PINCTRL_PIN(276, "VO1EX1", UNIPHIER_PIN_IECTRL_NONE,
854 			     262, UNIPHIER_PIN_DRV_4_8,
855 			     262, UNIPHIER_PIN_PULL_DOWN),
856 	UNIPHIER_PINCTRL_PIN(277, "VO1EX2", UNIPHIER_PIN_IECTRL_NONE,
857 			     263, UNIPHIER_PIN_DRV_4_8,
858 			     263, UNIPHIER_PIN_PULL_DOWN),
859 	UNIPHIER_PINCTRL_PIN(278, "VO1EX3", UNIPHIER_PIN_IECTRL_NONE,
860 			     264, UNIPHIER_PIN_DRV_4_8,
861 			     264, UNIPHIER_PIN_PULL_DOWN),
862 	UNIPHIER_PINCTRL_PIN(279, "VEXCKA", UNIPHIER_PIN_IECTRL_NONE,
863 			     265, UNIPHIER_PIN_DRV_4_8,
864 			     265, UNIPHIER_PIN_PULL_DOWN),
865 	UNIPHIER_PINCTRL_PIN(280, "VSEL0", UNIPHIER_PIN_IECTRL_NONE,
866 			     266, UNIPHIER_PIN_DRV_4_8,
867 			     266, UNIPHIER_PIN_PULL_DOWN),
868 	UNIPHIER_PINCTRL_PIN(281, "VSEL1", UNIPHIER_PIN_IECTRL_NONE,
869 			     267, UNIPHIER_PIN_DRV_4_8,
870 			     267, UNIPHIER_PIN_PULL_DOWN),
871 	UNIPHIER_PINCTRL_PIN(282, "AO1DACCK", UNIPHIER_PIN_IECTRL_NONE,
872 			     268, UNIPHIER_PIN_DRV_4_8,
873 			     268, UNIPHIER_PIN_PULL_DOWN),
874 	UNIPHIER_PINCTRL_PIN(283, "AO1BCK", UNIPHIER_PIN_IECTRL_NONE,
875 			     269, UNIPHIER_PIN_DRV_4_8,
876 			     269, UNIPHIER_PIN_PULL_DOWN),
877 	UNIPHIER_PINCTRL_PIN(284, "AO1LRCK", UNIPHIER_PIN_IECTRL_NONE,
878 			     270, UNIPHIER_PIN_DRV_4_8,
879 			     270, UNIPHIER_PIN_PULL_DOWN),
880 	UNIPHIER_PINCTRL_PIN(285, "AO1D0", UNIPHIER_PIN_IECTRL_NONE,
881 			     271, UNIPHIER_PIN_DRV_4_8,
882 			     271, UNIPHIER_PIN_PULL_DOWN),
883 	UNIPHIER_PINCTRL_PIN(286, "AO1D1", UNIPHIER_PIN_IECTRL_NONE,
884 			     272, UNIPHIER_PIN_DRV_4_8,
885 			     272, UNIPHIER_PIN_PULL_DOWN),
886 	UNIPHIER_PINCTRL_PIN(287, "AO1D2", UNIPHIER_PIN_IECTRL_NONE,
887 			     273, UNIPHIER_PIN_DRV_4_8,
888 			     273, UNIPHIER_PIN_PULL_DOWN),
889 	UNIPHIER_PINCTRL_PIN(288, "AO1D3", UNIPHIER_PIN_IECTRL_NONE,
890 			     274, UNIPHIER_PIN_DRV_4_8,
891 			     274, UNIPHIER_PIN_PULL_DOWN),
892 	UNIPHIER_PINCTRL_PIN(289, "AO1IEC", UNIPHIER_PIN_IECTRL_NONE,
893 			     275, UNIPHIER_PIN_DRV_4_8,
894 			     275, UNIPHIER_PIN_PULL_DOWN),
895 	UNIPHIER_PINCTRL_PIN(290, "XDAC_PD", UNIPHIER_PIN_IECTRL_NONE,
896 			     276, UNIPHIER_PIN_DRV_4_8,
897 			     276, UNIPHIER_PIN_PULL_DOWN),
898 	UNIPHIER_PINCTRL_PIN(291, "EX_A_MUTE", UNIPHIER_PIN_IECTRL_NONE,
899 			     277, UNIPHIER_PIN_DRV_4_8,
900 			     277, UNIPHIER_PIN_PULL_UP),
901 	UNIPHIER_PINCTRL_PIN(292, "AO2DACCK", UNIPHIER_PIN_IECTRL_NONE,
902 			     278, UNIPHIER_PIN_DRV_4_8,
903 			     278, UNIPHIER_PIN_PULL_DOWN),
904 	UNIPHIER_PINCTRL_PIN(293, "AO2BCK", UNIPHIER_PIN_IECTRL_NONE,
905 			     279, UNIPHIER_PIN_DRV_4_8,
906 			     279, UNIPHIER_PIN_PULL_DOWN),
907 	UNIPHIER_PINCTRL_PIN(294, "AO2LRCK", UNIPHIER_PIN_IECTRL_NONE,
908 			     280, UNIPHIER_PIN_DRV_4_8,
909 			     280, UNIPHIER_PIN_PULL_DOWN),
910 	UNIPHIER_PINCTRL_PIN(295, "AO2DMIX", UNIPHIER_PIN_IECTRL_NONE,
911 			     281, UNIPHIER_PIN_DRV_4_8,
912 			     281, UNIPHIER_PIN_PULL_DOWN),
913 	UNIPHIER_PINCTRL_PIN(296, "AO2IEC", UNIPHIER_PIN_IECTRL_NONE,
914 			     282, UNIPHIER_PIN_DRV_4_8,
915 			     282, UNIPHIER_PIN_PULL_DOWN),
916 	UNIPHIER_PINCTRL_PIN(297, "HTHPD", UNIPHIER_PIN_IECTRL_NONE,
917 			     -1, UNIPHIER_PIN_DRV_FIXED_5,
918 			     -1, UNIPHIER_PIN_PULL_NONE),
919 	UNIPHIER_PINCTRL_PIN(298, "HTSCL", UNIPHIER_PIN_IECTRL_NONE,
920 			     -1, UNIPHIER_PIN_DRV_FIXED_5,
921 			     -1, UNIPHIER_PIN_PULL_NONE),
922 	UNIPHIER_PINCTRL_PIN(299, "HTSDA", UNIPHIER_PIN_IECTRL_NONE,
923 			     -1, UNIPHIER_PIN_DRV_FIXED_5,
924 			     -1, UNIPHIER_PIN_PULL_NONE),
925 	UNIPHIER_PINCTRL_PIN(300, "PORT00", UNIPHIER_PIN_IECTRL_NONE,
926 			     284, UNIPHIER_PIN_DRV_4_8,
927 			     284, UNIPHIER_PIN_PULL_DOWN),
928 	UNIPHIER_PINCTRL_PIN(301, "PORT01", UNIPHIER_PIN_IECTRL_NONE,
929 			     285, UNIPHIER_PIN_DRV_4_8,
930 			     285, UNIPHIER_PIN_PULL_DOWN),
931 	UNIPHIER_PINCTRL_PIN(302, "PORT02", UNIPHIER_PIN_IECTRL_NONE,
932 			     286, UNIPHIER_PIN_DRV_4_8,
933 			     286, UNIPHIER_PIN_PULL_DOWN),
934 	UNIPHIER_PINCTRL_PIN(303, "PORT03", UNIPHIER_PIN_IECTRL_NONE,
935 			     287, UNIPHIER_PIN_DRV_4_8,
936 			     287, UNIPHIER_PIN_PULL_DOWN),
937 	UNIPHIER_PINCTRL_PIN(304, "PORT04", UNIPHIER_PIN_IECTRL_NONE,
938 			     288, UNIPHIER_PIN_DRV_4_8,
939 			     288, UNIPHIER_PIN_PULL_DOWN),
940 	UNIPHIER_PINCTRL_PIN(305, "PORT05", UNIPHIER_PIN_IECTRL_NONE,
941 			     289, UNIPHIER_PIN_DRV_4_8,
942 			     289, UNIPHIER_PIN_PULL_DOWN),
943 	UNIPHIER_PINCTRL_PIN(306, "PORT06", UNIPHIER_PIN_IECTRL_NONE,
944 			     290, UNIPHIER_PIN_DRV_4_8,
945 			     290, UNIPHIER_PIN_PULL_DOWN),
946 	UNIPHIER_PINCTRL_PIN(307, "PORT07", UNIPHIER_PIN_IECTRL_NONE,
947 			     291, UNIPHIER_PIN_DRV_4_8,
948 			     291, UNIPHIER_PIN_PULL_DOWN),
949 	UNIPHIER_PINCTRL_PIN(308, "PORT10", UNIPHIER_PIN_IECTRL_NONE,
950 			     292, UNIPHIER_PIN_DRV_4_8,
951 			     292, UNIPHIER_PIN_PULL_DOWN),
952 	UNIPHIER_PINCTRL_PIN(309, "PORT11", UNIPHIER_PIN_IECTRL_NONE,
953 			     293, UNIPHIER_PIN_DRV_4_8,
954 			     293, UNIPHIER_PIN_PULL_DOWN),
955 	UNIPHIER_PINCTRL_PIN(310, "PORT12", UNIPHIER_PIN_IECTRL_NONE,
956 			     294, UNIPHIER_PIN_DRV_4_8,
957 			     294, UNIPHIER_PIN_PULL_DOWN),
958 	UNIPHIER_PINCTRL_PIN(311, "PORT13", UNIPHIER_PIN_IECTRL_NONE,
959 			     295, UNIPHIER_PIN_DRV_4_8,
960 			     295, UNIPHIER_PIN_PULL_DOWN),
961 	UNIPHIER_PINCTRL_PIN(312, "PORT14", UNIPHIER_PIN_IECTRL_NONE,
962 			     296, UNIPHIER_PIN_DRV_4_8,
963 			     296, UNIPHIER_PIN_PULL_DOWN),
964 	UNIPHIER_PINCTRL_PIN(313, "PORT15", UNIPHIER_PIN_IECTRL_NONE,
965 			     297, UNIPHIER_PIN_DRV_4_8,
966 			     297, UNIPHIER_PIN_PULL_DOWN),
967 	UNIPHIER_PINCTRL_PIN(314, "PORT16", UNIPHIER_PIN_IECTRL_NONE,
968 			     298, UNIPHIER_PIN_DRV_4_8,
969 			     298, UNIPHIER_PIN_PULL_DOWN),
970 	UNIPHIER_PINCTRL_PIN(315, "PORT17", UNIPHIER_PIN_IECTRL_NONE,
971 			     299, UNIPHIER_PIN_DRV_4_8,
972 			     299, UNIPHIER_PIN_PULL_DOWN),
973 	UNIPHIER_PINCTRL_PIN(316, "PORT20", UNIPHIER_PIN_IECTRL_NONE,
974 			     300, UNIPHIER_PIN_DRV_4_8,
975 			     300, UNIPHIER_PIN_PULL_DOWN),
976 	UNIPHIER_PINCTRL_PIN(317, "PORT21", UNIPHIER_PIN_IECTRL_NONE,
977 			     301, UNIPHIER_PIN_DRV_4_8,
978 			     301, UNIPHIER_PIN_PULL_DOWN),
979 	UNIPHIER_PINCTRL_PIN(318, "PORT22", UNIPHIER_PIN_IECTRL_NONE,
980 			     302, UNIPHIER_PIN_DRV_4_8,
981 			     302, UNIPHIER_PIN_PULL_UP),
982 	UNIPHIER_PINCTRL_PIN(319, "SD1DAT0", UNIPHIER_PIN_IECTRL_NONE,
983 			     303, UNIPHIER_PIN_DRV_4_8,
984 			     303, UNIPHIER_PIN_PULL_UP),
985 	UNIPHIER_PINCTRL_PIN(320, "SD1DAT1", UNIPHIER_PIN_IECTRL_NONE,
986 			     304, UNIPHIER_PIN_DRV_4_8,
987 			     304, UNIPHIER_PIN_PULL_UP),
988 	UNIPHIER_PINCTRL_PIN(321, "SD1DAT2", UNIPHIER_PIN_IECTRL_NONE,
989 			     305, UNIPHIER_PIN_DRV_4_8,
990 			     305, UNIPHIER_PIN_PULL_UP),
991 	UNIPHIER_PINCTRL_PIN(322, "SD1DAT3", UNIPHIER_PIN_IECTRL_NONE,
992 			     306, UNIPHIER_PIN_DRV_4_8,
993 			     306, UNIPHIER_PIN_PULL_UP),
994 	UNIPHIER_PINCTRL_PIN(323, "SD1CMD", UNIPHIER_PIN_IECTRL_NONE,
995 			     307, UNIPHIER_PIN_DRV_4_8,
996 			     307, UNIPHIER_PIN_PULL_UP),
997 	UNIPHIER_PINCTRL_PIN(324, "SD1CLK", UNIPHIER_PIN_IECTRL_NONE,
998 			     308, UNIPHIER_PIN_DRV_4_8,
999 			     308, UNIPHIER_PIN_PULL_UP),
1000 	UNIPHIER_PINCTRL_PIN(325, "SD1CD", UNIPHIER_PIN_IECTRL_NONE,
1001 			     309, UNIPHIER_PIN_DRV_4_8,
1002 			     309, UNIPHIER_PIN_PULL_UP),
1003 	UNIPHIER_PINCTRL_PIN(326, "SD1WP", UNIPHIER_PIN_IECTRL_NONE,
1004 			     310, UNIPHIER_PIN_DRV_4_8,
1005 			     310, UNIPHIER_PIN_PULL_UP),
1006 	UNIPHIER_PINCTRL_PIN(327, "SD1VTCG", UNIPHIER_PIN_IECTRL_NONE,
1007 			     311, UNIPHIER_PIN_DRV_4_8,
1008 			     311, UNIPHIER_PIN_PULL_UP),
1009 	UNIPHIER_PINCTRL_PIN(328, "DMDISO", UNIPHIER_PIN_IECTRL_NONE,
1010 			     312, UNIPHIER_PIN_DRV_NONE,
1011 			     312, UNIPHIER_PIN_PULL_DOWN),
1012 };
1013 
1014 static const unsigned emmc_pins[] = {40, 41, 42, 43, 51, 52, 53};
1015 static const unsigned emmc_muxvals[] = {1, 1, 1, 1, 1, 1, 1};
1016 static const unsigned emmc_dat8_pins[] = {44, 45, 46, 47};
1017 static const unsigned emmc_dat8_muxvals[] = {1, 1, 1, 1};
1018 static const unsigned i2c0_pins[] = {142, 143};
1019 static const unsigned i2c0_muxvals[] = {0, 0};
1020 static const unsigned i2c1_pins[] = {144, 145};
1021 static const unsigned i2c1_muxvals[] = {0, 0};
1022 static const unsigned i2c2_pins[] = {146, 147};
1023 static const unsigned i2c2_muxvals[] = {0, 0};
1024 static const unsigned i2c3_pins[] = {148, 149};
1025 static const unsigned i2c3_muxvals[] = {0, 0};
1026 static const unsigned i2c6_pins[] = {308, 309};
1027 static const unsigned i2c6_muxvals[] = {6, 6};
1028 static const unsigned nand_pins[] = {40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
1029 				     50, 51, 52, 53, 54};
1030 static const unsigned nand_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1031 					0, 0};
1032 static const unsigned nand_cs1_pins[] = {131, 132};
1033 static const unsigned nand_cs1_muxvals[] = {1, 1};
1034 static const unsigned sd_pins[] = {150, 151, 152, 153, 154, 155, 156, 157, 158};
1035 static const unsigned sd_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
1036 static const unsigned sd1_pins[] = {319, 320, 321, 322, 323, 324, 325, 326,
1037 				    327};
1038 static const unsigned sd1_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
1039 static const unsigned uart0_pins[] = {127, 128};
1040 static const unsigned uart0_muxvals[] = {0, 0};
1041 static const unsigned uart1_pins[] = {129, 130};
1042 static const unsigned uart1_muxvals[] = {0, 0};
1043 static const unsigned uart2_pins[] = {131, 132};
1044 static const unsigned uart2_muxvals[] = {0, 0};
1045 static const unsigned uart3_pins[] = {88, 89};
1046 static const unsigned uart3_muxvals[] = {2, 2};
1047 static const unsigned usb0_pins[] = {180, 181};
1048 static const unsigned usb0_muxvals[] = {0, 0};
1049 static const unsigned usb1_pins[] = {182, 183};
1050 static const unsigned usb1_muxvals[] = {0, 0};
1051 static const unsigned usb2_pins[] = {184, 185};
1052 static const unsigned usb2_muxvals[] = {0, 0};
1053 static const unsigned usb3_pins[] = {186, 187};
1054 static const unsigned usb3_muxvals[] = {0, 0};
1055 static const unsigned port_range0_pins[] = {
1056 	300, 301, 302, 303, 304, 305, 306, 307,		/* PORT0x */
1057 	308, 309, 310, 311, 312, 313, 314, 315,		/* PORT1x */
1058 	316, 317, 318, 16, 17, 18, 19, 20,		/* PORT2x */
1059 	21, 22, 23, 4, 93, 94, 95, 63,			/* PORT3x */
1060 	123, 122, 124, 125, 126, 141, 202, 203,		/* PORT4x */
1061 	204, 226, 227, 290, 291, 233, 280, 281,		/* PORT5x */
1062 	8, 7, 10, 29, 30, 48, 49, 50,			/* PORT6x */
1063 	40, 41, 42, 43, 44, 45, 46, 47,			/* PORT7x */
1064 	54, 51, 52, 53, 127, 128, 129, 130,		/* PORT8x */
1065 	131, 132, 57, 60, 134, 133, 135, 136,		/* PORT9x */
1066 	138, 137, 140, 139, 64, 65, 66, 67,		/* PORT10x */
1067 	107, 106, 105, 104, 113, 112, 111, 110,		/* PORT11x */
1068 	68, 69, 70, 71, 72, 73, 74, 75,			/* PORT12x */
1069 	76, 77, 78, 79, 80, 81, 82, 83,			/* PORT13x */
1070 	84, 85, 86, 87, 88, 89, 90, 91,			/* PORT14x */
1071 };
1072 static const unsigned port_range0_muxvals[] = {
1073 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT0x */
1074 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT1x */
1075 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT2x */
1076 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT3x */
1077 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT4x */
1078 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT5x */
1079 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT6x */
1080 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT7x */
1081 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT8x */
1082 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT9x */
1083 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT10x */
1084 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT11x */
1085 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT12x */
1086 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT13x */
1087 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT14x */
1088 };
1089 static const unsigned port_range1_pins[] = {
1090 	13, 14, 15,					/* PORT175-177 */
1091 	157, 158, 156, 154, 150, 151, 152, 153,		/* PORT18x */
1092 	326, 327, 325, 323, 319, 320, 321, 322,		/* PORT19x */
1093 	160, 161, 162, 163, 164, 165, 166, 167,		/* PORT20x */
1094 	168, 169, 170, 171, 172, 173, 174, 175,		/* PORT21x */
1095 	180, 181, 182, 183, 184, 185, 187, 188,		/* PORT22x */
1096 	193, 194, 195, 196, 197, 198, 199, 200,		/* PORT23x */
1097 	191, 192, 215, 216, 217, 218, 219, 220,		/* PORT24x */
1098 	222, 223, 224, 225, 228, 229, 230, 231,		/* PORT25x */
1099 	282, 283, 284, 285, 286, 287, 288, 289,		/* PORT26x */
1100 	292, 293, 294, 295, 296, 236, 237, 238,		/* PORT27x */
1101 	275, 276, 277, 278, 239, 240, 249, 250,		/* PORT28x */
1102 	251, 252, 261, 262, 263, 264, 273, 274,		/* PORT29x */
1103 	31, 32, 33, 34, 35, 36, 37, 38,			/* PORT30x */
1104 };
1105 static const unsigned port_range1_muxvals[] = {
1106 	7, 7, 7,					/* PORT175-177 */
1107 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT18x */
1108 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT19x */
1109 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT20x */
1110 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT21x */
1111 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT22x */
1112 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT23x */
1113 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT24x */
1114 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT25x */
1115 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT26x */
1116 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT27x */
1117 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT28x */
1118 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT29x */
1119 	7, 7, 7, 7, 7, 7, 7, 7,				/* PORT30x */
1120 };
1121 static const unsigned xirq_pins[] = {
1122 	11, 9, 12, 96, 97, 98, 108, 114,		/* XIRQ0-7 */
1123 	234, 186, 99, 100, 101, 102, 184, 301,		/* XIRQ8-15 */
1124 	302, 303, 304, 305, 306,			/* XIRQ16-20 */
1125 };
1126 static const unsigned xirq_muxvals[] = {
1127 	7, 7, 7, 7, 7, 7, 7, 7,				/* XIRQ0-7 */
1128 	7, 7, 7, 7, 7, 7, 2, 2,				/* XIRQ8-15 */
1129 	2, 2, 2, 2, 2,					/* XIRQ16-20 */
1130 };
1131 static const unsigned xirq_alternatives_pins[] = {
1132 	184, 310, 316,
1133 };
1134 static const unsigned xirq_alternatives_muxvals[] = {
1135 	2, 2, 2,
1136 };
1137 
1138 static const struct uniphier_pinctrl_group ph1_pro4_groups[] = {
1139 	UNIPHIER_PINCTRL_GROUP(emmc),
1140 	UNIPHIER_PINCTRL_GROUP(emmc_dat8),
1141 	UNIPHIER_PINCTRL_GROUP(i2c0),
1142 	UNIPHIER_PINCTRL_GROUP(i2c1),
1143 	UNIPHIER_PINCTRL_GROUP(i2c2),
1144 	UNIPHIER_PINCTRL_GROUP(i2c3),
1145 	UNIPHIER_PINCTRL_GROUP(i2c6),
1146 	UNIPHIER_PINCTRL_GROUP(nand),
1147 	UNIPHIER_PINCTRL_GROUP(nand_cs1),
1148 	UNIPHIER_PINCTRL_GROUP(sd),
1149 	UNIPHIER_PINCTRL_GROUP(sd1),
1150 	UNIPHIER_PINCTRL_GROUP(uart0),
1151 	UNIPHIER_PINCTRL_GROUP(uart1),
1152 	UNIPHIER_PINCTRL_GROUP(uart2),
1153 	UNIPHIER_PINCTRL_GROUP(uart3),
1154 	UNIPHIER_PINCTRL_GROUP(usb0),
1155 	UNIPHIER_PINCTRL_GROUP(usb1),
1156 	UNIPHIER_PINCTRL_GROUP(usb2),
1157 	UNIPHIER_PINCTRL_GROUP(usb3),
1158 	UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_PORT(port_range0),
1159 	UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_PORT(port_range1),
1160 	UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_IRQ(xirq),
1161 	UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_IRQ(xirq_alternatives),
1162 	UNIPHIER_PINCTRL_GROUP_SINGLE(port00, port_range0, 0),
1163 	UNIPHIER_PINCTRL_GROUP_SINGLE(port01, port_range0, 1),
1164 	UNIPHIER_PINCTRL_GROUP_SINGLE(port02, port_range0, 2),
1165 	UNIPHIER_PINCTRL_GROUP_SINGLE(port03, port_range0, 3),
1166 	UNIPHIER_PINCTRL_GROUP_SINGLE(port04, port_range0, 4),
1167 	UNIPHIER_PINCTRL_GROUP_SINGLE(port05, port_range0, 5),
1168 	UNIPHIER_PINCTRL_GROUP_SINGLE(port06, port_range0, 6),
1169 	UNIPHIER_PINCTRL_GROUP_SINGLE(port07, port_range0, 7),
1170 	UNIPHIER_PINCTRL_GROUP_SINGLE(port10, port_range0, 8),
1171 	UNIPHIER_PINCTRL_GROUP_SINGLE(port11, port_range0, 9),
1172 	UNIPHIER_PINCTRL_GROUP_SINGLE(port12, port_range0, 10),
1173 	UNIPHIER_PINCTRL_GROUP_SINGLE(port13, port_range0, 11),
1174 	UNIPHIER_PINCTRL_GROUP_SINGLE(port14, port_range0, 12),
1175 	UNIPHIER_PINCTRL_GROUP_SINGLE(port15, port_range0, 13),
1176 	UNIPHIER_PINCTRL_GROUP_SINGLE(port16, port_range0, 14),
1177 	UNIPHIER_PINCTRL_GROUP_SINGLE(port17, port_range0, 15),
1178 	UNIPHIER_PINCTRL_GROUP_SINGLE(port20, port_range0, 16),
1179 	UNIPHIER_PINCTRL_GROUP_SINGLE(port21, port_range0, 17),
1180 	UNIPHIER_PINCTRL_GROUP_SINGLE(port22, port_range0, 18),
1181 	UNIPHIER_PINCTRL_GROUP_SINGLE(port23, port_range0, 19),
1182 	UNIPHIER_PINCTRL_GROUP_SINGLE(port24, port_range0, 20),
1183 	UNIPHIER_PINCTRL_GROUP_SINGLE(port25, port_range0, 21),
1184 	UNIPHIER_PINCTRL_GROUP_SINGLE(port26, port_range0, 22),
1185 	UNIPHIER_PINCTRL_GROUP_SINGLE(port27, port_range0, 23),
1186 	UNIPHIER_PINCTRL_GROUP_SINGLE(port30, port_range0, 24),
1187 	UNIPHIER_PINCTRL_GROUP_SINGLE(port31, port_range0, 25),
1188 	UNIPHIER_PINCTRL_GROUP_SINGLE(port32, port_range0, 26),
1189 	UNIPHIER_PINCTRL_GROUP_SINGLE(port33, port_range0, 27),
1190 	UNIPHIER_PINCTRL_GROUP_SINGLE(port34, port_range0, 28),
1191 	UNIPHIER_PINCTRL_GROUP_SINGLE(port35, port_range0, 29),
1192 	UNIPHIER_PINCTRL_GROUP_SINGLE(port36, port_range0, 30),
1193 	UNIPHIER_PINCTRL_GROUP_SINGLE(port37, port_range0, 31),
1194 	UNIPHIER_PINCTRL_GROUP_SINGLE(port40, port_range0, 32),
1195 	UNIPHIER_PINCTRL_GROUP_SINGLE(port41, port_range0, 33),
1196 	UNIPHIER_PINCTRL_GROUP_SINGLE(port42, port_range0, 34),
1197 	UNIPHIER_PINCTRL_GROUP_SINGLE(port43, port_range0, 35),
1198 	UNIPHIER_PINCTRL_GROUP_SINGLE(port44, port_range0, 36),
1199 	UNIPHIER_PINCTRL_GROUP_SINGLE(port45, port_range0, 37),
1200 	UNIPHIER_PINCTRL_GROUP_SINGLE(port46, port_range0, 38),
1201 	UNIPHIER_PINCTRL_GROUP_SINGLE(port47, port_range0, 39),
1202 	UNIPHIER_PINCTRL_GROUP_SINGLE(port50, port_range0, 40),
1203 	UNIPHIER_PINCTRL_GROUP_SINGLE(port51, port_range0, 41),
1204 	UNIPHIER_PINCTRL_GROUP_SINGLE(port52, port_range0, 42),
1205 	UNIPHIER_PINCTRL_GROUP_SINGLE(port53, port_range0, 43),
1206 	UNIPHIER_PINCTRL_GROUP_SINGLE(port54, port_range0, 44),
1207 	UNIPHIER_PINCTRL_GROUP_SINGLE(port55, port_range0, 45),
1208 	UNIPHIER_PINCTRL_GROUP_SINGLE(port56, port_range0, 46),
1209 	UNIPHIER_PINCTRL_GROUP_SINGLE(port57, port_range0, 47),
1210 	UNIPHIER_PINCTRL_GROUP_SINGLE(port60, port_range0, 48),
1211 	UNIPHIER_PINCTRL_GROUP_SINGLE(port61, port_range0, 49),
1212 	UNIPHIER_PINCTRL_GROUP_SINGLE(port62, port_range0, 50),
1213 	UNIPHIER_PINCTRL_GROUP_SINGLE(port63, port_range0, 51),
1214 	UNIPHIER_PINCTRL_GROUP_SINGLE(port64, port_range0, 52),
1215 	UNIPHIER_PINCTRL_GROUP_SINGLE(port65, port_range0, 53),
1216 	UNIPHIER_PINCTRL_GROUP_SINGLE(port66, port_range0, 54),
1217 	UNIPHIER_PINCTRL_GROUP_SINGLE(port67, port_range0, 55),
1218 	UNIPHIER_PINCTRL_GROUP_SINGLE(port70, port_range0, 56),
1219 	UNIPHIER_PINCTRL_GROUP_SINGLE(port71, port_range0, 57),
1220 	UNIPHIER_PINCTRL_GROUP_SINGLE(port72, port_range0, 58),
1221 	UNIPHIER_PINCTRL_GROUP_SINGLE(port73, port_range0, 59),
1222 	UNIPHIER_PINCTRL_GROUP_SINGLE(port74, port_range0, 60),
1223 	UNIPHIER_PINCTRL_GROUP_SINGLE(port75, port_range0, 61),
1224 	UNIPHIER_PINCTRL_GROUP_SINGLE(port76, port_range0, 62),
1225 	UNIPHIER_PINCTRL_GROUP_SINGLE(port77, port_range0, 63),
1226 	UNIPHIER_PINCTRL_GROUP_SINGLE(port80, port_range0, 64),
1227 	UNIPHIER_PINCTRL_GROUP_SINGLE(port81, port_range0, 65),
1228 	UNIPHIER_PINCTRL_GROUP_SINGLE(port82, port_range0, 66),
1229 	UNIPHIER_PINCTRL_GROUP_SINGLE(port83, port_range0, 67),
1230 	UNIPHIER_PINCTRL_GROUP_SINGLE(port84, port_range0, 68),
1231 	UNIPHIER_PINCTRL_GROUP_SINGLE(port85, port_range0, 69),
1232 	UNIPHIER_PINCTRL_GROUP_SINGLE(port86, port_range0, 70),
1233 	UNIPHIER_PINCTRL_GROUP_SINGLE(port87, port_range0, 71),
1234 	UNIPHIER_PINCTRL_GROUP_SINGLE(port90, port_range0, 72),
1235 	UNIPHIER_PINCTRL_GROUP_SINGLE(port91, port_range0, 73),
1236 	UNIPHIER_PINCTRL_GROUP_SINGLE(port92, port_range0, 74),
1237 	UNIPHIER_PINCTRL_GROUP_SINGLE(port93, port_range0, 75),
1238 	UNIPHIER_PINCTRL_GROUP_SINGLE(port94, port_range0, 76),
1239 	UNIPHIER_PINCTRL_GROUP_SINGLE(port95, port_range0, 77),
1240 	UNIPHIER_PINCTRL_GROUP_SINGLE(port96, port_range0, 78),
1241 	UNIPHIER_PINCTRL_GROUP_SINGLE(port97, port_range0, 79),
1242 	UNIPHIER_PINCTRL_GROUP_SINGLE(port100, port_range0, 80),
1243 	UNIPHIER_PINCTRL_GROUP_SINGLE(port101, port_range0, 81),
1244 	UNIPHIER_PINCTRL_GROUP_SINGLE(port102, port_range0, 82),
1245 	UNIPHIER_PINCTRL_GROUP_SINGLE(port103, port_range0, 83),
1246 	UNIPHIER_PINCTRL_GROUP_SINGLE(port104, port_range0, 84),
1247 	UNIPHIER_PINCTRL_GROUP_SINGLE(port105, port_range0, 85),
1248 	UNIPHIER_PINCTRL_GROUP_SINGLE(port106, port_range0, 86),
1249 	UNIPHIER_PINCTRL_GROUP_SINGLE(port107, port_range0, 87),
1250 	UNIPHIER_PINCTRL_GROUP_SINGLE(port110, port_range0, 88),
1251 	UNIPHIER_PINCTRL_GROUP_SINGLE(port111, port_range0, 89),
1252 	UNIPHIER_PINCTRL_GROUP_SINGLE(port112, port_range0, 90),
1253 	UNIPHIER_PINCTRL_GROUP_SINGLE(port113, port_range0, 91),
1254 	UNIPHIER_PINCTRL_GROUP_SINGLE(port114, port_range0, 92),
1255 	UNIPHIER_PINCTRL_GROUP_SINGLE(port115, port_range0, 93),
1256 	UNIPHIER_PINCTRL_GROUP_SINGLE(port116, port_range0, 94),
1257 	UNIPHIER_PINCTRL_GROUP_SINGLE(port117, port_range0, 95),
1258 	UNIPHIER_PINCTRL_GROUP_SINGLE(port120, port_range0, 96),
1259 	UNIPHIER_PINCTRL_GROUP_SINGLE(port121, port_range0, 97),
1260 	UNIPHIER_PINCTRL_GROUP_SINGLE(port122, port_range0, 98),
1261 	UNIPHIER_PINCTRL_GROUP_SINGLE(port123, port_range0, 99),
1262 	UNIPHIER_PINCTRL_GROUP_SINGLE(port124, port_range0, 100),
1263 	UNIPHIER_PINCTRL_GROUP_SINGLE(port125, port_range0, 101),
1264 	UNIPHIER_PINCTRL_GROUP_SINGLE(port126, port_range0, 102),
1265 	UNIPHIER_PINCTRL_GROUP_SINGLE(port127, port_range0, 103),
1266 	UNIPHIER_PINCTRL_GROUP_SINGLE(port130, port_range0, 104),
1267 	UNIPHIER_PINCTRL_GROUP_SINGLE(port131, port_range0, 105),
1268 	UNIPHIER_PINCTRL_GROUP_SINGLE(port132, port_range0, 106),
1269 	UNIPHIER_PINCTRL_GROUP_SINGLE(port133, port_range0, 107),
1270 	UNIPHIER_PINCTRL_GROUP_SINGLE(port134, port_range0, 108),
1271 	UNIPHIER_PINCTRL_GROUP_SINGLE(port135, port_range0, 109),
1272 	UNIPHIER_PINCTRL_GROUP_SINGLE(port136, port_range0, 110),
1273 	UNIPHIER_PINCTRL_GROUP_SINGLE(port137, port_range0, 111),
1274 	UNIPHIER_PINCTRL_GROUP_SINGLE(port140, port_range0, 112),
1275 	UNIPHIER_PINCTRL_GROUP_SINGLE(port141, port_range0, 113),
1276 	UNIPHIER_PINCTRL_GROUP_SINGLE(port142, port_range0, 114),
1277 	UNIPHIER_PINCTRL_GROUP_SINGLE(port143, port_range0, 115),
1278 	UNIPHIER_PINCTRL_GROUP_SINGLE(port144, port_range0, 116),
1279 	UNIPHIER_PINCTRL_GROUP_SINGLE(port145, port_range0, 117),
1280 	UNIPHIER_PINCTRL_GROUP_SINGLE(port146, port_range0, 118),
1281 	UNIPHIER_PINCTRL_GROUP_SINGLE(port147, port_range0, 119),
1282 	UNIPHIER_PINCTRL_GROUP_SINGLE(port175, port_range1, 0),
1283 	UNIPHIER_PINCTRL_GROUP_SINGLE(port176, port_range1, 1),
1284 	UNIPHIER_PINCTRL_GROUP_SINGLE(port177, port_range1, 2),
1285 	UNIPHIER_PINCTRL_GROUP_SINGLE(port180, port_range1, 3),
1286 	UNIPHIER_PINCTRL_GROUP_SINGLE(port181, port_range1, 4),
1287 	UNIPHIER_PINCTRL_GROUP_SINGLE(port182, port_range1, 5),
1288 	UNIPHIER_PINCTRL_GROUP_SINGLE(port183, port_range1, 6),
1289 	UNIPHIER_PINCTRL_GROUP_SINGLE(port184, port_range1, 7),
1290 	UNIPHIER_PINCTRL_GROUP_SINGLE(port185, port_range1, 8),
1291 	UNIPHIER_PINCTRL_GROUP_SINGLE(port186, port_range1, 9),
1292 	UNIPHIER_PINCTRL_GROUP_SINGLE(port187, port_range1, 10),
1293 	UNIPHIER_PINCTRL_GROUP_SINGLE(port190, port_range1, 11),
1294 	UNIPHIER_PINCTRL_GROUP_SINGLE(port191, port_range1, 12),
1295 	UNIPHIER_PINCTRL_GROUP_SINGLE(port192, port_range1, 13),
1296 	UNIPHIER_PINCTRL_GROUP_SINGLE(port193, port_range1, 14),
1297 	UNIPHIER_PINCTRL_GROUP_SINGLE(port194, port_range1, 15),
1298 	UNIPHIER_PINCTRL_GROUP_SINGLE(port195, port_range1, 16),
1299 	UNIPHIER_PINCTRL_GROUP_SINGLE(port196, port_range1, 17),
1300 	UNIPHIER_PINCTRL_GROUP_SINGLE(port197, port_range1, 18),
1301 	UNIPHIER_PINCTRL_GROUP_SINGLE(port200, port_range1, 19),
1302 	UNIPHIER_PINCTRL_GROUP_SINGLE(port201, port_range1, 20),
1303 	UNIPHIER_PINCTRL_GROUP_SINGLE(port202, port_range1, 21),
1304 	UNIPHIER_PINCTRL_GROUP_SINGLE(port203, port_range1, 22),
1305 	UNIPHIER_PINCTRL_GROUP_SINGLE(port204, port_range1, 23),
1306 	UNIPHIER_PINCTRL_GROUP_SINGLE(port205, port_range1, 24),
1307 	UNIPHIER_PINCTRL_GROUP_SINGLE(port206, port_range1, 25),
1308 	UNIPHIER_PINCTRL_GROUP_SINGLE(port207, port_range1, 26),
1309 	UNIPHIER_PINCTRL_GROUP_SINGLE(port210, port_range1, 27),
1310 	UNIPHIER_PINCTRL_GROUP_SINGLE(port211, port_range1, 28),
1311 	UNIPHIER_PINCTRL_GROUP_SINGLE(port212, port_range1, 29),
1312 	UNIPHIER_PINCTRL_GROUP_SINGLE(port213, port_range1, 30),
1313 	UNIPHIER_PINCTRL_GROUP_SINGLE(port214, port_range1, 31),
1314 	UNIPHIER_PINCTRL_GROUP_SINGLE(port215, port_range1, 32),
1315 	UNIPHIER_PINCTRL_GROUP_SINGLE(port216, port_range1, 33),
1316 	UNIPHIER_PINCTRL_GROUP_SINGLE(port217, port_range1, 34),
1317 	UNIPHIER_PINCTRL_GROUP_SINGLE(port220, port_range1, 35),
1318 	UNIPHIER_PINCTRL_GROUP_SINGLE(port221, port_range1, 36),
1319 	UNIPHIER_PINCTRL_GROUP_SINGLE(port222, port_range1, 37),
1320 	UNIPHIER_PINCTRL_GROUP_SINGLE(port223, port_range1, 38),
1321 	UNIPHIER_PINCTRL_GROUP_SINGLE(port224, port_range1, 39),
1322 	UNIPHIER_PINCTRL_GROUP_SINGLE(port225, port_range1, 40),
1323 	UNIPHIER_PINCTRL_GROUP_SINGLE(port226, port_range1, 41),
1324 	UNIPHIER_PINCTRL_GROUP_SINGLE(port227, port_range1, 42),
1325 	UNIPHIER_PINCTRL_GROUP_SINGLE(port230, port_range1, 43),
1326 	UNIPHIER_PINCTRL_GROUP_SINGLE(port231, port_range1, 44),
1327 	UNIPHIER_PINCTRL_GROUP_SINGLE(port232, port_range1, 45),
1328 	UNIPHIER_PINCTRL_GROUP_SINGLE(port233, port_range1, 46),
1329 	UNIPHIER_PINCTRL_GROUP_SINGLE(port234, port_range1, 47),
1330 	UNIPHIER_PINCTRL_GROUP_SINGLE(port235, port_range1, 48),
1331 	UNIPHIER_PINCTRL_GROUP_SINGLE(port236, port_range1, 49),
1332 	UNIPHIER_PINCTRL_GROUP_SINGLE(port237, port_range1, 50),
1333 	UNIPHIER_PINCTRL_GROUP_SINGLE(port240, port_range1, 51),
1334 	UNIPHIER_PINCTRL_GROUP_SINGLE(port241, port_range1, 52),
1335 	UNIPHIER_PINCTRL_GROUP_SINGLE(port242, port_range1, 53),
1336 	UNIPHIER_PINCTRL_GROUP_SINGLE(port243, port_range1, 54),
1337 	UNIPHIER_PINCTRL_GROUP_SINGLE(port244, port_range1, 55),
1338 	UNIPHIER_PINCTRL_GROUP_SINGLE(port245, port_range1, 56),
1339 	UNIPHIER_PINCTRL_GROUP_SINGLE(port246, port_range1, 57),
1340 	UNIPHIER_PINCTRL_GROUP_SINGLE(port247, port_range1, 58),
1341 	UNIPHIER_PINCTRL_GROUP_SINGLE(port250, port_range1, 59),
1342 	UNIPHIER_PINCTRL_GROUP_SINGLE(port251, port_range1, 60),
1343 	UNIPHIER_PINCTRL_GROUP_SINGLE(port252, port_range1, 61),
1344 	UNIPHIER_PINCTRL_GROUP_SINGLE(port253, port_range1, 62),
1345 	UNIPHIER_PINCTRL_GROUP_SINGLE(port254, port_range1, 63),
1346 	UNIPHIER_PINCTRL_GROUP_SINGLE(port255, port_range1, 64),
1347 	UNIPHIER_PINCTRL_GROUP_SINGLE(port256, port_range1, 65),
1348 	UNIPHIER_PINCTRL_GROUP_SINGLE(port257, port_range1, 66),
1349 	UNIPHIER_PINCTRL_GROUP_SINGLE(port260, port_range1, 67),
1350 	UNIPHIER_PINCTRL_GROUP_SINGLE(port261, port_range1, 68),
1351 	UNIPHIER_PINCTRL_GROUP_SINGLE(port262, port_range1, 69),
1352 	UNIPHIER_PINCTRL_GROUP_SINGLE(port263, port_range1, 70),
1353 	UNIPHIER_PINCTRL_GROUP_SINGLE(port264, port_range1, 71),
1354 	UNIPHIER_PINCTRL_GROUP_SINGLE(port265, port_range1, 72),
1355 	UNIPHIER_PINCTRL_GROUP_SINGLE(port266, port_range1, 73),
1356 	UNIPHIER_PINCTRL_GROUP_SINGLE(port267, port_range1, 74),
1357 	UNIPHIER_PINCTRL_GROUP_SINGLE(port270, port_range1, 75),
1358 	UNIPHIER_PINCTRL_GROUP_SINGLE(port271, port_range1, 76),
1359 	UNIPHIER_PINCTRL_GROUP_SINGLE(port272, port_range1, 77),
1360 	UNIPHIER_PINCTRL_GROUP_SINGLE(port273, port_range1, 78),
1361 	UNIPHIER_PINCTRL_GROUP_SINGLE(port274, port_range1, 79),
1362 	UNIPHIER_PINCTRL_GROUP_SINGLE(port275, port_range1, 80),
1363 	UNIPHIER_PINCTRL_GROUP_SINGLE(port276, port_range1, 81),
1364 	UNIPHIER_PINCTRL_GROUP_SINGLE(port277, port_range1, 82),
1365 	UNIPHIER_PINCTRL_GROUP_SINGLE(port280, port_range1, 83),
1366 	UNIPHIER_PINCTRL_GROUP_SINGLE(port281, port_range1, 84),
1367 	UNIPHIER_PINCTRL_GROUP_SINGLE(port282, port_range1, 85),
1368 	UNIPHIER_PINCTRL_GROUP_SINGLE(port283, port_range1, 86),
1369 	UNIPHIER_PINCTRL_GROUP_SINGLE(port284, port_range1, 87),
1370 	UNIPHIER_PINCTRL_GROUP_SINGLE(port285, port_range1, 88),
1371 	UNIPHIER_PINCTRL_GROUP_SINGLE(port286, port_range1, 89),
1372 	UNIPHIER_PINCTRL_GROUP_SINGLE(port287, port_range1, 90),
1373 	UNIPHIER_PINCTRL_GROUP_SINGLE(port290, port_range1, 91),
1374 	UNIPHIER_PINCTRL_GROUP_SINGLE(port291, port_range1, 92),
1375 	UNIPHIER_PINCTRL_GROUP_SINGLE(port292, port_range1, 93),
1376 	UNIPHIER_PINCTRL_GROUP_SINGLE(port293, port_range1, 94),
1377 	UNIPHIER_PINCTRL_GROUP_SINGLE(port294, port_range1, 95),
1378 	UNIPHIER_PINCTRL_GROUP_SINGLE(port295, port_range1, 96),
1379 	UNIPHIER_PINCTRL_GROUP_SINGLE(port296, port_range1, 97),
1380 	UNIPHIER_PINCTRL_GROUP_SINGLE(port297, port_range1, 98),
1381 	UNIPHIER_PINCTRL_GROUP_SINGLE(port300, port_range1, 99),
1382 	UNIPHIER_PINCTRL_GROUP_SINGLE(port301, port_range1, 100),
1383 	UNIPHIER_PINCTRL_GROUP_SINGLE(port302, port_range1, 101),
1384 	UNIPHIER_PINCTRL_GROUP_SINGLE(port303, port_range1, 102),
1385 	UNIPHIER_PINCTRL_GROUP_SINGLE(port304, port_range1, 103),
1386 	UNIPHIER_PINCTRL_GROUP_SINGLE(port305, port_range1, 104),
1387 	UNIPHIER_PINCTRL_GROUP_SINGLE(port306, port_range1, 105),
1388 	UNIPHIER_PINCTRL_GROUP_SINGLE(port307, port_range1, 106),
1389 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq0, xirq, 0),
1390 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq1, xirq, 1),
1391 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq2, xirq, 2),
1392 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq3, xirq, 3),
1393 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq4, xirq, 4),
1394 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq5, xirq, 5),
1395 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq6, xirq, 6),
1396 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq7, xirq, 7),
1397 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq8, xirq, 8),
1398 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq9, xirq, 9),
1399 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq10, xirq, 10),
1400 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq11, xirq, 11),
1401 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq12, xirq, 12),
1402 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq13, xirq, 13),
1403 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq14, xirq, 14),
1404 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq15, xirq, 15),
1405 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq16, xirq, 16),
1406 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq17, xirq, 17),
1407 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq18, xirq, 18),
1408 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq19, xirq, 19),
1409 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq20, xirq, 20),
1410 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq14b, xirq_alternatives, 0),
1411 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq17b, xirq_alternatives, 1),
1412 	UNIPHIER_PINCTRL_GROUP_SINGLE(xirq18b, xirq_alternatives, 2),
1413 };
1414 
1415 static const char * const emmc_groups[] = {"emmc", "emmc_dat8"};
1416 static const char * const i2c0_groups[] = {"i2c0"};
1417 static const char * const i2c1_groups[] = {"i2c1"};
1418 static const char * const i2c2_groups[] = {"i2c2"};
1419 static const char * const i2c3_groups[] = {"i2c3"};
1420 static const char * const i2c6_groups[] = {"i2c6"};
1421 static const char * const nand_groups[] = {"nand", "nand_cs1"};
1422 static const char * const sd_groups[] = {"sd"};
1423 static const char * const sd1_groups[] = {"sd1"};
1424 static const char * const uart0_groups[] = {"uart0"};
1425 static const char * const uart1_groups[] = {"uart1"};
1426 static const char * const uart2_groups[] = {"uart2"};
1427 static const char * const uart3_groups[] = {"uart3"};
1428 static const char * const usb0_groups[] = {"usb0"};
1429 static const char * const usb1_groups[] = {"usb1"};
1430 static const char * const usb2_groups[] = {"usb2"};
1431 static const char * const usb3_groups[] = {"usb3"};
1432 static const char * const port_groups[] = {
1433 	"port00",  "port01",  "port02",  "port03",
1434 	"port04",  "port05",  "port06",  "port07",
1435 	"port10",  "port11",  "port12",  "port13",
1436 	"port14",  "port15",  "port16",  "port17",
1437 	"port20",  "port21",  "port22",  "port23",
1438 	"port24",  "port25",  "port26",  "port27",
1439 	"port30",  "port31",  "port32",  "port33",
1440 	"port34",  "port35",  "port36",  "port37",
1441 	"port40",  "port41",  "port42",  "port43",
1442 	"port44",  "port45",  "port46",  "port47",
1443 	"port50",  "port51",  "port52",  "port53",
1444 	"port54",  "port55",  "port56",  "port57",
1445 	"port60",  "port61",  "port62",  "port63",
1446 	"port64",  "port65",  "port66",  "port67",
1447 	"port70",  "port71",  "port72",  "port73",
1448 	"port74",  "port75",  "port76",  "port77",
1449 	"port80",  "port81",  "port82",  "port83",
1450 	"port84",  "port85",  "port86",  "port87",
1451 	"port90",  "port91",  "port92",  "port93",
1452 	"port94",  "port95",  "port96",  "port97",
1453 	"port100", "port101", "port102", "port103",
1454 	"port104", "port105", "port106", "port107",
1455 	"port110", "port111", "port112", "port113",
1456 	"port114", "port115", "port116", "port117",
1457 	"port120", "port121", "port122", "port123",
1458 	"port124", "port125", "port126", "port127",
1459 	"port130", "port131", "port132", "port133",
1460 	"port134", "port135", "port136", "port137",
1461 	"port140", "port141", "port142", "port143",
1462 	"port144", "port145", "port146", "port147",
1463 	/* port150-174 missing */
1464 	/* none */ "port175", "port176", "port177",
1465 	"port180", "port181", "port182", "port183",
1466 	"port184", "port185", "port186", "port187",
1467 	"port190", "port191", "port192", "port193",
1468 	"port194", "port195", "port196", "port197",
1469 	"port200", "port201", "port202", "port203",
1470 	"port204", "port205", "port206", "port207",
1471 	"port210", "port211", "port212", "port213",
1472 	"port214", "port215", "port216", "port217",
1473 	"port220", "port221", "port222", "port223",
1474 	"port224", "port225", "port226", "port227",
1475 	"port230", "port231", "port232", "port233",
1476 	"port234", "port235", "port236", "port237",
1477 	"port240", "port241", "port242", "port243",
1478 	"port244", "port245", "port246", "port247",
1479 	"port250", "port251", "port252", "port253",
1480 	"port254", "port255", "port256", "port257",
1481 	"port260", "port261", "port262", "port263",
1482 	"port264", "port265", "port266", "port267",
1483 	"port270", "port271", "port272", "port273",
1484 	"port274", "port275", "port276", "port277",
1485 	"port280", "port281", "port282", "port283",
1486 	"port284", "port285", "port286", "port287",
1487 	"port290", "port291", "port292", "port293",
1488 	"port294", "port295", "port296", "port297",
1489 	"port300", "port301", "port302", "port303",
1490 	"port304", "port305", "port306", "port307",
1491 };
1492 static const char * const xirq_groups[] = {
1493 	"xirq0",  "xirq1",  "xirq2",  "xirq3",
1494 	"xirq4",  "xirq5",  "xirq6",  "xirq7",
1495 	"xirq8",  "xirq9",  "xirq10", "xirq11",
1496 	"xirq12", "xirq13", "xirq14", "xirq15",
1497 	"xirq16", "xirq17", "xirq18", "xirq19",
1498 	"xirq20",
1499 	"xirq14b", "xirq17b", "xirq18b",
1500 };
1501 
1502 static const struct uniphier_pinmux_function ph1_pro4_functions[] = {
1503 	UNIPHIER_PINMUX_FUNCTION(emmc),
1504 	UNIPHIER_PINMUX_FUNCTION(i2c0),
1505 	UNIPHIER_PINMUX_FUNCTION(i2c1),
1506 	UNIPHIER_PINMUX_FUNCTION(i2c2),
1507 	UNIPHIER_PINMUX_FUNCTION(i2c3),
1508 	UNIPHIER_PINMUX_FUNCTION(i2c6),
1509 	UNIPHIER_PINMUX_FUNCTION(nand),
1510 	UNIPHIER_PINMUX_FUNCTION(sd),
1511 	UNIPHIER_PINMUX_FUNCTION(sd1),
1512 	UNIPHIER_PINMUX_FUNCTION(uart0),
1513 	UNIPHIER_PINMUX_FUNCTION(uart1),
1514 	UNIPHIER_PINMUX_FUNCTION(uart2),
1515 	UNIPHIER_PINMUX_FUNCTION(uart3),
1516 	UNIPHIER_PINMUX_FUNCTION(usb0),
1517 	UNIPHIER_PINMUX_FUNCTION(usb1),
1518 	UNIPHIER_PINMUX_FUNCTION(usb2),
1519 	UNIPHIER_PINMUX_FUNCTION(usb3),
1520 	UNIPHIER_PINMUX_FUNCTION(port),
1521 	UNIPHIER_PINMUX_FUNCTION(xirq),
1522 };
1523 
1524 static struct uniphier_pinctrl_socdata ph1_pro4_pindata = {
1525 	.groups = ph1_pro4_groups,
1526 	.groups_count = ARRAY_SIZE(ph1_pro4_groups),
1527 	.functions = ph1_pro4_functions,
1528 	.functions_count = ARRAY_SIZE(ph1_pro4_functions),
1529 	.mux_bits = 4,
1530 	.reg_stride = 8,
1531 	.load_pinctrl = true,
1532 };
1533 
1534 static struct pinctrl_desc ph1_pro4_pinctrl_desc = {
1535 	.name = DRIVER_NAME,
1536 	.pins = ph1_pro4_pins,
1537 	.npins = ARRAY_SIZE(ph1_pro4_pins),
1538 	.owner = THIS_MODULE,
1539 };
1540 
1541 static int ph1_pro4_pinctrl_probe(struct platform_device *pdev)
1542 {
1543 	return uniphier_pinctrl_probe(pdev, &ph1_pro4_pinctrl_desc,
1544 				      &ph1_pro4_pindata);
1545 }
1546 
1547 static const struct of_device_id ph1_pro4_pinctrl_match[] = {
1548 	{ .compatible = "socionext,ph1-pro4-pinctrl" },
1549 	{ /* sentinel */ }
1550 };
1551 MODULE_DEVICE_TABLE(of, ph1_pro4_pinctrl_match);
1552 
1553 static struct platform_driver ph1_pro4_pinctrl_driver = {
1554 	.probe = ph1_pro4_pinctrl_probe,
1555 	.driver = {
1556 		.name = DRIVER_NAME,
1557 		.of_match_table = ph1_pro4_pinctrl_match,
1558 	},
1559 };
1560 module_platform_driver(ph1_pro4_pinctrl_driver);
1561 
1562 MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
1563 MODULE_DESCRIPTION("UniPhier PH1-Pro4 pinctrl driver");
1564 MODULE_LICENSE("GPL");
1565