1 /*
2  * imx35 pinctrl driver.
3  *
4  * This driver was mostly copied from the imx51 pinctrl driver which has:
5  *
6  * Copyright (C) 2012 Freescale Semiconductor, Inc.
7  * Copyright (C) 2012 Linaro, Inc.
8  *
9  * Author: Dong Aisheng <dong.aisheng@linaro.org>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2 as published
13  * by the Free Software Foundation.
14  */
15 
16 #include <linux/err.h>
17 #include <linux/init.h>
18 #include <linux/io.h>
19 #include <linux/of.h>
20 #include <linux/of_device.h>
21 #include <linux/pinctrl/pinctrl.h>
22 
23 #include "pinctrl-imx.h"
24 
25 enum imx35_pads {
26 	MX35_PAD_RESERVE0 = 0,
27 	MX35_PAD_CAPTURE = 1,
28 	MX35_PAD_COMPARE = 2,
29 	MX35_PAD_WDOG_RST = 3,
30 	MX35_PAD_GPIO1_0 = 4,
31 	MX35_PAD_GPIO1_1 = 5,
32 	MX35_PAD_GPIO2_0 = 6,
33 	MX35_PAD_GPIO3_0 = 7,
34 	MX35_PAD_CLKO = 8,
35 	MX35_PAD_VSTBY = 9,
36 	MX35_PAD_A0 = 10,
37 	MX35_PAD_A1 = 11,
38 	MX35_PAD_A2 = 12,
39 	MX35_PAD_A3 = 13,
40 	MX35_PAD_A4 = 14,
41 	MX35_PAD_A5 = 15,
42 	MX35_PAD_A6 = 16,
43 	MX35_PAD_A7 = 17,
44 	MX35_PAD_A8 = 18,
45 	MX35_PAD_A9 = 19,
46 	MX35_PAD_A10 = 20,
47 	MX35_PAD_MA10 = 21,
48 	MX35_PAD_A11 = 22,
49 	MX35_PAD_A12 = 23,
50 	MX35_PAD_A13 = 24,
51 	MX35_PAD_A14 = 25,
52 	MX35_PAD_A15 = 26,
53 	MX35_PAD_A16 = 27,
54 	MX35_PAD_A17 = 28,
55 	MX35_PAD_A18 = 29,
56 	MX35_PAD_A19 = 30,
57 	MX35_PAD_A20 = 31,
58 	MX35_PAD_A21 = 32,
59 	MX35_PAD_A22 = 33,
60 	MX35_PAD_A23 = 34,
61 	MX35_PAD_A24 = 35,
62 	MX35_PAD_A25 = 36,
63 	MX35_PAD_EB0 = 37,
64 	MX35_PAD_EB1 = 38,
65 	MX35_PAD_OE = 39,
66 	MX35_PAD_CS0 = 40,
67 	MX35_PAD_CS1 = 41,
68 	MX35_PAD_CS2 = 42,
69 	MX35_PAD_CS3 = 43,
70 	MX35_PAD_CS4 = 44,
71 	MX35_PAD_CS5 = 45,
72 	MX35_PAD_NF_CE0 = 46,
73 	MX35_PAD_LBA = 47,
74 	MX35_PAD_BCLK = 48,
75 	MX35_PAD_RW = 49,
76 	MX35_PAD_NFWE_B = 50,
77 	MX35_PAD_NFRE_B = 51,
78 	MX35_PAD_NFALE = 52,
79 	MX35_PAD_NFCLE = 53,
80 	MX35_PAD_NFWP_B = 54,
81 	MX35_PAD_NFRB = 55,
82 	MX35_PAD_CSI_D8 = 56,
83 	MX35_PAD_CSI_D9 = 57,
84 	MX35_PAD_CSI_D10 = 58,
85 	MX35_PAD_CSI_D11 = 59,
86 	MX35_PAD_CSI_D12 = 60,
87 	MX35_PAD_CSI_D13 = 61,
88 	MX35_PAD_CSI_D14 = 62,
89 	MX35_PAD_CSI_D15 = 63,
90 	MX35_PAD_CSI_MCLK = 64,
91 	MX35_PAD_CSI_VSYNC = 65,
92 	MX35_PAD_CSI_HSYNC = 66,
93 	MX35_PAD_CSI_PIXCLK = 67,
94 	MX35_PAD_I2C1_CLK = 68,
95 	MX35_PAD_I2C1_DAT = 69,
96 	MX35_PAD_I2C2_CLK = 70,
97 	MX35_PAD_I2C2_DAT = 71,
98 	MX35_PAD_STXD4 = 72,
99 	MX35_PAD_SRXD4 = 73,
100 	MX35_PAD_SCK4 = 74,
101 	MX35_PAD_STXFS4 = 75,
102 	MX35_PAD_STXD5 = 76,
103 	MX35_PAD_SRXD5 = 77,
104 	MX35_PAD_SCK5 = 78,
105 	MX35_PAD_STXFS5 = 79,
106 	MX35_PAD_SCKR = 80,
107 	MX35_PAD_FSR = 81,
108 	MX35_PAD_HCKR = 82,
109 	MX35_PAD_SCKT = 83,
110 	MX35_PAD_FST = 84,
111 	MX35_PAD_HCKT = 85,
112 	MX35_PAD_TX5_RX0 = 86,
113 	MX35_PAD_TX4_RX1 = 87,
114 	MX35_PAD_TX3_RX2 = 88,
115 	MX35_PAD_TX2_RX3 = 89,
116 	MX35_PAD_TX1 = 90,
117 	MX35_PAD_TX0 = 91,
118 	MX35_PAD_CSPI1_MOSI = 92,
119 	MX35_PAD_CSPI1_MISO = 93,
120 	MX35_PAD_CSPI1_SS0 = 94,
121 	MX35_PAD_CSPI1_SS1 = 95,
122 	MX35_PAD_CSPI1_SCLK = 96,
123 	MX35_PAD_CSPI1_SPI_RDY = 97,
124 	MX35_PAD_RXD1 = 98,
125 	MX35_PAD_TXD1 = 99,
126 	MX35_PAD_RTS1 = 100,
127 	MX35_PAD_CTS1 = 101,
128 	MX35_PAD_RXD2 = 102,
129 	MX35_PAD_TXD2 = 103,
130 	MX35_PAD_RTS2 = 104,
131 	MX35_PAD_CTS2 = 105,
132 	MX35_PAD_USBOTG_PWR = 106,
133 	MX35_PAD_USBOTG_OC = 107,
134 	MX35_PAD_LD0 = 108,
135 	MX35_PAD_LD1 = 109,
136 	MX35_PAD_LD2 = 110,
137 	MX35_PAD_LD3 = 111,
138 	MX35_PAD_LD4 = 112,
139 	MX35_PAD_LD5 = 113,
140 	MX35_PAD_LD6 = 114,
141 	MX35_PAD_LD7 = 115,
142 	MX35_PAD_LD8 = 116,
143 	MX35_PAD_LD9 = 117,
144 	MX35_PAD_LD10 = 118,
145 	MX35_PAD_LD11 = 119,
146 	MX35_PAD_LD12 = 120,
147 	MX35_PAD_LD13 = 121,
148 	MX35_PAD_LD14 = 122,
149 	MX35_PAD_LD15 = 123,
150 	MX35_PAD_LD16 = 124,
151 	MX35_PAD_LD17 = 125,
152 	MX35_PAD_LD18 = 126,
153 	MX35_PAD_LD19 = 127,
154 	MX35_PAD_LD20 = 128,
155 	MX35_PAD_LD21 = 129,
156 	MX35_PAD_LD22 = 130,
157 	MX35_PAD_LD23 = 131,
158 	MX35_PAD_D3_HSYNC = 132,
159 	MX35_PAD_D3_FPSHIFT = 133,
160 	MX35_PAD_D3_DRDY = 134,
161 	MX35_PAD_CONTRAST = 135,
162 	MX35_PAD_D3_VSYNC = 136,
163 	MX35_PAD_D3_REV = 137,
164 	MX35_PAD_D3_CLS = 138,
165 	MX35_PAD_D3_SPL = 139,
166 	MX35_PAD_SD1_CMD = 140,
167 	MX35_PAD_SD1_CLK = 141,
168 	MX35_PAD_SD1_DATA0 = 142,
169 	MX35_PAD_SD1_DATA1 = 143,
170 	MX35_PAD_SD1_DATA2 = 144,
171 	MX35_PAD_SD1_DATA3 = 145,
172 	MX35_PAD_SD2_CMD = 146,
173 	MX35_PAD_SD2_CLK = 147,
174 	MX35_PAD_SD2_DATA0 = 148,
175 	MX35_PAD_SD2_DATA1 = 149,
176 	MX35_PAD_SD2_DATA2 = 150,
177 	MX35_PAD_SD2_DATA3 = 151,
178 	MX35_PAD_ATA_CS0 = 152,
179 	MX35_PAD_ATA_CS1 = 153,
180 	MX35_PAD_ATA_DIOR = 154,
181 	MX35_PAD_ATA_DIOW = 155,
182 	MX35_PAD_ATA_DMACK = 156,
183 	MX35_PAD_ATA_RESET_B = 157,
184 	MX35_PAD_ATA_IORDY = 158,
185 	MX35_PAD_ATA_DATA0 = 159,
186 	MX35_PAD_ATA_DATA1 = 160,
187 	MX35_PAD_ATA_DATA2 = 161,
188 	MX35_PAD_ATA_DATA3 = 162,
189 	MX35_PAD_ATA_DATA4 = 163,
190 	MX35_PAD_ATA_DATA5 = 164,
191 	MX35_PAD_ATA_DATA6 = 165,
192 	MX35_PAD_ATA_DATA7 = 166,
193 	MX35_PAD_ATA_DATA8 = 167,
194 	MX35_PAD_ATA_DATA9 = 168,
195 	MX35_PAD_ATA_DATA10 = 169,
196 	MX35_PAD_ATA_DATA11 = 170,
197 	MX35_PAD_ATA_DATA12 = 171,
198 	MX35_PAD_ATA_DATA13 = 172,
199 	MX35_PAD_ATA_DATA14 = 173,
200 	MX35_PAD_ATA_DATA15 = 174,
201 	MX35_PAD_ATA_INTRQ = 175,
202 	MX35_PAD_ATA_BUFF_EN = 176,
203 	MX35_PAD_ATA_DMARQ = 177,
204 	MX35_PAD_ATA_DA0 = 178,
205 	MX35_PAD_ATA_DA1 = 179,
206 	MX35_PAD_ATA_DA2 = 180,
207 	MX35_PAD_MLB_CLK = 181,
208 	MX35_PAD_MLB_DAT = 182,
209 	MX35_PAD_MLB_SIG = 183,
210 	MX35_PAD_FEC_TX_CLK = 184,
211 	MX35_PAD_FEC_RX_CLK = 185,
212 	MX35_PAD_FEC_RX_DV = 186,
213 	MX35_PAD_FEC_COL = 187,
214 	MX35_PAD_FEC_RDATA0 = 188,
215 	MX35_PAD_FEC_TDATA0 = 189,
216 	MX35_PAD_FEC_TX_EN = 190,
217 	MX35_PAD_FEC_MDC = 191,
218 	MX35_PAD_FEC_MDIO = 192,
219 	MX35_PAD_FEC_TX_ERR = 193,
220 	MX35_PAD_FEC_RX_ERR = 194,
221 	MX35_PAD_FEC_CRS = 195,
222 	MX35_PAD_FEC_RDATA1 = 196,
223 	MX35_PAD_FEC_TDATA1 = 197,
224 	MX35_PAD_FEC_RDATA2 = 198,
225 	MX35_PAD_FEC_TDATA2 = 199,
226 	MX35_PAD_FEC_RDATA3 = 200,
227 	MX35_PAD_FEC_TDATA3 = 201,
228 	MX35_PAD_RESERVE1 = 202,
229 	MX35_PAD_RESERVE2 = 203,
230 	MX35_PAD_RESERVE3 = 204,
231 	MX35_PAD_RESERVE4 = 205,
232 	MX35_PAD_RESERVE5 = 206,
233 	MX35_PAD_RESERVE6 = 207,
234 	MX35_PAD_RESERVE7 = 208,
235 	MX35_PAD_RESET_IN_B = 209,
236 	MX35_PAD_POR_B = 210,
237 	MX35_PAD_RESERVE8 = 211,
238 	MX35_PAD_BOOT_MODE0 = 212,
239 	MX35_PAD_BOOT_MODE1 = 213,
240 	MX35_PAD_CLK_MODE0 = 214,
241 	MX35_PAD_CLK_MODE1 = 215,
242 	MX35_PAD_POWER_FAIL = 216,
243 	MX35_PAD_RESERVE9 = 217,
244 	MX35_PAD_RESERVE10 = 218,
245 	MX35_PAD_RESERVE11 = 219,
246 	MX35_PAD_RESERVE12 = 220,
247 	MX35_PAD_RESERVE13 = 221,
248 	MX35_PAD_RESERVE14 = 222,
249 	MX35_PAD_RESERVE15 = 223,
250 	MX35_PAD_RESERVE16 = 224,
251 	MX35_PAD_RESERVE17 = 225,
252 	MX35_PAD_RESERVE18 = 226,
253 	MX35_PAD_RESERVE19 = 227,
254 	MX35_PAD_RESERVE20 = 228,
255 	MX35_PAD_RESERVE21 = 229,
256 	MX35_PAD_RESERVE22 = 230,
257 	MX35_PAD_RESERVE23 = 231,
258 	MX35_PAD_RESERVE24 = 232,
259 	MX35_PAD_RESERVE25 = 233,
260 	MX35_PAD_RESERVE26 = 234,
261 	MX35_PAD_RESERVE27 = 235,
262 	MX35_PAD_RESERVE28 = 236,
263 	MX35_PAD_RESERVE29 = 237,
264 	MX35_PAD_RESERVE30 = 238,
265 	MX35_PAD_RESERVE31 = 239,
266 	MX35_PAD_RESERVE32 = 240,
267 	MX35_PAD_RESERVE33 = 241,
268 	MX35_PAD_RESERVE34 = 242,
269 	MX35_PAD_RESERVE35 = 243,
270 	MX35_PAD_RESERVE36 = 244,
271 	MX35_PAD_SDBA1 = 245,
272 	MX35_PAD_SDBA0 = 246,
273 	MX35_PAD_SD0 = 247,
274 	MX35_PAD_SD1 = 248,
275 	MX35_PAD_SD2 = 249,
276 	MX35_PAD_SD3 = 250,
277 	MX35_PAD_SD4 = 251,
278 	MX35_PAD_SD5 = 252,
279 	MX35_PAD_SD6 = 253,
280 	MX35_PAD_SD7 = 254,
281 	MX35_PAD_SD8 = 255,
282 	MX35_PAD_SD9 = 256,
283 	MX35_PAD_SD10 = 257,
284 	MX35_PAD_SD11 = 258,
285 	MX35_PAD_SD12 = 259,
286 	MX35_PAD_SD13 = 260,
287 	MX35_PAD_SD14 = 261,
288 	MX35_PAD_SD15 = 262,
289 	MX35_PAD_SD16 = 263,
290 	MX35_PAD_SD17 = 264,
291 	MX35_PAD_SD18 = 265,
292 	MX35_PAD_SD19 = 266,
293 	MX35_PAD_SD20 = 267,
294 	MX35_PAD_SD21 = 268,
295 	MX35_PAD_SD22 = 269,
296 	MX35_PAD_SD23 = 270,
297 	MX35_PAD_SD24 = 271,
298 	MX35_PAD_SD25 = 272,
299 	MX35_PAD_SD26 = 273,
300 	MX35_PAD_SD27 = 274,
301 	MX35_PAD_SD28 = 275,
302 	MX35_PAD_SD29 = 276,
303 	MX35_PAD_SD30 = 277,
304 	MX35_PAD_SD31 = 278,
305 	MX35_PAD_DQM0 = 279,
306 	MX35_PAD_DQM1 = 280,
307 	MX35_PAD_DQM2 = 281,
308 	MX35_PAD_DQM3 = 282,
309 	MX35_PAD_RESERVE37 = 283,
310 	MX35_PAD_RESERVE38 = 284,
311 	MX35_PAD_RESERVE39 = 285,
312 	MX35_PAD_RESERVE40 = 286,
313 	MX35_PAD_RESERVE41 = 287,
314 	MX35_PAD_RESERVE42 = 288,
315 	MX35_PAD_RESERVE43 = 289,
316 	MX35_PAD_RESERVE44 = 290,
317 	MX35_PAD_RESERVE45 = 291,
318 	MX35_PAD_RESERVE46 = 292,
319 	MX35_PAD_ECB = 293,
320 	MX35_PAD_RESERVE47 = 294,
321 	MX35_PAD_RESERVE48 = 295,
322 	MX35_PAD_RESERVE49 = 296,
323 	MX35_PAD_RAS = 297,
324 	MX35_PAD_CAS = 298,
325 	MX35_PAD_SDWE = 299,
326 	MX35_PAD_SDCKE0 = 300,
327 	MX35_PAD_SDCKE1 = 301,
328 	MX35_PAD_SDCLK = 302,
329 	MX35_PAD_SDQS0 = 303,
330 	MX35_PAD_SDQS1 = 304,
331 	MX35_PAD_SDQS2 = 305,
332 	MX35_PAD_SDQS3 = 306,
333 	MX35_PAD_RESERVE50 = 307,
334 	MX35_PAD_RESERVE51 = 308,
335 	MX35_PAD_RESERVE52 = 309,
336 	MX35_PAD_RESERVE53 = 310,
337 	MX35_PAD_RESERVE54 = 311,
338 	MX35_PAD_RESERVE55 = 312,
339 	MX35_PAD_D15 = 313,
340 	MX35_PAD_D14 = 314,
341 	MX35_PAD_D13 = 315,
342 	MX35_PAD_D12 = 316,
343 	MX35_PAD_D11 = 317,
344 	MX35_PAD_D10 = 318,
345 	MX35_PAD_D9 = 319,
346 	MX35_PAD_D8 = 320,
347 	MX35_PAD_D7 = 321,
348 	MX35_PAD_D6 = 322,
349 	MX35_PAD_D5 = 323,
350 	MX35_PAD_D4 = 324,
351 	MX35_PAD_D3 = 325,
352 	MX35_PAD_D2 = 326,
353 	MX35_PAD_D1 = 327,
354 	MX35_PAD_D0 = 328,
355 	MX35_PAD_RESERVE56 = 329,
356 	MX35_PAD_RESERVE57 = 330,
357 	MX35_PAD_RESERVE58 = 331,
358 	MX35_PAD_RESERVE59 = 332,
359 	MX35_PAD_RESERVE60 = 333,
360 	MX35_PAD_RESERVE61 = 334,
361 	MX35_PAD_RESERVE62 = 335,
362 	MX35_PAD_RESERVE63 = 336,
363 	MX35_PAD_RESERVE64 = 337,
364 	MX35_PAD_RESERVE65 = 338,
365 	MX35_PAD_RESERVE66 = 339,
366 	MX35_PAD_RESERVE67 = 340,
367 	MX35_PAD_RESERVE68 = 341,
368 	MX35_PAD_RESERVE69 = 342,
369 	MX35_PAD_RESERVE70 = 343,
370 	MX35_PAD_RESERVE71 = 344,
371 	MX35_PAD_RESERVE72 = 345,
372 	MX35_PAD_RESERVE73 = 346,
373 	MX35_PAD_RESERVE74 = 347,
374 	MX35_PAD_RESERVE75 = 348,
375 	MX35_PAD_RESERVE76 = 349,
376 	MX35_PAD_RESERVE77 = 350,
377 	MX35_PAD_RESERVE78 = 351,
378 	MX35_PAD_RESERVE79 = 352,
379 	MX35_PAD_RESERVE80 = 353,
380 	MX35_PAD_RESERVE81 = 354,
381 	MX35_PAD_RESERVE82 = 355,
382 	MX35_PAD_RESERVE83 = 356,
383 	MX35_PAD_RESERVE84 = 357,
384 	MX35_PAD_RESERVE85 = 358,
385 	MX35_PAD_RESERVE86 = 359,
386 	MX35_PAD_RESERVE87 = 360,
387 	MX35_PAD_RESERVE88 = 361,
388 	MX35_PAD_RESERVE89 = 362,
389 	MX35_PAD_RESERVE90 = 363,
390 	MX35_PAD_RESERVE91 = 364,
391 	MX35_PAD_RESERVE92 = 365,
392 	MX35_PAD_RESERVE93 = 366,
393 	MX35_PAD_RESERVE94 = 367,
394 	MX35_PAD_RESERVE95 = 368,
395 	MX35_PAD_RESERVE96 = 369,
396 	MX35_PAD_RESERVE97 = 370,
397 	MX35_PAD_RESERVE98 = 371,
398 	MX35_PAD_RESERVE99 = 372,
399 	MX35_PAD_RESERVE100 = 373,
400 	MX35_PAD_RESERVE101 = 374,
401 	MX35_PAD_RESERVE102 = 375,
402 	MX35_PAD_RESERVE103 = 376,
403 	MX35_PAD_RESERVE104 = 377,
404 	MX35_PAD_RESERVE105 = 378,
405 	MX35_PAD_RTCK = 379,
406 	MX35_PAD_TCK = 380,
407 	MX35_PAD_TMS = 381,
408 	MX35_PAD_TDI = 382,
409 	MX35_PAD_TDO = 383,
410 	MX35_PAD_TRSTB = 384,
411 	MX35_PAD_DE_B = 385,
412 	MX35_PAD_SJC_MOD = 386,
413 	MX35_PAD_RESERVE106 = 387,
414 	MX35_PAD_RESERVE107 = 388,
415 	MX35_PAD_RESERVE108 = 389,
416 	MX35_PAD_RESERVE109 = 390,
417 	MX35_PAD_RESERVE110 = 391,
418 	MX35_PAD_RESERVE111 = 392,
419 	MX35_PAD_RESERVE112 = 393,
420 	MX35_PAD_RESERVE113 = 394,
421 	MX35_PAD_RESERVE114 = 395,
422 	MX35_PAD_RESERVE115 = 396,
423 	MX35_PAD_RESERVE116 = 397,
424 	MX35_PAD_RESERVE117 = 398,
425 	MX35_PAD_RESERVE118 = 399,
426 	MX35_PAD_RESERVE119 = 400,
427 	MX35_PAD_RESERVE120 = 401,
428 	MX35_PAD_RESERVE121 = 402,
429 	MX35_PAD_RESERVE122 = 403,
430 	MX35_PAD_RESERVE123 = 404,
431 	MX35_PAD_RESERVE124 = 405,
432 	MX35_PAD_RESERVE125 = 406,
433 	MX35_PAD_RESERVE126 = 407,
434 	MX35_PAD_RESERVE127 = 408,
435 	MX35_PAD_RESERVE128 = 409,
436 	MX35_PAD_RESERVE129 = 410,
437 	MX35_PAD_RESERVE130 = 411,
438 	MX35_PAD_RESERVE131 = 412,
439 	MX35_PAD_RESERVE132 = 413,
440 	MX35_PAD_RESERVE133 = 414,
441 	MX35_PAD_RESERVE134 = 415,
442 	MX35_PAD_RESERVE135 = 416,
443 	MX35_PAD_RESERVE136 = 417,
444 	MX35_PAD_RESERVE137 = 418,
445 	MX35_PAD_RESERVE138 = 419,
446 	MX35_PAD_RESERVE139 = 420,
447 	MX35_PAD_RESERVE140 = 421,
448 	MX35_PAD_RESERVE141 = 422,
449 	MX35_PAD_RESERVE142 = 423,
450 	MX35_PAD_RESERVE143 = 424,
451 	MX35_PAD_RESERVE144 = 425,
452 	MX35_PAD_RESERVE145 = 426,
453 	MX35_PAD_RESERVE146 = 427,
454 	MX35_PAD_RESERVE147 = 428,
455 	MX35_PAD_RESERVE148 = 429,
456 	MX35_PAD_RESERVE149 = 430,
457 	MX35_PAD_RESERVE150 = 431,
458 	MX35_PAD_RESERVE151 = 432,
459 	MX35_PAD_RESERVE152 = 433,
460 	MX35_PAD_RESERVE153 = 434,
461 	MX35_PAD_RESERVE154 = 435,
462 	MX35_PAD_RESERVE155 = 436,
463 	MX35_PAD_RESERVE156 = 437,
464 	MX35_PAD_RESERVE157 = 438,
465 	MX35_PAD_RESERVE158 = 439,
466 	MX35_PAD_RESERVE159 = 440,
467 	MX35_PAD_RESERVE160 = 441,
468 	MX35_PAD_RESERVE161 = 442,
469 	MX35_PAD_RESERVE162 = 443,
470 	MX35_PAD_RESERVE163 = 444,
471 	MX35_PAD_RESERVE164 = 445,
472 	MX35_PAD_RESERVE165 = 446,
473 	MX35_PAD_RESERVE166 = 447,
474 	MX35_PAD_RESERVE167 = 448,
475 	MX35_PAD_RESERVE168 = 449,
476 	MX35_PAD_RESERVE169 = 450,
477 	MX35_PAD_RESERVE170 = 451,
478 	MX35_PAD_RESERVE171 = 452,
479 	MX35_PAD_RESERVE172 = 453,
480 	MX35_PAD_RESERVE173 = 454,
481 	MX35_PAD_RESERVE174 = 455,
482 	MX35_PAD_RESERVE175 = 456,
483 	MX35_PAD_RESERVE176 = 457,
484 	MX35_PAD_RESERVE177 = 458,
485 	MX35_PAD_RESERVE178 = 459,
486 	MX35_PAD_RESERVE179 = 460,
487 	MX35_PAD_RESERVE180 = 461,
488 	MX35_PAD_RESERVE181 = 462,
489 	MX35_PAD_RESERVE182 = 463,
490 	MX35_PAD_RESERVE183 = 464,
491 	MX35_PAD_RESERVE184 = 465,
492 	MX35_PAD_RESERVE185 = 466,
493 	MX35_PAD_RESERVE186 = 467,
494 	MX35_PAD_RESERVE187 = 468,
495 	MX35_PAD_RESERVE188 = 469,
496 	MX35_PAD_RESERVE189 = 470,
497 	MX35_PAD_RESERVE190 = 471,
498 	MX35_PAD_RESERVE191 = 472,
499 	MX35_PAD_RESERVE192 = 473,
500 	MX35_PAD_RESERVE193 = 474,
501 	MX35_PAD_RESERVE194 = 475,
502 	MX35_PAD_RESERVE195 = 476,
503 	MX35_PAD_RESERVE196 = 477,
504 	MX35_PAD_RESERVE197 = 478,
505 	MX35_PAD_RESERVE198 = 479,
506 	MX35_PAD_RESERVE199 = 480,
507 	MX35_PAD_RESERVE200 = 481,
508 	MX35_PAD_RESERVE201 = 482,
509 	MX35_PAD_EXT_ARMCLK = 483,
510 	MX35_PAD_TEST_MODE = 484,
511 };
512 
513 /* Pad names for the pinmux subsystem */
514 static const struct pinctrl_pin_desc imx35_pinctrl_pads[] = {
515 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE0),
516 	IMX_PINCTRL_PIN(MX35_PAD_CAPTURE),
517 	IMX_PINCTRL_PIN(MX35_PAD_COMPARE),
518 	IMX_PINCTRL_PIN(MX35_PAD_WDOG_RST),
519 	IMX_PINCTRL_PIN(MX35_PAD_GPIO1_0),
520 	IMX_PINCTRL_PIN(MX35_PAD_GPIO1_1),
521 	IMX_PINCTRL_PIN(MX35_PAD_GPIO2_0),
522 	IMX_PINCTRL_PIN(MX35_PAD_GPIO3_0),
523 	IMX_PINCTRL_PIN(MX35_PAD_CLKO),
524 	IMX_PINCTRL_PIN(MX35_PAD_VSTBY),
525 	IMX_PINCTRL_PIN(MX35_PAD_A0),
526 	IMX_PINCTRL_PIN(MX35_PAD_A1),
527 	IMX_PINCTRL_PIN(MX35_PAD_A2),
528 	IMX_PINCTRL_PIN(MX35_PAD_A3),
529 	IMX_PINCTRL_PIN(MX35_PAD_A4),
530 	IMX_PINCTRL_PIN(MX35_PAD_A5),
531 	IMX_PINCTRL_PIN(MX35_PAD_A6),
532 	IMX_PINCTRL_PIN(MX35_PAD_A7),
533 	IMX_PINCTRL_PIN(MX35_PAD_A8),
534 	IMX_PINCTRL_PIN(MX35_PAD_A9),
535 	IMX_PINCTRL_PIN(MX35_PAD_A10),
536 	IMX_PINCTRL_PIN(MX35_PAD_MA10),
537 	IMX_PINCTRL_PIN(MX35_PAD_A11),
538 	IMX_PINCTRL_PIN(MX35_PAD_A12),
539 	IMX_PINCTRL_PIN(MX35_PAD_A13),
540 	IMX_PINCTRL_PIN(MX35_PAD_A14),
541 	IMX_PINCTRL_PIN(MX35_PAD_A15),
542 	IMX_PINCTRL_PIN(MX35_PAD_A16),
543 	IMX_PINCTRL_PIN(MX35_PAD_A17),
544 	IMX_PINCTRL_PIN(MX35_PAD_A18),
545 	IMX_PINCTRL_PIN(MX35_PAD_A19),
546 	IMX_PINCTRL_PIN(MX35_PAD_A20),
547 	IMX_PINCTRL_PIN(MX35_PAD_A21),
548 	IMX_PINCTRL_PIN(MX35_PAD_A22),
549 	IMX_PINCTRL_PIN(MX35_PAD_A23),
550 	IMX_PINCTRL_PIN(MX35_PAD_A24),
551 	IMX_PINCTRL_PIN(MX35_PAD_A25),
552 	IMX_PINCTRL_PIN(MX35_PAD_EB0),
553 	IMX_PINCTRL_PIN(MX35_PAD_EB1),
554 	IMX_PINCTRL_PIN(MX35_PAD_OE),
555 	IMX_PINCTRL_PIN(MX35_PAD_CS0),
556 	IMX_PINCTRL_PIN(MX35_PAD_CS1),
557 	IMX_PINCTRL_PIN(MX35_PAD_CS2),
558 	IMX_PINCTRL_PIN(MX35_PAD_CS3),
559 	IMX_PINCTRL_PIN(MX35_PAD_CS4),
560 	IMX_PINCTRL_PIN(MX35_PAD_CS5),
561 	IMX_PINCTRL_PIN(MX35_PAD_NF_CE0),
562 	IMX_PINCTRL_PIN(MX35_PAD_LBA),
563 	IMX_PINCTRL_PIN(MX35_PAD_BCLK),
564 	IMX_PINCTRL_PIN(MX35_PAD_RW),
565 	IMX_PINCTRL_PIN(MX35_PAD_NFWE_B),
566 	IMX_PINCTRL_PIN(MX35_PAD_NFRE_B),
567 	IMX_PINCTRL_PIN(MX35_PAD_NFALE),
568 	IMX_PINCTRL_PIN(MX35_PAD_NFCLE),
569 	IMX_PINCTRL_PIN(MX35_PAD_NFWP_B),
570 	IMX_PINCTRL_PIN(MX35_PAD_NFRB),
571 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D8),
572 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D9),
573 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D10),
574 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D11),
575 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D12),
576 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D13),
577 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D14),
578 	IMX_PINCTRL_PIN(MX35_PAD_CSI_D15),
579 	IMX_PINCTRL_PIN(MX35_PAD_CSI_MCLK),
580 	IMX_PINCTRL_PIN(MX35_PAD_CSI_VSYNC),
581 	IMX_PINCTRL_PIN(MX35_PAD_CSI_HSYNC),
582 	IMX_PINCTRL_PIN(MX35_PAD_CSI_PIXCLK),
583 	IMX_PINCTRL_PIN(MX35_PAD_I2C1_CLK),
584 	IMX_PINCTRL_PIN(MX35_PAD_I2C1_DAT),
585 	IMX_PINCTRL_PIN(MX35_PAD_I2C2_CLK),
586 	IMX_PINCTRL_PIN(MX35_PAD_I2C2_DAT),
587 	IMX_PINCTRL_PIN(MX35_PAD_STXD4),
588 	IMX_PINCTRL_PIN(MX35_PAD_SRXD4),
589 	IMX_PINCTRL_PIN(MX35_PAD_SCK4),
590 	IMX_PINCTRL_PIN(MX35_PAD_STXFS4),
591 	IMX_PINCTRL_PIN(MX35_PAD_STXD5),
592 	IMX_PINCTRL_PIN(MX35_PAD_SRXD5),
593 	IMX_PINCTRL_PIN(MX35_PAD_SCK5),
594 	IMX_PINCTRL_PIN(MX35_PAD_STXFS5),
595 	IMX_PINCTRL_PIN(MX35_PAD_SCKR),
596 	IMX_PINCTRL_PIN(MX35_PAD_FSR),
597 	IMX_PINCTRL_PIN(MX35_PAD_HCKR),
598 	IMX_PINCTRL_PIN(MX35_PAD_SCKT),
599 	IMX_PINCTRL_PIN(MX35_PAD_FST),
600 	IMX_PINCTRL_PIN(MX35_PAD_HCKT),
601 	IMX_PINCTRL_PIN(MX35_PAD_TX5_RX0),
602 	IMX_PINCTRL_PIN(MX35_PAD_TX4_RX1),
603 	IMX_PINCTRL_PIN(MX35_PAD_TX3_RX2),
604 	IMX_PINCTRL_PIN(MX35_PAD_TX2_RX3),
605 	IMX_PINCTRL_PIN(MX35_PAD_TX1),
606 	IMX_PINCTRL_PIN(MX35_PAD_TX0),
607 	IMX_PINCTRL_PIN(MX35_PAD_CSPI1_MOSI),
608 	IMX_PINCTRL_PIN(MX35_PAD_CSPI1_MISO),
609 	IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SS0),
610 	IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SS1),
611 	IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SCLK),
612 	IMX_PINCTRL_PIN(MX35_PAD_CSPI1_SPI_RDY),
613 	IMX_PINCTRL_PIN(MX35_PAD_RXD1),
614 	IMX_PINCTRL_PIN(MX35_PAD_TXD1),
615 	IMX_PINCTRL_PIN(MX35_PAD_RTS1),
616 	IMX_PINCTRL_PIN(MX35_PAD_CTS1),
617 	IMX_PINCTRL_PIN(MX35_PAD_RXD2),
618 	IMX_PINCTRL_PIN(MX35_PAD_TXD2),
619 	IMX_PINCTRL_PIN(MX35_PAD_RTS2),
620 	IMX_PINCTRL_PIN(MX35_PAD_CTS2),
621 	IMX_PINCTRL_PIN(MX35_PAD_USBOTG_PWR),
622 	IMX_PINCTRL_PIN(MX35_PAD_USBOTG_OC),
623 	IMX_PINCTRL_PIN(MX35_PAD_LD0),
624 	IMX_PINCTRL_PIN(MX35_PAD_LD1),
625 	IMX_PINCTRL_PIN(MX35_PAD_LD2),
626 	IMX_PINCTRL_PIN(MX35_PAD_LD3),
627 	IMX_PINCTRL_PIN(MX35_PAD_LD4),
628 	IMX_PINCTRL_PIN(MX35_PAD_LD5),
629 	IMX_PINCTRL_PIN(MX35_PAD_LD6),
630 	IMX_PINCTRL_PIN(MX35_PAD_LD7),
631 	IMX_PINCTRL_PIN(MX35_PAD_LD8),
632 	IMX_PINCTRL_PIN(MX35_PAD_LD9),
633 	IMX_PINCTRL_PIN(MX35_PAD_LD10),
634 	IMX_PINCTRL_PIN(MX35_PAD_LD11),
635 	IMX_PINCTRL_PIN(MX35_PAD_LD12),
636 	IMX_PINCTRL_PIN(MX35_PAD_LD13),
637 	IMX_PINCTRL_PIN(MX35_PAD_LD14),
638 	IMX_PINCTRL_PIN(MX35_PAD_LD15),
639 	IMX_PINCTRL_PIN(MX35_PAD_LD16),
640 	IMX_PINCTRL_PIN(MX35_PAD_LD17),
641 	IMX_PINCTRL_PIN(MX35_PAD_LD18),
642 	IMX_PINCTRL_PIN(MX35_PAD_LD19),
643 	IMX_PINCTRL_PIN(MX35_PAD_LD20),
644 	IMX_PINCTRL_PIN(MX35_PAD_LD21),
645 	IMX_PINCTRL_PIN(MX35_PAD_LD22),
646 	IMX_PINCTRL_PIN(MX35_PAD_LD23),
647 	IMX_PINCTRL_PIN(MX35_PAD_D3_HSYNC),
648 	IMX_PINCTRL_PIN(MX35_PAD_D3_FPSHIFT),
649 	IMX_PINCTRL_PIN(MX35_PAD_D3_DRDY),
650 	IMX_PINCTRL_PIN(MX35_PAD_CONTRAST),
651 	IMX_PINCTRL_PIN(MX35_PAD_D3_VSYNC),
652 	IMX_PINCTRL_PIN(MX35_PAD_D3_REV),
653 	IMX_PINCTRL_PIN(MX35_PAD_D3_CLS),
654 	IMX_PINCTRL_PIN(MX35_PAD_D3_SPL),
655 	IMX_PINCTRL_PIN(MX35_PAD_SD1_CMD),
656 	IMX_PINCTRL_PIN(MX35_PAD_SD1_CLK),
657 	IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA0),
658 	IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA1),
659 	IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA2),
660 	IMX_PINCTRL_PIN(MX35_PAD_SD1_DATA3),
661 	IMX_PINCTRL_PIN(MX35_PAD_SD2_CMD),
662 	IMX_PINCTRL_PIN(MX35_PAD_SD2_CLK),
663 	IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA0),
664 	IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA1),
665 	IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA2),
666 	IMX_PINCTRL_PIN(MX35_PAD_SD2_DATA3),
667 	IMX_PINCTRL_PIN(MX35_PAD_ATA_CS0),
668 	IMX_PINCTRL_PIN(MX35_PAD_ATA_CS1),
669 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DIOR),
670 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DIOW),
671 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DMACK),
672 	IMX_PINCTRL_PIN(MX35_PAD_ATA_RESET_B),
673 	IMX_PINCTRL_PIN(MX35_PAD_ATA_IORDY),
674 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA0),
675 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA1),
676 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA2),
677 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA3),
678 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA4),
679 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA5),
680 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA6),
681 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA7),
682 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA8),
683 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA9),
684 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA10),
685 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA11),
686 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA12),
687 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA13),
688 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA14),
689 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DATA15),
690 	IMX_PINCTRL_PIN(MX35_PAD_ATA_INTRQ),
691 	IMX_PINCTRL_PIN(MX35_PAD_ATA_BUFF_EN),
692 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DMARQ),
693 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DA0),
694 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DA1),
695 	IMX_PINCTRL_PIN(MX35_PAD_ATA_DA2),
696 	IMX_PINCTRL_PIN(MX35_PAD_MLB_CLK),
697 	IMX_PINCTRL_PIN(MX35_PAD_MLB_DAT),
698 	IMX_PINCTRL_PIN(MX35_PAD_MLB_SIG),
699 	IMX_PINCTRL_PIN(MX35_PAD_FEC_TX_CLK),
700 	IMX_PINCTRL_PIN(MX35_PAD_FEC_RX_CLK),
701 	IMX_PINCTRL_PIN(MX35_PAD_FEC_RX_DV),
702 	IMX_PINCTRL_PIN(MX35_PAD_FEC_COL),
703 	IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA0),
704 	IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA0),
705 	IMX_PINCTRL_PIN(MX35_PAD_FEC_TX_EN),
706 	IMX_PINCTRL_PIN(MX35_PAD_FEC_MDC),
707 	IMX_PINCTRL_PIN(MX35_PAD_FEC_MDIO),
708 	IMX_PINCTRL_PIN(MX35_PAD_FEC_TX_ERR),
709 	IMX_PINCTRL_PIN(MX35_PAD_FEC_RX_ERR),
710 	IMX_PINCTRL_PIN(MX35_PAD_FEC_CRS),
711 	IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA1),
712 	IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA1),
713 	IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA2),
714 	IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA2),
715 	IMX_PINCTRL_PIN(MX35_PAD_FEC_RDATA3),
716 	IMX_PINCTRL_PIN(MX35_PAD_FEC_TDATA3),
717 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE1),
718 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE2),
719 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE3),
720 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE4),
721 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE5),
722 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE6),
723 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE7),
724 	IMX_PINCTRL_PIN(MX35_PAD_RESET_IN_B),
725 	IMX_PINCTRL_PIN(MX35_PAD_POR_B),
726 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE8),
727 	IMX_PINCTRL_PIN(MX35_PAD_BOOT_MODE0),
728 	IMX_PINCTRL_PIN(MX35_PAD_BOOT_MODE1),
729 	IMX_PINCTRL_PIN(MX35_PAD_CLK_MODE0),
730 	IMX_PINCTRL_PIN(MX35_PAD_CLK_MODE1),
731 	IMX_PINCTRL_PIN(MX35_PAD_POWER_FAIL),
732 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE9),
733 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE10),
734 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE11),
735 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE12),
736 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE13),
737 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE14),
738 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE15),
739 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE16),
740 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE17),
741 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE18),
742 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE19),
743 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE20),
744 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE21),
745 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE22),
746 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE23),
747 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE24),
748 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE25),
749 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE26),
750 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE27),
751 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE28),
752 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE29),
753 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE30),
754 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE31),
755 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE32),
756 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE33),
757 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE34),
758 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE35),
759 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE36),
760 	IMX_PINCTRL_PIN(MX35_PAD_SDBA1),
761 	IMX_PINCTRL_PIN(MX35_PAD_SDBA0),
762 	IMX_PINCTRL_PIN(MX35_PAD_SD0),
763 	IMX_PINCTRL_PIN(MX35_PAD_SD1),
764 	IMX_PINCTRL_PIN(MX35_PAD_SD2),
765 	IMX_PINCTRL_PIN(MX35_PAD_SD3),
766 	IMX_PINCTRL_PIN(MX35_PAD_SD4),
767 	IMX_PINCTRL_PIN(MX35_PAD_SD5),
768 	IMX_PINCTRL_PIN(MX35_PAD_SD6),
769 	IMX_PINCTRL_PIN(MX35_PAD_SD7),
770 	IMX_PINCTRL_PIN(MX35_PAD_SD8),
771 	IMX_PINCTRL_PIN(MX35_PAD_SD9),
772 	IMX_PINCTRL_PIN(MX35_PAD_SD10),
773 	IMX_PINCTRL_PIN(MX35_PAD_SD11),
774 	IMX_PINCTRL_PIN(MX35_PAD_SD12),
775 	IMX_PINCTRL_PIN(MX35_PAD_SD13),
776 	IMX_PINCTRL_PIN(MX35_PAD_SD14),
777 	IMX_PINCTRL_PIN(MX35_PAD_SD15),
778 	IMX_PINCTRL_PIN(MX35_PAD_SD16),
779 	IMX_PINCTRL_PIN(MX35_PAD_SD17),
780 	IMX_PINCTRL_PIN(MX35_PAD_SD18),
781 	IMX_PINCTRL_PIN(MX35_PAD_SD19),
782 	IMX_PINCTRL_PIN(MX35_PAD_SD20),
783 	IMX_PINCTRL_PIN(MX35_PAD_SD21),
784 	IMX_PINCTRL_PIN(MX35_PAD_SD22),
785 	IMX_PINCTRL_PIN(MX35_PAD_SD23),
786 	IMX_PINCTRL_PIN(MX35_PAD_SD24),
787 	IMX_PINCTRL_PIN(MX35_PAD_SD25),
788 	IMX_PINCTRL_PIN(MX35_PAD_SD26),
789 	IMX_PINCTRL_PIN(MX35_PAD_SD27),
790 	IMX_PINCTRL_PIN(MX35_PAD_SD28),
791 	IMX_PINCTRL_PIN(MX35_PAD_SD29),
792 	IMX_PINCTRL_PIN(MX35_PAD_SD30),
793 	IMX_PINCTRL_PIN(MX35_PAD_SD31),
794 	IMX_PINCTRL_PIN(MX35_PAD_DQM0),
795 	IMX_PINCTRL_PIN(MX35_PAD_DQM1),
796 	IMX_PINCTRL_PIN(MX35_PAD_DQM2),
797 	IMX_PINCTRL_PIN(MX35_PAD_DQM3),
798 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE37),
799 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE38),
800 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE39),
801 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE40),
802 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE41),
803 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE42),
804 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE43),
805 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE44),
806 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE45),
807 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE46),
808 	IMX_PINCTRL_PIN(MX35_PAD_ECB),
809 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE47),
810 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE48),
811 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE49),
812 	IMX_PINCTRL_PIN(MX35_PAD_RAS),
813 	IMX_PINCTRL_PIN(MX35_PAD_CAS),
814 	IMX_PINCTRL_PIN(MX35_PAD_SDWE),
815 	IMX_PINCTRL_PIN(MX35_PAD_SDCKE0),
816 	IMX_PINCTRL_PIN(MX35_PAD_SDCKE1),
817 	IMX_PINCTRL_PIN(MX35_PAD_SDCLK),
818 	IMX_PINCTRL_PIN(MX35_PAD_SDQS0),
819 	IMX_PINCTRL_PIN(MX35_PAD_SDQS1),
820 	IMX_PINCTRL_PIN(MX35_PAD_SDQS2),
821 	IMX_PINCTRL_PIN(MX35_PAD_SDQS3),
822 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE50),
823 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE51),
824 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE52),
825 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE53),
826 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE54),
827 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE55),
828 	IMX_PINCTRL_PIN(MX35_PAD_D15),
829 	IMX_PINCTRL_PIN(MX35_PAD_D14),
830 	IMX_PINCTRL_PIN(MX35_PAD_D13),
831 	IMX_PINCTRL_PIN(MX35_PAD_D12),
832 	IMX_PINCTRL_PIN(MX35_PAD_D11),
833 	IMX_PINCTRL_PIN(MX35_PAD_D10),
834 	IMX_PINCTRL_PIN(MX35_PAD_D9),
835 	IMX_PINCTRL_PIN(MX35_PAD_D8),
836 	IMX_PINCTRL_PIN(MX35_PAD_D7),
837 	IMX_PINCTRL_PIN(MX35_PAD_D6),
838 	IMX_PINCTRL_PIN(MX35_PAD_D5),
839 	IMX_PINCTRL_PIN(MX35_PAD_D4),
840 	IMX_PINCTRL_PIN(MX35_PAD_D3),
841 	IMX_PINCTRL_PIN(MX35_PAD_D2),
842 	IMX_PINCTRL_PIN(MX35_PAD_D1),
843 	IMX_PINCTRL_PIN(MX35_PAD_D0),
844 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE56),
845 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE57),
846 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE58),
847 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE59),
848 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE60),
849 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE61),
850 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE62),
851 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE63),
852 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE64),
853 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE65),
854 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE66),
855 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE67),
856 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE68),
857 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE69),
858 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE70),
859 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE71),
860 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE72),
861 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE73),
862 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE74),
863 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE75),
864 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE76),
865 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE77),
866 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE78),
867 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE79),
868 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE80),
869 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE81),
870 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE82),
871 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE83),
872 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE84),
873 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE85),
874 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE86),
875 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE87),
876 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE88),
877 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE89),
878 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE90),
879 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE91),
880 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE92),
881 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE93),
882 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE94),
883 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE95),
884 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE96),
885 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE97),
886 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE98),
887 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE99),
888 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE100),
889 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE101),
890 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE102),
891 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE103),
892 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE104),
893 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE105),
894 	IMX_PINCTRL_PIN(MX35_PAD_RTCK),
895 	IMX_PINCTRL_PIN(MX35_PAD_TCK),
896 	IMX_PINCTRL_PIN(MX35_PAD_TMS),
897 	IMX_PINCTRL_PIN(MX35_PAD_TDI),
898 	IMX_PINCTRL_PIN(MX35_PAD_TDO),
899 	IMX_PINCTRL_PIN(MX35_PAD_TRSTB),
900 	IMX_PINCTRL_PIN(MX35_PAD_DE_B),
901 	IMX_PINCTRL_PIN(MX35_PAD_SJC_MOD),
902 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE106),
903 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE107),
904 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE108),
905 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE109),
906 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE110),
907 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE111),
908 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE112),
909 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE113),
910 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE114),
911 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE115),
912 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE116),
913 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE117),
914 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE118),
915 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE119),
916 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE120),
917 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE121),
918 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE122),
919 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE123),
920 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE124),
921 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE125),
922 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE126),
923 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE127),
924 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE128),
925 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE129),
926 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE130),
927 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE131),
928 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE132),
929 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE133),
930 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE134),
931 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE135),
932 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE136),
933 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE137),
934 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE138),
935 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE139),
936 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE140),
937 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE141),
938 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE142),
939 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE143),
940 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE144),
941 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE145),
942 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE146),
943 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE147),
944 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE148),
945 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE149),
946 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE150),
947 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE151),
948 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE152),
949 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE153),
950 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE154),
951 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE155),
952 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE156),
953 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE157),
954 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE158),
955 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE159),
956 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE160),
957 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE161),
958 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE162),
959 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE163),
960 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE164),
961 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE165),
962 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE166),
963 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE167),
964 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE168),
965 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE169),
966 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE170),
967 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE171),
968 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE172),
969 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE173),
970 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE174),
971 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE175),
972 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE176),
973 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE177),
974 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE178),
975 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE179),
976 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE180),
977 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE181),
978 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE182),
979 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE183),
980 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE184),
981 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE185),
982 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE186),
983 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE187),
984 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE188),
985 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE189),
986 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE190),
987 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE191),
988 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE192),
989 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE193),
990 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE194),
991 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE195),
992 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE196),
993 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE197),
994 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE198),
995 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE199),
996 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE200),
997 	IMX_PINCTRL_PIN(MX35_PAD_RESERVE201),
998 	IMX_PINCTRL_PIN(MX35_PAD_EXT_ARMCLK),
999 	IMX_PINCTRL_PIN(MX35_PAD_TEST_MODE),
1000 };
1001 
1002 static struct imx_pinctrl_soc_info imx35_pinctrl_info = {
1003 	.pins = imx35_pinctrl_pads,
1004 	.npins = ARRAY_SIZE(imx35_pinctrl_pads),
1005 };
1006 
1007 static const struct of_device_id imx35_pinctrl_of_match[] = {
1008 	{ .compatible = "fsl,imx35-iomuxc", },
1009 	{ /* sentinel */ }
1010 };
1011 
1012 static int imx35_pinctrl_probe(struct platform_device *pdev)
1013 {
1014 	return imx_pinctrl_probe(pdev, &imx35_pinctrl_info);
1015 }
1016 
1017 static struct platform_driver imx35_pinctrl_driver = {
1018 	.driver = {
1019 		.name = "imx35-pinctrl",
1020 		.of_match_table = imx35_pinctrl_of_match,
1021 	},
1022 	.probe = imx35_pinctrl_probe,
1023 };
1024 
1025 static int __init imx35_pinctrl_init(void)
1026 {
1027 	return platform_driver_register(&imx35_pinctrl_driver);
1028 }
1029 arch_initcall(imx35_pinctrl_init);
1030