pinctrl-ph1-pro5.c 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356
  1. /*
  2. * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program5 is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/module.h>
  16. #include <linux/pinctrl/pinctrl.h>
  17. #include <linux/platform_device.h>
  18. #include "pinctrl-uniphier.h"
  19. #define DRIVER_NAME "ph1-pro5-pinctrl"
  20. static const struct pinctrl_pin_desc ph1_pro5_pins[] = {
  21. UNIPHIER_PINCTRL_PIN(0, "AEXCKA1", 0,
  22. 0, UNIPHIER_PIN_DRV_4_8,
  23. 0, UNIPHIER_PIN_PULL_DOWN),
  24. UNIPHIER_PINCTRL_PIN(1, "AEXCKA2", 0,
  25. 1, UNIPHIER_PIN_DRV_4_8,
  26. 1, UNIPHIER_PIN_PULL_DOWN),
  27. UNIPHIER_PINCTRL_PIN(2, "CK27EXI", 0,
  28. 2, UNIPHIER_PIN_DRV_4_8,
  29. 2, UNIPHIER_PIN_PULL_DOWN),
  30. UNIPHIER_PINCTRL_PIN(3, "CK54EXI", 0,
  31. 3, UNIPHIER_PIN_DRV_4_8,
  32. 3, UNIPHIER_PIN_PULL_DOWN),
  33. UNIPHIER_PINCTRL_PIN(4, "ED0", UNIPHIER_PIN_IECTRL_NONE,
  34. 4, UNIPHIER_PIN_DRV_4_8,
  35. 4, UNIPHIER_PIN_PULL_DOWN),
  36. UNIPHIER_PINCTRL_PIN(5, "ED1", UNIPHIER_PIN_IECTRL_NONE,
  37. 5, UNIPHIER_PIN_DRV_4_8,
  38. 5, UNIPHIER_PIN_PULL_DOWN),
  39. UNIPHIER_PINCTRL_PIN(6, "ED2", UNIPHIER_PIN_IECTRL_NONE,
  40. 6, UNIPHIER_PIN_DRV_4_8,
  41. 6, UNIPHIER_PIN_PULL_DOWN),
  42. UNIPHIER_PINCTRL_PIN(7, "ED3", UNIPHIER_PIN_IECTRL_NONE,
  43. 7, UNIPHIER_PIN_DRV_4_8,
  44. 7, UNIPHIER_PIN_PULL_DOWN),
  45. UNIPHIER_PINCTRL_PIN(8, "ED4", UNIPHIER_PIN_IECTRL_NONE,
  46. 8, UNIPHIER_PIN_DRV_4_8,
  47. 8, UNIPHIER_PIN_PULL_DOWN),
  48. UNIPHIER_PINCTRL_PIN(9, "ED5", UNIPHIER_PIN_IECTRL_NONE,
  49. 9, UNIPHIER_PIN_DRV_4_8,
  50. 9, UNIPHIER_PIN_PULL_DOWN),
  51. UNIPHIER_PINCTRL_PIN(10, "ED6", UNIPHIER_PIN_IECTRL_NONE,
  52. 10, UNIPHIER_PIN_DRV_4_8,
  53. 10, UNIPHIER_PIN_PULL_DOWN),
  54. UNIPHIER_PINCTRL_PIN(11, "ED7", UNIPHIER_PIN_IECTRL_NONE,
  55. 11, UNIPHIER_PIN_DRV_4_8,
  56. 11, UNIPHIER_PIN_PULL_DOWN),
  57. UNIPHIER_PINCTRL_PIN(12, "XERWE0", UNIPHIER_PIN_IECTRL_NONE,
  58. 12, UNIPHIER_PIN_DRV_4_8,
  59. 12, UNIPHIER_PIN_PULL_UP),
  60. UNIPHIER_PINCTRL_PIN(13, "XERWE1", UNIPHIER_PIN_IECTRL_NONE,
  61. 13, UNIPHIER_PIN_DRV_4_8,
  62. 13, UNIPHIER_PIN_PULL_UP),
  63. UNIPHIER_PINCTRL_PIN(14, "ERXW", UNIPHIER_PIN_IECTRL_NONE,
  64. 14, UNIPHIER_PIN_DRV_4_8,
  65. 14, UNIPHIER_PIN_PULL_UP),
  66. UNIPHIER_PINCTRL_PIN(15, "ES0", UNIPHIER_PIN_IECTRL_NONE,
  67. 15, UNIPHIER_PIN_DRV_4_8,
  68. 15, UNIPHIER_PIN_PULL_UP),
  69. UNIPHIER_PINCTRL_PIN(16, "ES1", UNIPHIER_PIN_IECTRL_NONE,
  70. 16, UNIPHIER_PIN_DRV_4_8,
  71. 16, UNIPHIER_PIN_PULL_UP),
  72. UNIPHIER_PINCTRL_PIN(17, "ES2", UNIPHIER_PIN_IECTRL_NONE,
  73. 17, UNIPHIER_PIN_DRV_4_8,
  74. 17, UNIPHIER_PIN_PULL_UP),
  75. UNIPHIER_PINCTRL_PIN(18, "XECS1", UNIPHIER_PIN_IECTRL_NONE,
  76. 18, UNIPHIER_PIN_DRV_4_8,
  77. 18, UNIPHIER_PIN_PULL_UP),
  78. UNIPHIER_PINCTRL_PIN(19, "XNFRE", UNIPHIER_PIN_IECTRL_NONE,
  79. 19, UNIPHIER_PIN_DRV_4_8,
  80. 19, UNIPHIER_PIN_PULL_UP),
  81. UNIPHIER_PINCTRL_PIN(20, "XNFWE", UNIPHIER_PIN_IECTRL_NONE,
  82. 20, UNIPHIER_PIN_DRV_4_8,
  83. 20, UNIPHIER_PIN_PULL_UP),
  84. UNIPHIER_PINCTRL_PIN(21, "NFALE", UNIPHIER_PIN_IECTRL_NONE,
  85. 21, UNIPHIER_PIN_DRV_4_8,
  86. 21, UNIPHIER_PIN_PULL_DOWN),
  87. UNIPHIER_PINCTRL_PIN(22, "NFCLE", UNIPHIER_PIN_IECTRL_NONE,
  88. 22, UNIPHIER_PIN_DRV_4_8,
  89. 22, UNIPHIER_PIN_PULL_DOWN),
  90. UNIPHIER_PINCTRL_PIN(23, "XNFWP", UNIPHIER_PIN_IECTRL_NONE,
  91. 23, UNIPHIER_PIN_DRV_4_8,
  92. 23, UNIPHIER_PIN_PULL_DOWN),
  93. UNIPHIER_PINCTRL_PIN(24, "XNFCE0", UNIPHIER_PIN_IECTRL_NONE,
  94. 24, UNIPHIER_PIN_DRV_4_8,
  95. 24, UNIPHIER_PIN_PULL_UP),
  96. UNIPHIER_PINCTRL_PIN(25, "NFRYBY0", UNIPHIER_PIN_IECTRL_NONE,
  97. 25, UNIPHIER_PIN_DRV_4_8,
  98. 25, UNIPHIER_PIN_PULL_UP),
  99. UNIPHIER_PINCTRL_PIN(26, "XNFCE1", UNIPHIER_PIN_IECTRL_NONE,
  100. 26, UNIPHIER_PIN_DRV_4_8,
  101. 26, UNIPHIER_PIN_PULL_UP),
  102. UNIPHIER_PINCTRL_PIN(27, "NFRYBY1", UNIPHIER_PIN_IECTRL_NONE,
  103. 27, UNIPHIER_PIN_DRV_4_8,
  104. 27, UNIPHIER_PIN_PULL_UP),
  105. UNIPHIER_PINCTRL_PIN(28, "NFD0", UNIPHIER_PIN_IECTRL_NONE,
  106. 28, UNIPHIER_PIN_DRV_4_8,
  107. 28, UNIPHIER_PIN_PULL_UP),
  108. UNIPHIER_PINCTRL_PIN(29, "NFD1", UNIPHIER_PIN_IECTRL_NONE,
  109. 29, UNIPHIER_PIN_DRV_4_8,
  110. 29, UNIPHIER_PIN_PULL_UP),
  111. UNIPHIER_PINCTRL_PIN(30, "NFD2", UNIPHIER_PIN_IECTRL_NONE,
  112. 30, UNIPHIER_PIN_DRV_4_8,
  113. 30, UNIPHIER_PIN_PULL_UP),
  114. UNIPHIER_PINCTRL_PIN(31, "NFD3", UNIPHIER_PIN_IECTRL_NONE,
  115. 31, UNIPHIER_PIN_DRV_4_8,
  116. 31, UNIPHIER_PIN_PULL_UP),
  117. UNIPHIER_PINCTRL_PIN(32, "NFD4", UNIPHIER_PIN_IECTRL_NONE,
  118. 32, UNIPHIER_PIN_DRV_4_8,
  119. 32, UNIPHIER_PIN_PULL_UP),
  120. UNIPHIER_PINCTRL_PIN(33, "NFD5", UNIPHIER_PIN_IECTRL_NONE,
  121. 33, UNIPHIER_PIN_DRV_4_8,
  122. 33, UNIPHIER_PIN_PULL_UP),
  123. UNIPHIER_PINCTRL_PIN(34, "NFD6", UNIPHIER_PIN_IECTRL_NONE,
  124. 34, UNIPHIER_PIN_DRV_4_8,
  125. 34, UNIPHIER_PIN_PULL_UP),
  126. UNIPHIER_PINCTRL_PIN(35, "NFD7", UNIPHIER_PIN_IECTRL_NONE,
  127. 35, UNIPHIER_PIN_DRV_4_8,
  128. 35, UNIPHIER_PIN_PULL_UP),
  129. UNIPHIER_PINCTRL_PIN(36, "XERST", UNIPHIER_PIN_IECTRL_NONE,
  130. 36, UNIPHIER_PIN_DRV_4_8,
  131. 36, UNIPHIER_PIN_PULL_UP),
  132. UNIPHIER_PINCTRL_PIN(37, "MMCCLK", UNIPHIER_PIN_IECTRL_NONE,
  133. 37, UNIPHIER_PIN_DRV_4_8,
  134. 37, UNIPHIER_PIN_PULL_UP),
  135. UNIPHIER_PINCTRL_PIN(38, "MMCCMD", UNIPHIER_PIN_IECTRL_NONE,
  136. 38, UNIPHIER_PIN_DRV_4_8,
  137. 38, UNIPHIER_PIN_PULL_UP),
  138. UNIPHIER_PINCTRL_PIN(39, "MMCDAT0", UNIPHIER_PIN_IECTRL_NONE,
  139. 39, UNIPHIER_PIN_DRV_4_8,
  140. 39, UNIPHIER_PIN_PULL_UP),
  141. UNIPHIER_PINCTRL_PIN(40, "MMCDAT1", UNIPHIER_PIN_IECTRL_NONE,
  142. 40, UNIPHIER_PIN_DRV_4_8,
  143. 40, UNIPHIER_PIN_PULL_UP),
  144. UNIPHIER_PINCTRL_PIN(41, "MMCDAT2", UNIPHIER_PIN_IECTRL_NONE,
  145. 41, UNIPHIER_PIN_DRV_4_8,
  146. 41, UNIPHIER_PIN_PULL_UP),
  147. UNIPHIER_PINCTRL_PIN(42, "MMCDAT3", UNIPHIER_PIN_IECTRL_NONE,
  148. 42, UNIPHIER_PIN_DRV_4_8,
  149. 42, UNIPHIER_PIN_PULL_UP),
  150. UNIPHIER_PINCTRL_PIN(43, "MMCDAT4", UNIPHIER_PIN_IECTRL_NONE,
  151. 43, UNIPHIER_PIN_DRV_4_8,
  152. 43, UNIPHIER_PIN_PULL_UP),
  153. UNIPHIER_PINCTRL_PIN(44, "MMCDAT5", UNIPHIER_PIN_IECTRL_NONE,
  154. 44, UNIPHIER_PIN_DRV_4_8,
  155. 44, UNIPHIER_PIN_PULL_UP),
  156. UNIPHIER_PINCTRL_PIN(45, "MMCDAT6", UNIPHIER_PIN_IECTRL_NONE,
  157. 45, UNIPHIER_PIN_DRV_4_8,
  158. 45, UNIPHIER_PIN_PULL_UP),
  159. UNIPHIER_PINCTRL_PIN(46, "MMCDAT7", UNIPHIER_PIN_IECTRL_NONE,
  160. 46, UNIPHIER_PIN_DRV_4_8,
  161. 46, UNIPHIER_PIN_PULL_UP),
  162. UNIPHIER_PINCTRL_PIN(47, "TXD0", 0,
  163. 47, UNIPHIER_PIN_DRV_4_8,
  164. 47, UNIPHIER_PIN_PULL_UP),
  165. UNIPHIER_PINCTRL_PIN(48, "RXD0", 0,
  166. 48, UNIPHIER_PIN_DRV_4_8,
  167. 48, UNIPHIER_PIN_PULL_UP),
  168. UNIPHIER_PINCTRL_PIN(49, "TXD1", 0,
  169. 49, UNIPHIER_PIN_DRV_4_8,
  170. 49, UNIPHIER_PIN_PULL_UP),
  171. UNIPHIER_PINCTRL_PIN(50, "RXD1", 0,
  172. 50, UNIPHIER_PIN_DRV_4_8,
  173. 50, UNIPHIER_PIN_PULL_UP),
  174. UNIPHIER_PINCTRL_PIN(51, "TXD2", UNIPHIER_PIN_IECTRL_NONE,
  175. 51, UNIPHIER_PIN_DRV_4_8,
  176. 51, UNIPHIER_PIN_PULL_UP),
  177. UNIPHIER_PINCTRL_PIN(52, "RXD2", UNIPHIER_PIN_IECTRL_NONE,
  178. 52, UNIPHIER_PIN_DRV_4_8,
  179. 52, UNIPHIER_PIN_PULL_UP),
  180. UNIPHIER_PINCTRL_PIN(53, "TXD3", 0,
  181. 53, UNIPHIER_PIN_DRV_4_8,
  182. 53, UNIPHIER_PIN_PULL_UP),
  183. UNIPHIER_PINCTRL_PIN(54, "RXD3", 0,
  184. 54, UNIPHIER_PIN_DRV_4_8,
  185. 54, UNIPHIER_PIN_PULL_UP),
  186. UNIPHIER_PINCTRL_PIN(55, "MS0CS0", 0,
  187. 55, UNIPHIER_PIN_DRV_4_8,
  188. 55, UNIPHIER_PIN_PULL_DOWN),
  189. UNIPHIER_PINCTRL_PIN(56, "MS0DO", 0,
  190. 56, UNIPHIER_PIN_DRV_4_8,
  191. 56, UNIPHIER_PIN_PULL_DOWN),
  192. UNIPHIER_PINCTRL_PIN(57, "MS0DI", 0,
  193. 57, UNIPHIER_PIN_DRV_4_8,
  194. 57, UNIPHIER_PIN_PULL_DOWN),
  195. UNIPHIER_PINCTRL_PIN(58, "MS0CLK", 0,
  196. 58, UNIPHIER_PIN_DRV_4_8,
  197. 58, UNIPHIER_PIN_PULL_DOWN),
  198. UNIPHIER_PINCTRL_PIN(59, "CSCLK", 0,
  199. 59, UNIPHIER_PIN_DRV_4_8,
  200. 59, UNIPHIER_PIN_PULL_DOWN),
  201. UNIPHIER_PINCTRL_PIN(60, "CSBPTM", 0,
  202. 60, UNIPHIER_PIN_DRV_4_8,
  203. 60, UNIPHIER_PIN_PULL_DOWN),
  204. UNIPHIER_PINCTRL_PIN(61, "CSBMTP", 0,
  205. 61, UNIPHIER_PIN_DRV_4_8,
  206. 61, UNIPHIER_PIN_PULL_DOWN),
  207. UNIPHIER_PINCTRL_PIN(62, "XCINTP", 0,
  208. 62, UNIPHIER_PIN_DRV_4_8,
  209. 62, UNIPHIER_PIN_PULL_DOWN),
  210. UNIPHIER_PINCTRL_PIN(63, "XCINTM", 0,
  211. 63, UNIPHIER_PIN_DRV_4_8,
  212. 63, UNIPHIER_PIN_PULL_DOWN),
  213. UNIPHIER_PINCTRL_PIN(64, "XCMPREQ", 0,
  214. 64, UNIPHIER_PIN_DRV_4_8,
  215. 64, UNIPHIER_PIN_PULL_DOWN),
  216. UNIPHIER_PINCTRL_PIN(65, "XSRST", 0,
  217. 65, UNIPHIER_PIN_DRV_4_8,
  218. 65, UNIPHIER_PIN_PULL_DOWN),
  219. UNIPHIER_PINCTRL_PIN(66, "LPST", UNIPHIER_PIN_IECTRL_NONE,
  220. 66, UNIPHIER_PIN_DRV_4_8,
  221. 66, UNIPHIER_PIN_PULL_DOWN),
  222. UNIPHIER_PINCTRL_PIN(67, "PWMA", 0,
  223. 67, UNIPHIER_PIN_DRV_4_8,
  224. 67, UNIPHIER_PIN_PULL_DOWN),
  225. UNIPHIER_PINCTRL_PIN(68, "XIRQ0", 0,
  226. 68, UNIPHIER_PIN_DRV_4_8,
  227. 68, UNIPHIER_PIN_PULL_DOWN),
  228. UNIPHIER_PINCTRL_PIN(69, "XIRQ1", 0,
  229. 69, UNIPHIER_PIN_DRV_4_8,
  230. 69, UNIPHIER_PIN_PULL_DOWN),
  231. UNIPHIER_PINCTRL_PIN(70, "XIRQ2", 0,
  232. 70, UNIPHIER_PIN_DRV_4_8,
  233. 70, UNIPHIER_PIN_PULL_DOWN),
  234. UNIPHIER_PINCTRL_PIN(71, "XIRQ3", 0,
  235. 71, UNIPHIER_PIN_DRV_4_8,
  236. 71, UNIPHIER_PIN_PULL_DOWN),
  237. UNIPHIER_PINCTRL_PIN(72, "XIRQ4", 0,
  238. 72, UNIPHIER_PIN_DRV_4_8,
  239. 72, UNIPHIER_PIN_PULL_DOWN),
  240. UNIPHIER_PINCTRL_PIN(73, "XIRQ5", 0,
  241. 73, UNIPHIER_PIN_DRV_4_8,
  242. 73, UNIPHIER_PIN_PULL_DOWN),
  243. UNIPHIER_PINCTRL_PIN(74, "XIRQ6", 0,
  244. 74, UNIPHIER_PIN_DRV_4_8,
  245. 74, UNIPHIER_PIN_PULL_DOWN),
  246. UNIPHIER_PINCTRL_PIN(75, "XIRQ7", 0,
  247. 75, UNIPHIER_PIN_DRV_4_8,
  248. 75, UNIPHIER_PIN_PULL_DOWN),
  249. UNIPHIER_PINCTRL_PIN(76, "XIRQ8", 0,
  250. 76, UNIPHIER_PIN_DRV_4_8,
  251. 76, UNIPHIER_PIN_PULL_DOWN),
  252. UNIPHIER_PINCTRL_PIN(77, "XIRQ9", 0,
  253. 77, UNIPHIER_PIN_DRV_4_8,
  254. 77, UNIPHIER_PIN_PULL_DOWN),
  255. UNIPHIER_PINCTRL_PIN(78, "XIRQ10", 0,
  256. 78, UNIPHIER_PIN_DRV_4_8,
  257. 78, UNIPHIER_PIN_PULL_DOWN),
  258. UNIPHIER_PINCTRL_PIN(79, "XIRQ11", UNIPHIER_PIN_IECTRL_NONE,
  259. -1, UNIPHIER_PIN_DRV_FIXED_8,
  260. 79, UNIPHIER_PIN_PULL_DOWN),
  261. UNIPHIER_PINCTRL_PIN(80, "XIRQ12", UNIPHIER_PIN_IECTRL_NONE,
  262. -1, UNIPHIER_PIN_DRV_FIXED_8,
  263. 80, UNIPHIER_PIN_PULL_DOWN),
  264. UNIPHIER_PINCTRL_PIN(81, "XIRQ13", UNIPHIER_PIN_IECTRL_NONE,
  265. -1, UNIPHIER_PIN_DRV_FIXED_8,
  266. 81, UNIPHIER_PIN_PULL_DOWN),
  267. UNIPHIER_PINCTRL_PIN(82, "XIRQ14", 0,
  268. 82, UNIPHIER_PIN_DRV_4_8,
  269. 82, UNIPHIER_PIN_PULL_DOWN),
  270. UNIPHIER_PINCTRL_PIN(83, "XIRQ15", 0,
  271. 83, UNIPHIER_PIN_DRV_4_8,
  272. 83, UNIPHIER_PIN_PULL_DOWN),
  273. UNIPHIER_PINCTRL_PIN(84, "XIRQ16", 0,
  274. 84, UNIPHIER_PIN_DRV_4_8,
  275. 84, UNIPHIER_PIN_PULL_DOWN),
  276. UNIPHIER_PINCTRL_PIN(85, "XIRQ17", UNIPHIER_PIN_IECTRL_NONE,
  277. -1, UNIPHIER_PIN_DRV_FIXED_8,
  278. 85, UNIPHIER_PIN_PULL_DOWN),
  279. UNIPHIER_PINCTRL_PIN(86, "XIRQ18", UNIPHIER_PIN_IECTRL_NONE,
  280. -1, UNIPHIER_PIN_DRV_FIXED_8,
  281. 86, UNIPHIER_PIN_PULL_DOWN),
  282. UNIPHIER_PINCTRL_PIN(87, "XIRQ19", 0,
  283. 87, UNIPHIER_PIN_DRV_4_8,
  284. 87, UNIPHIER_PIN_PULL_DOWN),
  285. UNIPHIER_PINCTRL_PIN(88, "XIRQ20", 0,
  286. 88, UNIPHIER_PIN_DRV_4_8,
  287. 88, UNIPHIER_PIN_PULL_DOWN),
  288. UNIPHIER_PINCTRL_PIN(89, "PORT00", 0,
  289. 89, UNIPHIER_PIN_DRV_4_8,
  290. 89, UNIPHIER_PIN_PULL_DOWN),
  291. UNIPHIER_PINCTRL_PIN(90, "PORT01", 0,
  292. 90, UNIPHIER_PIN_DRV_4_8,
  293. 90, UNIPHIER_PIN_PULL_DOWN),
  294. UNIPHIER_PINCTRL_PIN(91, "PORT02", 0,
  295. 91, UNIPHIER_PIN_DRV_4_8,
  296. 91, UNIPHIER_PIN_PULL_DOWN),
  297. UNIPHIER_PINCTRL_PIN(92, "PORT03", 0,
  298. 92, UNIPHIER_PIN_DRV_4_8,
  299. 92, UNIPHIER_PIN_PULL_DOWN),
  300. UNIPHIER_PINCTRL_PIN(93, "PORT04", 0,
  301. 93, UNIPHIER_PIN_DRV_4_8,
  302. 93, UNIPHIER_PIN_PULL_DOWN),
  303. UNIPHIER_PINCTRL_PIN(94, "PORT05", 0,
  304. 94, UNIPHIER_PIN_DRV_4_8,
  305. 94, UNIPHIER_PIN_PULL_DOWN),
  306. UNIPHIER_PINCTRL_PIN(95, "PORT06", 0,
  307. 95, UNIPHIER_PIN_DRV_4_8,
  308. 95, UNIPHIER_PIN_PULL_DOWN),
  309. UNIPHIER_PINCTRL_PIN(96, "PORT07", 0,
  310. 96, UNIPHIER_PIN_DRV_4_8,
  311. 96, UNIPHIER_PIN_PULL_DOWN),
  312. UNIPHIER_PINCTRL_PIN(97, "PORT10", 0,
  313. 97, UNIPHIER_PIN_DRV_4_8,
  314. 97, UNIPHIER_PIN_PULL_DOWN),
  315. UNIPHIER_PINCTRL_PIN(98, "PORT11", 0,
  316. 98, UNIPHIER_PIN_DRV_4_8,
  317. 98, UNIPHIER_PIN_PULL_DOWN),
  318. UNIPHIER_PINCTRL_PIN(99, "PORT12", 0,
  319. 99, UNIPHIER_PIN_DRV_4_8,
  320. 99, UNIPHIER_PIN_PULL_DOWN),
  321. UNIPHIER_PINCTRL_PIN(100, "PORT13", 0,
  322. 100, UNIPHIER_PIN_DRV_4_8,
  323. 100, UNIPHIER_PIN_PULL_DOWN),
  324. UNIPHIER_PINCTRL_PIN(101, "PORT14", 0,
  325. 101, UNIPHIER_PIN_DRV_4_8,
  326. 101, UNIPHIER_PIN_PULL_DOWN),
  327. UNIPHIER_PINCTRL_PIN(102, "PORT15", 0,
  328. 102, UNIPHIER_PIN_DRV_4_8,
  329. 102, UNIPHIER_PIN_PULL_DOWN),
  330. UNIPHIER_PINCTRL_PIN(103, "PORT16", 0,
  331. 103, UNIPHIER_PIN_DRV_4_8,
  332. 103, UNIPHIER_PIN_PULL_DOWN),
  333. UNIPHIER_PINCTRL_PIN(104, "PORT17", 0,
  334. 104, UNIPHIER_PIN_DRV_4_8,
  335. 104, UNIPHIER_PIN_PULL_DOWN),
  336. UNIPHIER_PINCTRL_PIN(105, "T0HPD", 0,
  337. 105, UNIPHIER_PIN_DRV_4_8,
  338. 105, UNIPHIER_PIN_PULL_DOWN),
  339. UNIPHIER_PINCTRL_PIN(106, "T1HPD", 0,
  340. 106, UNIPHIER_PIN_DRV_4_8,
  341. 106, UNIPHIER_PIN_PULL_DOWN),
  342. UNIPHIER_PINCTRL_PIN(107, "R0HPD", 0,
  343. 107, UNIPHIER_PIN_DRV_4_8,
  344. 107, UNIPHIER_PIN_PULL_DOWN),
  345. UNIPHIER_PINCTRL_PIN(108, "R1HPD", 0,
  346. 108, UNIPHIER_PIN_DRV_4_8,
  347. 108, UNIPHIER_PIN_PULL_DOWN),
  348. UNIPHIER_PINCTRL_PIN(109, "XPERST", 0,
  349. 109, UNIPHIER_PIN_DRV_4_8,
  350. 109, UNIPHIER_PIN_PULL_UP),
  351. UNIPHIER_PINCTRL_PIN(110, "XPEWAKE", 0,
  352. 110, UNIPHIER_PIN_DRV_4_8,
  353. 110, UNIPHIER_PIN_PULL_UP),
  354. UNIPHIER_PINCTRL_PIN(111, "XPECLKRQ", 0,
  355. 111, UNIPHIER_PIN_DRV_4_8,
  356. 111, UNIPHIER_PIN_PULL_UP),
  357. UNIPHIER_PINCTRL_PIN(112, "SDA0", UNIPHIER_PIN_IECTRL_NONE,
  358. -1, UNIPHIER_PIN_DRV_FIXED_8,
  359. 112, UNIPHIER_PIN_PULL_UP),
  360. UNIPHIER_PINCTRL_PIN(113, "SCL0", UNIPHIER_PIN_IECTRL_NONE,
  361. -1, UNIPHIER_PIN_DRV_FIXED_8,
  362. 113, UNIPHIER_PIN_PULL_UP),
  363. UNIPHIER_PINCTRL_PIN(114, "SDA1", UNIPHIER_PIN_IECTRL_NONE,
  364. -1, UNIPHIER_PIN_DRV_FIXED_8,
  365. 114, UNIPHIER_PIN_PULL_UP),
  366. UNIPHIER_PINCTRL_PIN(115, "SCL1", UNIPHIER_PIN_IECTRL_NONE,
  367. -1, UNIPHIER_PIN_DRV_FIXED_8,
  368. 115, UNIPHIER_PIN_PULL_UP),
  369. UNIPHIER_PINCTRL_PIN(116, "SDA2", UNIPHIER_PIN_IECTRL_NONE,
  370. -1, UNIPHIER_PIN_DRV_FIXED_8,
  371. 116, UNIPHIER_PIN_PULL_UP),
  372. UNIPHIER_PINCTRL_PIN(117, "SCL2", UNIPHIER_PIN_IECTRL_NONE,
  373. -1, UNIPHIER_PIN_DRV_FIXED_8,
  374. 117, UNIPHIER_PIN_PULL_UP),
  375. UNIPHIER_PINCTRL_PIN(118, "SDA3", UNIPHIER_PIN_IECTRL_NONE,
  376. -1, UNIPHIER_PIN_DRV_FIXED_4,
  377. 118, UNIPHIER_PIN_PULL_UP),
  378. UNIPHIER_PINCTRL_PIN(119, "SCL3", UNIPHIER_PIN_IECTRL_NONE,
  379. -1, UNIPHIER_PIN_DRV_FIXED_4,
  380. 119, UNIPHIER_PIN_PULL_UP),
  381. UNIPHIER_PINCTRL_PIN(120, "SPISYNC", UNIPHIER_PIN_IECTRL_NONE,
  382. -1, UNIPHIER_PIN_DRV_FIXED_8,
  383. 120, UNIPHIER_PIN_PULL_DOWN),
  384. UNIPHIER_PINCTRL_PIN(121, "SPISCLK", UNIPHIER_PIN_IECTRL_NONE,
  385. -1, UNIPHIER_PIN_DRV_FIXED_8,
  386. 121, UNIPHIER_PIN_PULL_DOWN),
  387. UNIPHIER_PINCTRL_PIN(122, "SPITXD", UNIPHIER_PIN_IECTRL_NONE,
  388. -1, UNIPHIER_PIN_DRV_FIXED_8,
  389. 122, UNIPHIER_PIN_PULL_DOWN),
  390. UNIPHIER_PINCTRL_PIN(123, "SPIRXD", UNIPHIER_PIN_IECTRL_NONE,
  391. -1, UNIPHIER_PIN_DRV_FIXED_8,
  392. 123, UNIPHIER_PIN_PULL_DOWN),
  393. UNIPHIER_PINCTRL_PIN(124, "USB0VBUS", UNIPHIER_PIN_IECTRL_NONE,
  394. -1, UNIPHIER_PIN_DRV_FIXED_8,
  395. 124, UNIPHIER_PIN_PULL_DOWN),
  396. UNIPHIER_PINCTRL_PIN(125, "USB0OD", UNIPHIER_PIN_IECTRL_NONE,
  397. -1, UNIPHIER_PIN_DRV_FIXED_8,
  398. 125, UNIPHIER_PIN_PULL_UP),
  399. UNIPHIER_PINCTRL_PIN(126, "USB1VBUS", UNIPHIER_PIN_IECTRL_NONE,
  400. -1, UNIPHIER_PIN_DRV_FIXED_8,
  401. 126, UNIPHIER_PIN_PULL_DOWN),
  402. UNIPHIER_PINCTRL_PIN(127, "USB1OD", UNIPHIER_PIN_IECTRL_NONE,
  403. -1, UNIPHIER_PIN_DRV_FIXED_8,
  404. 127, UNIPHIER_PIN_PULL_UP),
  405. UNIPHIER_PINCTRL_PIN(128, "USB2VBUS", UNIPHIER_PIN_IECTRL_NONE,
  406. -1, UNIPHIER_PIN_DRV_FIXED_8,
  407. 128, UNIPHIER_PIN_PULL_DOWN),
  408. UNIPHIER_PINCTRL_PIN(129, "USB2OD", UNIPHIER_PIN_IECTRL_NONE,
  409. -1, UNIPHIER_PIN_DRV_FIXED_8,
  410. 129, UNIPHIER_PIN_PULL_UP),
  411. UNIPHIER_PINCTRL_PIN(130, "SMTRST0", UNIPHIER_PIN_IECTRL_NONE,
  412. -1, UNIPHIER_PIN_DRV_FIXED_8,
  413. 130, UNIPHIER_PIN_PULL_DOWN),
  414. UNIPHIER_PINCTRL_PIN(131, "SMTCMD0", UNIPHIER_PIN_IECTRL_NONE,
  415. -1, UNIPHIER_PIN_DRV_FIXED_8,
  416. 131, UNIPHIER_PIN_PULL_DOWN),
  417. UNIPHIER_PINCTRL_PIN(132, "SMTD0", UNIPHIER_PIN_IECTRL_NONE,
  418. -1, UNIPHIER_PIN_DRV_FIXED_8,
  419. 132, UNIPHIER_PIN_PULL_DOWN),
  420. UNIPHIER_PINCTRL_PIN(133, "SMTSEL0", UNIPHIER_PIN_IECTRL_NONE,
  421. -1, UNIPHIER_PIN_DRV_FIXED_8,
  422. 133, UNIPHIER_PIN_PULL_DOWN),
  423. UNIPHIER_PINCTRL_PIN(134, "SMTCLK0", UNIPHIER_PIN_IECTRL_NONE,
  424. -1, UNIPHIER_PIN_DRV_FIXED_8,
  425. 134, UNIPHIER_PIN_PULL_DOWN),
  426. UNIPHIER_PINCTRL_PIN(135, "SMTRST1", UNIPHIER_PIN_IECTRL_NONE,
  427. -1, UNIPHIER_PIN_DRV_FIXED_8,
  428. 135, UNIPHIER_PIN_PULL_DOWN),
  429. UNIPHIER_PINCTRL_PIN(136, "SMTCMD1", UNIPHIER_PIN_IECTRL_NONE,
  430. -1, UNIPHIER_PIN_DRV_FIXED_8,
  431. 136, UNIPHIER_PIN_PULL_DOWN),
  432. UNIPHIER_PINCTRL_PIN(137, "SMTD1", UNIPHIER_PIN_IECTRL_NONE,
  433. -1, UNIPHIER_PIN_DRV_FIXED_8,
  434. 137, UNIPHIER_PIN_PULL_DOWN),
  435. UNIPHIER_PINCTRL_PIN(138, "SMTSEL1", UNIPHIER_PIN_IECTRL_NONE,
  436. -1, UNIPHIER_PIN_DRV_FIXED_8,
  437. 138, UNIPHIER_PIN_PULL_DOWN),
  438. UNIPHIER_PINCTRL_PIN(139, "SMTCLK1", UNIPHIER_PIN_IECTRL_NONE,
  439. -1, UNIPHIER_PIN_DRV_FIXED_8,
  440. 139, UNIPHIER_PIN_PULL_DOWN),
  441. UNIPHIER_PINCTRL_PIN(140, "CH0CLK", UNIPHIER_PIN_IECTRL_NONE,
  442. -1, UNIPHIER_PIN_DRV_FIXED_8,
  443. 140, UNIPHIER_PIN_PULL_DOWN),
  444. UNIPHIER_PINCTRL_PIN(141, "CH0PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  445. -1, UNIPHIER_PIN_DRV_FIXED_8,
  446. 141, UNIPHIER_PIN_PULL_DOWN),
  447. UNIPHIER_PINCTRL_PIN(142, "CH0VAL", UNIPHIER_PIN_IECTRL_NONE,
  448. -1, UNIPHIER_PIN_DRV_FIXED_8,
  449. 142, UNIPHIER_PIN_PULL_DOWN),
  450. UNIPHIER_PINCTRL_PIN(143, "CH0DATA", UNIPHIER_PIN_IECTRL_NONE,
  451. -1, UNIPHIER_PIN_DRV_FIXED_8,
  452. 143, UNIPHIER_PIN_PULL_DOWN),
  453. UNIPHIER_PINCTRL_PIN(144, "CH1CLK", UNIPHIER_PIN_IECTRL_NONE,
  454. -1, UNIPHIER_PIN_DRV_FIXED_8,
  455. 144, UNIPHIER_PIN_PULL_DOWN),
  456. UNIPHIER_PINCTRL_PIN(145, "CH1PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  457. -1, UNIPHIER_PIN_DRV_FIXED_8,
  458. 145, UNIPHIER_PIN_PULL_DOWN),
  459. UNIPHIER_PINCTRL_PIN(146, "CH1VAL", UNIPHIER_PIN_IECTRL_NONE,
  460. -1, UNIPHIER_PIN_DRV_FIXED_8,
  461. 146, UNIPHIER_PIN_PULL_DOWN),
  462. UNIPHIER_PINCTRL_PIN(147, "CH1DATA", UNIPHIER_PIN_IECTRL_NONE,
  463. -1, UNIPHIER_PIN_DRV_FIXED_8,
  464. 147, UNIPHIER_PIN_PULL_DOWN),
  465. UNIPHIER_PINCTRL_PIN(148, "CH2CLK", UNIPHIER_PIN_IECTRL_NONE,
  466. -1, UNIPHIER_PIN_DRV_FIXED_8,
  467. 148, UNIPHIER_PIN_PULL_DOWN),
  468. UNIPHIER_PINCTRL_PIN(149, "CH2PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  469. -1, UNIPHIER_PIN_DRV_FIXED_8,
  470. 149, UNIPHIER_PIN_PULL_DOWN),
  471. UNIPHIER_PINCTRL_PIN(150, "CH2VAL", UNIPHIER_PIN_IECTRL_NONE,
  472. -1, UNIPHIER_PIN_DRV_FIXED_8,
  473. 150, UNIPHIER_PIN_PULL_DOWN),
  474. UNIPHIER_PINCTRL_PIN(151, "CH2DATA", UNIPHIER_PIN_IECTRL_NONE,
  475. -1, UNIPHIER_PIN_DRV_FIXED_8,
  476. 151, UNIPHIER_PIN_PULL_DOWN),
  477. UNIPHIER_PINCTRL_PIN(152, "CH3CLK", UNIPHIER_PIN_IECTRL_NONE,
  478. -1, UNIPHIER_PIN_DRV_FIXED_8,
  479. 152, UNIPHIER_PIN_PULL_DOWN),
  480. UNIPHIER_PINCTRL_PIN(153, "CH3PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  481. -1, UNIPHIER_PIN_DRV_FIXED_8,
  482. 153, UNIPHIER_PIN_PULL_DOWN),
  483. UNIPHIER_PINCTRL_PIN(154, "CH3VAL", UNIPHIER_PIN_IECTRL_NONE,
  484. -1, UNIPHIER_PIN_DRV_FIXED_8,
  485. 154, UNIPHIER_PIN_PULL_DOWN),
  486. UNIPHIER_PINCTRL_PIN(155, "CH3DATA", UNIPHIER_PIN_IECTRL_NONE,
  487. -1, UNIPHIER_PIN_DRV_FIXED_8,
  488. 155, UNIPHIER_PIN_PULL_DOWN),
  489. UNIPHIER_PINCTRL_PIN(156, "CH4CLK", UNIPHIER_PIN_IECTRL_NONE,
  490. -1, UNIPHIER_PIN_DRV_FIXED_8,
  491. 156, UNIPHIER_PIN_PULL_DOWN),
  492. UNIPHIER_PINCTRL_PIN(157, "CH4PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  493. -1, UNIPHIER_PIN_DRV_FIXED_8,
  494. 157, UNIPHIER_PIN_PULL_DOWN),
  495. UNIPHIER_PINCTRL_PIN(158, "CH4VAL", UNIPHIER_PIN_IECTRL_NONE,
  496. -1, UNIPHIER_PIN_DRV_FIXED_8,
  497. 158, UNIPHIER_PIN_PULL_DOWN),
  498. UNIPHIER_PINCTRL_PIN(159, "CH4DATA", UNIPHIER_PIN_IECTRL_NONE,
  499. -1, UNIPHIER_PIN_DRV_FIXED_8,
  500. 159, UNIPHIER_PIN_PULL_DOWN),
  501. UNIPHIER_PINCTRL_PIN(160, "CH5CLK", UNIPHIER_PIN_IECTRL_NONE,
  502. -1, UNIPHIER_PIN_DRV_FIXED_8,
  503. 160, UNIPHIER_PIN_PULL_DOWN),
  504. UNIPHIER_PINCTRL_PIN(161, "CH5PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  505. -1, UNIPHIER_PIN_DRV_FIXED_8,
  506. 161, UNIPHIER_PIN_PULL_DOWN),
  507. UNIPHIER_PINCTRL_PIN(162, "CH5VAL", UNIPHIER_PIN_IECTRL_NONE,
  508. -1, UNIPHIER_PIN_DRV_FIXED_8,
  509. 162, UNIPHIER_PIN_PULL_DOWN),
  510. UNIPHIER_PINCTRL_PIN(163, "CH5DATA", UNIPHIER_PIN_IECTRL_NONE,
  511. -1, UNIPHIER_PIN_DRV_FIXED_8,
  512. 163, UNIPHIER_PIN_PULL_DOWN),
  513. UNIPHIER_PINCTRL_PIN(164, "CH6CLK", UNIPHIER_PIN_IECTRL_NONE,
  514. -1, UNIPHIER_PIN_DRV_FIXED_8,
  515. 164, UNIPHIER_PIN_PULL_DOWN),
  516. UNIPHIER_PINCTRL_PIN(165, "CH6PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  517. -1, UNIPHIER_PIN_DRV_FIXED_8,
  518. 165, UNIPHIER_PIN_PULL_DOWN),
  519. UNIPHIER_PINCTRL_PIN(166, "CH6VAL", UNIPHIER_PIN_IECTRL_NONE,
  520. -1, UNIPHIER_PIN_DRV_FIXED_8,
  521. 166, UNIPHIER_PIN_PULL_DOWN),
  522. UNIPHIER_PINCTRL_PIN(167, "CH6DATA", UNIPHIER_PIN_IECTRL_NONE,
  523. -1, UNIPHIER_PIN_DRV_FIXED_8,
  524. 167, UNIPHIER_PIN_PULL_DOWN),
  525. UNIPHIER_PINCTRL_PIN(168, "CH7CLK", UNIPHIER_PIN_IECTRL_NONE,
  526. -1, UNIPHIER_PIN_DRV_FIXED_8,
  527. 168, UNIPHIER_PIN_PULL_DOWN),
  528. UNIPHIER_PINCTRL_PIN(169, "CH7PSYNC", UNIPHIER_PIN_IECTRL_NONE,
  529. -1, UNIPHIER_PIN_DRV_FIXED_8,
  530. 169, UNIPHIER_PIN_PULL_DOWN),
  531. UNIPHIER_PINCTRL_PIN(170, "CH7VAL", UNIPHIER_PIN_IECTRL_NONE,
  532. -1, UNIPHIER_PIN_DRV_FIXED_8,
  533. 170, UNIPHIER_PIN_PULL_DOWN),
  534. UNIPHIER_PINCTRL_PIN(171, "CH7DATA", UNIPHIER_PIN_IECTRL_NONE,
  535. -1, UNIPHIER_PIN_DRV_FIXED_8,
  536. 171, UNIPHIER_PIN_PULL_DOWN),
  537. UNIPHIER_PINCTRL_PIN(172, "AI1ADCCK", UNIPHIER_PIN_IECTRL_NONE,
  538. -1, UNIPHIER_PIN_DRV_FIXED_8,
  539. 172, UNIPHIER_PIN_PULL_DOWN),
  540. UNIPHIER_PINCTRL_PIN(173, "AI1BCK", UNIPHIER_PIN_IECTRL_NONE,
  541. -1, UNIPHIER_PIN_DRV_FIXED_8,
  542. 173, UNIPHIER_PIN_PULL_DOWN),
  543. UNIPHIER_PINCTRL_PIN(174, "AI1LRCK", UNIPHIER_PIN_IECTRL_NONE,
  544. -1, UNIPHIER_PIN_DRV_FIXED_8,
  545. 174, UNIPHIER_PIN_PULL_DOWN),
  546. UNIPHIER_PINCTRL_PIN(175, "AI1D0", UNIPHIER_PIN_IECTRL_NONE,
  547. -1, UNIPHIER_PIN_DRV_FIXED_8,
  548. 175, UNIPHIER_PIN_PULL_DOWN),
  549. UNIPHIER_PINCTRL_PIN(176, "AI1D1", UNIPHIER_PIN_IECTRL_NONE,
  550. -1, UNIPHIER_PIN_DRV_FIXED_8,
  551. 176, UNIPHIER_PIN_PULL_DOWN),
  552. UNIPHIER_PINCTRL_PIN(177, "AI1D2", UNIPHIER_PIN_IECTRL_NONE,
  553. -1, UNIPHIER_PIN_DRV_FIXED_8,
  554. 177, UNIPHIER_PIN_PULL_DOWN),
  555. UNIPHIER_PINCTRL_PIN(178, "AI1D3", UNIPHIER_PIN_IECTRL_NONE,
  556. -1, UNIPHIER_PIN_DRV_FIXED_8,
  557. 178, UNIPHIER_PIN_PULL_DOWN),
  558. UNIPHIER_PINCTRL_PIN(179, "AI2ADCCK", UNIPHIER_PIN_IECTRL_NONE,
  559. -1, UNIPHIER_PIN_DRV_FIXED_8,
  560. 179, UNIPHIER_PIN_PULL_DOWN),
  561. UNIPHIER_PINCTRL_PIN(180, "AI2BCK", UNIPHIER_PIN_IECTRL_NONE,
  562. -1, UNIPHIER_PIN_DRV_FIXED_8,
  563. 180, UNIPHIER_PIN_PULL_DOWN),
  564. UNIPHIER_PINCTRL_PIN(181, "AI2LRCK", UNIPHIER_PIN_IECTRL_NONE,
  565. -1, UNIPHIER_PIN_DRV_FIXED_8,
  566. 181, UNIPHIER_PIN_PULL_DOWN),
  567. UNIPHIER_PINCTRL_PIN(182, "AI2D0", UNIPHIER_PIN_IECTRL_NONE,
  568. -1, UNIPHIER_PIN_DRV_FIXED_8,
  569. 182, UNIPHIER_PIN_PULL_DOWN),
  570. UNIPHIER_PINCTRL_PIN(183, "AI2D1", UNIPHIER_PIN_IECTRL_NONE,
  571. -1, UNIPHIER_PIN_DRV_FIXED_8,
  572. 183, UNIPHIER_PIN_PULL_DOWN),
  573. UNIPHIER_PINCTRL_PIN(184, "AI2D2", UNIPHIER_PIN_IECTRL_NONE,
  574. -1, UNIPHIER_PIN_DRV_FIXED_8,
  575. 184, UNIPHIER_PIN_PULL_DOWN),
  576. UNIPHIER_PINCTRL_PIN(185, "AI2D3", UNIPHIER_PIN_IECTRL_NONE,
  577. -1, UNIPHIER_PIN_DRV_FIXED_8,
  578. 185, UNIPHIER_PIN_PULL_DOWN),
  579. UNIPHIER_PINCTRL_PIN(186, "AI3ADCCK", UNIPHIER_PIN_IECTRL_NONE,
  580. -1, UNIPHIER_PIN_DRV_FIXED_8,
  581. 186, UNIPHIER_PIN_PULL_DOWN),
  582. UNIPHIER_PINCTRL_PIN(187, "AI3BCK", UNIPHIER_PIN_IECTRL_NONE,
  583. -1, UNIPHIER_PIN_DRV_FIXED_8,
  584. 187, UNIPHIER_PIN_PULL_DOWN),
  585. UNIPHIER_PINCTRL_PIN(188, "AI3LRCK", UNIPHIER_PIN_IECTRL_NONE,
  586. -1, UNIPHIER_PIN_DRV_FIXED_8,
  587. 188, UNIPHIER_PIN_PULL_DOWN),
  588. UNIPHIER_PINCTRL_PIN(189, "AI3D0", UNIPHIER_PIN_IECTRL_NONE,
  589. -1, UNIPHIER_PIN_DRV_FIXED_8,
  590. 189, UNIPHIER_PIN_PULL_DOWN),
  591. UNIPHIER_PINCTRL_PIN(190, "AO1IEC", UNIPHIER_PIN_IECTRL_NONE,
  592. -1, UNIPHIER_PIN_DRV_FIXED_8,
  593. 190, UNIPHIER_PIN_PULL_DOWN),
  594. UNIPHIER_PINCTRL_PIN(191, "AO1DACCK", UNIPHIER_PIN_IECTRL_NONE,
  595. -1, UNIPHIER_PIN_DRV_FIXED_8,
  596. 191, UNIPHIER_PIN_PULL_DOWN),
  597. UNIPHIER_PINCTRL_PIN(192, "AO1BCK", UNIPHIER_PIN_IECTRL_NONE,
  598. -1, UNIPHIER_PIN_DRV_FIXED_8,
  599. 192, UNIPHIER_PIN_PULL_DOWN),
  600. UNIPHIER_PINCTRL_PIN(193, "AO1LRCK", UNIPHIER_PIN_IECTRL_NONE,
  601. -1, UNIPHIER_PIN_DRV_FIXED_8,
  602. 193, UNIPHIER_PIN_PULL_DOWN),
  603. UNIPHIER_PINCTRL_PIN(194, "AO1D0", UNIPHIER_PIN_IECTRL_NONE,
  604. -1, UNIPHIER_PIN_DRV_FIXED_8,
  605. 194, UNIPHIER_PIN_PULL_DOWN),
  606. UNIPHIER_PINCTRL_PIN(195, "AO1D1", UNIPHIER_PIN_IECTRL_NONE,
  607. -1, UNIPHIER_PIN_DRV_FIXED_8,
  608. 195, UNIPHIER_PIN_PULL_DOWN),
  609. UNIPHIER_PINCTRL_PIN(196, "AO1D2", UNIPHIER_PIN_IECTRL_NONE,
  610. -1, UNIPHIER_PIN_DRV_FIXED_8,
  611. 196, UNIPHIER_PIN_PULL_UP),
  612. UNIPHIER_PINCTRL_PIN(197, "AO1D3", UNIPHIER_PIN_IECTRL_NONE,
  613. -1, UNIPHIER_PIN_DRV_FIXED_8,
  614. 197, UNIPHIER_PIN_PULL_UP),
  615. UNIPHIER_PINCTRL_PIN(198, "AO2IEC", UNIPHIER_PIN_IECTRL_NONE,
  616. -1, UNIPHIER_PIN_DRV_FIXED_8,
  617. 198, UNIPHIER_PIN_PULL_DOWN),
  618. UNIPHIER_PINCTRL_PIN(199, "AO2DACCK", UNIPHIER_PIN_IECTRL_NONE,
  619. -1, UNIPHIER_PIN_DRV_FIXED_8,
  620. 199, UNIPHIER_PIN_PULL_DOWN),
  621. UNIPHIER_PINCTRL_PIN(200, "AO2BCK", UNIPHIER_PIN_IECTRL_NONE,
  622. -1, UNIPHIER_PIN_DRV_FIXED_8,
  623. 200, UNIPHIER_PIN_PULL_DOWN),
  624. UNIPHIER_PINCTRL_PIN(201, "AO2LRCK", UNIPHIER_PIN_IECTRL_NONE,
  625. -1, UNIPHIER_PIN_DRV_FIXED_8,
  626. 201, UNIPHIER_PIN_PULL_DOWN),
  627. UNIPHIER_PINCTRL_PIN(202, "AO2D0", UNIPHIER_PIN_IECTRL_NONE,
  628. -1, UNIPHIER_PIN_DRV_FIXED_8,
  629. 202, UNIPHIER_PIN_PULL_DOWN),
  630. UNIPHIER_PINCTRL_PIN(203, "AO2D1", UNIPHIER_PIN_IECTRL_NONE,
  631. -1, UNIPHIER_PIN_DRV_FIXED_8,
  632. 203, UNIPHIER_PIN_PULL_DOWN),
  633. UNIPHIER_PINCTRL_PIN(204, "AO2D2", UNIPHIER_PIN_IECTRL_NONE,
  634. -1, UNIPHIER_PIN_DRV_FIXED_8,
  635. 204, UNIPHIER_PIN_PULL_DOWN),
  636. UNIPHIER_PINCTRL_PIN(205, "AO2D3", UNIPHIER_PIN_IECTRL_NONE,
  637. -1, UNIPHIER_PIN_DRV_FIXED_8,
  638. 205, UNIPHIER_PIN_PULL_DOWN),
  639. UNIPHIER_PINCTRL_PIN(206, "AO3DACCK", UNIPHIER_PIN_IECTRL_NONE,
  640. -1, UNIPHIER_PIN_DRV_FIXED_8,
  641. 206, UNIPHIER_PIN_PULL_DOWN),
  642. UNIPHIER_PINCTRL_PIN(207, "AO3BCK", UNIPHIER_PIN_IECTRL_NONE,
  643. -1, UNIPHIER_PIN_DRV_FIXED_8,
  644. 207, UNIPHIER_PIN_PULL_DOWN),
  645. UNIPHIER_PINCTRL_PIN(208, "AO3LRCK", UNIPHIER_PIN_IECTRL_NONE,
  646. -1, UNIPHIER_PIN_DRV_FIXED_8,
  647. 208, UNIPHIER_PIN_PULL_DOWN),
  648. UNIPHIER_PINCTRL_PIN(209, "AO3DMIX", UNIPHIER_PIN_IECTRL_NONE,
  649. -1, UNIPHIER_PIN_DRV_FIXED_8,
  650. 209, UNIPHIER_PIN_PULL_DOWN),
  651. UNIPHIER_PINCTRL_PIN(210, "AO4DACCK", UNIPHIER_PIN_IECTRL_NONE,
  652. -1, UNIPHIER_PIN_DRV_FIXED_8,
  653. 210, UNIPHIER_PIN_PULL_DOWN),
  654. UNIPHIER_PINCTRL_PIN(211, "AO4BCK", UNIPHIER_PIN_IECTRL_NONE,
  655. -1, UNIPHIER_PIN_DRV_FIXED_8,
  656. 211, UNIPHIER_PIN_PULL_DOWN),
  657. UNIPHIER_PINCTRL_PIN(212, "AO4LRCK", UNIPHIER_PIN_IECTRL_NONE,
  658. -1, UNIPHIER_PIN_DRV_FIXED_8,
  659. 212, UNIPHIER_PIN_PULL_DOWN),
  660. UNIPHIER_PINCTRL_PIN(213, "AO4DMIX", UNIPHIER_PIN_IECTRL_NONE,
  661. -1, UNIPHIER_PIN_DRV_FIXED_8,
  662. 213, UNIPHIER_PIN_PULL_DOWN),
  663. UNIPHIER_PINCTRL_PIN(214, "VI1CLK", UNIPHIER_PIN_IECTRL_NONE,
  664. -1, UNIPHIER_PIN_DRV_FIXED_8,
  665. 214, UNIPHIER_PIN_PULL_DOWN),
  666. UNIPHIER_PINCTRL_PIN(215, "VI1C0", UNIPHIER_PIN_IECTRL_NONE,
  667. -1, UNIPHIER_PIN_DRV_FIXED_8,
  668. 215, UNIPHIER_PIN_PULL_DOWN),
  669. UNIPHIER_PINCTRL_PIN(216, "VI1C1", UNIPHIER_PIN_IECTRL_NONE,
  670. -1, UNIPHIER_PIN_DRV_FIXED_8,
  671. 216, UNIPHIER_PIN_PULL_DOWN),
  672. UNIPHIER_PINCTRL_PIN(217, "VI1C2", UNIPHIER_PIN_IECTRL_NONE,
  673. -1, UNIPHIER_PIN_DRV_FIXED_8,
  674. 217, UNIPHIER_PIN_PULL_DOWN),
  675. UNIPHIER_PINCTRL_PIN(218, "VI1C3", UNIPHIER_PIN_IECTRL_NONE,
  676. -1, UNIPHIER_PIN_DRV_FIXED_8,
  677. 218, UNIPHIER_PIN_PULL_DOWN),
  678. UNIPHIER_PINCTRL_PIN(219, "VI1C4", UNIPHIER_PIN_IECTRL_NONE,
  679. -1, UNIPHIER_PIN_DRV_FIXED_8,
  680. 219, UNIPHIER_PIN_PULL_DOWN),
  681. UNIPHIER_PINCTRL_PIN(220, "VI1C5", UNIPHIER_PIN_IECTRL_NONE,
  682. -1, UNIPHIER_PIN_DRV_FIXED_8,
  683. 220, UNIPHIER_PIN_PULL_DOWN),
  684. UNIPHIER_PINCTRL_PIN(221, "VI1C6", UNIPHIER_PIN_IECTRL_NONE,
  685. -1, UNIPHIER_PIN_DRV_FIXED_8,
  686. 221, UNIPHIER_PIN_PULL_DOWN),
  687. UNIPHIER_PINCTRL_PIN(222, "VI1C7", UNIPHIER_PIN_IECTRL_NONE,
  688. -1, UNIPHIER_PIN_DRV_FIXED_8,
  689. 222, UNIPHIER_PIN_PULL_DOWN),
  690. UNIPHIER_PINCTRL_PIN(223, "VI1C8", UNIPHIER_PIN_IECTRL_NONE,
  691. -1, UNIPHIER_PIN_DRV_FIXED_8,
  692. 223, UNIPHIER_PIN_PULL_DOWN),
  693. UNIPHIER_PINCTRL_PIN(224, "VI1C9", UNIPHIER_PIN_IECTRL_NONE,
  694. -1, UNIPHIER_PIN_DRV_FIXED_8,
  695. 224, UNIPHIER_PIN_PULL_DOWN),
  696. UNIPHIER_PINCTRL_PIN(225, "VI1Y0", UNIPHIER_PIN_IECTRL_NONE,
  697. -1, UNIPHIER_PIN_DRV_FIXED_8,
  698. 225, UNIPHIER_PIN_PULL_DOWN),
  699. UNIPHIER_PINCTRL_PIN(226, "VI1Y1", UNIPHIER_PIN_IECTRL_NONE,
  700. -1, UNIPHIER_PIN_DRV_FIXED_8,
  701. 226, UNIPHIER_PIN_PULL_DOWN),
  702. UNIPHIER_PINCTRL_PIN(227, "VI1Y2", UNIPHIER_PIN_IECTRL_NONE,
  703. -1, UNIPHIER_PIN_DRV_FIXED_8,
  704. 227, UNIPHIER_PIN_PULL_DOWN),
  705. UNIPHIER_PINCTRL_PIN(228, "VI1Y3", UNIPHIER_PIN_IECTRL_NONE,
  706. -1, UNIPHIER_PIN_DRV_FIXED_8,
  707. 228, UNIPHIER_PIN_PULL_DOWN),
  708. UNIPHIER_PINCTRL_PIN(229, "VI1Y4", UNIPHIER_PIN_IECTRL_NONE,
  709. -1, UNIPHIER_PIN_DRV_FIXED_8,
  710. 229, UNIPHIER_PIN_PULL_DOWN),
  711. UNIPHIER_PINCTRL_PIN(230, "VI1Y5", UNIPHIER_PIN_IECTRL_NONE,
  712. -1, UNIPHIER_PIN_DRV_FIXED_8,
  713. 230, UNIPHIER_PIN_PULL_DOWN),
  714. UNIPHIER_PINCTRL_PIN(231, "VI1Y6", UNIPHIER_PIN_IECTRL_NONE,
  715. -1, UNIPHIER_PIN_DRV_FIXED_8,
  716. 231, UNIPHIER_PIN_PULL_DOWN),
  717. UNIPHIER_PINCTRL_PIN(232, "VI1Y7", UNIPHIER_PIN_IECTRL_NONE,
  718. -1, UNIPHIER_PIN_DRV_FIXED_8,
  719. 232, UNIPHIER_PIN_PULL_DOWN),
  720. UNIPHIER_PINCTRL_PIN(233, "VI1Y8", UNIPHIER_PIN_IECTRL_NONE,
  721. -1, UNIPHIER_PIN_DRV_FIXED_8,
  722. 233, UNIPHIER_PIN_PULL_DOWN),
  723. UNIPHIER_PINCTRL_PIN(234, "VI1Y9", UNIPHIER_PIN_IECTRL_NONE,
  724. -1, UNIPHIER_PIN_DRV_FIXED_8,
  725. 234, UNIPHIER_PIN_PULL_DOWN),
  726. UNIPHIER_PINCTRL_PIN(235, "VI1DE", UNIPHIER_PIN_IECTRL_NONE,
  727. -1, UNIPHIER_PIN_DRV_FIXED_8,
  728. 235, UNIPHIER_PIN_PULL_DOWN),
  729. UNIPHIER_PINCTRL_PIN(236, "VI1HSYNC", UNIPHIER_PIN_IECTRL_NONE,
  730. -1, UNIPHIER_PIN_DRV_FIXED_8,
  731. 236, UNIPHIER_PIN_PULL_DOWN),
  732. UNIPHIER_PINCTRL_PIN(237, "VI1VSYNC", UNIPHIER_PIN_IECTRL_NONE,
  733. -1, UNIPHIER_PIN_DRV_FIXED_8,
  734. 237, UNIPHIER_PIN_PULL_DOWN),
  735. UNIPHIER_PINCTRL_PIN(238, "VO1CLK", UNIPHIER_PIN_IECTRL_NONE,
  736. -1, UNIPHIER_PIN_DRV_FIXED_8,
  737. 238, UNIPHIER_PIN_PULL_DOWN),
  738. UNIPHIER_PINCTRL_PIN(239, "VO1D0", UNIPHIER_PIN_IECTRL_NONE,
  739. -1, UNIPHIER_PIN_DRV_FIXED_8,
  740. 239, UNIPHIER_PIN_PULL_DOWN),
  741. UNIPHIER_PINCTRL_PIN(240, "VO1D1", UNIPHIER_PIN_IECTRL_NONE,
  742. -1, UNIPHIER_PIN_DRV_FIXED_8,
  743. 240, UNIPHIER_PIN_PULL_DOWN),
  744. UNIPHIER_PINCTRL_PIN(241, "VO1D2", UNIPHIER_PIN_IECTRL_NONE,
  745. -1, UNIPHIER_PIN_DRV_FIXED_8,
  746. 241, UNIPHIER_PIN_PULL_DOWN),
  747. UNIPHIER_PINCTRL_PIN(242, "VO1D3", UNIPHIER_PIN_IECTRL_NONE,
  748. -1, UNIPHIER_PIN_DRV_FIXED_8,
  749. 242, UNIPHIER_PIN_PULL_DOWN),
  750. UNIPHIER_PINCTRL_PIN(243, "VO1D4", UNIPHIER_PIN_IECTRL_NONE,
  751. -1, UNIPHIER_PIN_DRV_FIXED_8,
  752. 243, UNIPHIER_PIN_PULL_DOWN),
  753. UNIPHIER_PINCTRL_PIN(244, "VO1D5", UNIPHIER_PIN_IECTRL_NONE,
  754. -1, UNIPHIER_PIN_DRV_FIXED_8,
  755. 244, UNIPHIER_PIN_PULL_DOWN),
  756. UNIPHIER_PINCTRL_PIN(245, "VO1D6", UNIPHIER_PIN_IECTRL_NONE,
  757. -1, UNIPHIER_PIN_DRV_FIXED_8,
  758. 245, UNIPHIER_PIN_PULL_DOWN),
  759. UNIPHIER_PINCTRL_PIN(246, "VO1D7", UNIPHIER_PIN_IECTRL_NONE,
  760. -1, UNIPHIER_PIN_DRV_FIXED_8,
  761. 246, UNIPHIER_PIN_PULL_DOWN),
  762. UNIPHIER_PINCTRL_PIN(247, "SDCD", UNIPHIER_PIN_IECTRL_NONE,
  763. -1, UNIPHIER_PIN_DRV_FIXED_8,
  764. 247, UNIPHIER_PIN_PULL_UP),
  765. UNIPHIER_PINCTRL_PIN(248, "SDWP", UNIPHIER_PIN_IECTRL_NONE,
  766. -1, UNIPHIER_PIN_DRV_FIXED_8,
  767. 248, UNIPHIER_PIN_PULL_UP),
  768. UNIPHIER_PINCTRL_PIN(249, "SDVOLC", UNIPHIER_PIN_IECTRL_NONE,
  769. -1, UNIPHIER_PIN_DRV_FIXED_8,
  770. 249, UNIPHIER_PIN_PULL_UP),
  771. UNIPHIER_PINCTRL_PIN(250, "SDCLK", UNIPHIER_PIN_IECTRL_NONE,
  772. 40, UNIPHIER_PIN_DRV_8_12_16_20,
  773. -1, UNIPHIER_PIN_PULL_UP_FIXED),
  774. UNIPHIER_PINCTRL_PIN(251, "SDCMD", UNIPHIER_PIN_IECTRL_NONE,
  775. 44, UNIPHIER_PIN_DRV_8_12_16_20,
  776. -1, UNIPHIER_PIN_PULL_UP_FIXED),
  777. UNIPHIER_PINCTRL_PIN(252, "SDDAT0", UNIPHIER_PIN_IECTRL_NONE,
  778. 48, UNIPHIER_PIN_DRV_8_12_16_20,
  779. -1, UNIPHIER_PIN_PULL_UP_FIXED),
  780. UNIPHIER_PINCTRL_PIN(253, "SDDAT1", UNIPHIER_PIN_IECTRL_NONE,
  781. 52, UNIPHIER_PIN_DRV_8_12_16_20,
  782. -1, UNIPHIER_PIN_PULL_UP_FIXED),
  783. UNIPHIER_PINCTRL_PIN(254, "SDDAT2", UNIPHIER_PIN_IECTRL_NONE,
  784. 56, UNIPHIER_PIN_DRV_8_12_16_20,
  785. -1, UNIPHIER_PIN_PULL_UP_FIXED),
  786. UNIPHIER_PINCTRL_PIN(255, "SDDAT3", UNIPHIER_PIN_IECTRL_NONE,
  787. 60, UNIPHIER_PIN_DRV_8_12_16_20,
  788. -1, UNIPHIER_PIN_PULL_UP_FIXED),
  789. };
  790. static const unsigned emmc_pins[] = {36, 37, 38, 39, 40, 41, 42};
  791. static const unsigned emmc_muxvals[] = {0, 0, 0, 0, 0, 0, 0};
  792. static const unsigned emmc_dat8_pins[] = {43, 44, 45, 46};
  793. static const unsigned emmc_dat8_muxvals[] = {0, 0, 0, 0};
  794. static const unsigned i2c0_pins[] = {112, 113};
  795. static const unsigned i2c0_muxvals[] = {0, 0};
  796. static const unsigned i2c1_pins[] = {114, 115};
  797. static const unsigned i2c1_muxvals[] = {0, 0};
  798. static const unsigned i2c2_pins[] = {116, 117};
  799. static const unsigned i2c2_muxvals[] = {0, 0};
  800. static const unsigned i2c3_pins[] = {118, 119};
  801. static const unsigned i2c3_muxvals[] = {0, 0};
  802. static const unsigned i2c5_pins[] = {87, 88};
  803. static const unsigned i2c5_muxvals[] = {2, 2};
  804. static const unsigned i2c5b_pins[] = {196, 197};
  805. static const unsigned i2c5b_muxvals[] = {2, 2};
  806. static const unsigned i2c5c_pins[] = {215, 216};
  807. static const unsigned i2c5c_muxvals[] = {2, 2};
  808. static const unsigned i2c6_pins[] = {101, 102};
  809. static const unsigned i2c6_muxvals[] = {2, 2};
  810. static const unsigned nand_pins[] = {19, 20, 21, 22, 23, 24, 25, 28, 29, 30,
  811. 31, 32, 33, 34, 35};
  812. static const unsigned nand_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  813. 0, 0};
  814. static const unsigned nand_cs1_pins[] = {26, 27};
  815. static const unsigned nand_cs1_muxvals[] = {0, 0};
  816. static const unsigned sd_pins[] = {250, 251, 252, 253, 254, 255, 256, 257, 258};
  817. static const unsigned sd_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  818. static const unsigned uart0_pins[] = {47, 48};
  819. static const unsigned uart0_muxvals[] = {0, 0};
  820. static const unsigned uart0b_pins[] = {227, 228};
  821. static const unsigned uart0b_muxvals[] = {3, 3};
  822. static const unsigned uart1_pins[] = {49, 50};
  823. static const unsigned uart1_muxvals[] = {0, 0};
  824. static const unsigned uart2_pins[] = {51, 52};
  825. static const unsigned uart2_muxvals[] = {0, 0};
  826. static const unsigned uart3_pins[] = {53, 54};
  827. static const unsigned uart3_muxvals[] = {0, 0};
  828. static const unsigned usb0_pins[] = {124, 125};
  829. static const unsigned usb0_muxvals[] = {0, 0};
  830. static const unsigned usb1_pins[] = {126, 127};
  831. static const unsigned usb1_muxvals[] = {0, 0};
  832. static const unsigned usb2_pins[] = {128, 129};
  833. static const unsigned usb2_muxvals[] = {0, 0};
  834. static const unsigned port_range0_pins[] = {
  835. 89, 90, 91, 92, 93, 94, 95, 96, /* PORT0x */
  836. 97, 98, 99, 100, 101, 102, 103, 104, /* PORT1x */
  837. 251, 252, 253, 254, 255, 247, 248, 249, /* PORT2x */
  838. 39, 40, 41, 42, 43, 44, 45, 46, /* PORT3x */
  839. 156, 157, 158, 159, 160, 161, 162, 163, /* PORT4x */
  840. 164, 165, 166, 167, 168, 169, 170, 171, /* PORT5x */
  841. 190, 191, 192, 193, 194, 195, 196, 197, /* PORT6x */
  842. 198, 199, 200, 201, 202, 203, 204, 205, /* PORT7x */
  843. 120, 121, 122, 123, 55, 56, 57, 58, /* PORT8x */
  844. 124, 125, 126, 127, 49, 50, 53, 54, /* PORT9x */
  845. 148, 149, 150, 151, 152, 153, 154, 155, /* PORT10x */
  846. 133, 134, 131, 130, 138, 139, 136, 135, /* PORT11x */
  847. 28, 29, 30, 31, 32, 33, 34, 35, /* PORT12x */
  848. 179, 180, 181, 182, 186, 187, 188, 189, /* PORT13x */
  849. 4, 5, 6, 7, 8, 9, 10, 11, /* PORT14x */
  850. };
  851. static const unsigned port_range0_muxvals[] = {
  852. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT0x */
  853. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT1x */
  854. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT2x */
  855. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT3x */
  856. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT4x */
  857. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT5x */
  858. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT6x */
  859. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT7x */
  860. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT8x */
  861. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT9x */
  862. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT10x */
  863. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT11x */
  864. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT12x */
  865. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT13x */
  866. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT14x */
  867. };
  868. static const unsigned port_range1_pins[] = {
  869. 109, 110, 111, /* PORT175-177 */
  870. 206, 207, 208, 209, 210, 211, 212, 213, /* PORT18x */
  871. 12, 13, 14, 15, 16, 17, 107, 108, /* PORT19x */
  872. 140, 141, 142, 143, 144, 145, 146, 147, /* PORT20x */
  873. 59, 60, 61, 62, 63, 64, 65, 66, /* PORT21x */
  874. 214, 215, 216, 217, 218, 219, 220, 221, /* PORT22x */
  875. 222, 223, 224, 225, 226, 227, 228, 229, /* PORT23x */
  876. 19, 20, 21, 22, 23, 24, 25, 26, /* PORT24x */
  877. 230, 231, 232, 233, 234, 235, 236, 237, /* PORT25x */
  878. 239, 240, 241, 242, 243, 244, 245, 246, /* PORT26x */
  879. 172, 173, 174, 175, 176, 177, 178, 129, /* PORT27x */
  880. 0, 1, 2, 67, 85, 86, 87, 88, /* PORT28x */
  881. 105, 106, 18, 27, 36, 128, 132, 137, /* PORT29x */
  882. 183, 184, 185, 84, 47, 48, 51, 52, /* PORT30x */
  883. };
  884. static const unsigned port_range1_muxvals[] = {
  885. 15, 15, 15, /* PORT175-177 */
  886. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT18x */
  887. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT19x */
  888. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT20x */
  889. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT21x */
  890. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT22x */
  891. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT23x */
  892. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT24x */
  893. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT25x */
  894. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT26x */
  895. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT27x */
  896. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT28x */
  897. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT29x */
  898. 15, 15, 15, 15, 15, 15, 15, 15, /* PORT30x */
  899. };
  900. static const unsigned xirq_pins[] = {
  901. 68, 69, 70, 71, 72, 73, 74, 75, /* XIRQ0-7 */
  902. 76, 77, 78, 79, 80, 81, 82, 83, /* XIRQ8-15 */
  903. 84, 85, 86, 87, 88, /* XIRQ16-20 */
  904. };
  905. static const unsigned xirq_muxvals[] = {
  906. 14, 14, 14, 14, 14, 14, 14, 14, /* XIRQ0-7 */
  907. 14, 14, 14, 14, 14, 14, 14, 14, /* XIRQ8-15 */
  908. 14, 14, 14, 14, 14, /* XIRQ16-20 */
  909. };
  910. static const unsigned xirq_alternatives_pins[] = {
  911. 91, 92, 239, 144, 240, 156, 241, 106, 128,
  912. };
  913. static const unsigned xirq_alternatives_muxvals[] = {
  914. 14, 14, 14, 14, 14, 14, 14, 14, 14,
  915. };
  916. static const struct uniphier_pinctrl_group ph1_pro5_groups[] = {
  917. UNIPHIER_PINCTRL_GROUP(nand),
  918. UNIPHIER_PINCTRL_GROUP(nand_cs1),
  919. UNIPHIER_PINCTRL_GROUP(emmc),
  920. UNIPHIER_PINCTRL_GROUP(emmc_dat8),
  921. UNIPHIER_PINCTRL_GROUP(i2c0),
  922. UNIPHIER_PINCTRL_GROUP(i2c1),
  923. UNIPHIER_PINCTRL_GROUP(i2c2),
  924. UNIPHIER_PINCTRL_GROUP(i2c3),
  925. UNIPHIER_PINCTRL_GROUP(i2c5),
  926. UNIPHIER_PINCTRL_GROUP(i2c5b),
  927. UNIPHIER_PINCTRL_GROUP(i2c5c),
  928. UNIPHIER_PINCTRL_GROUP(i2c6),
  929. UNIPHIER_PINCTRL_GROUP(sd),
  930. UNIPHIER_PINCTRL_GROUP(uart0),
  931. UNIPHIER_PINCTRL_GROUP(uart0b),
  932. UNIPHIER_PINCTRL_GROUP(uart1),
  933. UNIPHIER_PINCTRL_GROUP(uart2),
  934. UNIPHIER_PINCTRL_GROUP(uart3),
  935. UNIPHIER_PINCTRL_GROUP(usb0),
  936. UNIPHIER_PINCTRL_GROUP(usb1),
  937. UNIPHIER_PINCTRL_GROUP(usb2),
  938. UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_PORT(port_range0),
  939. UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_PORT(port_range1),
  940. UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_IRQ(xirq),
  941. UNIPHIER_PINCTRL_GROUP_GPIO_RANGE_IRQ(xirq_alternatives),
  942. UNIPHIER_PINCTRL_GROUP_SINGLE(port00, port_range0, 0),
  943. UNIPHIER_PINCTRL_GROUP_SINGLE(port01, port_range0, 1),
  944. UNIPHIER_PINCTRL_GROUP_SINGLE(port02, port_range0, 2),
  945. UNIPHIER_PINCTRL_GROUP_SINGLE(port03, port_range0, 3),
  946. UNIPHIER_PINCTRL_GROUP_SINGLE(port04, port_range0, 4),
  947. UNIPHIER_PINCTRL_GROUP_SINGLE(port05, port_range0, 5),
  948. UNIPHIER_PINCTRL_GROUP_SINGLE(port06, port_range0, 6),
  949. UNIPHIER_PINCTRL_GROUP_SINGLE(port07, port_range0, 7),
  950. UNIPHIER_PINCTRL_GROUP_SINGLE(port10, port_range0, 8),
  951. UNIPHIER_PINCTRL_GROUP_SINGLE(port11, port_range0, 9),
  952. UNIPHIER_PINCTRL_GROUP_SINGLE(port12, port_range0, 10),
  953. UNIPHIER_PINCTRL_GROUP_SINGLE(port13, port_range0, 11),
  954. UNIPHIER_PINCTRL_GROUP_SINGLE(port14, port_range0, 12),
  955. UNIPHIER_PINCTRL_GROUP_SINGLE(port15, port_range0, 13),
  956. UNIPHIER_PINCTRL_GROUP_SINGLE(port16, port_range0, 14),
  957. UNIPHIER_PINCTRL_GROUP_SINGLE(port17, port_range0, 15),
  958. UNIPHIER_PINCTRL_GROUP_SINGLE(port20, port_range0, 16),
  959. UNIPHIER_PINCTRL_GROUP_SINGLE(port21, port_range0, 17),
  960. UNIPHIER_PINCTRL_GROUP_SINGLE(port22, port_range0, 18),
  961. UNIPHIER_PINCTRL_GROUP_SINGLE(port23, port_range0, 19),
  962. UNIPHIER_PINCTRL_GROUP_SINGLE(port24, port_range0, 20),
  963. UNIPHIER_PINCTRL_GROUP_SINGLE(port25, port_range0, 21),
  964. UNIPHIER_PINCTRL_GROUP_SINGLE(port26, port_range0, 22),
  965. UNIPHIER_PINCTRL_GROUP_SINGLE(port27, port_range0, 23),
  966. UNIPHIER_PINCTRL_GROUP_SINGLE(port30, port_range0, 24),
  967. UNIPHIER_PINCTRL_GROUP_SINGLE(port31, port_range0, 25),
  968. UNIPHIER_PINCTRL_GROUP_SINGLE(port32, port_range0, 26),
  969. UNIPHIER_PINCTRL_GROUP_SINGLE(port33, port_range0, 27),
  970. UNIPHIER_PINCTRL_GROUP_SINGLE(port34, port_range0, 28),
  971. UNIPHIER_PINCTRL_GROUP_SINGLE(port35, port_range0, 29),
  972. UNIPHIER_PINCTRL_GROUP_SINGLE(port36, port_range0, 30),
  973. UNIPHIER_PINCTRL_GROUP_SINGLE(port37, port_range0, 31),
  974. UNIPHIER_PINCTRL_GROUP_SINGLE(port40, port_range0, 32),
  975. UNIPHIER_PINCTRL_GROUP_SINGLE(port41, port_range0, 33),
  976. UNIPHIER_PINCTRL_GROUP_SINGLE(port42, port_range0, 34),
  977. UNIPHIER_PINCTRL_GROUP_SINGLE(port43, port_range0, 35),
  978. UNIPHIER_PINCTRL_GROUP_SINGLE(port44, port_range0, 36),
  979. UNIPHIER_PINCTRL_GROUP_SINGLE(port45, port_range0, 37),
  980. UNIPHIER_PINCTRL_GROUP_SINGLE(port46, port_range0, 38),
  981. UNIPHIER_PINCTRL_GROUP_SINGLE(port47, port_range0, 39),
  982. UNIPHIER_PINCTRL_GROUP_SINGLE(port50, port_range0, 40),
  983. UNIPHIER_PINCTRL_GROUP_SINGLE(port51, port_range0, 41),
  984. UNIPHIER_PINCTRL_GROUP_SINGLE(port52, port_range0, 42),
  985. UNIPHIER_PINCTRL_GROUP_SINGLE(port53, port_range0, 43),
  986. UNIPHIER_PINCTRL_GROUP_SINGLE(port54, port_range0, 44),
  987. UNIPHIER_PINCTRL_GROUP_SINGLE(port55, port_range0, 45),
  988. UNIPHIER_PINCTRL_GROUP_SINGLE(port56, port_range0, 46),
  989. UNIPHIER_PINCTRL_GROUP_SINGLE(port57, port_range0, 47),
  990. UNIPHIER_PINCTRL_GROUP_SINGLE(port60, port_range0, 48),
  991. UNIPHIER_PINCTRL_GROUP_SINGLE(port61, port_range0, 49),
  992. UNIPHIER_PINCTRL_GROUP_SINGLE(port62, port_range0, 50),
  993. UNIPHIER_PINCTRL_GROUP_SINGLE(port63, port_range0, 51),
  994. UNIPHIER_PINCTRL_GROUP_SINGLE(port64, port_range0, 52),
  995. UNIPHIER_PINCTRL_GROUP_SINGLE(port65, port_range0, 53),
  996. UNIPHIER_PINCTRL_GROUP_SINGLE(port66, port_range0, 54),
  997. UNIPHIER_PINCTRL_GROUP_SINGLE(port67, port_range0, 55),
  998. UNIPHIER_PINCTRL_GROUP_SINGLE(port70, port_range0, 56),
  999. UNIPHIER_PINCTRL_GROUP_SINGLE(port71, port_range0, 57),
  1000. UNIPHIER_PINCTRL_GROUP_SINGLE(port72, port_range0, 58),
  1001. UNIPHIER_PINCTRL_GROUP_SINGLE(port73, port_range0, 59),
  1002. UNIPHIER_PINCTRL_GROUP_SINGLE(port74, port_range0, 60),
  1003. UNIPHIER_PINCTRL_GROUP_SINGLE(port75, port_range0, 61),
  1004. UNIPHIER_PINCTRL_GROUP_SINGLE(port76, port_range0, 62),
  1005. UNIPHIER_PINCTRL_GROUP_SINGLE(port77, port_range0, 63),
  1006. UNIPHIER_PINCTRL_GROUP_SINGLE(port80, port_range0, 64),
  1007. UNIPHIER_PINCTRL_GROUP_SINGLE(port81, port_range0, 65),
  1008. UNIPHIER_PINCTRL_GROUP_SINGLE(port82, port_range0, 66),
  1009. UNIPHIER_PINCTRL_GROUP_SINGLE(port83, port_range0, 67),
  1010. UNIPHIER_PINCTRL_GROUP_SINGLE(port84, port_range0, 68),
  1011. UNIPHIER_PINCTRL_GROUP_SINGLE(port85, port_range0, 69),
  1012. UNIPHIER_PINCTRL_GROUP_SINGLE(port86, port_range0, 70),
  1013. UNIPHIER_PINCTRL_GROUP_SINGLE(port87, port_range0, 71),
  1014. UNIPHIER_PINCTRL_GROUP_SINGLE(port90, port_range0, 72),
  1015. UNIPHIER_PINCTRL_GROUP_SINGLE(port91, port_range0, 73),
  1016. UNIPHIER_PINCTRL_GROUP_SINGLE(port92, port_range0, 74),
  1017. UNIPHIER_PINCTRL_GROUP_SINGLE(port93, port_range0, 75),
  1018. UNIPHIER_PINCTRL_GROUP_SINGLE(port94, port_range0, 76),
  1019. UNIPHIER_PINCTRL_GROUP_SINGLE(port95, port_range0, 77),
  1020. UNIPHIER_PINCTRL_GROUP_SINGLE(port96, port_range0, 78),
  1021. UNIPHIER_PINCTRL_GROUP_SINGLE(port97, port_range0, 79),
  1022. UNIPHIER_PINCTRL_GROUP_SINGLE(port100, port_range0, 80),
  1023. UNIPHIER_PINCTRL_GROUP_SINGLE(port101, port_range0, 81),
  1024. UNIPHIER_PINCTRL_GROUP_SINGLE(port102, port_range0, 82),
  1025. UNIPHIER_PINCTRL_GROUP_SINGLE(port103, port_range0, 83),
  1026. UNIPHIER_PINCTRL_GROUP_SINGLE(port104, port_range0, 84),
  1027. UNIPHIER_PINCTRL_GROUP_SINGLE(port105, port_range0, 85),
  1028. UNIPHIER_PINCTRL_GROUP_SINGLE(port106, port_range0, 86),
  1029. UNIPHIER_PINCTRL_GROUP_SINGLE(port107, port_range0, 87),
  1030. UNIPHIER_PINCTRL_GROUP_SINGLE(port110, port_range0, 88),
  1031. UNIPHIER_PINCTRL_GROUP_SINGLE(port111, port_range0, 89),
  1032. UNIPHIER_PINCTRL_GROUP_SINGLE(port112, port_range0, 90),
  1033. UNIPHIER_PINCTRL_GROUP_SINGLE(port113, port_range0, 91),
  1034. UNIPHIER_PINCTRL_GROUP_SINGLE(port114, port_range0, 92),
  1035. UNIPHIER_PINCTRL_GROUP_SINGLE(port115, port_range0, 93),
  1036. UNIPHIER_PINCTRL_GROUP_SINGLE(port116, port_range0, 94),
  1037. UNIPHIER_PINCTRL_GROUP_SINGLE(port117, port_range0, 95),
  1038. UNIPHIER_PINCTRL_GROUP_SINGLE(port120, port_range0, 96),
  1039. UNIPHIER_PINCTRL_GROUP_SINGLE(port121, port_range0, 97),
  1040. UNIPHIER_PINCTRL_GROUP_SINGLE(port122, port_range0, 98),
  1041. UNIPHIER_PINCTRL_GROUP_SINGLE(port123, port_range0, 99),
  1042. UNIPHIER_PINCTRL_GROUP_SINGLE(port124, port_range0, 100),
  1043. UNIPHIER_PINCTRL_GROUP_SINGLE(port125, port_range0, 101),
  1044. UNIPHIER_PINCTRL_GROUP_SINGLE(port126, port_range0, 102),
  1045. UNIPHIER_PINCTRL_GROUP_SINGLE(port127, port_range0, 103),
  1046. UNIPHIER_PINCTRL_GROUP_SINGLE(port130, port_range0, 104),
  1047. UNIPHIER_PINCTRL_GROUP_SINGLE(port131, port_range0, 105),
  1048. UNIPHIER_PINCTRL_GROUP_SINGLE(port132, port_range0, 106),
  1049. UNIPHIER_PINCTRL_GROUP_SINGLE(port133, port_range0, 107),
  1050. UNIPHIER_PINCTRL_GROUP_SINGLE(port134, port_range0, 108),
  1051. UNIPHIER_PINCTRL_GROUP_SINGLE(port135, port_range0, 109),
  1052. UNIPHIER_PINCTRL_GROUP_SINGLE(port136, port_range0, 110),
  1053. UNIPHIER_PINCTRL_GROUP_SINGLE(port137, port_range0, 111),
  1054. UNIPHIER_PINCTRL_GROUP_SINGLE(port140, port_range0, 112),
  1055. UNIPHIER_PINCTRL_GROUP_SINGLE(port141, port_range0, 113),
  1056. UNIPHIER_PINCTRL_GROUP_SINGLE(port142, port_range0, 114),
  1057. UNIPHIER_PINCTRL_GROUP_SINGLE(port143, port_range0, 115),
  1058. UNIPHIER_PINCTRL_GROUP_SINGLE(port144, port_range0, 116),
  1059. UNIPHIER_PINCTRL_GROUP_SINGLE(port145, port_range0, 117),
  1060. UNIPHIER_PINCTRL_GROUP_SINGLE(port146, port_range0, 118),
  1061. UNIPHIER_PINCTRL_GROUP_SINGLE(port147, port_range0, 119),
  1062. UNIPHIER_PINCTRL_GROUP_SINGLE(port175, port_range1, 0),
  1063. UNIPHIER_PINCTRL_GROUP_SINGLE(port176, port_range1, 1),
  1064. UNIPHIER_PINCTRL_GROUP_SINGLE(port177, port_range1, 2),
  1065. UNIPHIER_PINCTRL_GROUP_SINGLE(port180, port_range1, 3),
  1066. UNIPHIER_PINCTRL_GROUP_SINGLE(port181, port_range1, 4),
  1067. UNIPHIER_PINCTRL_GROUP_SINGLE(port182, port_range1, 5),
  1068. UNIPHIER_PINCTRL_GROUP_SINGLE(port183, port_range1, 6),
  1069. UNIPHIER_PINCTRL_GROUP_SINGLE(port184, port_range1, 7),
  1070. UNIPHIER_PINCTRL_GROUP_SINGLE(port185, port_range1, 8),
  1071. UNIPHIER_PINCTRL_GROUP_SINGLE(port186, port_range1, 9),
  1072. UNIPHIER_PINCTRL_GROUP_SINGLE(port187, port_range1, 10),
  1073. UNIPHIER_PINCTRL_GROUP_SINGLE(port190, port_range1, 11),
  1074. UNIPHIER_PINCTRL_GROUP_SINGLE(port191, port_range1, 12),
  1075. UNIPHIER_PINCTRL_GROUP_SINGLE(port192, port_range1, 13),
  1076. UNIPHIER_PINCTRL_GROUP_SINGLE(port193, port_range1, 14),
  1077. UNIPHIER_PINCTRL_GROUP_SINGLE(port194, port_range1, 15),
  1078. UNIPHIER_PINCTRL_GROUP_SINGLE(port195, port_range1, 16),
  1079. UNIPHIER_PINCTRL_GROUP_SINGLE(port196, port_range1, 17),
  1080. UNIPHIER_PINCTRL_GROUP_SINGLE(port197, port_range1, 18),
  1081. UNIPHIER_PINCTRL_GROUP_SINGLE(port200, port_range1, 19),
  1082. UNIPHIER_PINCTRL_GROUP_SINGLE(port201, port_range1, 20),
  1083. UNIPHIER_PINCTRL_GROUP_SINGLE(port202, port_range1, 21),
  1084. UNIPHIER_PINCTRL_GROUP_SINGLE(port203, port_range1, 22),
  1085. UNIPHIER_PINCTRL_GROUP_SINGLE(port204, port_range1, 23),
  1086. UNIPHIER_PINCTRL_GROUP_SINGLE(port205, port_range1, 24),
  1087. UNIPHIER_PINCTRL_GROUP_SINGLE(port206, port_range1, 25),
  1088. UNIPHIER_PINCTRL_GROUP_SINGLE(port207, port_range1, 26),
  1089. UNIPHIER_PINCTRL_GROUP_SINGLE(port210, port_range1, 27),
  1090. UNIPHIER_PINCTRL_GROUP_SINGLE(port211, port_range1, 28),
  1091. UNIPHIER_PINCTRL_GROUP_SINGLE(port212, port_range1, 29),
  1092. UNIPHIER_PINCTRL_GROUP_SINGLE(port213, port_range1, 30),
  1093. UNIPHIER_PINCTRL_GROUP_SINGLE(port214, port_range1, 31),
  1094. UNIPHIER_PINCTRL_GROUP_SINGLE(port215, port_range1, 32),
  1095. UNIPHIER_PINCTRL_GROUP_SINGLE(port216, port_range1, 33),
  1096. UNIPHIER_PINCTRL_GROUP_SINGLE(port217, port_range1, 34),
  1097. UNIPHIER_PINCTRL_GROUP_SINGLE(port220, port_range1, 35),
  1098. UNIPHIER_PINCTRL_GROUP_SINGLE(port221, port_range1, 36),
  1099. UNIPHIER_PINCTRL_GROUP_SINGLE(port222, port_range1, 37),
  1100. UNIPHIER_PINCTRL_GROUP_SINGLE(port223, port_range1, 38),
  1101. UNIPHIER_PINCTRL_GROUP_SINGLE(port224, port_range1, 39),
  1102. UNIPHIER_PINCTRL_GROUP_SINGLE(port225, port_range1, 40),
  1103. UNIPHIER_PINCTRL_GROUP_SINGLE(port226, port_range1, 41),
  1104. UNIPHIER_PINCTRL_GROUP_SINGLE(port227, port_range1, 42),
  1105. UNIPHIER_PINCTRL_GROUP_SINGLE(port230, port_range1, 43),
  1106. UNIPHIER_PINCTRL_GROUP_SINGLE(port231, port_range1, 44),
  1107. UNIPHIER_PINCTRL_GROUP_SINGLE(port232, port_range1, 45),
  1108. UNIPHIER_PINCTRL_GROUP_SINGLE(port233, port_range1, 46),
  1109. UNIPHIER_PINCTRL_GROUP_SINGLE(port234, port_range1, 47),
  1110. UNIPHIER_PINCTRL_GROUP_SINGLE(port235, port_range1, 48),
  1111. UNIPHIER_PINCTRL_GROUP_SINGLE(port236, port_range1, 49),
  1112. UNIPHIER_PINCTRL_GROUP_SINGLE(port237, port_range1, 50),
  1113. UNIPHIER_PINCTRL_GROUP_SINGLE(port240, port_range1, 51),
  1114. UNIPHIER_PINCTRL_GROUP_SINGLE(port241, port_range1, 52),
  1115. UNIPHIER_PINCTRL_GROUP_SINGLE(port242, port_range1, 53),
  1116. UNIPHIER_PINCTRL_GROUP_SINGLE(port243, port_range1, 54),
  1117. UNIPHIER_PINCTRL_GROUP_SINGLE(port244, port_range1, 55),
  1118. UNIPHIER_PINCTRL_GROUP_SINGLE(port245, port_range1, 56),
  1119. UNIPHIER_PINCTRL_GROUP_SINGLE(port246, port_range1, 57),
  1120. UNIPHIER_PINCTRL_GROUP_SINGLE(port247, port_range1, 58),
  1121. UNIPHIER_PINCTRL_GROUP_SINGLE(port250, port_range1, 59),
  1122. UNIPHIER_PINCTRL_GROUP_SINGLE(port251, port_range1, 60),
  1123. UNIPHIER_PINCTRL_GROUP_SINGLE(port252, port_range1, 61),
  1124. UNIPHIER_PINCTRL_GROUP_SINGLE(port253, port_range1, 62),
  1125. UNIPHIER_PINCTRL_GROUP_SINGLE(port254, port_range1, 63),
  1126. UNIPHIER_PINCTRL_GROUP_SINGLE(port255, port_range1, 64),
  1127. UNIPHIER_PINCTRL_GROUP_SINGLE(port256, port_range1, 65),
  1128. UNIPHIER_PINCTRL_GROUP_SINGLE(port257, port_range1, 66),
  1129. UNIPHIER_PINCTRL_GROUP_SINGLE(port260, port_range1, 67),
  1130. UNIPHIER_PINCTRL_GROUP_SINGLE(port261, port_range1, 68),
  1131. UNIPHIER_PINCTRL_GROUP_SINGLE(port262, port_range1, 69),
  1132. UNIPHIER_PINCTRL_GROUP_SINGLE(port263, port_range1, 70),
  1133. UNIPHIER_PINCTRL_GROUP_SINGLE(port264, port_range1, 71),
  1134. UNIPHIER_PINCTRL_GROUP_SINGLE(port265, port_range1, 72),
  1135. UNIPHIER_PINCTRL_GROUP_SINGLE(port266, port_range1, 73),
  1136. UNIPHIER_PINCTRL_GROUP_SINGLE(port267, port_range1, 74),
  1137. UNIPHIER_PINCTRL_GROUP_SINGLE(port270, port_range1, 75),
  1138. UNIPHIER_PINCTRL_GROUP_SINGLE(port271, port_range1, 76),
  1139. UNIPHIER_PINCTRL_GROUP_SINGLE(port272, port_range1, 77),
  1140. UNIPHIER_PINCTRL_GROUP_SINGLE(port273, port_range1, 78),
  1141. UNIPHIER_PINCTRL_GROUP_SINGLE(port274, port_range1, 79),
  1142. UNIPHIER_PINCTRL_GROUP_SINGLE(port275, port_range1, 80),
  1143. UNIPHIER_PINCTRL_GROUP_SINGLE(port276, port_range1, 81),
  1144. UNIPHIER_PINCTRL_GROUP_SINGLE(port277, port_range1, 82),
  1145. UNIPHIER_PINCTRL_GROUP_SINGLE(port280, port_range1, 83),
  1146. UNIPHIER_PINCTRL_GROUP_SINGLE(port281, port_range1, 84),
  1147. UNIPHIER_PINCTRL_GROUP_SINGLE(port282, port_range1, 85),
  1148. UNIPHIER_PINCTRL_GROUP_SINGLE(port283, port_range1, 86),
  1149. UNIPHIER_PINCTRL_GROUP_SINGLE(port284, port_range1, 87),
  1150. UNIPHIER_PINCTRL_GROUP_SINGLE(port285, port_range1, 88),
  1151. UNIPHIER_PINCTRL_GROUP_SINGLE(port286, port_range1, 89),
  1152. UNIPHIER_PINCTRL_GROUP_SINGLE(port287, port_range1, 90),
  1153. UNIPHIER_PINCTRL_GROUP_SINGLE(port290, port_range1, 91),
  1154. UNIPHIER_PINCTRL_GROUP_SINGLE(port291, port_range1, 92),
  1155. UNIPHIER_PINCTRL_GROUP_SINGLE(port292, port_range1, 93),
  1156. UNIPHIER_PINCTRL_GROUP_SINGLE(port293, port_range1, 94),
  1157. UNIPHIER_PINCTRL_GROUP_SINGLE(port294, port_range1, 95),
  1158. UNIPHIER_PINCTRL_GROUP_SINGLE(port295, port_range1, 96),
  1159. UNIPHIER_PINCTRL_GROUP_SINGLE(port296, port_range1, 97),
  1160. UNIPHIER_PINCTRL_GROUP_SINGLE(port297, port_range1, 98),
  1161. UNIPHIER_PINCTRL_GROUP_SINGLE(port300, port_range1, 99),
  1162. UNIPHIER_PINCTRL_GROUP_SINGLE(port301, port_range1, 100),
  1163. UNIPHIER_PINCTRL_GROUP_SINGLE(port302, port_range1, 101),
  1164. UNIPHIER_PINCTRL_GROUP_SINGLE(port303, port_range1, 102),
  1165. UNIPHIER_PINCTRL_GROUP_SINGLE(port304, port_range1, 103),
  1166. UNIPHIER_PINCTRL_GROUP_SINGLE(port305, port_range1, 104),
  1167. UNIPHIER_PINCTRL_GROUP_SINGLE(port306, port_range1, 105),
  1168. UNIPHIER_PINCTRL_GROUP_SINGLE(port307, port_range1, 106),
  1169. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq0, xirq, 0),
  1170. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq1, xirq, 1),
  1171. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq2, xirq, 2),
  1172. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq3, xirq, 3),
  1173. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq4, xirq, 4),
  1174. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq5, xirq, 5),
  1175. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq6, xirq, 6),
  1176. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq7, xirq, 7),
  1177. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq8, xirq, 8),
  1178. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq9, xirq, 9),
  1179. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq10, xirq, 10),
  1180. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq11, xirq, 11),
  1181. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq12, xirq, 12),
  1182. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq13, xirq, 13),
  1183. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq14, xirq, 14),
  1184. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq15, xirq, 15),
  1185. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq16, xirq, 16),
  1186. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq17, xirq, 17),
  1187. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq18, xirq, 18),
  1188. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq19, xirq, 19),
  1189. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq20, xirq, 20),
  1190. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq3b, xirq_alternatives, 0),
  1191. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq4b, xirq_alternatives, 1),
  1192. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq16b, xirq_alternatives, 2),
  1193. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq17b, xirq_alternatives, 3),
  1194. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq17c, xirq_alternatives, 4),
  1195. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq18b, xirq_alternatives, 5),
  1196. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq18c, xirq_alternatives, 6),
  1197. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq19b, xirq_alternatives, 7),
  1198. UNIPHIER_PINCTRL_GROUP_SINGLE(xirq20b, xirq_alternatives, 8),
  1199. };
  1200. static const char * const emmc_groups[] = {"emmc", "emmc_dat8"};
  1201. static const char * const i2c0_groups[] = {"i2c0"};
  1202. static const char * const i2c1_groups[] = {"i2c1"};
  1203. static const char * const i2c2_groups[] = {"i2c2"};
  1204. static const char * const i2c3_groups[] = {"i2c3"};
  1205. static const char * const i2c5_groups[] = {"i2c5", "i2c5b", "i2c5c"};
  1206. static const char * const i2c6_groups[] = {"i2c6"};
  1207. static const char * const nand_groups[] = {"nand", "nand_cs1"};
  1208. static const char * const sd_groups[] = {"sd"};
  1209. static const char * const uart0_groups[] = {"uart0", "uart0b"};
  1210. static const char * const uart1_groups[] = {"uart1"};
  1211. static const char * const uart2_groups[] = {"uart2"};
  1212. static const char * const uart3_groups[] = {"uart3"};
  1213. static const char * const usb0_groups[] = {"usb0"};
  1214. static const char * const usb1_groups[] = {"usb1"};
  1215. static const char * const usb2_groups[] = {"usb2"};
  1216. static const char * const port_groups[] = {
  1217. "port00", "port01", "port02", "port03",
  1218. "port04", "port05", "port06", "port07",
  1219. "port10", "port11", "port12", "port13",
  1220. "port14", "port15", "port16", "port17",
  1221. "port20", "port21", "port22", "port23",
  1222. "port24", "port25", "port26", "port27",
  1223. "port30", "port31", "port32", "port33",
  1224. "port34", "port35", "port36", "port37",
  1225. "port40", "port41", "port42", "port43",
  1226. "port44", "port45", "port46", "port47",
  1227. "port50", "port51", "port52", "port53",
  1228. "port54", "port55", "port56", "port57",
  1229. "port60", "port61", "port62", "port63",
  1230. "port64", "port65", "port66", "port67",
  1231. "port70", "port71", "port72", "port73",
  1232. "port74", "port75", "port76", "port77",
  1233. "port80", "port81", "port82", "port83",
  1234. "port84", "port85", "port86", "port87",
  1235. "port90", "port91", "port92", "port93",
  1236. "port94", "port95", "port96", "port97",
  1237. "port100", "port101", "port102", "port103",
  1238. "port104", "port105", "port106", "port107",
  1239. "port110", "port111", "port112", "port113",
  1240. "port114", "port115", "port116", "port117",
  1241. "port120", "port121", "port122", "port123",
  1242. "port124", "port125", "port126", "port127",
  1243. "port130", "port131", "port132", "port133",
  1244. "port134", "port135", "port136", "port137",
  1245. "port140", "port141", "port142", "port143",
  1246. "port144", "port145", "port146", "port147",
  1247. /* port150-174 missing */
  1248. /* none */ "port175", "port176", "port177",
  1249. "port180", "port181", "port182", "port183",
  1250. "port184", "port185", "port186", "port187",
  1251. "port190", "port191", "port192", "port193",
  1252. "port194", "port195", "port196", "port197",
  1253. "port200", "port201", "port202", "port203",
  1254. "port204", "port205", "port206", "port207",
  1255. "port210", "port211", "port212", "port213",
  1256. "port214", "port215", "port216", "port217",
  1257. "port220", "port221", "port222", "port223",
  1258. "port224", "port225", "port226", "port227",
  1259. "port230", "port231", "port232", "port233",
  1260. "port234", "port235", "port236", "port237",
  1261. "port240", "port241", "port242", "port243",
  1262. "port244", "port245", "port246", "port247",
  1263. "port250", "port251", "port252", "port253",
  1264. "port254", "port255", "port256", "port257",
  1265. "port260", "port261", "port262", "port263",
  1266. "port264", "port265", "port266", "port267",
  1267. "port270", "port271", "port272", "port273",
  1268. "port274", "port275", "port276", "port277",
  1269. "port280", "port281", "port282", "port283",
  1270. "port284", "port285", "port286", "port287",
  1271. "port290", "port291", "port292", "port293",
  1272. "port294", "port295", "port296", "port297",
  1273. "port300", "port301", "port302", "port303",
  1274. "port304", "port305", "port306", "port307",
  1275. };
  1276. static const char * const xirq_groups[] = {
  1277. "xirq0", "xirq1", "xirq2", "xirq3",
  1278. "xirq4", "xirq5", "xirq6", "xirq7",
  1279. "xirq8", "xirq9", "xirq10", "xirq11",
  1280. "xirq12", "xirq13", "xirq14", "xirq15",
  1281. "xirq16", "xirq17", "xirq18", "xirq19",
  1282. "xirq20",
  1283. "xirq3b", "xirq4b", "xirq16b", "xirq17b", "xirq17c",
  1284. "xirq18b", "xirq18c", "xirq19b", "xirq20b",
  1285. };
  1286. static const struct uniphier_pinmux_function ph1_pro5_functions[] = {
  1287. UNIPHIER_PINMUX_FUNCTION(emmc),
  1288. UNIPHIER_PINMUX_FUNCTION(i2c0),
  1289. UNIPHIER_PINMUX_FUNCTION(i2c1),
  1290. UNIPHIER_PINMUX_FUNCTION(i2c2),
  1291. UNIPHIER_PINMUX_FUNCTION(i2c3),
  1292. UNIPHIER_PINMUX_FUNCTION(i2c5),
  1293. UNIPHIER_PINMUX_FUNCTION(i2c6),
  1294. UNIPHIER_PINMUX_FUNCTION(nand),
  1295. UNIPHIER_PINMUX_FUNCTION(sd),
  1296. UNIPHIER_PINMUX_FUNCTION(uart0),
  1297. UNIPHIER_PINMUX_FUNCTION(uart1),
  1298. UNIPHIER_PINMUX_FUNCTION(uart2),
  1299. UNIPHIER_PINMUX_FUNCTION(uart3),
  1300. UNIPHIER_PINMUX_FUNCTION(usb0),
  1301. UNIPHIER_PINMUX_FUNCTION(usb1),
  1302. UNIPHIER_PINMUX_FUNCTION(usb2),
  1303. UNIPHIER_PINMUX_FUNCTION(port),
  1304. UNIPHIER_PINMUX_FUNCTION(xirq),
  1305. };
  1306. static struct uniphier_pinctrl_socdata ph1_pro5_pindata = {
  1307. .groups = ph1_pro5_groups,
  1308. .groups_count = ARRAY_SIZE(ph1_pro5_groups),
  1309. .functions = ph1_pro5_functions,
  1310. .functions_count = ARRAY_SIZE(ph1_pro5_functions),
  1311. .mux_bits = 4,
  1312. .reg_stride = 8,
  1313. .load_pinctrl = true,
  1314. };
  1315. static struct pinctrl_desc ph1_pro5_pinctrl_desc = {
  1316. .name = DRIVER_NAME,
  1317. .pins = ph1_pro5_pins,
  1318. .npins = ARRAY_SIZE(ph1_pro5_pins),
  1319. .owner = THIS_MODULE,
  1320. };
  1321. static int ph1_pro5_pinctrl_probe(struct platform_device *pdev)
  1322. {
  1323. return uniphier_pinctrl_probe(pdev, &ph1_pro5_pinctrl_desc,
  1324. &ph1_pro5_pindata);
  1325. }
  1326. static const struct of_device_id ph1_pro5_pinctrl_match[] = {
  1327. { .compatible = "socionext,ph1-pro5-pinctrl" },
  1328. { /* sentinel */ }
  1329. };
  1330. MODULE_DEVICE_TABLE(of, ph1_pro5_pinctrl_match);
  1331. static struct platform_driver ph1_pro5_pinctrl_driver = {
  1332. .probe = ph1_pro5_pinctrl_probe,
  1333. .remove = uniphier_pinctrl_remove,
  1334. .driver = {
  1335. .name = DRIVER_NAME,
  1336. .of_match_table = ph1_pro5_pinctrl_match,
  1337. },
  1338. };
  1339. module_platform_driver(ph1_pro5_pinctrl_driver);
  1340. MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
  1341. MODULE_DESCRIPTION("UniPhier PH1-Pro5 pinctrl driver");
  1342. MODULE_LICENSE("GPL");