pinctrl-imx51.c 25 KB

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