pinctrl-imx51.c 25 KB

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