xref: /linux/drivers/pinctrl/freescale/pinctrl-imx51.c (revision 17b121ad0c43342bc894632f6710b894849ca372)
1 // SPDX-License-Identifier: GPL-2.0+
2 //
3 // imx51 pinctrl driver based on imx pinmux core
4 //
5 // Copyright (C) 2012 Freescale Semiconductor, Inc.
6 // Copyright (C) 2012 Linaro, Inc.
7 //
8 // Author: Dong Aisheng <dong.aisheng@linaro.org>
9 
10 #include <linux/err.h>
11 #include <linux/init.h>
12 #include <linux/io.h>
13 #include <linux/of.h>
14 #include <linux/of_device.h>
15 #include <linux/pinctrl/pinctrl.h>
16 
17 #include "pinctrl-imx.h"
18 
19 enum imx51_pads {
20 	MX51_PAD_RESERVE0 = 0,
21 	MX51_PAD_RESERVE1 = 1,
22 	MX51_PAD_RESERVE2 = 2,
23 	MX51_PAD_RESERVE3 = 3,
24 	MX51_PAD_RESERVE4 = 4,
25 	MX51_PAD_RESERVE5 = 5,
26 	MX51_PAD_RESERVE6 = 6,
27 	MX51_PAD_EIM_DA0 = 7,
28 	MX51_PAD_EIM_DA1 = 8,
29 	MX51_PAD_EIM_DA2 = 9,
30 	MX51_PAD_EIM_DA3 = 10,
31 	MX51_PAD_EIM_DA4 = 11,
32 	MX51_PAD_EIM_DA5 = 12,
33 	MX51_PAD_EIM_DA6 = 13,
34 	MX51_PAD_EIM_DA7 = 14,
35 	MX51_PAD_EIM_DA8 = 15,
36 	MX51_PAD_EIM_DA9 = 16,
37 	MX51_PAD_EIM_DA10 = 17,
38 	MX51_PAD_EIM_DA11 = 18,
39 	MX51_PAD_EIM_DA12 = 19,
40 	MX51_PAD_EIM_DA13 = 20,
41 	MX51_PAD_EIM_DA14 = 21,
42 	MX51_PAD_EIM_DA15 = 22,
43 	MX51_PAD_EIM_D16 = 23,
44 	MX51_PAD_EIM_D17 = 24,
45 	MX51_PAD_EIM_D18 = 25,
46 	MX51_PAD_EIM_D19 = 26,
47 	MX51_PAD_EIM_D20 = 27,
48 	MX51_PAD_EIM_D21 = 28,
49 	MX51_PAD_EIM_D22 = 29,
50 	MX51_PAD_EIM_D23 = 30,
51 	MX51_PAD_EIM_D24 = 31,
52 	MX51_PAD_EIM_D25 = 32,
53 	MX51_PAD_EIM_D26 = 33,
54 	MX51_PAD_EIM_D27 = 34,
55 	MX51_PAD_EIM_D28 = 35,
56 	MX51_PAD_EIM_D29 = 36,
57 	MX51_PAD_EIM_D30 = 37,
58 	MX51_PAD_EIM_D31 = 38,
59 	MX51_PAD_EIM_A16 = 39,
60 	MX51_PAD_EIM_A17 = 40,
61 	MX51_PAD_EIM_A18 = 41,
62 	MX51_PAD_EIM_A19 = 42,
63 	MX51_PAD_EIM_A20 = 43,
64 	MX51_PAD_EIM_A21 = 44,
65 	MX51_PAD_EIM_A22 = 45,
66 	MX51_PAD_EIM_A23 = 46,
67 	MX51_PAD_EIM_A24 = 47,
68 	MX51_PAD_EIM_A25 = 48,
69 	MX51_PAD_EIM_A26 = 49,
70 	MX51_PAD_EIM_A27 = 50,
71 	MX51_PAD_EIM_EB0 = 51,
72 	MX51_PAD_EIM_EB1 = 52,
73 	MX51_PAD_EIM_EB2 = 53,
74 	MX51_PAD_EIM_EB3 = 54,
75 	MX51_PAD_EIM_OE = 55,
76 	MX51_PAD_EIM_CS0 = 56,
77 	MX51_PAD_EIM_CS1 = 57,
78 	MX51_PAD_EIM_CS2 = 58,
79 	MX51_PAD_EIM_CS3 = 59,
80 	MX51_PAD_EIM_CS4 = 60,
81 	MX51_PAD_EIM_CS5 = 61,
82 	MX51_PAD_EIM_DTACK = 62,
83 	MX51_PAD_EIM_LBA = 63,
84 	MX51_PAD_EIM_CRE = 64,
85 	MX51_PAD_DRAM_CS1 = 65,
86 	MX51_PAD_NANDF_WE_B = 66,
87 	MX51_PAD_NANDF_RE_B = 67,
88 	MX51_PAD_NANDF_ALE = 68,
89 	MX51_PAD_NANDF_CLE = 69,
90 	MX51_PAD_NANDF_WP_B = 70,
91 	MX51_PAD_NANDF_RB0 = 71,
92 	MX51_PAD_NANDF_RB1 = 72,
93 	MX51_PAD_NANDF_RB2 = 73,
94 	MX51_PAD_NANDF_RB3 = 74,
95 	MX51_PAD_GPIO_NAND = 75,
96 	MX51_PAD_NANDF_CS0 = 76,
97 	MX51_PAD_NANDF_CS1 = 77,
98 	MX51_PAD_NANDF_CS2 = 78,
99 	MX51_PAD_NANDF_CS3 = 79,
100 	MX51_PAD_NANDF_CS4 = 80,
101 	MX51_PAD_NANDF_CS5 = 81,
102 	MX51_PAD_NANDF_CS6 = 82,
103 	MX51_PAD_NANDF_CS7 = 83,
104 	MX51_PAD_NANDF_RDY_INT = 84,
105 	MX51_PAD_NANDF_D15 = 85,
106 	MX51_PAD_NANDF_D14 = 86,
107 	MX51_PAD_NANDF_D13 = 87,
108 	MX51_PAD_NANDF_D12 = 88,
109 	MX51_PAD_NANDF_D11 = 89,
110 	MX51_PAD_NANDF_D10 = 90,
111 	MX51_PAD_NANDF_D9 = 91,
112 	MX51_PAD_NANDF_D8 = 92,
113 	MX51_PAD_NANDF_D7 = 93,
114 	MX51_PAD_NANDF_D6 = 94,
115 	MX51_PAD_NANDF_D5 = 95,
116 	MX51_PAD_NANDF_D4 = 96,
117 	MX51_PAD_NANDF_D3 = 97,
118 	MX51_PAD_NANDF_D2 = 98,
119 	MX51_PAD_NANDF_D1 = 99,
120 	MX51_PAD_NANDF_D0 = 100,
121 	MX51_PAD_CSI1_D8 = 101,
122 	MX51_PAD_CSI1_D9 = 102,
123 	MX51_PAD_CSI1_D10 = 103,
124 	MX51_PAD_CSI1_D11 = 104,
125 	MX51_PAD_CSI1_D12 = 105,
126 	MX51_PAD_CSI1_D13 = 106,
127 	MX51_PAD_CSI1_D14 = 107,
128 	MX51_PAD_CSI1_D15 = 108,
129 	MX51_PAD_CSI1_D16 = 109,
130 	MX51_PAD_CSI1_D17 = 110,
131 	MX51_PAD_CSI1_D18 = 111,
132 	MX51_PAD_CSI1_D19 = 112,
133 	MX51_PAD_CSI1_VSYNC = 113,
134 	MX51_PAD_CSI1_HSYNC = 114,
135 	MX51_PAD_CSI2_D12 = 115,
136 	MX51_PAD_CSI2_D13 = 116,
137 	MX51_PAD_CSI2_D14 = 117,
138 	MX51_PAD_CSI2_D15 = 118,
139 	MX51_PAD_CSI2_D16 = 119,
140 	MX51_PAD_CSI2_D17 = 120,
141 	MX51_PAD_CSI2_D18 = 121,
142 	MX51_PAD_CSI2_D19 = 122,
143 	MX51_PAD_CSI2_VSYNC = 123,
144 	MX51_PAD_CSI2_HSYNC = 124,
145 	MX51_PAD_CSI2_PIXCLK = 125,
146 	MX51_PAD_I2C1_CLK = 126,
147 	MX51_PAD_I2C1_DAT = 127,
148 	MX51_PAD_AUD3_BB_TXD = 128,
149 	MX51_PAD_AUD3_BB_RXD = 129,
150 	MX51_PAD_AUD3_BB_CK = 130,
151 	MX51_PAD_AUD3_BB_FS = 131,
152 	MX51_PAD_CSPI1_MOSI = 132,
153 	MX51_PAD_CSPI1_MISO = 133,
154 	MX51_PAD_CSPI1_SS0 = 134,
155 	MX51_PAD_CSPI1_SS1 = 135,
156 	MX51_PAD_CSPI1_RDY = 136,
157 	MX51_PAD_CSPI1_SCLK = 137,
158 	MX51_PAD_UART1_RXD = 138,
159 	MX51_PAD_UART1_TXD = 139,
160 	MX51_PAD_UART1_RTS = 140,
161 	MX51_PAD_UART1_CTS = 141,
162 	MX51_PAD_UART2_RXD = 142,
163 	MX51_PAD_UART2_TXD = 143,
164 	MX51_PAD_UART3_RXD = 144,
165 	MX51_PAD_UART3_TXD = 145,
166 	MX51_PAD_OWIRE_LINE = 146,
167 	MX51_PAD_KEY_ROW0 = 147,
168 	MX51_PAD_KEY_ROW1 = 148,
169 	MX51_PAD_KEY_ROW2 = 149,
170 	MX51_PAD_KEY_ROW3 = 150,
171 	MX51_PAD_KEY_COL0 = 151,
172 	MX51_PAD_KEY_COL1 = 152,
173 	MX51_PAD_KEY_COL2 = 153,
174 	MX51_PAD_KEY_COL3 = 154,
175 	MX51_PAD_KEY_COL4 = 155,
176 	MX51_PAD_KEY_COL5 = 156,
177 	MX51_PAD_RESERVE7 = 157,
178 	MX51_PAD_USBH1_CLK = 158,
179 	MX51_PAD_USBH1_DIR = 159,
180 	MX51_PAD_USBH1_STP = 160,
181 	MX51_PAD_USBH1_NXT = 161,
182 	MX51_PAD_USBH1_DATA0 = 162,
183 	MX51_PAD_USBH1_DATA1 = 163,
184 	MX51_PAD_USBH1_DATA2 = 164,
185 	MX51_PAD_USBH1_DATA3 = 165,
186 	MX51_PAD_USBH1_DATA4 = 166,
187 	MX51_PAD_USBH1_DATA5 = 167,
188 	MX51_PAD_USBH1_DATA6 = 168,
189 	MX51_PAD_USBH1_DATA7 = 169,
190 	MX51_PAD_DI1_PIN11 = 170,
191 	MX51_PAD_DI1_PIN12 = 171,
192 	MX51_PAD_DI1_PIN13 = 172,
193 	MX51_PAD_DI1_D0_CS = 173,
194 	MX51_PAD_DI1_D1_CS = 174,
195 	MX51_PAD_DISPB2_SER_DIN = 175,
196 	MX51_PAD_DISPB2_SER_DIO = 176,
197 	MX51_PAD_DISPB2_SER_CLK = 177,
198 	MX51_PAD_DISPB2_SER_RS = 178,
199 	MX51_PAD_DISP1_DAT0 = 179,
200 	MX51_PAD_DISP1_DAT1 = 180,
201 	MX51_PAD_DISP1_DAT2 = 181,
202 	MX51_PAD_DISP1_DAT3 = 182,
203 	MX51_PAD_DISP1_DAT4 = 183,
204 	MX51_PAD_DISP1_DAT5 = 184,
205 	MX51_PAD_DISP1_DAT6 = 185,
206 	MX51_PAD_DISP1_DAT7 = 186,
207 	MX51_PAD_DISP1_DAT8 = 187,
208 	MX51_PAD_DISP1_DAT9 = 188,
209 	MX51_PAD_DISP1_DAT10 = 189,
210 	MX51_PAD_DISP1_DAT11 = 190,
211 	MX51_PAD_DISP1_DAT12 = 191,
212 	MX51_PAD_DISP1_DAT13 = 192,
213 	MX51_PAD_DISP1_DAT14 = 193,
214 	MX51_PAD_DISP1_DAT15 = 194,
215 	MX51_PAD_DISP1_DAT16 = 195,
216 	MX51_PAD_DISP1_DAT17 = 196,
217 	MX51_PAD_DISP1_DAT18 = 197,
218 	MX51_PAD_DISP1_DAT19 = 198,
219 	MX51_PAD_DISP1_DAT20 = 199,
220 	MX51_PAD_DISP1_DAT21 = 200,
221 	MX51_PAD_DISP1_DAT22 = 201,
222 	MX51_PAD_DISP1_DAT23 = 202,
223 	MX51_PAD_DI1_PIN3 = 203,
224 	MX51_PAD_DI1_PIN2 = 204,
225 	MX51_PAD_RESERVE8 = 205,
226 	MX51_PAD_DI_GP2 = 206,
227 	MX51_PAD_DI_GP3 = 207,
228 	MX51_PAD_DI2_PIN4 = 208,
229 	MX51_PAD_DI2_PIN2 = 209,
230 	MX51_PAD_DI2_PIN3 = 210,
231 	MX51_PAD_DI2_DISP_CLK = 211,
232 	MX51_PAD_DI_GP4 = 212,
233 	MX51_PAD_DISP2_DAT0 = 213,
234 	MX51_PAD_DISP2_DAT1 = 214,
235 	MX51_PAD_DISP2_DAT2 = 215,
236 	MX51_PAD_DISP2_DAT3 = 216,
237 	MX51_PAD_DISP2_DAT4 = 217,
238 	MX51_PAD_DISP2_DAT5 = 218,
239 	MX51_PAD_DISP2_DAT6 = 219,
240 	MX51_PAD_DISP2_DAT7 = 220,
241 	MX51_PAD_DISP2_DAT8 = 221,
242 	MX51_PAD_DISP2_DAT9 = 222,
243 	MX51_PAD_DISP2_DAT10 = 223,
244 	MX51_PAD_DISP2_DAT11 = 224,
245 	MX51_PAD_DISP2_DAT12 = 225,
246 	MX51_PAD_DISP2_DAT13 = 226,
247 	MX51_PAD_DISP2_DAT14 = 227,
248 	MX51_PAD_DISP2_DAT15 = 228,
249 	MX51_PAD_SD1_CMD = 229,
250 	MX51_PAD_SD1_CLK = 230,
251 	MX51_PAD_SD1_DATA0 = 231,
252 	MX51_PAD_SD1_DATA1 = 232,
253 	MX51_PAD_SD1_DATA2 = 233,
254 	MX51_PAD_SD1_DATA3 = 234,
255 	MX51_PAD_GPIO1_0 = 235,
256 	MX51_PAD_GPIO1_1 = 236,
257 	MX51_PAD_SD2_CMD = 237,
258 	MX51_PAD_SD2_CLK = 238,
259 	MX51_PAD_SD2_DATA0 = 239,
260 	MX51_PAD_SD2_DATA1 = 240,
261 	MX51_PAD_SD2_DATA2 = 241,
262 	MX51_PAD_SD2_DATA3 = 242,
263 	MX51_PAD_GPIO1_2 = 243,
264 	MX51_PAD_GPIO1_3 = 244,
265 	MX51_PAD_PMIC_INT_REQ = 245,
266 	MX51_PAD_GPIO1_4 = 246,
267 	MX51_PAD_GPIO1_5 = 247,
268 	MX51_PAD_GPIO1_6 = 248,
269 	MX51_PAD_GPIO1_7 = 249,
270 	MX51_PAD_GPIO1_8 = 250,
271 	MX51_PAD_GPIO1_9 = 251,
272 	MX51_PAD_RESERVE9 = 252,
273 	MX51_PAD_RESERVE10 = 253,
274 	MX51_PAD_RESERVE11 = 254,
275 	MX51_PAD_RESERVE12 = 255,
276 	MX51_PAD_RESERVE13 = 256,
277 	MX51_PAD_RESERVE14 = 257,
278 	MX51_PAD_RESERVE15 = 258,
279 	MX51_PAD_RESERVE16 = 259,
280 	MX51_PAD_RESERVE17 = 260,
281 	MX51_PAD_RESERVE18 = 261,
282 	MX51_PAD_RESERVE19 = 262,
283 	MX51_PAD_RESERVE20 = 263,
284 	MX51_PAD_RESERVE21 = 264,
285 	MX51_PAD_RESERVE22 = 265,
286 	MX51_PAD_RESERVE23 = 266,
287 	MX51_PAD_RESERVE24 = 267,
288 	MX51_PAD_RESERVE25 = 268,
289 	MX51_PAD_RESERVE26 = 269,
290 	MX51_PAD_RESERVE27 = 270,
291 	MX51_PAD_RESERVE28 = 271,
292 	MX51_PAD_RESERVE29 = 272,
293 	MX51_PAD_RESERVE30 = 273,
294 	MX51_PAD_RESERVE31 = 274,
295 	MX51_PAD_RESERVE32 = 275,
296 	MX51_PAD_RESERVE33 = 276,
297 	MX51_PAD_RESERVE34 = 277,
298 	MX51_PAD_RESERVE35 = 278,
299 	MX51_PAD_RESERVE36 = 279,
300 	MX51_PAD_RESERVE37 = 280,
301 	MX51_PAD_RESERVE38 = 281,
302 	MX51_PAD_RESERVE39 = 282,
303 	MX51_PAD_RESERVE40 = 283,
304 	MX51_PAD_RESERVE41 = 284,
305 	MX51_PAD_RESERVE42 = 285,
306 	MX51_PAD_RESERVE43 = 286,
307 	MX51_PAD_RESERVE44 = 287,
308 	MX51_PAD_RESERVE45 = 288,
309 	MX51_PAD_RESERVE46 = 289,
310 	MX51_PAD_RESERVE47 = 290,
311 	MX51_PAD_RESERVE48 = 291,
312 	MX51_PAD_RESERVE49 = 292,
313 	MX51_PAD_RESERVE50 = 293,
314 	MX51_PAD_RESERVE51 = 294,
315 	MX51_PAD_RESERVE52 = 295,
316 	MX51_PAD_RESERVE53 = 296,
317 	MX51_PAD_RESERVE54 = 297,
318 	MX51_PAD_RESERVE55 = 298,
319 	MX51_PAD_RESERVE56 = 299,
320 	MX51_PAD_RESERVE57 = 300,
321 	MX51_PAD_RESERVE58 = 301,
322 	MX51_PAD_RESERVE59 = 302,
323 	MX51_PAD_RESERVE60 = 303,
324 	MX51_PAD_RESERVE61 = 304,
325 	MX51_PAD_RESERVE62 = 305,
326 	MX51_PAD_RESERVE63 = 306,
327 	MX51_PAD_RESERVE64 = 307,
328 	MX51_PAD_RESERVE65 = 308,
329 	MX51_PAD_RESERVE66 = 309,
330 	MX51_PAD_RESERVE67 = 310,
331 	MX51_PAD_RESERVE68 = 311,
332 	MX51_PAD_RESERVE69 = 312,
333 	MX51_PAD_RESERVE70 = 313,
334 	MX51_PAD_RESERVE71 = 314,
335 	MX51_PAD_RESERVE72 = 315,
336 	MX51_PAD_RESERVE73 = 316,
337 	MX51_PAD_RESERVE74 = 317,
338 	MX51_PAD_RESERVE75 = 318,
339 	MX51_PAD_RESERVE76 = 319,
340 	MX51_PAD_RESERVE77 = 320,
341 	MX51_PAD_RESERVE78 = 321,
342 	MX51_PAD_RESERVE79 = 322,
343 	MX51_PAD_RESERVE80 = 323,
344 	MX51_PAD_RESERVE81 = 324,
345 	MX51_PAD_RESERVE82 = 325,
346 	MX51_PAD_RESERVE83 = 326,
347 	MX51_PAD_RESERVE84 = 327,
348 	MX51_PAD_RESERVE85 = 328,
349 	MX51_PAD_RESERVE86 = 329,
350 	MX51_PAD_RESERVE87 = 330,
351 	MX51_PAD_RESERVE88 = 331,
352 	MX51_PAD_RESERVE89 = 332,
353 	MX51_PAD_RESERVE90 = 333,
354 	MX51_PAD_RESERVE91 = 334,
355 	MX51_PAD_RESERVE92 = 335,
356 	MX51_PAD_RESERVE93 = 336,
357 	MX51_PAD_RESERVE94 = 337,
358 	MX51_PAD_RESERVE95 = 338,
359 	MX51_PAD_RESERVE96 = 339,
360 	MX51_PAD_RESERVE97 = 340,
361 	MX51_PAD_RESERVE98 = 341,
362 	MX51_PAD_RESERVE99 = 342,
363 	MX51_PAD_RESERVE100 = 343,
364 	MX51_PAD_RESERVE101 = 344,
365 	MX51_PAD_RESERVE102 = 345,
366 	MX51_PAD_RESERVE103 = 346,
367 	MX51_PAD_RESERVE104 = 347,
368 	MX51_PAD_RESERVE105 = 348,
369 	MX51_PAD_RESERVE106 = 349,
370 	MX51_PAD_RESERVE107 = 350,
371 	MX51_PAD_RESERVE108 = 351,
372 	MX51_PAD_RESERVE109 = 352,
373 	MX51_PAD_RESERVE110 = 353,
374 	MX51_PAD_RESERVE111 = 354,
375 	MX51_PAD_RESERVE112 = 355,
376 	MX51_PAD_RESERVE113 = 356,
377 	MX51_PAD_RESERVE114 = 357,
378 	MX51_PAD_RESERVE115 = 358,
379 	MX51_PAD_RESERVE116 = 359,
380 	MX51_PAD_RESERVE117 = 360,
381 	MX51_PAD_RESERVE118 = 361,
382 	MX51_PAD_RESERVE119 = 362,
383 	MX51_PAD_RESERVE120 = 363,
384 	MX51_PAD_RESERVE121 = 364,
385 	MX51_PAD_CSI1_PIXCLK = 365,
386 	MX51_PAD_CSI1_MCLK = 366,
387 };
388 
389 /* Pad names for the pinmux subsystem */
390 static const struct pinctrl_pin_desc imx51_pinctrl_pads[] = {
391 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE0),
392 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE1),
393 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE2),
394 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE3),
395 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE4),
396 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE5),
397 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE6),
398 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA0),
399 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA1),
400 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA2),
401 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA3),
402 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA4),
403 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA5),
404 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA6),
405 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA7),
406 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA8),
407 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA9),
408 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA10),
409 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA11),
410 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA12),
411 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA13),
412 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA14),
413 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DA15),
414 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D16),
415 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D17),
416 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D18),
417 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D19),
418 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D20),
419 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D21),
420 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D22),
421 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D23),
422 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D24),
423 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D25),
424 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D26),
425 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D27),
426 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D28),
427 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D29),
428 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D30),
429 	IMX_PINCTRL_PIN(MX51_PAD_EIM_D31),
430 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A16),
431 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A17),
432 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A18),
433 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A19),
434 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A20),
435 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A21),
436 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A22),
437 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A23),
438 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A24),
439 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A25),
440 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A26),
441 	IMX_PINCTRL_PIN(MX51_PAD_EIM_A27),
442 	IMX_PINCTRL_PIN(MX51_PAD_EIM_EB0),
443 	IMX_PINCTRL_PIN(MX51_PAD_EIM_EB1),
444 	IMX_PINCTRL_PIN(MX51_PAD_EIM_EB2),
445 	IMX_PINCTRL_PIN(MX51_PAD_EIM_EB3),
446 	IMX_PINCTRL_PIN(MX51_PAD_EIM_OE),
447 	IMX_PINCTRL_PIN(MX51_PAD_EIM_CS0),
448 	IMX_PINCTRL_PIN(MX51_PAD_EIM_CS1),
449 	IMX_PINCTRL_PIN(MX51_PAD_EIM_CS2),
450 	IMX_PINCTRL_PIN(MX51_PAD_EIM_CS3),
451 	IMX_PINCTRL_PIN(MX51_PAD_EIM_CS4),
452 	IMX_PINCTRL_PIN(MX51_PAD_EIM_CS5),
453 	IMX_PINCTRL_PIN(MX51_PAD_EIM_DTACK),
454 	IMX_PINCTRL_PIN(MX51_PAD_EIM_LBA),
455 	IMX_PINCTRL_PIN(MX51_PAD_EIM_CRE),
456 	IMX_PINCTRL_PIN(MX51_PAD_DRAM_CS1),
457 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_WE_B),
458 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_RE_B),
459 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_ALE),
460 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CLE),
461 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_WP_B),
462 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB0),
463 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB1),
464 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB2),
465 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB3),
466 	IMX_PINCTRL_PIN(MX51_PAD_GPIO_NAND),
467 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS0),
468 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS1),
469 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS2),
470 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS3),
471 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS4),
472 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS5),
473 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS6),
474 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS7),
475 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_RDY_INT),
476 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D15),
477 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D14),
478 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D13),
479 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D12),
480 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D11),
481 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D10),
482 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D9),
483 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D8),
484 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D7),
485 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D6),
486 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D5),
487 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D4),
488 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D3),
489 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D2),
490 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D1),
491 	IMX_PINCTRL_PIN(MX51_PAD_NANDF_D0),
492 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D8),
493 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D9),
494 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D10),
495 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D11),
496 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D12),
497 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D13),
498 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D14),
499 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D15),
500 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D16),
501 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D17),
502 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D18),
503 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_D19),
504 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_VSYNC),
505 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_HSYNC),
506 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D12),
507 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D13),
508 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D14),
509 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D15),
510 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D16),
511 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D17),
512 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D18),
513 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_D19),
514 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_VSYNC),
515 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_HSYNC),
516 	IMX_PINCTRL_PIN(MX51_PAD_CSI2_PIXCLK),
517 	IMX_PINCTRL_PIN(MX51_PAD_I2C1_CLK),
518 	IMX_PINCTRL_PIN(MX51_PAD_I2C1_DAT),
519 	IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_TXD),
520 	IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_RXD),
521 	IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_CK),
522 	IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_FS),
523 	IMX_PINCTRL_PIN(MX51_PAD_CSPI1_MOSI),
524 	IMX_PINCTRL_PIN(MX51_PAD_CSPI1_MISO),
525 	IMX_PINCTRL_PIN(MX51_PAD_CSPI1_SS0),
526 	IMX_PINCTRL_PIN(MX51_PAD_CSPI1_SS1),
527 	IMX_PINCTRL_PIN(MX51_PAD_CSPI1_RDY),
528 	IMX_PINCTRL_PIN(MX51_PAD_CSPI1_SCLK),
529 	IMX_PINCTRL_PIN(MX51_PAD_UART1_RXD),
530 	IMX_PINCTRL_PIN(MX51_PAD_UART1_TXD),
531 	IMX_PINCTRL_PIN(MX51_PAD_UART1_RTS),
532 	IMX_PINCTRL_PIN(MX51_PAD_UART1_CTS),
533 	IMX_PINCTRL_PIN(MX51_PAD_UART2_RXD),
534 	IMX_PINCTRL_PIN(MX51_PAD_UART2_TXD),
535 	IMX_PINCTRL_PIN(MX51_PAD_UART3_RXD),
536 	IMX_PINCTRL_PIN(MX51_PAD_UART3_TXD),
537 	IMX_PINCTRL_PIN(MX51_PAD_OWIRE_LINE),
538 	IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW0),
539 	IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW1),
540 	IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW2),
541 	IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW3),
542 	IMX_PINCTRL_PIN(MX51_PAD_KEY_COL0),
543 	IMX_PINCTRL_PIN(MX51_PAD_KEY_COL1),
544 	IMX_PINCTRL_PIN(MX51_PAD_KEY_COL2),
545 	IMX_PINCTRL_PIN(MX51_PAD_KEY_COL3),
546 	IMX_PINCTRL_PIN(MX51_PAD_KEY_COL4),
547 	IMX_PINCTRL_PIN(MX51_PAD_KEY_COL5),
548 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE7),
549 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_CLK),
550 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DIR),
551 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_STP),
552 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_NXT),
553 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA0),
554 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA1),
555 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA2),
556 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA3),
557 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA4),
558 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA5),
559 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA6),
560 	IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA7),
561 	IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN11),
562 	IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN12),
563 	IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN13),
564 	IMX_PINCTRL_PIN(MX51_PAD_DI1_D0_CS),
565 	IMX_PINCTRL_PIN(MX51_PAD_DI1_D1_CS),
566 	IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_DIN),
567 	IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_DIO),
568 	IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_CLK),
569 	IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_RS),
570 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT0),
571 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT1),
572 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT2),
573 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT3),
574 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT4),
575 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT5),
576 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT6),
577 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT7),
578 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT8),
579 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT9),
580 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT10),
581 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT11),
582 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT12),
583 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT13),
584 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT14),
585 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT15),
586 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT16),
587 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT17),
588 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT18),
589 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT19),
590 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT20),
591 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT21),
592 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT22),
593 	IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT23),
594 	IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN3),
595 	IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN2),
596 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE8),
597 	IMX_PINCTRL_PIN(MX51_PAD_DI_GP2),
598 	IMX_PINCTRL_PIN(MX51_PAD_DI_GP3),
599 	IMX_PINCTRL_PIN(MX51_PAD_DI2_PIN4),
600 	IMX_PINCTRL_PIN(MX51_PAD_DI2_PIN2),
601 	IMX_PINCTRL_PIN(MX51_PAD_DI2_PIN3),
602 	IMX_PINCTRL_PIN(MX51_PAD_DI2_DISP_CLK),
603 	IMX_PINCTRL_PIN(MX51_PAD_DI_GP4),
604 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT0),
605 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT1),
606 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT2),
607 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT3),
608 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT4),
609 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT5),
610 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT6),
611 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT7),
612 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT8),
613 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT9),
614 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT10),
615 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT11),
616 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT12),
617 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT13),
618 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT14),
619 	IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT15),
620 	IMX_PINCTRL_PIN(MX51_PAD_SD1_CMD),
621 	IMX_PINCTRL_PIN(MX51_PAD_SD1_CLK),
622 	IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA0),
623 	IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA1),
624 	IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA2),
625 	IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA3),
626 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_0),
627 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_1),
628 	IMX_PINCTRL_PIN(MX51_PAD_SD2_CMD),
629 	IMX_PINCTRL_PIN(MX51_PAD_SD2_CLK),
630 	IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA0),
631 	IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA1),
632 	IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA2),
633 	IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA3),
634 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_2),
635 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_3),
636 	IMX_PINCTRL_PIN(MX51_PAD_PMIC_INT_REQ),
637 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_4),
638 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_5),
639 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_6),
640 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_7),
641 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_8),
642 	IMX_PINCTRL_PIN(MX51_PAD_GPIO1_9),
643 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE9),
644 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE10),
645 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE11),
646 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE12),
647 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE13),
648 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE14),
649 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE15),
650 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE16),
651 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE17),
652 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE18),
653 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE19),
654 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE20),
655 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE21),
656 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE22),
657 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE23),
658 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE24),
659 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE25),
660 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE26),
661 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE27),
662 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE28),
663 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE29),
664 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE30),
665 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE31),
666 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE32),
667 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE33),
668 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE34),
669 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE35),
670 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE36),
671 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE37),
672 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE38),
673 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE39),
674 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE40),
675 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE41),
676 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE42),
677 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE43),
678 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE44),
679 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE45),
680 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE46),
681 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE47),
682 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE48),
683 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE49),
684 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE50),
685 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE51),
686 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE52),
687 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE53),
688 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE54),
689 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE55),
690 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE56),
691 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE57),
692 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE58),
693 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE59),
694 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE60),
695 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE61),
696 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE62),
697 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE63),
698 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE64),
699 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE65),
700 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE66),
701 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE67),
702 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE68),
703 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE69),
704 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE70),
705 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE71),
706 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE72),
707 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE73),
708 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE74),
709 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE75),
710 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE76),
711 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE77),
712 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE78),
713 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE79),
714 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE80),
715 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE81),
716 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE82),
717 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE83),
718 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE84),
719 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE85),
720 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE86),
721 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE87),
722 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE88),
723 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE89),
724 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE90),
725 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE91),
726 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE92),
727 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE93),
728 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE94),
729 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE95),
730 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE96),
731 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE97),
732 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE98),
733 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE99),
734 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE100),
735 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE101),
736 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE102),
737 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE103),
738 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE104),
739 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE105),
740 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE106),
741 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE107),
742 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE108),
743 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE109),
744 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE110),
745 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE111),
746 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE112),
747 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE113),
748 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE114),
749 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE115),
750 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE116),
751 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE117),
752 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE118),
753 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE119),
754 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE120),
755 	IMX_PINCTRL_PIN(MX51_PAD_RESERVE121),
756 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_PIXCLK),
757 	IMX_PINCTRL_PIN(MX51_PAD_CSI1_MCLK),
758 };
759 
760 static const struct imx_pinctrl_soc_info imx51_pinctrl_info = {
761 	.pins = imx51_pinctrl_pads,
762 	.npins = ARRAY_SIZE(imx51_pinctrl_pads),
763 };
764 
765 static const struct of_device_id imx51_pinctrl_of_match[] = {
766 	{ .compatible = "fsl,imx51-iomuxc", },
767 	{ /* sentinel */ }
768 };
769 
770 static int imx51_pinctrl_probe(struct platform_device *pdev)
771 {
772 	return imx_pinctrl_probe(pdev, &imx51_pinctrl_info);
773 }
774 
775 static struct platform_driver imx51_pinctrl_driver = {
776 	.driver = {
777 		.name = "imx51-pinctrl",
778 		.of_match_table = imx51_pinctrl_of_match,
779 		.suppress_bind_attrs = true,
780 	},
781 	.probe = imx51_pinctrl_probe,
782 };
783 
784 static int __init imx51_pinctrl_init(void)
785 {
786 	return platform_driver_register(&imx51_pinctrl_driver);
787 }
788 arch_initcall(imx51_pinctrl_init);
789