pinctrl-aspeed-g5.c 89 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586
  1. /*
  2. * Copyright (C) 2016 IBM Corp.
  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. #include <linux/bitops.h>
  10. #include <linux/init.h>
  11. #include <linux/io.h>
  12. #include <linux/kernel.h>
  13. #include <linux/mfd/syscon.h>
  14. #include <linux/mutex.h>
  15. #include <linux/of.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/pinctrl/pinctrl.h>
  18. #include <linux/pinctrl/pinmux.h>
  19. #include <linux/pinctrl/pinconf.h>
  20. #include <linux/pinctrl/pinconf-generic.h>
  21. #include <linux/string.h>
  22. #include <linux/types.h>
  23. #include "../core.h"
  24. #include "../pinctrl-utils.h"
  25. #include "pinctrl-aspeed.h"
  26. #define ASPEED_G5_NR_PINS 236
  27. #define COND1 { ASPEED_IP_SCU, SCU90, BIT(6), 0, 0 }
  28. #define COND2 { ASPEED_IP_SCU, SCU94, GENMASK(1, 0), 0, 0 }
  29. /* LHCR0 is offset from the end of the H8S/2168-compatible registers */
  30. #define LHCR0 0x20
  31. #define GFX064 0x64
  32. #define B14 0
  33. SSSF_PIN_DECL(B14, GPIOA0, MAC1LINK, SIG_DESC_SET(SCU80, 0));
  34. #define D14 1
  35. SSSF_PIN_DECL(D14, GPIOA1, MAC2LINK, SIG_DESC_SET(SCU80, 1));
  36. #define D13 2
  37. SIG_EXPR_LIST_DECL_SINGLE(SPI1CS1, SPI1CS1, SIG_DESC_SET(SCU80, 15));
  38. SIG_EXPR_LIST_DECL_SINGLE(TIMER3, TIMER3, SIG_DESC_SET(SCU80, 2));
  39. MS_PIN_DECL(D13, GPIOA2, SPI1CS1, TIMER3);
  40. FUNC_GROUP_DECL(SPI1CS1, D13);
  41. FUNC_GROUP_DECL(TIMER3, D13);
  42. #define E13 3
  43. SSSF_PIN_DECL(E13, GPIOA3, TIMER4, SIG_DESC_SET(SCU80, 3));
  44. #define I2C9_DESC SIG_DESC_SET(SCU90, 22)
  45. #define C14 4
  46. SIG_EXPR_LIST_DECL_SINGLE(SCL9, I2C9, I2C9_DESC, COND1);
  47. SIG_EXPR_LIST_DECL_SINGLE(TIMER5, TIMER5, SIG_DESC_SET(SCU80, 4), COND1);
  48. MS_PIN_DECL(C14, GPIOA4, SCL9, TIMER5);
  49. FUNC_GROUP_DECL(TIMER5, C14);
  50. #define A13 5
  51. SIG_EXPR_LIST_DECL_SINGLE(SDA9, I2C9, I2C9_DESC, COND1);
  52. SIG_EXPR_LIST_DECL_SINGLE(TIMER6, TIMER6, SIG_DESC_SET(SCU80, 5), COND1);
  53. MS_PIN_DECL(A13, GPIOA5, SDA9, TIMER6);
  54. FUNC_GROUP_DECL(TIMER6, A13);
  55. FUNC_GROUP_DECL(I2C9, C14, A13);
  56. #define MDIO2_DESC SIG_DESC_SET(SCU90, 2)
  57. #define C13 6
  58. SIG_EXPR_LIST_DECL_SINGLE(MDC2, MDIO2, MDIO2_DESC, COND1);
  59. SIG_EXPR_LIST_DECL_SINGLE(TIMER7, TIMER7, SIG_DESC_SET(SCU80, 6), COND1);
  60. MS_PIN_DECL(C13, GPIOA6, MDC2, TIMER7);
  61. FUNC_GROUP_DECL(TIMER7, C13);
  62. #define B13 7
  63. SIG_EXPR_LIST_DECL_SINGLE(MDIO2, MDIO2, MDIO2_DESC, COND1);
  64. SIG_EXPR_LIST_DECL_SINGLE(TIMER8, TIMER8, SIG_DESC_SET(SCU80, 7), COND1);
  65. MS_PIN_DECL(B13, GPIOA7, MDIO2, TIMER8);
  66. FUNC_GROUP_DECL(TIMER8, B13);
  67. FUNC_GROUP_DECL(MDIO2, C13, B13);
  68. #define K19 8
  69. GPIO_PIN_DECL(K19, GPIOB0);
  70. #define L19 9
  71. GPIO_PIN_DECL(L19, GPIOB1);
  72. #define L18 10
  73. GPIO_PIN_DECL(L18, GPIOB2);
  74. #define K18 11
  75. GPIO_PIN_DECL(K18, GPIOB3);
  76. #define J20 12
  77. SSSF_PIN_DECL(J20, GPIOB4, USBCKI, SIG_DESC_SET(HW_STRAP1, 23));
  78. #define H21 13
  79. #define H21_DESC SIG_DESC_SET(SCU80, 13)
  80. SIG_EXPR_LIST_DECL_SINGLE(LPCPD, LPCPD, H21_DESC);
  81. SIG_EXPR_LIST_DECL_SINGLE(LPCSMI, LPCSMI, H21_DESC);
  82. MS_PIN_DECL(H21, GPIOB5, LPCPD, LPCSMI);
  83. FUNC_GROUP_DECL(LPCPD, H21);
  84. FUNC_GROUP_DECL(LPCSMI, H21);
  85. #define H22 14
  86. SSSF_PIN_DECL(H22, GPIOB6, LPCPME, SIG_DESC_SET(SCU80, 14));
  87. #define H20 15
  88. GPIO_PIN_DECL(H20, GPIOB7);
  89. #define SD1_DESC SIG_DESC_SET(SCU90, 0)
  90. #define C12 16
  91. #define I2C10_DESC SIG_DESC_SET(SCU90, 23)
  92. SIG_EXPR_LIST_DECL_SINGLE(SD1CLK, SD1, SD1_DESC);
  93. SIG_EXPR_LIST_DECL_SINGLE(SCL10, I2C10, I2C10_DESC);
  94. MS_PIN_DECL(C12, GPIOC0, SD1CLK, SCL10);
  95. #define A12 17
  96. SIG_EXPR_LIST_DECL_SINGLE(SD1CMD, SD1, SD1_DESC);
  97. SIG_EXPR_LIST_DECL_SINGLE(SDA10, I2C10, I2C10_DESC);
  98. MS_PIN_DECL(A12, GPIOC1, SD1CMD, SDA10);
  99. FUNC_GROUP_DECL(I2C10, C12, A12);
  100. #define B12 18
  101. #define I2C11_DESC SIG_DESC_SET(SCU90, 24)
  102. SIG_EXPR_LIST_DECL_SINGLE(SD1DAT0, SD1, SD1_DESC);
  103. SIG_EXPR_LIST_DECL_SINGLE(SCL11, I2C11, I2C11_DESC);
  104. MS_PIN_DECL(B12, GPIOC2, SD1DAT0, SCL11);
  105. #define D9 19
  106. SIG_EXPR_LIST_DECL_SINGLE(SD1DAT1, SD1, SD1_DESC);
  107. SIG_EXPR_LIST_DECL_SINGLE(SDA11, I2C11, I2C11_DESC);
  108. MS_PIN_DECL(D9, GPIOC3, SD1DAT1, SDA11);
  109. FUNC_GROUP_DECL(I2C11, B12, D9);
  110. #define D10 20
  111. #define I2C12_DESC SIG_DESC_SET(SCU90, 25)
  112. SIG_EXPR_LIST_DECL_SINGLE(SD1DAT2, SD1, SD1_DESC);
  113. SIG_EXPR_LIST_DECL_SINGLE(SCL12, I2C12, I2C12_DESC);
  114. MS_PIN_DECL(D10, GPIOC4, SD1DAT2, SCL12);
  115. #define E12 21
  116. SIG_EXPR_LIST_DECL_SINGLE(SD1DAT3, SD1, SD1_DESC);
  117. SIG_EXPR_LIST_DECL_SINGLE(SDA12, I2C12, I2C12_DESC);
  118. MS_PIN_DECL(E12, GPIOC5, SD1DAT3, SDA12);
  119. FUNC_GROUP_DECL(I2C12, D10, E12);
  120. #define C11 22
  121. #define I2C13_DESC SIG_DESC_SET(SCU90, 26)
  122. SIG_EXPR_LIST_DECL_SINGLE(SD1CD, SD1, SD1_DESC);
  123. SIG_EXPR_LIST_DECL_SINGLE(SCL13, I2C13, I2C13_DESC);
  124. MS_PIN_DECL(C11, GPIOC6, SD1CD, SCL13);
  125. #define B11 23
  126. SIG_EXPR_LIST_DECL_SINGLE(SD1WP, SD1, SD1_DESC);
  127. SIG_EXPR_LIST_DECL_SINGLE(SDA13, I2C13, I2C13_DESC);
  128. MS_PIN_DECL(B11, GPIOC7, SD1WP, SDA13);
  129. FUNC_GROUP_DECL(I2C13, C11, B11);
  130. FUNC_GROUP_DECL(SD1, C12, A12, B12, D9, D10, E12, C11, B11);
  131. #define SD2_DESC SIG_DESC_SET(SCU90, 1)
  132. #define GPID0_DESC SIG_DESC_SET(SCU8C, 8)
  133. #define GPID_DESC SIG_DESC_SET(HW_STRAP1, 21)
  134. #define F19 24
  135. SIG_EXPR_LIST_DECL_SINGLE(SD2CLK, SD2, SD2_DESC);
  136. SIG_EXPR_DECL(GPID0IN, GPID0, GPID0_DESC);
  137. SIG_EXPR_DECL(GPID0IN, GPID, GPID_DESC);
  138. SIG_EXPR_LIST_DECL_DUAL(GPID0IN, GPID0, GPID);
  139. MS_PIN_DECL(F19, GPIOD0, SD2CLK, GPID0IN);
  140. #define E21 25
  141. SIG_EXPR_LIST_DECL_SINGLE(SD2CMD, SD2, SD2_DESC);
  142. SIG_EXPR_DECL(GPID0OUT, GPID0, GPID0_DESC);
  143. SIG_EXPR_DECL(GPID0OUT, GPID, GPID_DESC);
  144. SIG_EXPR_LIST_DECL_DUAL(GPID0OUT, GPID0, GPID);
  145. MS_PIN_DECL(E21, GPIOD1, SD2CMD, GPID0OUT);
  146. FUNC_GROUP_DECL(GPID0, F19, E21);
  147. #define GPID2_DESC SIG_DESC_SET(SCU8C, 9)
  148. #define F20 26
  149. SIG_EXPR_LIST_DECL_SINGLE(SD2DAT0, SD2, SD2_DESC);
  150. SIG_EXPR_DECL(GPID2IN, GPID2, GPID2_DESC);
  151. SIG_EXPR_DECL(GPID2IN, GPID, GPID_DESC);
  152. SIG_EXPR_LIST_DECL_DUAL(GPID2IN, GPID2, GPID);
  153. MS_PIN_DECL(F20, GPIOD2, SD2DAT0, GPID2IN);
  154. #define D20 27
  155. SIG_EXPR_LIST_DECL_SINGLE(SD2DAT1, SD2, SD2_DESC);
  156. SIG_EXPR_DECL(GPID2OUT, GPID2, GPID2_DESC);
  157. SIG_EXPR_DECL(GPID2OUT, GPID, GPID_DESC);
  158. SIG_EXPR_LIST_DECL_DUAL(GPID2OUT, GPID2, GPID);
  159. MS_PIN_DECL(D20, GPIOD3, SD2DAT1, GPID2OUT);
  160. FUNC_GROUP_DECL(GPID2, F20, D20);
  161. #define GPID4_DESC SIG_DESC_SET(SCU8C, 10)
  162. #define D21 28
  163. SIG_EXPR_LIST_DECL_SINGLE(SD2DAT2, SD2, SD2_DESC);
  164. SIG_EXPR_DECL(GPID4IN, GPID4, GPID4_DESC);
  165. SIG_EXPR_DECL(GPID4IN, GPID, GPID_DESC);
  166. SIG_EXPR_LIST_DECL_DUAL(GPID4IN, GPID4, GPID);
  167. MS_PIN_DECL(D21, GPIOD4, SD2DAT2, GPID4IN);
  168. #define E20 29
  169. SIG_EXPR_LIST_DECL_SINGLE(SD2DAT3, SD2, SD2_DESC);
  170. SIG_EXPR_DECL(GPID4OUT, GPID4, GPID4_DESC);
  171. SIG_EXPR_DECL(GPID4OUT, GPID, GPID_DESC);
  172. SIG_EXPR_LIST_DECL_DUAL(GPID4OUT, GPID4, GPID);
  173. MS_PIN_DECL(E20, GPIOD5, SD2DAT3, GPID4OUT);
  174. FUNC_GROUP_DECL(GPID4, D21, E20);
  175. #define GPID6_DESC SIG_DESC_SET(SCU8C, 11)
  176. #define G18 30
  177. SIG_EXPR_LIST_DECL_SINGLE(SD2CD, SD2, SD2_DESC);
  178. SIG_EXPR_DECL(GPID6IN, GPID6, GPID6_DESC);
  179. SIG_EXPR_DECL(GPID6IN, GPID, GPID_DESC);
  180. SIG_EXPR_LIST_DECL_DUAL(GPID6IN, GPID6, GPID);
  181. MS_PIN_DECL(G18, GPIOD6, SD2CD, GPID6IN);
  182. #define C21 31
  183. SIG_EXPR_LIST_DECL_SINGLE(SD2WP, SD2, SD2_DESC);
  184. SIG_EXPR_DECL(GPID6OUT, GPID6, GPID6_DESC);
  185. SIG_EXPR_DECL(GPID6OUT, GPID, GPID_DESC);
  186. SIG_EXPR_LIST_DECL_DUAL(GPID6OUT, GPID6, GPID);
  187. MS_PIN_DECL(C21, GPIOD7, SD2WP, GPID6OUT);
  188. FUNC_GROUP_DECL(GPID6, G18, C21);
  189. FUNC_GROUP_DECL(SD2, F19, E21, F20, D20, D21, E20, G18, C21);
  190. #define GPIE_DESC SIG_DESC_SET(HW_STRAP1, 22)
  191. #define GPIE0_DESC SIG_DESC_SET(SCU8C, 12)
  192. #define B20 32
  193. SIG_EXPR_LIST_DECL_SINGLE(NCTS3, NCTS3, SIG_DESC_SET(SCU80, 16));
  194. SIG_EXPR_DECL(GPIE0IN, GPIE0, GPIE0_DESC);
  195. SIG_EXPR_DECL(GPIE0IN, GPIE, GPIE_DESC);
  196. SIG_EXPR_LIST_DECL_DUAL(GPIE0IN, GPIE0, GPIE);
  197. MS_PIN_DECL(B20, GPIOE0, NCTS3, GPIE0IN);
  198. FUNC_GROUP_DECL(NCTS3, B20);
  199. #define C20 33
  200. SIG_EXPR_LIST_DECL_SINGLE(NDCD3, NDCD3, SIG_DESC_SET(SCU80, 17));
  201. SIG_EXPR_DECL(GPIE0OUT, GPIE0, GPIE0_DESC);
  202. SIG_EXPR_DECL(GPIE0OUT, GPIE, GPIE_DESC);
  203. SIG_EXPR_LIST_DECL_DUAL(GPIE0OUT, GPIE0, GPIE);
  204. MS_PIN_DECL(C20, GPIOE1, NDCD3, GPIE0OUT);
  205. FUNC_GROUP_DECL(NDCD3, C20);
  206. FUNC_GROUP_DECL(GPIE0, B20, C20);
  207. #define GPIE2_DESC SIG_DESC_SET(SCU8C, 13)
  208. #define F18 34
  209. SIG_EXPR_LIST_DECL_SINGLE(NDSR3, NDSR3, SIG_DESC_SET(SCU80, 18));
  210. SIG_EXPR_DECL(GPIE2IN, GPIE2, GPIE2_DESC);
  211. SIG_EXPR_DECL(GPIE2IN, GPIE, GPIE_DESC);
  212. SIG_EXPR_LIST_DECL_DUAL(GPIE2IN, GPIE2, GPIE);
  213. MS_PIN_DECL(F18, GPIOE2, NDSR3, GPIE2IN);
  214. FUNC_GROUP_DECL(NDSR3, F18);
  215. #define F17 35
  216. SIG_EXPR_LIST_DECL_SINGLE(NRI3, NRI3, SIG_DESC_SET(SCU80, 19));
  217. SIG_EXPR_DECL(GPIE2OUT, GPIE2, GPIE2_DESC);
  218. SIG_EXPR_DECL(GPIE2OUT, GPIE, GPIE_DESC);
  219. SIG_EXPR_LIST_DECL_DUAL(GPIE2OUT, GPIE2, GPIE);
  220. MS_PIN_DECL(F17, GPIOE3, NRI3, GPIE2OUT);
  221. FUNC_GROUP_DECL(NRI3, F17);
  222. FUNC_GROUP_DECL(GPIE2, F18, F17);
  223. #define GPIE4_DESC SIG_DESC_SET(SCU8C, 14)
  224. #define E18 36
  225. SIG_EXPR_LIST_DECL_SINGLE(NDTR3, NDTR3, SIG_DESC_SET(SCU80, 20));
  226. SIG_EXPR_DECL(GPIE4IN, GPIE4, GPIE4_DESC);
  227. SIG_EXPR_DECL(GPIE4IN, GPIE, GPIE_DESC);
  228. SIG_EXPR_LIST_DECL_DUAL(GPIE4IN, GPIE4, GPIE);
  229. MS_PIN_DECL(E18, GPIOE4, NDTR3, GPIE4IN);
  230. FUNC_GROUP_DECL(NDTR3, E18);
  231. #define D19 37
  232. SIG_EXPR_LIST_DECL_SINGLE(NRTS3, NRTS3, SIG_DESC_SET(SCU80, 21));
  233. SIG_EXPR_DECL(GPIE4OUT, GPIE4, GPIE4_DESC);
  234. SIG_EXPR_DECL(GPIE4OUT, GPIE, GPIE_DESC);
  235. SIG_EXPR_LIST_DECL_DUAL(GPIE4OUT, GPIE4, GPIE);
  236. MS_PIN_DECL(D19, GPIOE5, NRTS3, GPIE4OUT);
  237. FUNC_GROUP_DECL(NRTS3, D19);
  238. FUNC_GROUP_DECL(GPIE4, E18, D19);
  239. #define GPIE6_DESC SIG_DESC_SET(SCU8C, 15)
  240. #define A20 38
  241. SIG_EXPR_LIST_DECL_SINGLE(TXD3, TXD3, SIG_DESC_SET(SCU80, 22));
  242. SIG_EXPR_DECL(GPIE6IN, GPIE6, GPIE6_DESC);
  243. SIG_EXPR_DECL(GPIE6IN, GPIE, GPIE_DESC);
  244. SIG_EXPR_LIST_DECL_DUAL(GPIE6IN, GPIE6, GPIE);
  245. MS_PIN_DECL(A20, GPIOE6, TXD3, GPIE6IN);
  246. FUNC_GROUP_DECL(TXD3, A20);
  247. #define B19 39
  248. SIG_EXPR_LIST_DECL_SINGLE(RXD3, RXD3, SIG_DESC_SET(SCU80, 23));
  249. SIG_EXPR_DECL(GPIE6OUT, GPIE6, GPIE6_DESC);
  250. SIG_EXPR_DECL(GPIE6OUT, GPIE, GPIE_DESC);
  251. SIG_EXPR_LIST_DECL_DUAL(GPIE6OUT, GPIE6, GPIE);
  252. MS_PIN_DECL(B19, GPIOE7, RXD3, GPIE6OUT);
  253. FUNC_GROUP_DECL(RXD3, B19);
  254. FUNC_GROUP_DECL(GPIE6, A20, B19);
  255. #define LPCHC_DESC SIG_DESC_IP_SET(ASPEED_IP_LPC, LHCR0, 0)
  256. #define LPCPLUS_DESC SIG_DESC_SET(SCU90, 30)
  257. #define J19 40
  258. SIG_EXPR_DECL(LHAD0, LPCHC, LPCHC_DESC);
  259. SIG_EXPR_DECL(LHAD0, LPCPLUS, LPCPLUS_DESC);
  260. SIG_EXPR_LIST_DECL_DUAL(LHAD0, LPCHC, LPCPLUS);
  261. SIG_EXPR_LIST_DECL_SINGLE(NCTS4, NCTS4, SIG_DESC_SET(SCU80, 24));
  262. MS_PIN_DECL(J19, GPIOF0, LHAD0, NCTS4);
  263. FUNC_GROUP_DECL(NCTS4, J19);
  264. #define J18 41
  265. SIG_EXPR_DECL(LHAD1, LPCHC, LPCHC_DESC);
  266. SIG_EXPR_DECL(LHAD1, LPCPLUS, LPCPLUS_DESC);
  267. SIG_EXPR_LIST_DECL_DUAL(LHAD1, LPCHC, LPCPLUS);
  268. SIG_EXPR_LIST_DECL_SINGLE(NDCD4, NDCD4, SIG_DESC_SET(SCU80, 25));
  269. MS_PIN_DECL(J18, GPIOF1, LHAD1, NDCD4);
  270. FUNC_GROUP_DECL(NDCD4, J18);
  271. #define B22 42
  272. SIG_EXPR_DECL(LHAD2, LPCHC, LPCHC_DESC);
  273. SIG_EXPR_DECL(LHAD2, LPCPLUS, LPCPLUS_DESC);
  274. SIG_EXPR_LIST_DECL_DUAL(LHAD2, LPCHC, LPCPLUS);
  275. SIG_EXPR_LIST_DECL_SINGLE(NDSR4, NDSR4, SIG_DESC_SET(SCU80, 26));
  276. MS_PIN_DECL(B22, GPIOF2, LHAD2, NDSR4);
  277. FUNC_GROUP_DECL(NDSR4, B22);
  278. #define B21 43
  279. SIG_EXPR_DECL(LHAD3, LPCHC, LPCHC_DESC);
  280. SIG_EXPR_DECL(LHAD3, LPCPLUS, LPCPLUS_DESC);
  281. SIG_EXPR_LIST_DECL_DUAL(LHAD3, LPCHC, LPCPLUS);
  282. SIG_EXPR_LIST_DECL_SINGLE(NRI4, NRI4, SIG_DESC_SET(SCU80, 27));
  283. MS_PIN_DECL(B21, GPIOF3, LHAD3, NRI4);
  284. FUNC_GROUP_DECL(NRI4, B21);
  285. #define A21 44
  286. SIG_EXPR_DECL(LHCLK, LPCHC, LPCHC_DESC);
  287. SIG_EXPR_DECL(LHCLK, LPCPLUS, LPCPLUS_DESC);
  288. SIG_EXPR_LIST_DECL_DUAL(LHCLK, LPCHC, LPCPLUS);
  289. SIG_EXPR_LIST_DECL_SINGLE(NDTR4, NDTR4, SIG_DESC_SET(SCU80, 28));
  290. MS_PIN_DECL(A21, GPIOF4, LHCLK, NDTR4);
  291. FUNC_GROUP_DECL(NDTR4, A21);
  292. #define H19 45
  293. SIG_EXPR_DECL(LHFRAME, LPCHC, LPCHC_DESC);
  294. SIG_EXPR_DECL(LHFRAME, LPCPLUS, LPCPLUS_DESC);
  295. SIG_EXPR_LIST_DECL_DUAL(LHFRAME, LPCHC, LPCPLUS);
  296. SIG_EXPR_LIST_DECL_SINGLE(NRTS4, NRTS4, SIG_DESC_SET(SCU80, 29));
  297. MS_PIN_DECL(H19, GPIOF5, LHFRAME, NRTS4);
  298. FUNC_GROUP_DECL(NRTS4, H19);
  299. #define G17 46
  300. SIG_EXPR_LIST_DECL_SINGLE(LHSIRQ, LPCHC, LPCHC_DESC);
  301. SIG_EXPR_LIST_DECL_SINGLE(TXD4, TXD4, SIG_DESC_SET(SCU80, 30));
  302. MS_PIN_DECL(G17, GPIOF6, LHSIRQ, TXD4);
  303. FUNC_GROUP_DECL(TXD4, G17);
  304. #define H18 47
  305. SIG_EXPR_DECL(LHRST, LPCHC, LPCHC_DESC);
  306. SIG_EXPR_DECL(LHRST, LPCPLUS, LPCPLUS_DESC);
  307. SIG_EXPR_LIST_DECL_DUAL(LHRST, LPCHC, LPCPLUS);
  308. SIG_EXPR_LIST_DECL_SINGLE(RXD4, RXD4, SIG_DESC_SET(SCU80, 31));
  309. MS_PIN_DECL(H18, GPIOF7, LHRST, RXD4);
  310. FUNC_GROUP_DECL(RXD4, H18);
  311. FUNC_GROUP_DECL(LPCHC, J19, J18, B22, B21, A21, H19, G17, H18);
  312. FUNC_GROUP_DECL(LPCPLUS, J19, J18, B22, B21, A21, H19, H18);
  313. #define A19 48
  314. SIG_EXPR_LIST_DECL_SINGLE(SGPS1CK, SGPS1, COND1, SIG_DESC_SET(SCU84, 0));
  315. SS_PIN_DECL(A19, GPIOG0, SGPS1CK);
  316. #define E19 49
  317. SIG_EXPR_LIST_DECL_SINGLE(SGPS1LD, SGPS1, COND1, SIG_DESC_SET(SCU84, 1));
  318. SS_PIN_DECL(E19, GPIOG1, SGPS1LD);
  319. #define C19 50
  320. SIG_EXPR_LIST_DECL_SINGLE(SGPS1I0, SGPS1, COND1, SIG_DESC_SET(SCU84, 2));
  321. SS_PIN_DECL(C19, GPIOG2, SGPS1I0);
  322. #define E16 51
  323. SIG_EXPR_LIST_DECL_SINGLE(SGPS1I1, SGPS1, COND1, SIG_DESC_SET(SCU84, 3));
  324. SS_PIN_DECL(E16, GPIOG3, SGPS1I1);
  325. FUNC_GROUP_DECL(SGPS1, A19, E19, C19, E16);
  326. #define SGPS2_DESC SIG_DESC_SET(SCU94, 12)
  327. #define E17 52
  328. SIG_EXPR_LIST_DECL_SINGLE(SGPS2CK, SGPS2, COND1, SGPS2_DESC);
  329. SIG_EXPR_LIST_DECL_SINGLE(SALT1, SALT1, COND1, SIG_DESC_SET(SCU84, 4));
  330. MS_PIN_DECL(E17, GPIOG4, SGPS2CK, SALT1);
  331. FUNC_GROUP_DECL(SALT1, E17);
  332. #define D16 53
  333. SIG_EXPR_LIST_DECL_SINGLE(SGPS2LD, SGPS2, COND1, SGPS2_DESC);
  334. SIG_EXPR_LIST_DECL_SINGLE(SALT2, SALT2, COND1, SIG_DESC_SET(SCU84, 5));
  335. MS_PIN_DECL(D16, GPIOG5, SGPS2LD, SALT2);
  336. FUNC_GROUP_DECL(SALT2, D16);
  337. #define D15 54
  338. SIG_EXPR_LIST_DECL_SINGLE(SGPS2I0, SGPS2, COND1, SGPS2_DESC);
  339. SIG_EXPR_LIST_DECL_SINGLE(SALT3, SALT3, COND1, SIG_DESC_SET(SCU84, 6));
  340. MS_PIN_DECL(D15, GPIOG6, SGPS2I0, SALT3);
  341. FUNC_GROUP_DECL(SALT3, D15);
  342. #define E14 55
  343. SIG_EXPR_LIST_DECL_SINGLE(SGPS2I1, SGPS2, COND1, SGPS2_DESC);
  344. SIG_EXPR_LIST_DECL_SINGLE(SALT4, SALT4, COND1, SIG_DESC_SET(SCU84, 7));
  345. MS_PIN_DECL(E14, GPIOG7, SGPS2I1, SALT4);
  346. FUNC_GROUP_DECL(SALT4, E14);
  347. FUNC_GROUP_DECL(SGPS2, E17, D16, D15, E14);
  348. #define UART6_DESC SIG_DESC_SET(SCU90, 7)
  349. #define A18 56
  350. SIG_EXPR_LIST_DECL_SINGLE(DASHA18, DASHA18, COND1, SIG_DESC_SET(SCU94, 5));
  351. SIG_EXPR_LIST_DECL_SINGLE(NCTS6, UART6, COND1, UART6_DESC);
  352. MS_PIN_DECL(A18, GPIOH0, DASHA18, NCTS6);
  353. #define B18 57
  354. SIG_EXPR_LIST_DECL_SINGLE(DASHB18, DASHB18, COND1, SIG_DESC_SET(SCU94, 5));
  355. SIG_EXPR_LIST_DECL_SINGLE(NDCD6, UART6, COND1, UART6_DESC);
  356. MS_PIN_DECL(B18, GPIOH1, DASHB18, NDCD6);
  357. #define D17 58
  358. SIG_EXPR_LIST_DECL_SINGLE(DASHD17, DASHD17, COND1, SIG_DESC_SET(SCU94, 6));
  359. SIG_EXPR_LIST_DECL_SINGLE(NDSR6, UART6, COND1, UART6_DESC);
  360. MS_PIN_DECL(D17, GPIOH2, DASHD17, NDSR6);
  361. #define C17 59
  362. SIG_EXPR_LIST_DECL_SINGLE(DASHC17, DASHC17, COND1, SIG_DESC_SET(SCU94, 6));
  363. SIG_EXPR_LIST_DECL_SINGLE(NRI6, UART6, COND1, UART6_DESC);
  364. MS_PIN_DECL(C17, GPIOH3, DASHC17, NRI6);
  365. #define A17 60
  366. SIG_EXPR_LIST_DECL_SINGLE(DASHA17, DASHA17, COND1, SIG_DESC_SET(SCU94, 7));
  367. SIG_EXPR_LIST_DECL_SINGLE(NDTR6, UART6, COND1, UART6_DESC);
  368. MS_PIN_DECL(A17, GPIOH4, DASHA17, NDTR6);
  369. #define B17 61
  370. SIG_EXPR_LIST_DECL_SINGLE(DASHB17, DASHB17, COND1, SIG_DESC_SET(SCU94, 7));
  371. SIG_EXPR_LIST_DECL_SINGLE(NRTS6, UART6, COND1, UART6_DESC);
  372. MS_PIN_DECL(B17, GPIOH5, DASHB17, NRTS6);
  373. #define A16 62
  374. SIG_EXPR_LIST_DECL_SINGLE(TXD6, UART6, COND1, UART6_DESC);
  375. SS_PIN_DECL(A16, GPIOH6, TXD6);
  376. #define D18 63
  377. SIG_EXPR_LIST_DECL_SINGLE(RXD6, UART6, COND1, UART6_DESC);
  378. SS_PIN_DECL(D18, GPIOH7, RXD6);
  379. FUNC_GROUP_DECL(UART6, A18, B18, D17, C17, A17, B17, A16, D18);
  380. #define SPI1_DESC \
  381. { ASPEED_IP_SCU, HW_STRAP1, GENMASK(13, 12), 1, 0 }
  382. #define SPI1DEBUG_DESC \
  383. { ASPEED_IP_SCU, HW_STRAP1, GENMASK(13, 12), 2, 0 }
  384. #define SPI1PASSTHRU_DESC \
  385. { ASPEED_IP_SCU, HW_STRAP1, GENMASK(13, 12), 3, 0 }
  386. #define C18 64
  387. SIG_EXPR_DECL(SYSCS, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  388. SIG_EXPR_DECL(SYSCS, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  389. SIG_EXPR_LIST_DECL_DUAL(SYSCS, SPI1DEBUG, SPI1PASSTHRU);
  390. SS_PIN_DECL(C18, GPIOI0, SYSCS);
  391. #define E15 65
  392. SIG_EXPR_DECL(SYSCK, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  393. SIG_EXPR_DECL(SYSCK, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  394. SIG_EXPR_LIST_DECL_DUAL(SYSCK, SPI1DEBUG, SPI1PASSTHRU);
  395. SS_PIN_DECL(E15, GPIOI1, SYSCK);
  396. #define B16 66
  397. SIG_EXPR_DECL(SYSMOSI, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  398. SIG_EXPR_DECL(SYSMOSI, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  399. SIG_EXPR_LIST_DECL_DUAL(SYSMOSI, SPI1DEBUG, SPI1PASSTHRU);
  400. SS_PIN_DECL(B16, GPIOI2, SYSMOSI);
  401. #define C16 67
  402. SIG_EXPR_DECL(SYSMISO, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  403. SIG_EXPR_DECL(SYSMISO, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  404. SIG_EXPR_LIST_DECL_DUAL(SYSMISO, SPI1DEBUG, SPI1PASSTHRU);
  405. SS_PIN_DECL(C16, GPIOI3, SYSMISO);
  406. #define VB_DESC SIG_DESC_SET(HW_STRAP1, 5)
  407. #define B15 68
  408. SIG_EXPR_DECL(SPI1CS0, SPI1, COND1, SPI1_DESC);
  409. SIG_EXPR_DECL(SPI1CS0, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  410. SIG_EXPR_DECL(SPI1CS0, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  411. SIG_EXPR_LIST_DECL(SPI1CS0, SIG_EXPR_PTR(SPI1CS0, SPI1),
  412. SIG_EXPR_PTR(SPI1CS0, SPI1DEBUG),
  413. SIG_EXPR_PTR(SPI1CS0, SPI1PASSTHRU));
  414. SIG_EXPR_LIST_DECL_SINGLE(VBCS, VGABIOSROM, COND1, VB_DESC);
  415. MS_PIN_DECL(B15, GPIOI4, SPI1CS0, VBCS);
  416. #define C15 69
  417. SIG_EXPR_DECL(SPI1CK, SPI1, COND1, SPI1_DESC);
  418. SIG_EXPR_DECL(SPI1CK, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  419. SIG_EXPR_DECL(SPI1CK, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  420. SIG_EXPR_LIST_DECL(SPI1CK, SIG_EXPR_PTR(SPI1CK, SPI1),
  421. SIG_EXPR_PTR(SPI1CK, SPI1DEBUG),
  422. SIG_EXPR_PTR(SPI1CK, SPI1PASSTHRU));
  423. SIG_EXPR_LIST_DECL_SINGLE(VBCK, VGABIOSROM, COND1, VB_DESC);
  424. MS_PIN_DECL(C15, GPIOI5, SPI1CK, VBCK);
  425. #define A14 70
  426. SIG_EXPR_DECL(SPI1MOSI, SPI1, COND1, SPI1_DESC);
  427. SIG_EXPR_DECL(SPI1MOSI, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  428. SIG_EXPR_DECL(SPI1MOSI, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  429. SIG_EXPR_LIST_DECL(SPI1MOSI, SIG_EXPR_PTR(SPI1MOSI, SPI1),
  430. SIG_EXPR_PTR(SPI1MOSI, SPI1DEBUG),
  431. SIG_EXPR_PTR(SPI1MOSI, SPI1PASSTHRU));
  432. SIG_EXPR_LIST_DECL_SINGLE(VBMOSI, VGABIOSROM, COND1, VB_DESC);
  433. MS_PIN_DECL(A14, GPIOI6, SPI1MOSI, VBMOSI);
  434. #define A15 71
  435. SIG_EXPR_DECL(SPI1MISO, SPI1, COND1, SPI1_DESC);
  436. SIG_EXPR_DECL(SPI1MISO, SPI1DEBUG, COND1, SPI1DEBUG_DESC);
  437. SIG_EXPR_DECL(SPI1MISO, SPI1PASSTHRU, COND1, SPI1PASSTHRU_DESC);
  438. SIG_EXPR_LIST_DECL(SPI1MISO, SIG_EXPR_PTR(SPI1MISO, SPI1),
  439. SIG_EXPR_PTR(SPI1MISO, SPI1DEBUG),
  440. SIG_EXPR_PTR(SPI1MISO, SPI1PASSTHRU));
  441. SIG_EXPR_LIST_DECL_SINGLE(VBMISO, VGABIOSROM, COND1, VB_DESC);
  442. MS_PIN_DECL(A15, GPIOI7, SPI1MISO, VBMISO);
  443. FUNC_GROUP_DECL(SPI1, B15, C15, A14, A15);
  444. FUNC_GROUP_DECL(SPI1DEBUG, C18, E15, B16, C16, B15, C15, A14, A15);
  445. FUNC_GROUP_DECL(SPI1PASSTHRU, C18, E15, B16, C16, B15, C15, A14, A15);
  446. FUNC_GROUP_DECL(VGABIOSROM, B15, C15, A14, A15);
  447. #define R2 72
  448. SIG_EXPR_LIST_DECL_SINGLE(SGPMCK, SGPM, SIG_DESC_SET(SCU84, 8));
  449. SS_PIN_DECL(R2, GPIOJ0, SGPMCK);
  450. #define L2 73
  451. SIG_EXPR_LIST_DECL_SINGLE(SGPMLD, SGPM, SIG_DESC_SET(SCU84, 9));
  452. SS_PIN_DECL(L2, GPIOJ1, SGPMLD);
  453. #define N3 74
  454. SIG_EXPR_LIST_DECL_SINGLE(SGPMO, SGPM, SIG_DESC_SET(SCU84, 10));
  455. SS_PIN_DECL(N3, GPIOJ2, SGPMO);
  456. #define N4 75
  457. SIG_EXPR_LIST_DECL_SINGLE(SGPMI, SGPM, SIG_DESC_SET(SCU84, 11));
  458. SS_PIN_DECL(N4, GPIOJ3, SGPMI);
  459. #define N5 76
  460. SIG_EXPR_LIST_DECL_SINGLE(VGAHS, VGAHS, SIG_DESC_SET(SCU84, 12));
  461. SIG_EXPR_LIST_DECL_SINGLE(DASHN5, DASHN5, SIG_DESC_SET(SCU94, 8));
  462. MS_PIN_DECL(N5, GPIOJ4, VGAHS, DASHN5);
  463. FUNC_GROUP_DECL(VGAHS, N5);
  464. #define R4 77
  465. SIG_EXPR_LIST_DECL_SINGLE(VGAVS, VGAVS, SIG_DESC_SET(SCU84, 13));
  466. SIG_EXPR_LIST_DECL_SINGLE(DASHR4, DASHR4, SIG_DESC_SET(SCU94, 8));
  467. MS_PIN_DECL(R4, GPIOJ5, VGAVS, DASHR4);
  468. FUNC_GROUP_DECL(VGAVS, R4);
  469. #define R3 78
  470. SIG_EXPR_LIST_DECL_SINGLE(DDCCLK, DDCCLK, SIG_DESC_SET(SCU84, 14));
  471. SIG_EXPR_LIST_DECL_SINGLE(DASHR3, DASHR3, SIG_DESC_SET(SCU94, 9));
  472. MS_PIN_DECL(R3, GPIOJ6, DDCCLK, DASHR3);
  473. FUNC_GROUP_DECL(DDCCLK, R3);
  474. #define T3 79
  475. SIG_EXPR_LIST_DECL_SINGLE(DDCDAT, DDCDAT, SIG_DESC_SET(SCU84, 15));
  476. SIG_EXPR_LIST_DECL_SINGLE(DASHT3, DASHT3, SIG_DESC_SET(SCU94, 9));
  477. MS_PIN_DECL(T3, GPIOJ7, DDCDAT, DASHT3);
  478. FUNC_GROUP_DECL(DDCDAT, T3);
  479. #define I2C5_DESC SIG_DESC_SET(SCU90, 18)
  480. #define L3 80
  481. SIG_EXPR_LIST_DECL_SINGLE(SCL5, I2C5, I2C5_DESC);
  482. SS_PIN_DECL(L3, GPIOK0, SCL5);
  483. #define L4 81
  484. SIG_EXPR_LIST_DECL_SINGLE(SDA5, I2C5, I2C5_DESC);
  485. SS_PIN_DECL(L4, GPIOK1, SDA5);
  486. FUNC_GROUP_DECL(I2C5, L3, L4);
  487. #define I2C6_DESC SIG_DESC_SET(SCU90, 19)
  488. #define L1 82
  489. SIG_EXPR_LIST_DECL_SINGLE(SCL6, I2C6, I2C6_DESC);
  490. SS_PIN_DECL(L1, GPIOK2, SCL6);
  491. #define N2 83
  492. SIG_EXPR_LIST_DECL_SINGLE(SDA6, I2C6, I2C6_DESC);
  493. SS_PIN_DECL(N2, GPIOK3, SDA6);
  494. FUNC_GROUP_DECL(I2C6, L1, N2);
  495. #define I2C7_DESC SIG_DESC_SET(SCU90, 20)
  496. #define N1 84
  497. SIG_EXPR_LIST_DECL_SINGLE(SCL7, I2C7, I2C7_DESC);
  498. SS_PIN_DECL(N1, GPIOK4, SCL7);
  499. #define P1 85
  500. SIG_EXPR_LIST_DECL_SINGLE(SDA7, I2C7, I2C7_DESC);
  501. SS_PIN_DECL(P1, GPIOK5, SDA7);
  502. FUNC_GROUP_DECL(I2C7, N1, P1);
  503. #define I2C8_DESC SIG_DESC_SET(SCU90, 21)
  504. #define P2 86
  505. SIG_EXPR_LIST_DECL_SINGLE(SCL8, I2C8, I2C8_DESC);
  506. SS_PIN_DECL(P2, GPIOK6, SCL8);
  507. #define R1 87
  508. SIG_EXPR_LIST_DECL_SINGLE(SDA8, I2C8, I2C8_DESC);
  509. SS_PIN_DECL(R1, GPIOK7, SDA8);
  510. FUNC_GROUP_DECL(I2C8, P2, R1);
  511. #define T2 88
  512. SSSF_PIN_DECL(T2, GPIOL0, NCTS1, SIG_DESC_SET(SCU84, 16));
  513. #define VPIOFF0_DESC { ASPEED_IP_SCU, SCU90, GENMASK(5, 4), 0, 0 }
  514. #define VPIOFF1_DESC { ASPEED_IP_SCU, SCU90, GENMASK(5, 4), 1, 0 }
  515. #define VPI24_DESC { ASPEED_IP_SCU, SCU90, GENMASK(5, 4), 2, 0 }
  516. #define VPIRSVD_DESC { ASPEED_IP_SCU, SCU90, GENMASK(5, 4), 3, 0 }
  517. #define VPI_24_RSVD_DESC SIG_DESC_SET(SCU90, 5)
  518. #define T1 89
  519. #define T1_DESC SIG_DESC_SET(SCU84, 17)
  520. SIG_EXPR_LIST_DECL_SINGLE(VPIDE, VPI24, VPI_24_RSVD_DESC, T1_DESC, COND2);
  521. SIG_EXPR_LIST_DECL_SINGLE(NDCD1, NDCD1, T1_DESC, COND2);
  522. MS_PIN_DECL(T1, GPIOL1, VPIDE, NDCD1);
  523. FUNC_GROUP_DECL(NDCD1, T1);
  524. #define U1 90
  525. #define U1_DESC SIG_DESC_SET(SCU84, 18)
  526. SIG_EXPR_LIST_DECL_SINGLE(DASHU1, VPI24, VPI_24_RSVD_DESC, U1_DESC);
  527. SIG_EXPR_LIST_DECL_SINGLE(NDSR1, NDSR1, U1_DESC);
  528. MS_PIN_DECL(U1, GPIOL2, DASHU1, NDSR1);
  529. FUNC_GROUP_DECL(NDSR1, U1);
  530. #define U2 91
  531. #define U2_DESC SIG_DESC_SET(SCU84, 19)
  532. SIG_EXPR_LIST_DECL_SINGLE(VPIHS, VPI24, VPI_24_RSVD_DESC, U2_DESC, COND2);
  533. SIG_EXPR_LIST_DECL_SINGLE(NRI1, NRI1, U2_DESC, COND2);
  534. MS_PIN_DECL(U2, GPIOL3, VPIHS, NRI1);
  535. FUNC_GROUP_DECL(NRI1, U2);
  536. #define P4 92
  537. #define P4_DESC SIG_DESC_SET(SCU84, 20)
  538. SIG_EXPR_LIST_DECL_SINGLE(VPIVS, VPI24, VPI_24_RSVD_DESC, P4_DESC, COND2);
  539. SIG_EXPR_LIST_DECL_SINGLE(NDTR1, NDTR1, P4_DESC, COND2);
  540. MS_PIN_DECL(P4, GPIOL4, VPIVS, NDTR1);
  541. FUNC_GROUP_DECL(NDTR1, P4);
  542. #define P3 93
  543. #define P3_DESC SIG_DESC_SET(SCU84, 21)
  544. SIG_EXPR_LIST_DECL_SINGLE(VPICLK, VPI24, VPI_24_RSVD_DESC, P3_DESC, COND2);
  545. SIG_EXPR_LIST_DECL_SINGLE(NRTS1, NRTS1, P3_DESC, COND2);
  546. MS_PIN_DECL(P3, GPIOL5, VPICLK, NRTS1);
  547. FUNC_GROUP_DECL(NRTS1, P3);
  548. #define V1 94
  549. #define V1_DESC SIG_DESC_SET(SCU84, 22)
  550. SIG_EXPR_LIST_DECL_SINGLE(DASHV1, DASHV1, VPIRSVD_DESC, V1_DESC);
  551. SIG_EXPR_LIST_DECL_SINGLE(TXD1, TXD1, V1_DESC, COND2);
  552. MS_PIN_DECL(V1, GPIOL6, DASHV1, TXD1);
  553. FUNC_GROUP_DECL(TXD1, V1);
  554. #define W1 95
  555. #define W1_DESC SIG_DESC_SET(SCU84, 23)
  556. SIG_EXPR_LIST_DECL_SINGLE(DASHW1, DASHW1, VPIRSVD_DESC, W1_DESC);
  557. SIG_EXPR_LIST_DECL_SINGLE(RXD1, RXD1, W1_DESC, COND2);
  558. MS_PIN_DECL(W1, GPIOL7, DASHW1, RXD1);
  559. FUNC_GROUP_DECL(RXD1, W1);
  560. #define Y1 96
  561. #define Y1_DESC SIG_DESC_SET(SCU84, 24)
  562. SIG_EXPR_LIST_DECL_SINGLE(VPIB2, VPI24, VPI_24_RSVD_DESC, Y1_DESC, COND2);
  563. SIG_EXPR_LIST_DECL_SINGLE(NCTS2, NCTS2, Y1_DESC, COND2);
  564. MS_PIN_DECL(Y1, GPIOM0, VPIB2, NCTS2);
  565. FUNC_GROUP_DECL(NCTS2, Y1);
  566. #define AB2 97
  567. #define AB2_DESC SIG_DESC_SET(SCU84, 25)
  568. SIG_EXPR_LIST_DECL_SINGLE(VPIB3, VPI24, VPI_24_RSVD_DESC, AB2_DESC, COND2);
  569. SIG_EXPR_LIST_DECL_SINGLE(NDCD2, NDCD2, AB2_DESC, COND2);
  570. MS_PIN_DECL(AB2, GPIOM1, VPIB3, NDCD2);
  571. FUNC_GROUP_DECL(NDCD2, AB2);
  572. #define AA1 98
  573. #define AA1_DESC SIG_DESC_SET(SCU84, 26)
  574. SIG_EXPR_LIST_DECL_SINGLE(VPIB4, VPI24, VPI_24_RSVD_DESC, AA1_DESC, COND2);
  575. SIG_EXPR_LIST_DECL_SINGLE(NDSR2, NDSR2, AA1_DESC, COND2);
  576. MS_PIN_DECL(AA1, GPIOM2, VPIB4, NDSR2);
  577. FUNC_GROUP_DECL(NDSR2, AA1);
  578. #define Y2 99
  579. #define Y2_DESC SIG_DESC_SET(SCU84, 27)
  580. SIG_EXPR_LIST_DECL_SINGLE(VPIB5, VPI24, VPI_24_RSVD_DESC, Y2_DESC, COND2);
  581. SIG_EXPR_LIST_DECL_SINGLE(NRI2, NRI2, Y2_DESC, COND2);
  582. MS_PIN_DECL(Y2, GPIOM3, VPIB5, NRI2);
  583. FUNC_GROUP_DECL(NRI2, Y2);
  584. #define AA2 100
  585. #define AA2_DESC SIG_DESC_SET(SCU84, 28)
  586. SIG_EXPR_LIST_DECL_SINGLE(VPIB6, VPI24, VPI_24_RSVD_DESC, AA2_DESC, COND2);
  587. SIG_EXPR_LIST_DECL_SINGLE(NDTR2, NDTR2, AA2_DESC, COND2);
  588. MS_PIN_DECL(AA2, GPIOM4, VPIB6, NDTR2);
  589. FUNC_GROUP_DECL(NDTR2, AA2);
  590. #define P5 101
  591. #define P5_DESC SIG_DESC_SET(SCU84, 29)
  592. SIG_EXPR_LIST_DECL_SINGLE(VPIB7, VPI24, VPI_24_RSVD_DESC, P5_DESC, COND2);
  593. SIG_EXPR_LIST_DECL_SINGLE(NRTS2, NRTS2, P5_DESC, COND2);
  594. MS_PIN_DECL(P5, GPIOM5, VPIB7, NRTS2);
  595. FUNC_GROUP_DECL(NRTS2, P5);
  596. #define R5 102
  597. #define R5_DESC SIG_DESC_SET(SCU84, 30)
  598. SIG_EXPR_LIST_DECL_SINGLE(VPIB8, VPI24, VPI_24_RSVD_DESC, R5_DESC, COND2);
  599. SIG_EXPR_LIST_DECL_SINGLE(TXD2, TXD2, R5_DESC, COND2);
  600. MS_PIN_DECL(R5, GPIOM6, VPIB8, TXD2);
  601. FUNC_GROUP_DECL(TXD2, R5);
  602. #define T5 103
  603. #define T5_DESC SIG_DESC_SET(SCU84, 31)
  604. SIG_EXPR_LIST_DECL_SINGLE(VPIB9, VPI24, VPI_24_RSVD_DESC, T5_DESC, COND2);
  605. SIG_EXPR_LIST_DECL_SINGLE(RXD2, RXD2, T5_DESC, COND2);
  606. MS_PIN_DECL(T5, GPIOM7, VPIB9, RXD2);
  607. FUNC_GROUP_DECL(RXD2, T5);
  608. #define V2 104
  609. #define V2_DESC SIG_DESC_SET(SCU88, 0)
  610. SIG_EXPR_LIST_DECL_SINGLE(DASHN0, DASHN0, VPIRSVD_DESC, V2_DESC);
  611. SIG_EXPR_LIST_DECL_SINGLE(PWM0, PWM0, V2_DESC, COND2);
  612. MS_PIN_DECL(V2, GPION0, DASHN0, PWM0);
  613. FUNC_GROUP_DECL(PWM0, V2);
  614. #define W2 105
  615. #define W2_DESC SIG_DESC_SET(SCU88, 1)
  616. SIG_EXPR_LIST_DECL_SINGLE(DASHN1, DASHN1, VPIRSVD_DESC, W2_DESC);
  617. SIG_EXPR_LIST_DECL_SINGLE(PWM1, PWM1, W2_DESC, COND2);
  618. MS_PIN_DECL(W2, GPION1, DASHN1, PWM1);
  619. FUNC_GROUP_DECL(PWM1, W2);
  620. #define V3 106
  621. #define V3_DESC SIG_DESC_SET(SCU88, 2)
  622. SIG_EXPR_DECL(VPIG2, VPI24, VPI24_DESC, V3_DESC, COND2);
  623. SIG_EXPR_DECL(VPIG2, VPIRSVD, VPIRSVD_DESC, V3_DESC, COND2);
  624. SIG_EXPR_LIST_DECL_DUAL(VPIG2, VPI24, VPIRSVD);
  625. SIG_EXPR_LIST_DECL_SINGLE(PWM2, PWM2, V3_DESC, COND2);
  626. MS_PIN_DECL(V3, GPION2, VPIG2, PWM2);
  627. FUNC_GROUP_DECL(PWM2, V3);
  628. #define U3 107
  629. #define U3_DESC SIG_DESC_SET(SCU88, 3)
  630. SIG_EXPR_DECL(VPIG3, VPI24, VPI24_DESC, U3_DESC, COND2);
  631. SIG_EXPR_DECL(VPIG3, VPIRSVD, VPIRSVD_DESC, U3_DESC, COND2);
  632. SIG_EXPR_LIST_DECL_DUAL(VPIG3, VPI24, VPIRSVD);
  633. SIG_EXPR_LIST_DECL_SINGLE(PWM3, PWM3, U3_DESC, COND2);
  634. MS_PIN_DECL(U3, GPION3, VPIG3, PWM3);
  635. FUNC_GROUP_DECL(PWM3, U3);
  636. #define W3 108
  637. #define W3_DESC SIG_DESC_SET(SCU88, 4)
  638. SIG_EXPR_DECL(VPIG4, VPI24, VPI24_DESC, W3_DESC, COND2);
  639. SIG_EXPR_DECL(VPIG4, VPIRSVD, VPIRSVD_DESC, W3_DESC, COND2);
  640. SIG_EXPR_LIST_DECL_DUAL(VPIG4, VPI24, VPIRSVD);
  641. SIG_EXPR_LIST_DECL_SINGLE(PWM4, PWM4, W3_DESC, COND2);
  642. MS_PIN_DECL(W3, GPION4, VPIG4, PWM4);
  643. FUNC_GROUP_DECL(PWM4, W3);
  644. #define AA3 109
  645. #define AA3_DESC SIG_DESC_SET(SCU88, 5)
  646. SIG_EXPR_DECL(VPIG5, VPI24, VPI24_DESC, AA3_DESC, COND2);
  647. SIG_EXPR_DECL(VPIG5, VPIRSVD, VPIRSVD_DESC, AA3_DESC, COND2);
  648. SIG_EXPR_LIST_DECL_DUAL(VPIG5, VPI24, VPIRSVD);
  649. SIG_EXPR_LIST_DECL_SINGLE(PWM5, PWM5, AA3_DESC, COND2);
  650. MS_PIN_DECL(AA3, GPION5, VPIG5, PWM5);
  651. FUNC_GROUP_DECL(PWM5, AA3);
  652. #define Y3 110
  653. #define Y3_DESC SIG_DESC_SET(SCU88, 6)
  654. SIG_EXPR_LIST_DECL_SINGLE(VPIG6, VPI24, VPI24_DESC, Y3_DESC);
  655. SIG_EXPR_LIST_DECL_SINGLE(PWM6, PWM6, Y3_DESC, COND2);
  656. MS_PIN_DECL(Y3, GPION6, VPIG6, PWM6);
  657. FUNC_GROUP_DECL(PWM6, Y3);
  658. #define T4 111
  659. #define T4_DESC SIG_DESC_SET(SCU88, 7)
  660. SIG_EXPR_LIST_DECL_SINGLE(VPIG7, VPI24, VPI24_DESC, T4_DESC);
  661. SIG_EXPR_LIST_DECL_SINGLE(PWM7, PWM7, T4_DESC, COND2);
  662. MS_PIN_DECL(T4, GPION7, VPIG7, PWM7);
  663. FUNC_GROUP_DECL(PWM7, T4);
  664. #define U5 112
  665. SIG_EXPR_LIST_DECL_SINGLE(VPIG8, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 8),
  666. COND2);
  667. SS_PIN_DECL(U5, GPIOO0, VPIG8);
  668. #define U4 113
  669. SIG_EXPR_LIST_DECL_SINGLE(VPIG9, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 9),
  670. COND2);
  671. SS_PIN_DECL(U4, GPIOO1, VPIG9);
  672. #define V5 114
  673. SIG_EXPR_LIST_DECL_SINGLE(DASHV5, DASHV5, VPI_24_RSVD_DESC,
  674. SIG_DESC_SET(SCU88, 10));
  675. SS_PIN_DECL(V5, GPIOO2, DASHV5);
  676. #define AB4 115
  677. SIG_EXPR_LIST_DECL_SINGLE(DASHAB4, DASHAB4, VPI_24_RSVD_DESC,
  678. SIG_DESC_SET(SCU88, 11));
  679. SS_PIN_DECL(AB4, GPIOO3, DASHAB4);
  680. #define AB3 116
  681. SIG_EXPR_LIST_DECL_SINGLE(VPIR2, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 12),
  682. COND2);
  683. SS_PIN_DECL(AB3, GPIOO4, VPIR2);
  684. #define Y4 117
  685. SIG_EXPR_LIST_DECL_SINGLE(VPIR3, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 13),
  686. COND2);
  687. SS_PIN_DECL(Y4, GPIOO5, VPIR3);
  688. #define AA4 118
  689. SIG_EXPR_LIST_DECL_SINGLE(VPIR4, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 14),
  690. COND2);
  691. SS_PIN_DECL(AA4, GPIOO6, VPIR4);
  692. #define W4 119
  693. SIG_EXPR_LIST_DECL_SINGLE(VPIR5, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 15),
  694. COND2);
  695. SS_PIN_DECL(W4, GPIOO7, VPIR5);
  696. #define V4 120
  697. SIG_EXPR_LIST_DECL_SINGLE(VPIR6, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 16),
  698. COND2);
  699. SS_PIN_DECL(V4, GPIOP0, VPIR6);
  700. #define W5 121
  701. SIG_EXPR_LIST_DECL_SINGLE(VPIR7, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 17),
  702. COND2);
  703. SS_PIN_DECL(W5, GPIOP1, VPIR7);
  704. #define AA5 122
  705. SIG_EXPR_LIST_DECL_SINGLE(VPIR8, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 18),
  706. COND2);
  707. SS_PIN_DECL(AA5, GPIOP2, VPIR8);
  708. #define AB5 123
  709. SIG_EXPR_LIST_DECL_SINGLE(VPIR9, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 19),
  710. COND2);
  711. SS_PIN_DECL(AB5, GPIOP3, VPIR9);
  712. FUNC_GROUP_DECL(VPI24, T1, U2, P4, P3, Y1, AB2, AA1, Y2, AA2, P5, R5, T5, V3,
  713. U3, W3, AA3, Y3, T4, U5, U4, AB3, Y4, AA4, W4, V4, W5, AA5,
  714. AB5);
  715. #define Y6 124
  716. SIG_EXPR_LIST_DECL_SINGLE(DASHY6, DASHY6, SIG_DESC_SET(SCU90, 28),
  717. SIG_DESC_SET(SCU88, 20));
  718. SS_PIN_DECL(Y6, GPIOP4, DASHY6);
  719. #define Y5 125
  720. SIG_EXPR_LIST_DECL_SINGLE(DASHY5, DASHY5, SIG_DESC_SET(SCU90, 28),
  721. SIG_DESC_SET(SCU88, 21));
  722. SS_PIN_DECL(Y5, GPIOP5, DASHY5);
  723. #define W6 126
  724. SIG_EXPR_LIST_DECL_SINGLE(DASHW6, DASHW6, SIG_DESC_SET(SCU90, 28),
  725. SIG_DESC_SET(SCU88, 22));
  726. SS_PIN_DECL(W6, GPIOP6, DASHW6);
  727. #define V6 127
  728. SIG_EXPR_LIST_DECL_SINGLE(DASHV6, DASHV6, SIG_DESC_SET(SCU90, 28),
  729. SIG_DESC_SET(SCU88, 23));
  730. SS_PIN_DECL(V6, GPIOP7, DASHV6);
  731. #define I2C3_DESC SIG_DESC_SET(SCU90, 16)
  732. #define A11 128
  733. SIG_EXPR_LIST_DECL_SINGLE(SCL3, I2C3, I2C3_DESC);
  734. SS_PIN_DECL(A11, GPIOQ0, SCL3);
  735. #define A10 129
  736. SIG_EXPR_LIST_DECL_SINGLE(SDA3, I2C3, I2C3_DESC);
  737. SS_PIN_DECL(A10, GPIOQ1, SDA3);
  738. FUNC_GROUP_DECL(I2C3, A11, A10);
  739. #define I2C4_DESC SIG_DESC_SET(SCU90, 17)
  740. #define A9 130
  741. SIG_EXPR_LIST_DECL_SINGLE(SCL4, I2C4, I2C4_DESC);
  742. SS_PIN_DECL(A9, GPIOQ2, SCL4);
  743. #define B9 131
  744. SIG_EXPR_LIST_DECL_SINGLE(SDA4, I2C4, I2C4_DESC);
  745. SS_PIN_DECL(B9, GPIOQ3, SDA4);
  746. FUNC_GROUP_DECL(I2C4, A9, B9);
  747. #define I2C14_DESC SIG_DESC_SET(SCU90, 27)
  748. #define N21 132
  749. SIG_EXPR_LIST_DECL_SINGLE(SCL14, I2C14, I2C14_DESC);
  750. SS_PIN_DECL(N21, GPIOQ4, SCL14);
  751. #define N22 133
  752. SIG_EXPR_LIST_DECL_SINGLE(SDA14, I2C14, I2C14_DESC);
  753. SS_PIN_DECL(N22, GPIOQ5, SDA14);
  754. FUNC_GROUP_DECL(I2C14, N21, N22);
  755. #define B10 134
  756. SSSF_PIN_DECL(B10, GPIOQ6, OSCCLK, SIG_DESC_SET(SCU2C, 1));
  757. #define N20 135
  758. SSSF_PIN_DECL(N20, GPIOQ7, PEWAKE, SIG_DESC_SET(SCU2C, 29));
  759. #define AA19 136
  760. SSSF_PIN_DECL(AA19, GPIOR0, FWSPICS1, SIG_DESC_SET(SCU88, 24), COND2);
  761. #define T19 137
  762. SSSF_PIN_DECL(T19, GPIOR1, FWSPICS2, SIG_DESC_SET(SCU88, 25), COND2);
  763. #define T17 138
  764. SSSF_PIN_DECL(T17, GPIOR2, SPI2CS0, SIG_DESC_SET(SCU88, 26), COND2);
  765. #define Y19 139
  766. SSSF_PIN_DECL(Y19, GPIOR3, SPI2CK, SIG_DESC_SET(SCU88, 27), COND2);
  767. #define W19 140
  768. SSSF_PIN_DECL(W19, GPIOR4, SPI2MOSI, SIG_DESC_SET(SCU88, 28), COND2);
  769. #define V19 141
  770. SSSF_PIN_DECL(V19, GPIOR5, SPI2MISO, SIG_DESC_SET(SCU88, 29), COND2);
  771. #define D8 142
  772. SIG_EXPR_LIST_DECL_SINGLE(MDC1, MDIO1, SIG_DESC_SET(SCU88, 30));
  773. SS_PIN_DECL(D8, GPIOR6, MDC1);
  774. #define E10 143
  775. SIG_EXPR_LIST_DECL_SINGLE(MDIO1, MDIO1, SIG_DESC_SET(SCU88, 31));
  776. SS_PIN_DECL(E10, GPIOR7, MDIO1);
  777. FUNC_GROUP_DECL(MDIO1, D8, E10);
  778. #define VPOOFF0_DESC { ASPEED_IP_SCU, SCU94, GENMASK(1, 0), 0, 0 }
  779. #define VPO_DESC { ASPEED_IP_SCU, SCU94, GENMASK(1, 0), 1, 0 }
  780. #define VPOOFF1_DESC { ASPEED_IP_SCU, SCU94, GENMASK(1, 0), 2, 0 }
  781. #define VPOOFF2_DESC { ASPEED_IP_SCU, SCU94, GENMASK(1, 0), 3, 0 }
  782. #define CRT_DVO_EN_DESC SIG_DESC_IP_SET(ASPEED_IP_GFX, GFX064, 7)
  783. #define V20 144
  784. #define V20_DESC SIG_DESC_SET(SCU8C, 0)
  785. SIG_EXPR_DECL(VPOB2, VPO, V20_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  786. SIG_EXPR_DECL(VPOB2, VPOOFF1, V20_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  787. SIG_EXPR_DECL(VPOB2, VPOOFF2, V20_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  788. SIG_EXPR_LIST_DECL(VPOB2, SIG_EXPR_PTR(VPOB2, VPO),
  789. SIG_EXPR_PTR(VPOB2, VPOOFF1), SIG_EXPR_PTR(VPOB2, VPOOFF2));
  790. SIG_EXPR_LIST_DECL_SINGLE(SPI2CS1, SPI2CS1, V20_DESC);
  791. MS_PIN_DECL(V20, GPIOS0, VPOB2, SPI2CS1);
  792. FUNC_GROUP_DECL(SPI2CS1, V20);
  793. #define U19 145
  794. #define U19_DESC SIG_DESC_SET(SCU8C, 1)
  795. SIG_EXPR_DECL(VPOB3, VPO, U19_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  796. SIG_EXPR_DECL(VPOB3, VPOOFF1, U19_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  797. SIG_EXPR_DECL(VPOB3, VPOOFF2, U19_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  798. SIG_EXPR_LIST_DECL(VPOB3, SIG_EXPR_PTR(VPOB3, VPO),
  799. SIG_EXPR_PTR(VPOB3, VPOOFF1), SIG_EXPR_PTR(VPOB3, VPOOFF2));
  800. SIG_EXPR_LIST_DECL_SINGLE(BMCINT, BMCINT, U19_DESC);
  801. MS_PIN_DECL(U19, GPIOS1, VPOB3, BMCINT);
  802. FUNC_GROUP_DECL(BMCINT, U19);
  803. #define R18 146
  804. #define R18_DESC SIG_DESC_SET(SCU8C, 2)
  805. SIG_EXPR_DECL(VPOB4, VPO, R18_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  806. SIG_EXPR_DECL(VPOB4, VPOOFF1, R18_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  807. SIG_EXPR_DECL(VPOB4, VPOOFF2, R18_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  808. SIG_EXPR_LIST_DECL(VPOB4, SIG_EXPR_PTR(VPOB4, VPO),
  809. SIG_EXPR_PTR(VPOB4, VPOOFF1), SIG_EXPR_PTR(VPOB4, VPOOFF2));
  810. SIG_EXPR_LIST_DECL_SINGLE(SALT5, SALT5, R18_DESC);
  811. MS_PIN_DECL(R18, GPIOS2, VPOB4, SALT5);
  812. FUNC_GROUP_DECL(SALT5, R18);
  813. #define P18 147
  814. #define P18_DESC SIG_DESC_SET(SCU8C, 3)
  815. SIG_EXPR_DECL(VPOB5, VPO, P18_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  816. SIG_EXPR_DECL(VPOB5, VPOOFF1, P18_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  817. SIG_EXPR_DECL(VPOB5, VPOOFF2, P18_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  818. SIG_EXPR_LIST_DECL(VPOB5, SIG_EXPR_PTR(VPOB5, VPO),
  819. SIG_EXPR_PTR(VPOB5, VPOOFF1), SIG_EXPR_PTR(VPOB5, VPOOFF2));
  820. SIG_EXPR_LIST_DECL_SINGLE(SALT6, SALT6, P18_DESC);
  821. MS_PIN_DECL(P18, GPIOS3, VPOB5, SALT6);
  822. FUNC_GROUP_DECL(SALT6, P18);
  823. #define R19 148
  824. #define R19_DESC SIG_DESC_SET(SCU8C, 4)
  825. SIG_EXPR_DECL(VPOB6, VPO, R19_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  826. SIG_EXPR_DECL(VPOB6, VPOOFF1, R19_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  827. SIG_EXPR_DECL(VPOB6, VPOOFF2, R19_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  828. SIG_EXPR_LIST_DECL(VPOB6, SIG_EXPR_PTR(VPOB6, VPO),
  829. SIG_EXPR_PTR(VPOB6, VPOOFF1), SIG_EXPR_PTR(VPOB6, VPOOFF2));
  830. SS_PIN_DECL(R19, GPIOS4, VPOB6);
  831. #define W20 149
  832. #define W20_DESC SIG_DESC_SET(SCU8C, 5)
  833. SIG_EXPR_DECL(VPOB7, VPO, W20_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  834. SIG_EXPR_DECL(VPOB7, VPOOFF1, W20_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  835. SIG_EXPR_DECL(VPOB7, VPOOFF2, W20_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  836. SIG_EXPR_LIST_DECL(VPOB7, SIG_EXPR_PTR(VPOB7, VPO),
  837. SIG_EXPR_PTR(VPOB7, VPOOFF1), SIG_EXPR_PTR(VPOB7, VPOOFF2));
  838. SS_PIN_DECL(W20, GPIOS5, VPOB7);
  839. #define U20 150
  840. #define U20_DESC SIG_DESC_SET(SCU8C, 6)
  841. SIG_EXPR_DECL(VPOB8, VPO, U20_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  842. SIG_EXPR_DECL(VPOB8, VPOOFF1, U20_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  843. SIG_EXPR_DECL(VPOB8, VPOOFF2, U20_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  844. SIG_EXPR_LIST_DECL(VPOB8, SIG_EXPR_PTR(VPOB8, VPO),
  845. SIG_EXPR_PTR(VPOB8, VPOOFF1), SIG_EXPR_PTR(VPOB8, VPOOFF2));
  846. SS_PIN_DECL(U20, GPIOS6, VPOB8);
  847. #define AA20 151
  848. #define AA20_DESC SIG_DESC_SET(SCU8C, 7)
  849. SIG_EXPR_DECL(VPOB9, VPO, AA20_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  850. SIG_EXPR_DECL(VPOB9, VPOOFF1, AA20_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  851. SIG_EXPR_DECL(VPOB9, VPOOFF2, AA20_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  852. SIG_EXPR_LIST_DECL(VPOB9, SIG_EXPR_PTR(VPOB9, VPO),
  853. SIG_EXPR_PTR(VPOB9, VPOOFF1), SIG_EXPR_PTR(VPOB9, VPOOFF2));
  854. SS_PIN_DECL(AA20, GPIOS7, VPOB9);
  855. /* RGMII1/RMII1 */
  856. #define RMII1_DESC SIG_DESC_BIT(HW_STRAP1, 6, 0)
  857. #define RMII2_DESC SIG_DESC_BIT(HW_STRAP1, 7, 0)
  858. #define B5 152
  859. SIG_EXPR_LIST_DECL_SINGLE(GPIOT0, GPIOT0, SIG_DESC_SET(SCUA0, 0));
  860. SIG_EXPR_LIST_DECL_SINGLE(RMII1RCLKO, RMII1, RMII1_DESC,
  861. SIG_DESC_SET(SCU48, 29));
  862. SIG_EXPR_LIST_DECL_SINGLE(RGMII1TXCK, RGMII1);
  863. MS_PIN_DECL_(B5, SIG_EXPR_LIST_PTR(GPIOT0), SIG_EXPR_LIST_PTR(RMII1RCLKO),
  864. SIG_EXPR_LIST_PTR(RGMII1TXCK));
  865. #define E9 153
  866. SIG_EXPR_LIST_DECL_SINGLE(GPIOT1, GPIOT1, SIG_DESC_SET(SCUA0, 1));
  867. SIG_EXPR_LIST_DECL_SINGLE(RMII1TXEN, RMII1, RMII1_DESC);
  868. SIG_EXPR_LIST_DECL_SINGLE(RGMII1TXCTL, RGMII1);
  869. MS_PIN_DECL_(E9, SIG_EXPR_LIST_PTR(GPIOT1), SIG_EXPR_LIST_PTR(RMII1TXEN),
  870. SIG_EXPR_LIST_PTR(RGMII1TXCTL));
  871. #define F9 154
  872. SIG_EXPR_LIST_DECL_SINGLE(GPIOT2, GPIOT2, SIG_DESC_SET(SCUA0, 2));
  873. SIG_EXPR_LIST_DECL_SINGLE(RMII1TXD0, RMII1, RMII1_DESC);
  874. SIG_EXPR_LIST_DECL_SINGLE(RGMII1TXD0, RGMII1);
  875. MS_PIN_DECL_(F9, SIG_EXPR_LIST_PTR(GPIOT2), SIG_EXPR_LIST_PTR(RMII1TXD0),
  876. SIG_EXPR_LIST_PTR(RGMII1TXD0));
  877. #define A5 155
  878. SIG_EXPR_LIST_DECL_SINGLE(GPIOT3, GPIOT3, SIG_DESC_SET(SCUA0, 3));
  879. SIG_EXPR_LIST_DECL_SINGLE(RMII1TXD1, RMII1, RMII1_DESC);
  880. SIG_EXPR_LIST_DECL_SINGLE(RGMII1TXD1, RGMII1);
  881. MS_PIN_DECL_(A5, SIG_EXPR_LIST_PTR(GPIOT3), SIG_EXPR_LIST_PTR(RMII1TXD1),
  882. SIG_EXPR_LIST_PTR(RGMII1TXD1));
  883. #define E7 156
  884. SIG_EXPR_LIST_DECL_SINGLE(GPIOT4, GPIOT4, SIG_DESC_SET(SCUA0, 4));
  885. SIG_EXPR_LIST_DECL_SINGLE(RMII1DASH0, RMII1, RMII1_DESC);
  886. SIG_EXPR_LIST_DECL_SINGLE(RGMII1TXD2, RGMII1);
  887. MS_PIN_DECL_(E7, SIG_EXPR_LIST_PTR(GPIOT4), SIG_EXPR_LIST_PTR(RMII1DASH0),
  888. SIG_EXPR_LIST_PTR(RGMII1TXD2));
  889. #define D7 157
  890. SIG_EXPR_LIST_DECL_SINGLE(GPIOT5, GPIOT5, SIG_DESC_SET(SCUA0, 5));
  891. SIG_EXPR_LIST_DECL_SINGLE(RMII1DASH1, RMII1, RMII1_DESC);
  892. SIG_EXPR_LIST_DECL_SINGLE(RGMII1TXD3, RGMII1);
  893. MS_PIN_DECL_(D7, SIG_EXPR_LIST_PTR(GPIOT5), SIG_EXPR_LIST_PTR(RMII1DASH1),
  894. SIG_EXPR_LIST_PTR(RGMII1TXD3));
  895. #define B2 158
  896. SIG_EXPR_LIST_DECL_SINGLE(GPIOT6, GPIOT6, SIG_DESC_SET(SCUA0, 6));
  897. SIG_EXPR_LIST_DECL_SINGLE(RMII2RCLKO, RMII2, RMII2_DESC,
  898. SIG_DESC_SET(SCU48, 30));
  899. SIG_EXPR_LIST_DECL_SINGLE(RGMII2TXCK, RGMII2);
  900. MS_PIN_DECL_(B2, SIG_EXPR_LIST_PTR(GPIOT6), SIG_EXPR_LIST_PTR(RMII2RCLKO),
  901. SIG_EXPR_LIST_PTR(RGMII2TXCK));
  902. #define B1 159
  903. SIG_EXPR_LIST_DECL_SINGLE(GPIOT7, GPIOT7, SIG_DESC_SET(SCUA0, 7));
  904. SIG_EXPR_LIST_DECL_SINGLE(RMII2TXEN, RMII2, RMII2_DESC);
  905. SIG_EXPR_LIST_DECL_SINGLE(RGMII2TXCTL, RGMII2);
  906. MS_PIN_DECL_(B1, SIG_EXPR_LIST_PTR(GPIOT7), SIG_EXPR_LIST_PTR(RMII2TXEN),
  907. SIG_EXPR_LIST_PTR(RGMII2TXCTL));
  908. #define A2 160
  909. SIG_EXPR_LIST_DECL_SINGLE(GPIOU0, GPIOU0, SIG_DESC_SET(SCUA0, 8));
  910. SIG_EXPR_LIST_DECL_SINGLE(RMII2TXD0, RMII2, RMII2_DESC);
  911. SIG_EXPR_LIST_DECL_SINGLE(RGMII2TXD0, RGMII2);
  912. MS_PIN_DECL_(A2, SIG_EXPR_LIST_PTR(GPIOU0), SIG_EXPR_LIST_PTR(RMII2TXD0),
  913. SIG_EXPR_LIST_PTR(RGMII2TXD0));
  914. #define B3 161
  915. SIG_EXPR_LIST_DECL_SINGLE(GPIOU1, GPIOU1, SIG_DESC_SET(SCUA0, 9));
  916. SIG_EXPR_LIST_DECL_SINGLE(RMII2TXD1, RMII2, RMII2_DESC);
  917. SIG_EXPR_LIST_DECL_SINGLE(RGMII2TXD1, RGMII2);
  918. MS_PIN_DECL_(B3, SIG_EXPR_LIST_PTR(GPIOU1), SIG_EXPR_LIST_PTR(RMII2TXD1),
  919. SIG_EXPR_LIST_PTR(RGMII2TXD1));
  920. #define D5 162
  921. SIG_EXPR_LIST_DECL_SINGLE(GPIOU2, GPIOU2, SIG_DESC_SET(SCUA0, 10));
  922. SIG_EXPR_LIST_DECL_SINGLE(RMII2DASH0, RMII2, RMII2_DESC);
  923. SIG_EXPR_LIST_DECL_SINGLE(RGMII2TXD2, RGMII2);
  924. MS_PIN_DECL_(D5, SIG_EXPR_LIST_PTR(GPIOU2), SIG_EXPR_LIST_PTR(RMII2DASH0),
  925. SIG_EXPR_LIST_PTR(RGMII2TXD2));
  926. #define D4 163
  927. SIG_EXPR_LIST_DECL_SINGLE(GPIOU3, GPIOU3, SIG_DESC_SET(SCUA0, 11));
  928. SIG_EXPR_LIST_DECL_SINGLE(RMII2DASH1, RMII2, RMII2_DESC);
  929. SIG_EXPR_LIST_DECL_SINGLE(RGMII2TXD3, RGMII2);
  930. MS_PIN_DECL_(D4, SIG_EXPR_LIST_PTR(GPIOU3), SIG_EXPR_LIST_PTR(RMII2DASH1),
  931. SIG_EXPR_LIST_PTR(RGMII2TXD3));
  932. #define B4 164
  933. SIG_EXPR_LIST_DECL_SINGLE(GPIOU4, GPIOU4, SIG_DESC_SET(SCUA0, 12));
  934. SIG_EXPR_LIST_DECL_SINGLE(RMII1RCLKI, RMII1, RMII1_DESC);
  935. SIG_EXPR_LIST_DECL_SINGLE(RGMII1RXCK, RGMII1);
  936. MS_PIN_DECL_(B4, SIG_EXPR_LIST_PTR(GPIOU4), SIG_EXPR_LIST_PTR(RMII1RCLKI),
  937. SIG_EXPR_LIST_PTR(RGMII1RXCK));
  938. #define A4 165
  939. SIG_EXPR_LIST_DECL_SINGLE(GPIOU5, GPIOU5, SIG_DESC_SET(SCUA0, 13));
  940. SIG_EXPR_LIST_DECL_SINGLE(RMII1DASH2, RMII1, RMII1_DESC);
  941. SIG_EXPR_LIST_DECL_SINGLE(RGMII1RXCTL, RGMII1);
  942. MS_PIN_DECL_(A4, SIG_EXPR_LIST_PTR(GPIOU5), SIG_EXPR_LIST_PTR(RMII1DASH2),
  943. SIG_EXPR_LIST_PTR(RGMII1RXCTL));
  944. #define A3 166
  945. SIG_EXPR_LIST_DECL_SINGLE(GPIOU6, GPIOU6, SIG_DESC_SET(SCUA0, 14));
  946. SIG_EXPR_LIST_DECL_SINGLE(RMII1RXD0, RMII1, RMII1_DESC);
  947. SIG_EXPR_LIST_DECL_SINGLE(RGMII1RXD0, RGMII1);
  948. MS_PIN_DECL_(A3, SIG_EXPR_LIST_PTR(GPIOU6), SIG_EXPR_LIST_PTR(RMII1RXD0),
  949. SIG_EXPR_LIST_PTR(RGMII1RXD0));
  950. #define D6 167
  951. SIG_EXPR_LIST_DECL_SINGLE(GPIOU7, GPIOU7, SIG_DESC_SET(SCUA0, 15));
  952. SIG_EXPR_LIST_DECL_SINGLE(RMII1RXD1, RMII1, RMII1_DESC);
  953. SIG_EXPR_LIST_DECL_SINGLE(RGMII1RXD1, RGMII1);
  954. MS_PIN_DECL_(D6, SIG_EXPR_LIST_PTR(GPIOU7), SIG_EXPR_LIST_PTR(RMII1RXD1),
  955. SIG_EXPR_LIST_PTR(RGMII1RXD1));
  956. #define C5 168
  957. SIG_EXPR_LIST_DECL_SINGLE(GPIOV0, GPIOV0, SIG_DESC_SET(SCUA0, 16));
  958. SIG_EXPR_LIST_DECL_SINGLE(RMII1CRSDV, RMII1, RMII1_DESC);
  959. SIG_EXPR_LIST_DECL_SINGLE(RGMII1RXD2, RGMII1);
  960. MS_PIN_DECL_(C5, SIG_EXPR_LIST_PTR(GPIOV0), SIG_EXPR_LIST_PTR(RMII1CRSDV),
  961. SIG_EXPR_LIST_PTR(RGMII1RXD2));
  962. #define C4 169
  963. SIG_EXPR_LIST_DECL_SINGLE(GPIOV1, GPIOV1, SIG_DESC_SET(SCUA0, 17));
  964. SIG_EXPR_LIST_DECL_SINGLE(RMII1RXER, RMII1, RMII1_DESC);
  965. SIG_EXPR_LIST_DECL_SINGLE(RGMII1RXD3, RGMII1);
  966. MS_PIN_DECL_(C4, SIG_EXPR_LIST_PTR(GPIOV1), SIG_EXPR_LIST_PTR(RMII1RXER),
  967. SIG_EXPR_LIST_PTR(RGMII1RXD3));
  968. FUNC_GROUP_DECL(RGMII1, B4, A4, A3, D6, C5, C4, B5, E9, F9, A5, E7, D7);
  969. FUNC_GROUP_DECL(RMII1, B4, A3, D6, C5, C4, B5, E9, F9, A5);
  970. #define C2 170
  971. SIG_EXPR_LIST_DECL_SINGLE(GPIOV2, GPIOV2, SIG_DESC_SET(SCUA0, 18));
  972. SIG_EXPR_LIST_DECL_SINGLE(RMII2RCLKI, RMII2, RMII2_DESC);
  973. SIG_EXPR_LIST_DECL_SINGLE(RGMII2RXCK, RGMII2);
  974. MS_PIN_DECL_(C2, SIG_EXPR_LIST_PTR(GPIOV2), SIG_EXPR_LIST_PTR(RMII2RCLKI),
  975. SIG_EXPR_LIST_PTR(RGMII2RXCK));
  976. #define C1 171
  977. SIG_EXPR_LIST_DECL_SINGLE(GPIOV3, GPIOV3, SIG_DESC_SET(SCUA0, 19));
  978. SIG_EXPR_LIST_DECL_SINGLE(RMII2DASH2, RMII2, RMII2_DESC);
  979. SIG_EXPR_LIST_DECL_SINGLE(RGMII2RXCTL, RGMII2);
  980. MS_PIN_DECL_(C1, SIG_EXPR_LIST_PTR(GPIOV3), SIG_EXPR_LIST_PTR(RMII2DASH2),
  981. SIG_EXPR_LIST_PTR(RGMII2RXCTL));
  982. #define C3 172
  983. SIG_EXPR_LIST_DECL_SINGLE(GPIOV4, GPIOV4, SIG_DESC_SET(SCUA0, 20));
  984. SIG_EXPR_LIST_DECL_SINGLE(RMII2RXD0, RMII2, RMII2_DESC);
  985. SIG_EXPR_LIST_DECL_SINGLE(RGMII2RXD0, RGMII2);
  986. MS_PIN_DECL_(C3, SIG_EXPR_LIST_PTR(GPIOV4), SIG_EXPR_LIST_PTR(RMII2RXD0),
  987. SIG_EXPR_LIST_PTR(RGMII2RXD0));
  988. #define D1 173
  989. SIG_EXPR_LIST_DECL_SINGLE(GPIOV5, GPIOV5, SIG_DESC_SET(SCUA0, 21));
  990. SIG_EXPR_LIST_DECL_SINGLE(RMII2RXD1, RMII2, RMII2_DESC);
  991. SIG_EXPR_LIST_DECL_SINGLE(RGMII2RXD1, RGMII2);
  992. MS_PIN_DECL_(D1, SIG_EXPR_LIST_PTR(GPIOV5), SIG_EXPR_LIST_PTR(RMII2RXD1),
  993. SIG_EXPR_LIST_PTR(RGMII2RXD1));
  994. #define D2 174
  995. SIG_EXPR_LIST_DECL_SINGLE(GPIOV6, GPIOV6, SIG_DESC_SET(SCUA0, 22));
  996. SIG_EXPR_LIST_DECL_SINGLE(RMII2CRSDV, RMII2, RMII2_DESC);
  997. SIG_EXPR_LIST_DECL_SINGLE(RGMII2RXD2, RGMII2);
  998. MS_PIN_DECL_(D2, SIG_EXPR_LIST_PTR(GPIOV6), SIG_EXPR_LIST_PTR(RMII2CRSDV),
  999. SIG_EXPR_LIST_PTR(RGMII2RXD2));
  1000. #define E6 175
  1001. SIG_EXPR_LIST_DECL_SINGLE(GPIOV7, GPIOV7, SIG_DESC_SET(SCUA0, 23));
  1002. SIG_EXPR_LIST_DECL_SINGLE(RMII2RXER, RMII2, RMII2_DESC);
  1003. SIG_EXPR_LIST_DECL_SINGLE(RGMII2RXD3, RGMII2);
  1004. MS_PIN_DECL_(E6, SIG_EXPR_LIST_PTR(GPIOV7), SIG_EXPR_LIST_PTR(RMII2RXER),
  1005. SIG_EXPR_LIST_PTR(RGMII2RXD3));
  1006. FUNC_GROUP_DECL(RGMII2, B2, B1, A2, B3, D5, D4, C2, C1, C3, D1, D2, E6);
  1007. FUNC_GROUP_DECL(RMII2, B2, B1, A2, B3, C2, C3, D1, D2, E6);
  1008. #define F4 176
  1009. SIG_EXPR_LIST_DECL_SINGLE(GPIOW0, GPIOW0, SIG_DESC_SET(SCUA0, 24));
  1010. SIG_EXPR_LIST_DECL_SINGLE(ADC0, ADC0);
  1011. MS_PIN_DECL_(F4, SIG_EXPR_LIST_PTR(GPIOW0), SIG_EXPR_LIST_PTR(ADC0));
  1012. FUNC_GROUP_DECL(ADC0, F4);
  1013. #define F5 177
  1014. SIG_EXPR_LIST_DECL_SINGLE(GPIOW1, GPIOW1, SIG_DESC_SET(SCUA0, 25));
  1015. SIG_EXPR_LIST_DECL_SINGLE(ADC1, ADC1);
  1016. MS_PIN_DECL_(F5, SIG_EXPR_LIST_PTR(GPIOW1), SIG_EXPR_LIST_PTR(ADC1));
  1017. FUNC_GROUP_DECL(ADC1, F5);
  1018. #define E2 178
  1019. SIG_EXPR_LIST_DECL_SINGLE(GPIOW2, GPIOW2, SIG_DESC_SET(SCUA0, 26));
  1020. SIG_EXPR_LIST_DECL_SINGLE(ADC2, ADC2);
  1021. MS_PIN_DECL_(E2, SIG_EXPR_LIST_PTR(GPIOW2), SIG_EXPR_LIST_PTR(ADC2));
  1022. FUNC_GROUP_DECL(ADC2, E2);
  1023. #define E1 179
  1024. SIG_EXPR_LIST_DECL_SINGLE(GPIOW3, GPIOW3, SIG_DESC_SET(SCUA0, 27));
  1025. SIG_EXPR_LIST_DECL_SINGLE(ADC3, ADC3);
  1026. MS_PIN_DECL_(E1, SIG_EXPR_LIST_PTR(GPIOW3), SIG_EXPR_LIST_PTR(ADC3));
  1027. FUNC_GROUP_DECL(ADC3, E1);
  1028. #define F3 180
  1029. SIG_EXPR_LIST_DECL_SINGLE(GPIOW4, GPIOW4, SIG_DESC_SET(SCUA0, 28));
  1030. SIG_EXPR_LIST_DECL_SINGLE(ADC4, ADC4);
  1031. MS_PIN_DECL_(F3, SIG_EXPR_LIST_PTR(GPIOW4), SIG_EXPR_LIST_PTR(ADC4));
  1032. FUNC_GROUP_DECL(ADC4, F3);
  1033. #define E3 181
  1034. SIG_EXPR_LIST_DECL_SINGLE(GPIOW5, GPIOW5, SIG_DESC_SET(SCUA0, 29));
  1035. SIG_EXPR_LIST_DECL_SINGLE(ADC5, ADC5);
  1036. MS_PIN_DECL_(E3, SIG_EXPR_LIST_PTR(GPIOW5), SIG_EXPR_LIST_PTR(ADC5));
  1037. FUNC_GROUP_DECL(ADC5, E3);
  1038. #define G5 182
  1039. SIG_EXPR_LIST_DECL_SINGLE(GPIOW6, GPIOW6, SIG_DESC_SET(SCUA0, 30));
  1040. SIG_EXPR_LIST_DECL_SINGLE(ADC6, ADC6);
  1041. MS_PIN_DECL_(G5, SIG_EXPR_LIST_PTR(GPIOW6), SIG_EXPR_LIST_PTR(ADC6));
  1042. FUNC_GROUP_DECL(ADC6, G5);
  1043. #define G4 183
  1044. SIG_EXPR_LIST_DECL_SINGLE(GPIOW7, GPIOW7, SIG_DESC_SET(SCUA0, 31));
  1045. SIG_EXPR_LIST_DECL_SINGLE(ADC7, ADC7);
  1046. MS_PIN_DECL_(G4, SIG_EXPR_LIST_PTR(GPIOW7), SIG_EXPR_LIST_PTR(ADC7));
  1047. FUNC_GROUP_DECL(ADC7, G4);
  1048. #define F2 184
  1049. SIG_EXPR_LIST_DECL_SINGLE(GPIOX0, GPIOX0, SIG_DESC_SET(SCUA4, 0));
  1050. SIG_EXPR_LIST_DECL_SINGLE(ADC8, ADC8);
  1051. MS_PIN_DECL_(F2, SIG_EXPR_LIST_PTR(GPIOX0), SIG_EXPR_LIST_PTR(ADC8));
  1052. FUNC_GROUP_DECL(ADC8, F2);
  1053. #define G3 185
  1054. SIG_EXPR_LIST_DECL_SINGLE(GPIOX1, GPIOX1, SIG_DESC_SET(SCUA4, 1));
  1055. SIG_EXPR_LIST_DECL_SINGLE(ADC9, ADC9);
  1056. MS_PIN_DECL_(G3, SIG_EXPR_LIST_PTR(GPIOX1), SIG_EXPR_LIST_PTR(ADC9));
  1057. FUNC_GROUP_DECL(ADC9, G3);
  1058. #define G2 186
  1059. SIG_EXPR_LIST_DECL_SINGLE(GPIOX2, GPIOX2, SIG_DESC_SET(SCUA4, 2));
  1060. SIG_EXPR_LIST_DECL_SINGLE(ADC10, ADC10);
  1061. MS_PIN_DECL_(G2, SIG_EXPR_LIST_PTR(GPIOX2), SIG_EXPR_LIST_PTR(ADC10));
  1062. FUNC_GROUP_DECL(ADC10, G2);
  1063. #define F1 187
  1064. SIG_EXPR_LIST_DECL_SINGLE(GPIOX3, GPIOX3, SIG_DESC_SET(SCUA4, 3));
  1065. SIG_EXPR_LIST_DECL_SINGLE(ADC11, ADC11);
  1066. MS_PIN_DECL_(F1, SIG_EXPR_LIST_PTR(GPIOX3), SIG_EXPR_LIST_PTR(ADC11));
  1067. FUNC_GROUP_DECL(ADC11, F1);
  1068. #define H5 188
  1069. SIG_EXPR_LIST_DECL_SINGLE(GPIOX4, GPIOX4, SIG_DESC_SET(SCUA4, 4));
  1070. SIG_EXPR_LIST_DECL_SINGLE(ADC12, ADC12);
  1071. MS_PIN_DECL_(H5, SIG_EXPR_LIST_PTR(GPIOX4), SIG_EXPR_LIST_PTR(ADC12));
  1072. FUNC_GROUP_DECL(ADC12, H5);
  1073. #define G1 189
  1074. SIG_EXPR_LIST_DECL_SINGLE(GPIOX5, GPIOX5, SIG_DESC_SET(SCUA4, 5));
  1075. SIG_EXPR_LIST_DECL_SINGLE(ADC13, ADC13);
  1076. MS_PIN_DECL_(G1, SIG_EXPR_LIST_PTR(GPIOX5), SIG_EXPR_LIST_PTR(ADC13));
  1077. FUNC_GROUP_DECL(ADC13, G1);
  1078. #define H3 190
  1079. SIG_EXPR_LIST_DECL_SINGLE(GPIOX6, GPIOX6, SIG_DESC_SET(SCUA4, 6));
  1080. SIG_EXPR_LIST_DECL_SINGLE(ADC14, ADC14);
  1081. MS_PIN_DECL_(H3, SIG_EXPR_LIST_PTR(GPIOX6), SIG_EXPR_LIST_PTR(ADC14));
  1082. FUNC_GROUP_DECL(ADC14, H3);
  1083. #define H4 191
  1084. SIG_EXPR_LIST_DECL_SINGLE(GPIOX7, GPIOX7, SIG_DESC_SET(SCUA4, 7));
  1085. SIG_EXPR_LIST_DECL_SINGLE(ADC15, ADC15);
  1086. MS_PIN_DECL_(H4, SIG_EXPR_LIST_PTR(GPIOX7), SIG_EXPR_LIST_PTR(ADC15));
  1087. FUNC_GROUP_DECL(ADC15, H4);
  1088. #define ACPI_DESC SIG_DESC_SET(HW_STRAP1, 19)
  1089. #define R22 192
  1090. SIG_EXPR_DECL(SIOS3, SIOS3, SIG_DESC_SET(SCUA4, 8));
  1091. SIG_EXPR_DECL(SIOS3, ACPI, ACPI_DESC);
  1092. SIG_EXPR_LIST_DECL_DUAL(SIOS3, SIOS3, ACPI);
  1093. SIG_EXPR_LIST_DECL_SINGLE(DASHR22, DASHR22, SIG_DESC_SET(SCU94, 10));
  1094. MS_PIN_DECL(R22, GPIOY0, SIOS3, DASHR22);
  1095. FUNC_GROUP_DECL(SIOS3, R22);
  1096. #define R21 193
  1097. SIG_EXPR_DECL(SIOS5, SIOS5, SIG_DESC_SET(SCUA4, 9));
  1098. SIG_EXPR_DECL(SIOS5, ACPI, ACPI_DESC);
  1099. SIG_EXPR_LIST_DECL_DUAL(SIOS5, SIOS5, ACPI);
  1100. SIG_EXPR_LIST_DECL_SINGLE(DASHR21, DASHR21, SIG_DESC_SET(SCU94, 10));
  1101. MS_PIN_DECL(R21, GPIOY1, SIOS5, DASHR21);
  1102. FUNC_GROUP_DECL(SIOS5, R21);
  1103. #define P22 194
  1104. SIG_EXPR_DECL(SIOPWREQ, SIOPWREQ, SIG_DESC_SET(SCUA4, 10));
  1105. SIG_EXPR_DECL(SIOPWREQ, ACPI, ACPI_DESC);
  1106. SIG_EXPR_LIST_DECL_DUAL(SIOPWREQ, SIOPWREQ, ACPI);
  1107. SIG_EXPR_LIST_DECL_SINGLE(DASHP22, DASHP22, SIG_DESC_SET(SCU94, 11));
  1108. MS_PIN_DECL(P22, GPIOY2, SIOPWREQ, DASHP22);
  1109. FUNC_GROUP_DECL(SIOPWREQ, P22);
  1110. #define P21 195
  1111. SIG_EXPR_DECL(SIOONCTRL, SIOONCTRL, SIG_DESC_SET(SCUA4, 11));
  1112. SIG_EXPR_DECL(SIOONCTRL, ACPI, ACPI_DESC);
  1113. SIG_EXPR_LIST_DECL_DUAL(SIOONCTRL, SIOONCTRL, ACPI);
  1114. SIG_EXPR_LIST_DECL_SINGLE(DASHP21, DASHP21, SIG_DESC_SET(SCU94, 11));
  1115. MS_PIN_DECL(P21, GPIOY3, SIOONCTRL, DASHP21);
  1116. FUNC_GROUP_DECL(SIOONCTRL, P21);
  1117. #define M18 196
  1118. SSSF_PIN_DECL(M18, GPIOY4, SCL1, SIG_DESC_SET(SCUA4, 12));
  1119. #define M19 197
  1120. SSSF_PIN_DECL(M19, GPIOY5, SDA1, SIG_DESC_SET(SCUA4, 13));
  1121. #define M20 198
  1122. SSSF_PIN_DECL(M20, GPIOY6, SCL2, SIG_DESC_SET(SCUA4, 14));
  1123. #define P20 199
  1124. SSSF_PIN_DECL(P20, GPIOY7, SDA2, SIG_DESC_SET(SCUA4, 15));
  1125. #define PNOR_DESC SIG_DESC_SET(SCU90, 31)
  1126. #define Y20 200
  1127. #define Y20_DESC SIG_DESC_SET(SCUA4, 16)
  1128. SIG_EXPR_DECL(VPOG2, VPO, Y20_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1129. SIG_EXPR_DECL(VPOG2, VPOOFF1, Y20_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1130. SIG_EXPR_DECL(VPOG2, VPOOFF2, Y20_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1131. SIG_EXPR_LIST_DECL(VPOG2, SIG_EXPR_PTR(VPOG2, VPO),
  1132. SIG_EXPR_PTR(VPOG2, VPOOFF1), SIG_EXPR_PTR(VPOG2, VPOOFF2));
  1133. SIG_EXPR_DECL(SIOPBI, SIOPBI, Y20_DESC);
  1134. SIG_EXPR_DECL(SIOPBI, ACPI, Y20_DESC);
  1135. SIG_EXPR_LIST_DECL_DUAL(SIOPBI, SIOPBI, ACPI);
  1136. SIG_EXPR_LIST_DECL_SINGLE(NORA0, PNOR, PNOR_DESC);
  1137. SIG_EXPR_LIST_DECL_SINGLE(GPIOZ0, GPIOZ0);
  1138. MS_PIN_DECL_(Y20, SIG_EXPR_LIST_PTR(VPOG2), SIG_EXPR_LIST_PTR(SIOPBI),
  1139. SIG_EXPR_LIST_PTR(NORA0), SIG_EXPR_LIST_PTR(GPIOZ0));
  1140. FUNC_GROUP_DECL(SIOPBI, Y20);
  1141. #define AB20 201
  1142. #define AB20_DESC SIG_DESC_SET(SCUA4, 17)
  1143. SIG_EXPR_DECL(VPOG3, VPO, AB20_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1144. SIG_EXPR_DECL(VPOG3, VPOOFF1, AB20_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1145. SIG_EXPR_DECL(VPOG3, VPOOFF2, AB20_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1146. SIG_EXPR_LIST_DECL(VPOG3, SIG_EXPR_PTR(VPOG3, VPO),
  1147. SIG_EXPR_PTR(VPOG3, VPOOFF1), SIG_EXPR_PTR(VPOG3, VPOOFF2));
  1148. SIG_EXPR_DECL(SIOPWRGD, SIOPWRGD, AB20_DESC);
  1149. SIG_EXPR_DECL(SIOPWRGD, ACPI, AB20_DESC);
  1150. SIG_EXPR_LIST_DECL_DUAL(SIOPWRGD, SIOPWRGD, ACPI);
  1151. SIG_EXPR_LIST_DECL_SINGLE(NORA1, PNOR, PNOR_DESC);
  1152. SIG_EXPR_LIST_DECL_SINGLE(GPIOZ1, GPIOZ1);
  1153. MS_PIN_DECL_(AB20, SIG_EXPR_LIST_PTR(VPOG3), SIG_EXPR_LIST_PTR(SIOPWRGD),
  1154. SIG_EXPR_LIST_PTR(NORA1), SIG_EXPR_LIST_PTR(GPIOZ1));
  1155. FUNC_GROUP_DECL(SIOPWRGD, AB20);
  1156. #define AB21 202
  1157. #define AB21_DESC SIG_DESC_SET(SCUA4, 18)
  1158. SIG_EXPR_DECL(VPOG4, VPO, AB21_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1159. SIG_EXPR_DECL(VPOG4, VPOOFF1, AB21_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1160. SIG_EXPR_DECL(VPOG4, VPOOFF2, AB21_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1161. SIG_EXPR_LIST_DECL(VPOG4, SIG_EXPR_PTR(VPOG4, VPO),
  1162. SIG_EXPR_PTR(VPOG4, VPOOFF1), SIG_EXPR_PTR(VPOG4, VPOOFF2));
  1163. SIG_EXPR_DECL(SIOPBO, SIOPBO, AB21_DESC);
  1164. SIG_EXPR_DECL(SIOPBO, ACPI, AB21_DESC);
  1165. SIG_EXPR_LIST_DECL_DUAL(SIOPBO, SIOPBO, ACPI);
  1166. SIG_EXPR_LIST_DECL_SINGLE(NORA2, PNOR, PNOR_DESC);
  1167. SIG_EXPR_LIST_DECL_SINGLE(GPIOZ2, GPIOZ2);
  1168. MS_PIN_DECL_(AB21, SIG_EXPR_LIST_PTR(VPOG4), SIG_EXPR_LIST_PTR(SIOPBO),
  1169. SIG_EXPR_LIST_PTR(NORA2), SIG_EXPR_LIST_PTR(GPIOZ2));
  1170. FUNC_GROUP_DECL(SIOPBO, AB21);
  1171. #define AA21 203
  1172. #define AA21_DESC SIG_DESC_SET(SCUA4, 19)
  1173. SIG_EXPR_DECL(VPOG5, VPO, AA21_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1174. SIG_EXPR_DECL(VPOG5, VPOOFF1, AA21_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1175. SIG_EXPR_DECL(VPOG5, VPOOFF2, AA21_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1176. SIG_EXPR_LIST_DECL(VPOG5, SIG_EXPR_PTR(VPOG5, VPO),
  1177. SIG_EXPR_PTR(VPOG5, VPOOFF1), SIG_EXPR_PTR(VPOG5, VPOOFF2));
  1178. SIG_EXPR_DECL(SIOSCI, SIOSCI, AA21_DESC);
  1179. SIG_EXPR_DECL(SIOSCI, ACPI, AA21_DESC);
  1180. SIG_EXPR_LIST_DECL_DUAL(SIOSCI, SIOSCI, ACPI);
  1181. SIG_EXPR_LIST_DECL_SINGLE(NORA3, PNOR, PNOR_DESC);
  1182. SIG_EXPR_LIST_DECL_SINGLE(GPIOZ3, GPIOZ3);
  1183. MS_PIN_DECL_(AA21, SIG_EXPR_LIST_PTR(VPOG5), SIG_EXPR_LIST_PTR(SIOSCI),
  1184. SIG_EXPR_LIST_PTR(NORA3), SIG_EXPR_LIST_PTR(GPIOZ3));
  1185. FUNC_GROUP_DECL(SIOSCI, AA21);
  1186. FUNC_GROUP_DECL(ACPI, R22, R21, P22, P21, Y20, AB20, AB21, AA21);
  1187. /* CRT DVO disabled, configured for single-edge mode */
  1188. #define CRT_DVO_DS_DESC { ASPEED_IP_GFX, GFX064, GENMASK(7, 6), 0, 0 }
  1189. /* CRT DVO disabled, configured for dual-edge mode */
  1190. #define CRT_DVO_DD_DESC { ASPEED_IP_GFX, GFX064, GENMASK(7, 6), 1, 1 }
  1191. /* CRT DVO enabled, configured for single-edge mode */
  1192. #define CRT_DVO_ES_DESC { ASPEED_IP_GFX, GFX064, GENMASK(7, 6), 2, 2 }
  1193. /* CRT DVO enabled, configured for dual-edge mode */
  1194. #define CRT_DVO_ED_DESC { ASPEED_IP_GFX, GFX064, GENMASK(7, 6), 3, 3 }
  1195. #define U21 204
  1196. #define U21_DESC SIG_DESC_SET(SCUA4, 20)
  1197. SIG_EXPR_DECL(VPOG6, VPO, U21_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1198. SIG_EXPR_DECL(VPOG6, VPOOFF1, U21_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1199. SIG_EXPR_DECL(VPOG6, VPOOFF2, U21_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1200. SIG_EXPR_LIST_DECL(VPOG6, SIG_EXPR_PTR(VPOG6, VPO),
  1201. SIG_EXPR_PTR(VPOG6, VPOOFF1), SIG_EXPR_PTR(VPOG6, VPOOFF2));
  1202. SIG_EXPR_LIST_DECL_SINGLE(NORA4, PNOR, PNOR_DESC);
  1203. MS_PIN_DECL(U21, GPIOZ4, VPOG6, NORA4);
  1204. #define W22 205
  1205. #define W22_DESC SIG_DESC_SET(SCUA4, 21)
  1206. SIG_EXPR_DECL(VPOG7, VPO, W22_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1207. SIG_EXPR_DECL(VPOG7, VPOOFF1, W22_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1208. SIG_EXPR_DECL(VPOG7, VPOOFF2, W22_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1209. SIG_EXPR_LIST_DECL(VPOG7, SIG_EXPR_PTR(VPOG7, VPO),
  1210. SIG_EXPR_PTR(VPOG7, VPOOFF1), SIG_EXPR_PTR(VPOG7, VPOOFF2));
  1211. SIG_EXPR_LIST_DECL_SINGLE(NORA5, PNOR, PNOR_DESC);
  1212. MS_PIN_DECL(W22, GPIOZ5, VPOG7, NORA5);
  1213. #define V22 206
  1214. #define V22_DESC SIG_DESC_SET(SCUA4, 22)
  1215. SIG_EXPR_DECL(VPOG8, VPO, V22_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1216. SIG_EXPR_DECL(VPOG8, VPOOFF1, V22_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1217. SIG_EXPR_DECL(VPOG8, VPOOFF2, V22_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1218. SIG_EXPR_LIST_DECL(VPOG8, SIG_EXPR_PTR(VPOG8, VPO),
  1219. SIG_EXPR_PTR(VPOG8, VPOOFF1), SIG_EXPR_PTR(VPOG8, VPOOFF2));
  1220. SIG_EXPR_LIST_DECL_SINGLE(NORA6, PNOR, PNOR_DESC);
  1221. MS_PIN_DECL(V22, GPIOZ6, VPOG8, NORA6);
  1222. #define W21 207
  1223. #define W21_DESC SIG_DESC_SET(SCUA4, 23)
  1224. SIG_EXPR_DECL(VPOG9, VPO, W21_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1225. SIG_EXPR_DECL(VPOG9, VPOOFF1, W21_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1226. SIG_EXPR_DECL(VPOG9, VPOOFF2, W21_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1227. SIG_EXPR_LIST_DECL(VPOG9, SIG_EXPR_PTR(VPOG9, VPO),
  1228. SIG_EXPR_PTR(VPOG9, VPOOFF1), SIG_EXPR_PTR(VPOG9, VPOOFF2));
  1229. SIG_EXPR_LIST_DECL_SINGLE(NORA7, PNOR, PNOR_DESC);
  1230. MS_PIN_DECL(W21, GPIOZ7, VPOG9, NORA7);
  1231. #define Y21 208
  1232. #define Y21_DESC SIG_DESC_SET(SCUA4, 24)
  1233. SIG_EXPR_DECL(VPOR2, VPO, Y21_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1234. SIG_EXPR_DECL(VPOR2, VPOOFF1, Y21_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1235. SIG_EXPR_DECL(VPOR2, VPOOFF2, Y21_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1236. SIG_EXPR_LIST_DECL(VPOR2, SIG_EXPR_PTR(VPOR2, VPO),
  1237. SIG_EXPR_PTR(VPOR2, VPOOFF1), SIG_EXPR_PTR(VPOR2, VPOOFF2));
  1238. SIG_EXPR_LIST_DECL_SINGLE(SALT7, SALT7, Y21_DESC);
  1239. SIG_EXPR_LIST_DECL_SINGLE(NORD0, PNOR, PNOR_DESC);
  1240. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA0, GPIOAA0);
  1241. MS_PIN_DECL_(Y21, SIG_EXPR_LIST_PTR(VPOR2), SIG_EXPR_LIST_PTR(SALT7),
  1242. SIG_EXPR_LIST_PTR(NORD0), SIG_EXPR_LIST_PTR(GPIOAA0));
  1243. FUNC_GROUP_DECL(SALT7, Y21);
  1244. #define V21 209
  1245. #define V21_DESC SIG_DESC_SET(SCUA4, 25)
  1246. SIG_EXPR_DECL(VPOR3, VPO, V21_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1247. SIG_EXPR_DECL(VPOR3, VPOOFF1, V21_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1248. SIG_EXPR_DECL(VPOR3, VPOOFF2, V21_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1249. SIG_EXPR_LIST_DECL(VPOR3, SIG_EXPR_PTR(VPOR3, VPO),
  1250. SIG_EXPR_PTR(VPOR3, VPOOFF1), SIG_EXPR_PTR(VPOR3, VPOOFF2));
  1251. SIG_EXPR_LIST_DECL_SINGLE(SALT8, SALT8, V21_DESC);
  1252. SIG_EXPR_LIST_DECL_SINGLE(NORD1, PNOR, PNOR_DESC);
  1253. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA1, GPIOAA1);
  1254. MS_PIN_DECL_(V21, SIG_EXPR_LIST_PTR(VPOR3), SIG_EXPR_LIST_PTR(SALT8),
  1255. SIG_EXPR_LIST_PTR(NORD1), SIG_EXPR_LIST_PTR(GPIOAA1));
  1256. FUNC_GROUP_DECL(SALT8, V21);
  1257. #define Y22 210
  1258. #define Y22_DESC SIG_DESC_SET(SCUA4, 26)
  1259. SIG_EXPR_DECL(VPOR4, VPO, Y22_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1260. SIG_EXPR_DECL(VPOR4, VPOOFF1, Y22_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1261. SIG_EXPR_DECL(VPOR4, VPOOFF2, Y22_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1262. SIG_EXPR_LIST_DECL(VPOR4, SIG_EXPR_PTR(VPOR4, VPO),
  1263. SIG_EXPR_PTR(VPOR4, VPOOFF1), SIG_EXPR_PTR(VPOR4, VPOOFF2));
  1264. SIG_EXPR_LIST_DECL_SINGLE(SALT9, SALT9, Y22_DESC);
  1265. SIG_EXPR_LIST_DECL_SINGLE(NORD2, PNOR, PNOR_DESC);
  1266. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA2, GPIOAA2);
  1267. MS_PIN_DECL_(Y22, SIG_EXPR_LIST_PTR(VPOR4), SIG_EXPR_LIST_PTR(SALT9),
  1268. SIG_EXPR_LIST_PTR(NORD2), SIG_EXPR_LIST_PTR(GPIOAA2));
  1269. FUNC_GROUP_DECL(SALT9, Y22);
  1270. #define AA22 211
  1271. #define AA22_DESC SIG_DESC_SET(SCUA4, 27)
  1272. SIG_EXPR_DECL(VPOR5, VPO, AA22_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1273. SIG_EXPR_DECL(VPOR5, VPOOFF1, AA22_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1274. SIG_EXPR_DECL(VPOR5, VPOOFF2, AA22_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1275. SIG_EXPR_LIST_DECL(VPOR5, SIG_EXPR_PTR(VPOR5, VPO),
  1276. SIG_EXPR_PTR(VPOR5, VPOOFF1), SIG_EXPR_PTR(VPOR5, VPOOFF2));
  1277. SIG_EXPR_LIST_DECL_SINGLE(SALT10, SALT10, AA22_DESC);
  1278. SIG_EXPR_LIST_DECL_SINGLE(NORD3, PNOR, PNOR_DESC);
  1279. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA3, GPIOAA3);
  1280. MS_PIN_DECL_(AA22, SIG_EXPR_LIST_PTR(VPOR5), SIG_EXPR_LIST_PTR(SALT10),
  1281. SIG_EXPR_LIST_PTR(NORD3), SIG_EXPR_LIST_PTR(GPIOAA3));
  1282. FUNC_GROUP_DECL(SALT10, AA22);
  1283. #define U22 212
  1284. #define U22_DESC SIG_DESC_SET(SCUA4, 28)
  1285. SIG_EXPR_DECL(VPOR6, VPO, U22_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1286. SIG_EXPR_DECL(VPOR6, VPOOFF1, U22_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1287. SIG_EXPR_DECL(VPOR6, VPOOFF2, U22_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1288. SIG_EXPR_LIST_DECL(VPOR6, SIG_EXPR_PTR(VPOR6, VPO),
  1289. SIG_EXPR_PTR(VPOR6, VPOOFF1), SIG_EXPR_PTR(VPOR6, VPOOFF2));
  1290. SIG_EXPR_LIST_DECL_SINGLE(SALT11, SALT11, U22_DESC);
  1291. SIG_EXPR_LIST_DECL_SINGLE(NORD4, PNOR, PNOR_DESC);
  1292. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA4, GPIOAA4);
  1293. MS_PIN_DECL_(U22, SIG_EXPR_LIST_PTR(VPOR6), SIG_EXPR_LIST_PTR(SALT11),
  1294. SIG_EXPR_LIST_PTR(NORD4), SIG_EXPR_LIST_PTR(GPIOAA4));
  1295. FUNC_GROUP_DECL(SALT11, U22);
  1296. #define T20 213
  1297. #define T20_DESC SIG_DESC_SET(SCUA4, 29)
  1298. SIG_EXPR_DECL(VPOR7, VPO, T20_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1299. SIG_EXPR_DECL(VPOR7, VPOOFF1, T20_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1300. SIG_EXPR_DECL(VPOR7, VPOOFF2, T20_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1301. SIG_EXPR_LIST_DECL(VPOR7, SIG_EXPR_PTR(VPOR7, VPO),
  1302. SIG_EXPR_PTR(VPOR7, VPOOFF1), SIG_EXPR_PTR(VPOR7, VPOOFF2));
  1303. SIG_EXPR_LIST_DECL_SINGLE(SALT12, SALT12, T20_DESC);
  1304. SIG_EXPR_LIST_DECL_SINGLE(NORD5, PNOR, PNOR_DESC);
  1305. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA5, GPIOAA5);
  1306. MS_PIN_DECL_(T20, SIG_EXPR_LIST_PTR(VPOR7), SIG_EXPR_LIST_PTR(SALT12),
  1307. SIG_EXPR_LIST_PTR(NORD5), SIG_EXPR_LIST_PTR(GPIOAA5));
  1308. FUNC_GROUP_DECL(SALT12, T20);
  1309. #define N18 214
  1310. #define N18_DESC SIG_DESC_SET(SCUA4, 30)
  1311. SIG_EXPR_DECL(VPOR8, VPO, N18_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1312. SIG_EXPR_DECL(VPOR8, VPOOFF1, N18_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1313. SIG_EXPR_DECL(VPOR8, VPOOFF2, N18_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1314. SIG_EXPR_LIST_DECL(VPOR8, SIG_EXPR_PTR(VPOR8, VPO),
  1315. SIG_EXPR_PTR(VPOR8, VPOOFF1), SIG_EXPR_PTR(VPOR8, VPOOFF2));
  1316. SIG_EXPR_LIST_DECL_SINGLE(SALT13, SALT13, N18_DESC);
  1317. SIG_EXPR_LIST_DECL_SINGLE(NORD6, PNOR, PNOR_DESC);
  1318. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA6, GPIOAA6);
  1319. MS_PIN_DECL_(N18, SIG_EXPR_LIST_PTR(VPOR8), SIG_EXPR_LIST_PTR(SALT13),
  1320. SIG_EXPR_LIST_PTR(NORD6), SIG_EXPR_LIST_PTR(GPIOAA6));
  1321. FUNC_GROUP_DECL(SALT13, N18);
  1322. #define P19 215
  1323. #define P19_DESC SIG_DESC_SET(SCUA4, 31)
  1324. SIG_EXPR_DECL(VPOR9, VPO, P19_DESC, VPO_DESC, CRT_DVO_ES_DESC);
  1325. SIG_EXPR_DECL(VPOR9, VPOOFF1, P19_DESC, VPOOFF1_DESC, CRT_DVO_ES_DESC);
  1326. SIG_EXPR_DECL(VPOR9, VPOOFF2, P19_DESC, VPOOFF2_DESC, CRT_DVO_ES_DESC);
  1327. SIG_EXPR_LIST_DECL(VPOR9, SIG_EXPR_PTR(VPOR9, VPO),
  1328. SIG_EXPR_PTR(VPOR9, VPOOFF1), SIG_EXPR_PTR(VPOR9, VPOOFF2));
  1329. SIG_EXPR_LIST_DECL_SINGLE(SALT14, SALT14, P19_DESC);
  1330. SIG_EXPR_LIST_DECL_SINGLE(NORD7, PNOR, PNOR_DESC);
  1331. SIG_EXPR_LIST_DECL_SINGLE(GPIOAA7, GPIOAA7);
  1332. MS_PIN_DECL_(P19, SIG_EXPR_LIST_PTR(VPOR9), SIG_EXPR_LIST_PTR(SALT14),
  1333. SIG_EXPR_LIST_PTR(NORD7), SIG_EXPR_LIST_PTR(GPIOAA7));
  1334. FUNC_GROUP_DECL(SALT14, P19);
  1335. #define N19 216
  1336. #define N19_DESC SIG_DESC_SET(SCUA8, 0)
  1337. SIG_EXPR_DECL(VPODE, VPO, N19_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1338. SIG_EXPR_DECL(VPODE, VPOOFF1, N19_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1339. SIG_EXPR_DECL(VPODE, VPOOFF2, N19_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1340. SIG_EXPR_LIST_DECL(VPODE, SIG_EXPR_PTR(VPODE, VPO),
  1341. SIG_EXPR_PTR(VPODE, VPOOFF1), SIG_EXPR_PTR(VPODE, VPOOFF2));
  1342. SIG_EXPR_LIST_DECL_SINGLE(NOROE, PNOR, PNOR_DESC);
  1343. MS_PIN_DECL(N19, GPIOAB0, VPODE, NOROE);
  1344. #define T21 217
  1345. #define T21_DESC SIG_DESC_SET(SCUA8, 1)
  1346. SIG_EXPR_DECL(VPOHS, VPO, T21_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1347. SIG_EXPR_DECL(VPOHS, VPOOFF1, T21_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1348. SIG_EXPR_DECL(VPOHS, VPOOFF2, T21_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1349. SIG_EXPR_LIST_DECL(VPOHS, SIG_EXPR_PTR(VPOHS, VPO),
  1350. SIG_EXPR_PTR(VPOHS, VPOOFF1), SIG_EXPR_PTR(VPOHS, VPOOFF2));
  1351. SIG_EXPR_LIST_DECL_SINGLE(NORWE, PNOR, PNOR_DESC);
  1352. MS_PIN_DECL(T21, GPIOAB1, VPOHS, NORWE);
  1353. FUNC_GROUP_DECL(PNOR, Y20, AB20, AB21, AA21, U21, W22, V22, W21, Y21, V21, Y22,
  1354. AA22, U22, T20, N18, P19, N19, T21);
  1355. #define T22 218
  1356. #define T22_DESC SIG_DESC_SET(SCUA8, 2)
  1357. SIG_EXPR_DECL(VPOVS, VPO, T22_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1358. SIG_EXPR_DECL(VPOVS, VPOOFF1, T22_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1359. SIG_EXPR_DECL(VPOVS, VPOOFF2, T22_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1360. SIG_EXPR_LIST_DECL(VPOVS, SIG_EXPR_PTR(VPOVS, VPO),
  1361. SIG_EXPR_PTR(VPOVS, VPOOFF1), SIG_EXPR_PTR(VPOVS, VPOOFF2));
  1362. SIG_EXPR_LIST_DECL_SINGLE(WDTRST1, WDTRST1, T22_DESC);
  1363. MS_PIN_DECL(T22, GPIOAB2, VPOVS, WDTRST1);
  1364. FUNC_GROUP_DECL(WDTRST1, T22);
  1365. #define R20 219
  1366. #define R20_DESC SIG_DESC_SET(SCUA8, 3)
  1367. SIG_EXPR_DECL(VPOCLK, VPO, R20_DESC, VPO_DESC, CRT_DVO_EN_DESC);
  1368. SIG_EXPR_DECL(VPOCLK, VPOOFF1, R20_DESC, VPOOFF1_DESC, CRT_DVO_EN_DESC);
  1369. SIG_EXPR_DECL(VPOCLK, VPOOFF2, R20_DESC, VPOOFF2_DESC, CRT_DVO_EN_DESC);
  1370. SIG_EXPR_LIST_DECL(VPOCLK, SIG_EXPR_PTR(VPOCLK, VPO),
  1371. SIG_EXPR_PTR(VPOCLK, VPOOFF1), SIG_EXPR_PTR(VPOCLK, VPOOFF2));
  1372. SIG_EXPR_LIST_DECL_SINGLE(WDTRST2, WDTRST2, R20_DESC);
  1373. MS_PIN_DECL(R20, GPIOAB3, VPOCLK, WDTRST2);
  1374. FUNC_GROUP_DECL(WDTRST2, R20);
  1375. FUNC_GROUP_DECL(VPO, V20, U19, R18, P18, R19, W20, U20, AA20, Y20, AB20,
  1376. AB21, AA21, U21, W22, V22, W21, Y21, V21, Y22, AA22, U22, T20,
  1377. N18, P19, N19, T21, T22, R20);
  1378. #define ESPI_DESC SIG_DESC_SET(HW_STRAP1, 25)
  1379. #define G21 224
  1380. SIG_EXPR_LIST_DECL_SINGLE(ESPID0, ESPI, ESPI_DESC);
  1381. SIG_EXPR_LIST_DECL_SINGLE(LAD0, LAD0, SIG_DESC_SET(SCUAC, 0));
  1382. MS_PIN_DECL(G21, GPIOAC0, ESPID0, LAD0);
  1383. FUNC_GROUP_DECL(LAD0, G21);
  1384. #define G20 225
  1385. SIG_EXPR_LIST_DECL_SINGLE(ESPID1, ESPI, ESPI_DESC);
  1386. SIG_EXPR_LIST_DECL_SINGLE(LAD1, LAD1, SIG_DESC_SET(SCUAC, 1));
  1387. MS_PIN_DECL(G20, GPIOAC1, ESPID1, LAD1);
  1388. FUNC_GROUP_DECL(LAD1, G20);
  1389. #define D22 226
  1390. SIG_EXPR_LIST_DECL_SINGLE(ESPID2, ESPI, ESPI_DESC);
  1391. SIG_EXPR_LIST_DECL_SINGLE(LAD2, LAD2, SIG_DESC_SET(SCUAC, 2));
  1392. MS_PIN_DECL(D22, GPIOAC2, ESPID2, LAD2);
  1393. FUNC_GROUP_DECL(LAD2, D22);
  1394. #define E22 227
  1395. SIG_EXPR_LIST_DECL_SINGLE(ESPID3, ESPI, ESPI_DESC);
  1396. SIG_EXPR_LIST_DECL_SINGLE(LAD3, LAD3, SIG_DESC_SET(SCUAC, 3));
  1397. MS_PIN_DECL(E22, GPIOAC3, ESPID3, LAD3);
  1398. FUNC_GROUP_DECL(LAD3, E22);
  1399. #define C22 228
  1400. SIG_EXPR_LIST_DECL_SINGLE(ESPICK, ESPI, ESPI_DESC);
  1401. SIG_EXPR_LIST_DECL_SINGLE(LCLK, LCLK, SIG_DESC_SET(SCUAC, 4));
  1402. MS_PIN_DECL(C22, GPIOAC4, ESPICK, LCLK);
  1403. FUNC_GROUP_DECL(LCLK, C22);
  1404. #define F21 229
  1405. SIG_EXPR_LIST_DECL_SINGLE(ESPICS, ESPI, ESPI_DESC);
  1406. SIG_EXPR_LIST_DECL_SINGLE(LFRAME, LFRAME, SIG_DESC_SET(SCUAC, 5));
  1407. MS_PIN_DECL(F21, GPIOAC5, ESPICS, LFRAME);
  1408. FUNC_GROUP_DECL(LFRAME, F21);
  1409. #define F22 230
  1410. SIG_EXPR_LIST_DECL_SINGLE(ESPIALT, ESPI, ESPI_DESC);
  1411. SIG_EXPR_LIST_DECL_SINGLE(LSIRQ, LSIRQ, SIG_DESC_SET(SCUAC, 6));
  1412. MS_PIN_DECL(F22, GPIOAC6, ESPIALT, LSIRQ);
  1413. FUNC_GROUP_DECL(LSIRQ, F22);
  1414. #define G22 231
  1415. SIG_EXPR_LIST_DECL_SINGLE(ESPIRST, ESPI, ESPI_DESC);
  1416. SIG_EXPR_LIST_DECL_SINGLE(LPCRST, LPCRST, SIG_DESC_SET(SCUAC, 7));
  1417. MS_PIN_DECL(G22, GPIOAC7, ESPIRST, LPCRST);
  1418. FUNC_GROUP_DECL(LPCRST, G22);
  1419. FUNC_GROUP_DECL(ESPI, G21, G20, D22, E22, C22, F21, F22, G22);
  1420. #define A7 232
  1421. SIG_EXPR_LIST_DECL_SINGLE(USB2AHDP, USB2AH, SIG_DESC_SET(SCU90, 29));
  1422. SIG_EXPR_LIST_DECL_SINGLE(USB2ADDP, USB2AD, SIG_DESC_BIT(SCU90, 29, 0));
  1423. MS_PIN_DECL_(A7, SIG_EXPR_LIST_PTR(USB2AHDP), SIG_EXPR_LIST_PTR(USB2ADDP));
  1424. #define A8 233
  1425. SIG_EXPR_LIST_DECL_SINGLE(USB2AHDN, USB2AH, SIG_DESC_SET(SCU90, 29));
  1426. SIG_EXPR_LIST_DECL_SINGLE(USB2ADDN, USB2AD, SIG_DESC_BIT(SCU90, 29, 0));
  1427. MS_PIN_DECL_(A8, SIG_EXPR_LIST_PTR(USB2AHDN), SIG_EXPR_LIST_PTR(USB2ADDN));
  1428. FUNC_GROUP_DECL(USB2AH, A7, A8);
  1429. FUNC_GROUP_DECL(USB2AD, A7, A8);
  1430. #define USB11BHID_DESC { ASPEED_IP_SCU, SCU94, GENMASK(14, 13), 0, 0 }
  1431. #define USB2BD_DESC { ASPEED_IP_SCU, SCU94, GENMASK(14, 13), 1, 0 }
  1432. #define USB2BH1_DESC { ASPEED_IP_SCU, SCU94, GENMASK(14, 13), 2, 0 }
  1433. #define USB2BH2_DESC { ASPEED_IP_SCU, SCU94, GENMASK(14, 13), 3, 0 }
  1434. #define B6 234
  1435. SIG_EXPR_LIST_DECL_SINGLE(USB11BDP, USB11BHID, USB11BHID_DESC);
  1436. SIG_EXPR_LIST_DECL_SINGLE(USB2BDDP, USB2BD, USB2BD_DESC);
  1437. SIG_EXPR_DECL(USB2BHDP1, USB2BH, USB2BH1_DESC);
  1438. SIG_EXPR_DECL(USB2BHDP2, USB2BH, USB2BH2_DESC);
  1439. SIG_EXPR_LIST_DECL(USB2BHDP, SIG_EXPR_PTR(USB2BHDP1, USB2BH),
  1440. SIG_EXPR_PTR(USB2BHDP2, USB2BH));
  1441. MS_PIN_DECL_(B6, SIG_EXPR_LIST_PTR(USB11BDP), SIG_EXPR_LIST_PTR(USB2BDDP),
  1442. SIG_EXPR_LIST_PTR(USB2BHDP));
  1443. #define A6 235
  1444. SIG_EXPR_LIST_DECL_SINGLE(USB11BDN, USB11BHID, USB11BHID_DESC);
  1445. SIG_EXPR_LIST_DECL_SINGLE(USB2BDN, USB2BD, USB2BD_DESC);
  1446. SIG_EXPR_DECL(USB2BHDN1, USB2BH, USB2BH1_DESC);
  1447. SIG_EXPR_DECL(USB2BHDN2, USB2BH, USB2BH2_DESC);
  1448. SIG_EXPR_LIST_DECL(USB2BHDN, SIG_EXPR_PTR(USB2BHDN1, USB2BH),
  1449. SIG_EXPR_PTR(USB2BHDN2, USB2BH));
  1450. MS_PIN_DECL_(A6, SIG_EXPR_LIST_PTR(USB11BDN), SIG_EXPR_LIST_PTR(USB2BDN),
  1451. SIG_EXPR_LIST_PTR(USB2BHDN));
  1452. FUNC_GROUP_DECL(USB11BHID, B6, A6);
  1453. FUNC_GROUP_DECL(USB2BD, B6, A6);
  1454. FUNC_GROUP_DECL(USB2BH, B6, A6);
  1455. /* Pins, groups and functions are sort(1):ed alphabetically for sanity */
  1456. static struct pinctrl_pin_desc aspeed_g5_pins[ASPEED_G5_NR_PINS] = {
  1457. ASPEED_PINCTRL_PIN(A10),
  1458. ASPEED_PINCTRL_PIN(A11),
  1459. ASPEED_PINCTRL_PIN(A12),
  1460. ASPEED_PINCTRL_PIN(A13),
  1461. ASPEED_PINCTRL_PIN(A14),
  1462. ASPEED_PINCTRL_PIN(A15),
  1463. ASPEED_PINCTRL_PIN(A16),
  1464. ASPEED_PINCTRL_PIN(A17),
  1465. ASPEED_PINCTRL_PIN(A18),
  1466. ASPEED_PINCTRL_PIN(A19),
  1467. ASPEED_PINCTRL_PIN(A2),
  1468. ASPEED_PINCTRL_PIN(A20),
  1469. ASPEED_PINCTRL_PIN(A21),
  1470. ASPEED_PINCTRL_PIN(A3),
  1471. ASPEED_PINCTRL_PIN(A4),
  1472. ASPEED_PINCTRL_PIN(A5),
  1473. ASPEED_PINCTRL_PIN(A6),
  1474. ASPEED_PINCTRL_PIN(A7),
  1475. ASPEED_PINCTRL_PIN(A8),
  1476. ASPEED_PINCTRL_PIN(A9),
  1477. ASPEED_PINCTRL_PIN(AA1),
  1478. ASPEED_PINCTRL_PIN(AA19),
  1479. ASPEED_PINCTRL_PIN(AA2),
  1480. ASPEED_PINCTRL_PIN(AA20),
  1481. ASPEED_PINCTRL_PIN(AA21),
  1482. ASPEED_PINCTRL_PIN(AA22),
  1483. ASPEED_PINCTRL_PIN(AA3),
  1484. ASPEED_PINCTRL_PIN(AA4),
  1485. ASPEED_PINCTRL_PIN(AA5),
  1486. ASPEED_PINCTRL_PIN(AB2),
  1487. ASPEED_PINCTRL_PIN(AB20),
  1488. ASPEED_PINCTRL_PIN(AB21),
  1489. ASPEED_PINCTRL_PIN(AB3),
  1490. ASPEED_PINCTRL_PIN(AB4),
  1491. ASPEED_PINCTRL_PIN(AB5),
  1492. ASPEED_PINCTRL_PIN(B1),
  1493. ASPEED_PINCTRL_PIN(B10),
  1494. ASPEED_PINCTRL_PIN(B11),
  1495. ASPEED_PINCTRL_PIN(B12),
  1496. ASPEED_PINCTRL_PIN(B13),
  1497. ASPEED_PINCTRL_PIN(B14),
  1498. ASPEED_PINCTRL_PIN(B15),
  1499. ASPEED_PINCTRL_PIN(B16),
  1500. ASPEED_PINCTRL_PIN(B17),
  1501. ASPEED_PINCTRL_PIN(B18),
  1502. ASPEED_PINCTRL_PIN(B19),
  1503. ASPEED_PINCTRL_PIN(B2),
  1504. ASPEED_PINCTRL_PIN(B20),
  1505. ASPEED_PINCTRL_PIN(B21),
  1506. ASPEED_PINCTRL_PIN(B22),
  1507. ASPEED_PINCTRL_PIN(B3),
  1508. ASPEED_PINCTRL_PIN(B4),
  1509. ASPEED_PINCTRL_PIN(B5),
  1510. ASPEED_PINCTRL_PIN(B6),
  1511. ASPEED_PINCTRL_PIN(B9),
  1512. ASPEED_PINCTRL_PIN(C1),
  1513. ASPEED_PINCTRL_PIN(C11),
  1514. ASPEED_PINCTRL_PIN(C12),
  1515. ASPEED_PINCTRL_PIN(C13),
  1516. ASPEED_PINCTRL_PIN(C14),
  1517. ASPEED_PINCTRL_PIN(C15),
  1518. ASPEED_PINCTRL_PIN(C16),
  1519. ASPEED_PINCTRL_PIN(C17),
  1520. ASPEED_PINCTRL_PIN(C18),
  1521. ASPEED_PINCTRL_PIN(C19),
  1522. ASPEED_PINCTRL_PIN(C2),
  1523. ASPEED_PINCTRL_PIN(C20),
  1524. ASPEED_PINCTRL_PIN(C21),
  1525. ASPEED_PINCTRL_PIN(C22),
  1526. ASPEED_PINCTRL_PIN(C3),
  1527. ASPEED_PINCTRL_PIN(C4),
  1528. ASPEED_PINCTRL_PIN(C5),
  1529. ASPEED_PINCTRL_PIN(D1),
  1530. ASPEED_PINCTRL_PIN(D10),
  1531. ASPEED_PINCTRL_PIN(D13),
  1532. ASPEED_PINCTRL_PIN(D14),
  1533. ASPEED_PINCTRL_PIN(D15),
  1534. ASPEED_PINCTRL_PIN(D16),
  1535. ASPEED_PINCTRL_PIN(D17),
  1536. ASPEED_PINCTRL_PIN(D18),
  1537. ASPEED_PINCTRL_PIN(D19),
  1538. ASPEED_PINCTRL_PIN(D2),
  1539. ASPEED_PINCTRL_PIN(D20),
  1540. ASPEED_PINCTRL_PIN(D21),
  1541. ASPEED_PINCTRL_PIN(D22),
  1542. ASPEED_PINCTRL_PIN(D4),
  1543. ASPEED_PINCTRL_PIN(D5),
  1544. ASPEED_PINCTRL_PIN(D6),
  1545. ASPEED_PINCTRL_PIN(D7),
  1546. ASPEED_PINCTRL_PIN(D8),
  1547. ASPEED_PINCTRL_PIN(D9),
  1548. ASPEED_PINCTRL_PIN(E1),
  1549. ASPEED_PINCTRL_PIN(E10),
  1550. ASPEED_PINCTRL_PIN(E12),
  1551. ASPEED_PINCTRL_PIN(E13),
  1552. ASPEED_PINCTRL_PIN(E14),
  1553. ASPEED_PINCTRL_PIN(E15),
  1554. ASPEED_PINCTRL_PIN(E16),
  1555. ASPEED_PINCTRL_PIN(E17),
  1556. ASPEED_PINCTRL_PIN(E18),
  1557. ASPEED_PINCTRL_PIN(E19),
  1558. ASPEED_PINCTRL_PIN(E2),
  1559. ASPEED_PINCTRL_PIN(E20),
  1560. ASPEED_PINCTRL_PIN(E21),
  1561. ASPEED_PINCTRL_PIN(E22),
  1562. ASPEED_PINCTRL_PIN(E3),
  1563. ASPEED_PINCTRL_PIN(E6),
  1564. ASPEED_PINCTRL_PIN(E7),
  1565. ASPEED_PINCTRL_PIN(E9),
  1566. ASPEED_PINCTRL_PIN(F1),
  1567. ASPEED_PINCTRL_PIN(F17),
  1568. ASPEED_PINCTRL_PIN(F18),
  1569. ASPEED_PINCTRL_PIN(F19),
  1570. ASPEED_PINCTRL_PIN(F2),
  1571. ASPEED_PINCTRL_PIN(F20),
  1572. ASPEED_PINCTRL_PIN(F21),
  1573. ASPEED_PINCTRL_PIN(F22),
  1574. ASPEED_PINCTRL_PIN(F3),
  1575. ASPEED_PINCTRL_PIN(F4),
  1576. ASPEED_PINCTRL_PIN(F5),
  1577. ASPEED_PINCTRL_PIN(F9),
  1578. ASPEED_PINCTRL_PIN(G1),
  1579. ASPEED_PINCTRL_PIN(G17),
  1580. ASPEED_PINCTRL_PIN(G18),
  1581. ASPEED_PINCTRL_PIN(G2),
  1582. ASPEED_PINCTRL_PIN(G20),
  1583. ASPEED_PINCTRL_PIN(G21),
  1584. ASPEED_PINCTRL_PIN(G22),
  1585. ASPEED_PINCTRL_PIN(G3),
  1586. ASPEED_PINCTRL_PIN(G4),
  1587. ASPEED_PINCTRL_PIN(G5),
  1588. ASPEED_PINCTRL_PIN(H18),
  1589. ASPEED_PINCTRL_PIN(H19),
  1590. ASPEED_PINCTRL_PIN(H20),
  1591. ASPEED_PINCTRL_PIN(H21),
  1592. ASPEED_PINCTRL_PIN(H22),
  1593. ASPEED_PINCTRL_PIN(H3),
  1594. ASPEED_PINCTRL_PIN(H4),
  1595. ASPEED_PINCTRL_PIN(H5),
  1596. ASPEED_PINCTRL_PIN(J18),
  1597. ASPEED_PINCTRL_PIN(J19),
  1598. ASPEED_PINCTRL_PIN(J20),
  1599. ASPEED_PINCTRL_PIN(K18),
  1600. ASPEED_PINCTRL_PIN(K19),
  1601. ASPEED_PINCTRL_PIN(L1),
  1602. ASPEED_PINCTRL_PIN(L18),
  1603. ASPEED_PINCTRL_PIN(L19),
  1604. ASPEED_PINCTRL_PIN(L2),
  1605. ASPEED_PINCTRL_PIN(L3),
  1606. ASPEED_PINCTRL_PIN(L4),
  1607. ASPEED_PINCTRL_PIN(M18),
  1608. ASPEED_PINCTRL_PIN(M19),
  1609. ASPEED_PINCTRL_PIN(M20),
  1610. ASPEED_PINCTRL_PIN(N1),
  1611. ASPEED_PINCTRL_PIN(N18),
  1612. ASPEED_PINCTRL_PIN(N19),
  1613. ASPEED_PINCTRL_PIN(N2),
  1614. ASPEED_PINCTRL_PIN(N20),
  1615. ASPEED_PINCTRL_PIN(N21),
  1616. ASPEED_PINCTRL_PIN(N22),
  1617. ASPEED_PINCTRL_PIN(N3),
  1618. ASPEED_PINCTRL_PIN(N4),
  1619. ASPEED_PINCTRL_PIN(N5),
  1620. ASPEED_PINCTRL_PIN(P1),
  1621. ASPEED_PINCTRL_PIN(P18),
  1622. ASPEED_PINCTRL_PIN(P19),
  1623. ASPEED_PINCTRL_PIN(P2),
  1624. ASPEED_PINCTRL_PIN(P20),
  1625. ASPEED_PINCTRL_PIN(P21),
  1626. ASPEED_PINCTRL_PIN(P22),
  1627. ASPEED_PINCTRL_PIN(P3),
  1628. ASPEED_PINCTRL_PIN(P4),
  1629. ASPEED_PINCTRL_PIN(P5),
  1630. ASPEED_PINCTRL_PIN(R1),
  1631. ASPEED_PINCTRL_PIN(R18),
  1632. ASPEED_PINCTRL_PIN(R19),
  1633. ASPEED_PINCTRL_PIN(R2),
  1634. ASPEED_PINCTRL_PIN(R20),
  1635. ASPEED_PINCTRL_PIN(R21),
  1636. ASPEED_PINCTRL_PIN(R22),
  1637. ASPEED_PINCTRL_PIN(R3),
  1638. ASPEED_PINCTRL_PIN(R4),
  1639. ASPEED_PINCTRL_PIN(R5),
  1640. ASPEED_PINCTRL_PIN(T1),
  1641. ASPEED_PINCTRL_PIN(T17),
  1642. ASPEED_PINCTRL_PIN(T19),
  1643. ASPEED_PINCTRL_PIN(T2),
  1644. ASPEED_PINCTRL_PIN(T20),
  1645. ASPEED_PINCTRL_PIN(T21),
  1646. ASPEED_PINCTRL_PIN(T22),
  1647. ASPEED_PINCTRL_PIN(T3),
  1648. ASPEED_PINCTRL_PIN(T4),
  1649. ASPEED_PINCTRL_PIN(T5),
  1650. ASPEED_PINCTRL_PIN(U1),
  1651. ASPEED_PINCTRL_PIN(U19),
  1652. ASPEED_PINCTRL_PIN(U2),
  1653. ASPEED_PINCTRL_PIN(U20),
  1654. ASPEED_PINCTRL_PIN(U21),
  1655. ASPEED_PINCTRL_PIN(U22),
  1656. ASPEED_PINCTRL_PIN(U3),
  1657. ASPEED_PINCTRL_PIN(U4),
  1658. ASPEED_PINCTRL_PIN(U5),
  1659. ASPEED_PINCTRL_PIN(V1),
  1660. ASPEED_PINCTRL_PIN(V19),
  1661. ASPEED_PINCTRL_PIN(V2),
  1662. ASPEED_PINCTRL_PIN(V20),
  1663. ASPEED_PINCTRL_PIN(V21),
  1664. ASPEED_PINCTRL_PIN(V22),
  1665. ASPEED_PINCTRL_PIN(V3),
  1666. ASPEED_PINCTRL_PIN(V4),
  1667. ASPEED_PINCTRL_PIN(V5),
  1668. ASPEED_PINCTRL_PIN(V6),
  1669. ASPEED_PINCTRL_PIN(W1),
  1670. ASPEED_PINCTRL_PIN(W19),
  1671. ASPEED_PINCTRL_PIN(W2),
  1672. ASPEED_PINCTRL_PIN(W20),
  1673. ASPEED_PINCTRL_PIN(W21),
  1674. ASPEED_PINCTRL_PIN(W22),
  1675. ASPEED_PINCTRL_PIN(W3),
  1676. ASPEED_PINCTRL_PIN(W4),
  1677. ASPEED_PINCTRL_PIN(W5),
  1678. ASPEED_PINCTRL_PIN(W6),
  1679. ASPEED_PINCTRL_PIN(Y1),
  1680. ASPEED_PINCTRL_PIN(Y19),
  1681. ASPEED_PINCTRL_PIN(Y2),
  1682. ASPEED_PINCTRL_PIN(Y20),
  1683. ASPEED_PINCTRL_PIN(Y21),
  1684. ASPEED_PINCTRL_PIN(Y22),
  1685. ASPEED_PINCTRL_PIN(Y3),
  1686. ASPEED_PINCTRL_PIN(Y4),
  1687. ASPEED_PINCTRL_PIN(Y5),
  1688. ASPEED_PINCTRL_PIN(Y6),
  1689. };
  1690. static const struct aspeed_pin_group aspeed_g5_groups[] = {
  1691. ASPEED_PINCTRL_GROUP(ACPI),
  1692. ASPEED_PINCTRL_GROUP(ADC0),
  1693. ASPEED_PINCTRL_GROUP(ADC1),
  1694. ASPEED_PINCTRL_GROUP(ADC10),
  1695. ASPEED_PINCTRL_GROUP(ADC11),
  1696. ASPEED_PINCTRL_GROUP(ADC12),
  1697. ASPEED_PINCTRL_GROUP(ADC13),
  1698. ASPEED_PINCTRL_GROUP(ADC14),
  1699. ASPEED_PINCTRL_GROUP(ADC15),
  1700. ASPEED_PINCTRL_GROUP(ADC2),
  1701. ASPEED_PINCTRL_GROUP(ADC3),
  1702. ASPEED_PINCTRL_GROUP(ADC4),
  1703. ASPEED_PINCTRL_GROUP(ADC5),
  1704. ASPEED_PINCTRL_GROUP(ADC6),
  1705. ASPEED_PINCTRL_GROUP(ADC7),
  1706. ASPEED_PINCTRL_GROUP(ADC8),
  1707. ASPEED_PINCTRL_GROUP(ADC9),
  1708. ASPEED_PINCTRL_GROUP(BMCINT),
  1709. ASPEED_PINCTRL_GROUP(DDCCLK),
  1710. ASPEED_PINCTRL_GROUP(DDCDAT),
  1711. ASPEED_PINCTRL_GROUP(ESPI),
  1712. ASPEED_PINCTRL_GROUP(FWSPICS1),
  1713. ASPEED_PINCTRL_GROUP(FWSPICS2),
  1714. ASPEED_PINCTRL_GROUP(GPID0),
  1715. ASPEED_PINCTRL_GROUP(GPID2),
  1716. ASPEED_PINCTRL_GROUP(GPID4),
  1717. ASPEED_PINCTRL_GROUP(GPID6),
  1718. ASPEED_PINCTRL_GROUP(GPIE0),
  1719. ASPEED_PINCTRL_GROUP(GPIE2),
  1720. ASPEED_PINCTRL_GROUP(GPIE4),
  1721. ASPEED_PINCTRL_GROUP(GPIE6),
  1722. ASPEED_PINCTRL_GROUP(I2C10),
  1723. ASPEED_PINCTRL_GROUP(I2C11),
  1724. ASPEED_PINCTRL_GROUP(I2C12),
  1725. ASPEED_PINCTRL_GROUP(I2C13),
  1726. ASPEED_PINCTRL_GROUP(I2C14),
  1727. ASPEED_PINCTRL_GROUP(I2C3),
  1728. ASPEED_PINCTRL_GROUP(I2C4),
  1729. ASPEED_PINCTRL_GROUP(I2C5),
  1730. ASPEED_PINCTRL_GROUP(I2C6),
  1731. ASPEED_PINCTRL_GROUP(I2C7),
  1732. ASPEED_PINCTRL_GROUP(I2C8),
  1733. ASPEED_PINCTRL_GROUP(I2C9),
  1734. ASPEED_PINCTRL_GROUP(LAD0),
  1735. ASPEED_PINCTRL_GROUP(LAD1),
  1736. ASPEED_PINCTRL_GROUP(LAD2),
  1737. ASPEED_PINCTRL_GROUP(LAD3),
  1738. ASPEED_PINCTRL_GROUP(LCLK),
  1739. ASPEED_PINCTRL_GROUP(LFRAME),
  1740. ASPEED_PINCTRL_GROUP(LPCHC),
  1741. ASPEED_PINCTRL_GROUP(LPCPD),
  1742. ASPEED_PINCTRL_GROUP(LPCPLUS),
  1743. ASPEED_PINCTRL_GROUP(LPCPME),
  1744. ASPEED_PINCTRL_GROUP(LPCRST),
  1745. ASPEED_PINCTRL_GROUP(LPCSMI),
  1746. ASPEED_PINCTRL_GROUP(LSIRQ),
  1747. ASPEED_PINCTRL_GROUP(MAC1LINK),
  1748. ASPEED_PINCTRL_GROUP(MAC2LINK),
  1749. ASPEED_PINCTRL_GROUP(MDIO1),
  1750. ASPEED_PINCTRL_GROUP(MDIO2),
  1751. ASPEED_PINCTRL_GROUP(NCTS1),
  1752. ASPEED_PINCTRL_GROUP(NCTS2),
  1753. ASPEED_PINCTRL_GROUP(NCTS3),
  1754. ASPEED_PINCTRL_GROUP(NCTS4),
  1755. ASPEED_PINCTRL_GROUP(NDCD1),
  1756. ASPEED_PINCTRL_GROUP(NDCD2),
  1757. ASPEED_PINCTRL_GROUP(NDCD3),
  1758. ASPEED_PINCTRL_GROUP(NDCD4),
  1759. ASPEED_PINCTRL_GROUP(NDSR1),
  1760. ASPEED_PINCTRL_GROUP(NDSR2),
  1761. ASPEED_PINCTRL_GROUP(NDSR3),
  1762. ASPEED_PINCTRL_GROUP(NDSR4),
  1763. ASPEED_PINCTRL_GROUP(NDTR1),
  1764. ASPEED_PINCTRL_GROUP(NDTR2),
  1765. ASPEED_PINCTRL_GROUP(NDTR3),
  1766. ASPEED_PINCTRL_GROUP(NDTR4),
  1767. ASPEED_PINCTRL_GROUP(NRI1),
  1768. ASPEED_PINCTRL_GROUP(NRI2),
  1769. ASPEED_PINCTRL_GROUP(NRI3),
  1770. ASPEED_PINCTRL_GROUP(NRI4),
  1771. ASPEED_PINCTRL_GROUP(NRTS1),
  1772. ASPEED_PINCTRL_GROUP(NRTS2),
  1773. ASPEED_PINCTRL_GROUP(NRTS3),
  1774. ASPEED_PINCTRL_GROUP(NRTS4),
  1775. ASPEED_PINCTRL_GROUP(OSCCLK),
  1776. ASPEED_PINCTRL_GROUP(PEWAKE),
  1777. ASPEED_PINCTRL_GROUP(PNOR),
  1778. ASPEED_PINCTRL_GROUP(PWM0),
  1779. ASPEED_PINCTRL_GROUP(PWM1),
  1780. ASPEED_PINCTRL_GROUP(PWM2),
  1781. ASPEED_PINCTRL_GROUP(PWM3),
  1782. ASPEED_PINCTRL_GROUP(PWM4),
  1783. ASPEED_PINCTRL_GROUP(PWM5),
  1784. ASPEED_PINCTRL_GROUP(PWM6),
  1785. ASPEED_PINCTRL_GROUP(PWM7),
  1786. ASPEED_PINCTRL_GROUP(RGMII1),
  1787. ASPEED_PINCTRL_GROUP(RGMII2),
  1788. ASPEED_PINCTRL_GROUP(RMII1),
  1789. ASPEED_PINCTRL_GROUP(RMII2),
  1790. ASPEED_PINCTRL_GROUP(RXD1),
  1791. ASPEED_PINCTRL_GROUP(RXD2),
  1792. ASPEED_PINCTRL_GROUP(RXD3),
  1793. ASPEED_PINCTRL_GROUP(RXD4),
  1794. ASPEED_PINCTRL_GROUP(SALT1),
  1795. ASPEED_PINCTRL_GROUP(SALT10),
  1796. ASPEED_PINCTRL_GROUP(SALT11),
  1797. ASPEED_PINCTRL_GROUP(SALT12),
  1798. ASPEED_PINCTRL_GROUP(SALT13),
  1799. ASPEED_PINCTRL_GROUP(SALT14),
  1800. ASPEED_PINCTRL_GROUP(SALT2),
  1801. ASPEED_PINCTRL_GROUP(SALT3),
  1802. ASPEED_PINCTRL_GROUP(SALT4),
  1803. ASPEED_PINCTRL_GROUP(SALT5),
  1804. ASPEED_PINCTRL_GROUP(SALT6),
  1805. ASPEED_PINCTRL_GROUP(SALT7),
  1806. ASPEED_PINCTRL_GROUP(SALT8),
  1807. ASPEED_PINCTRL_GROUP(SALT9),
  1808. ASPEED_PINCTRL_GROUP(SCL1),
  1809. ASPEED_PINCTRL_GROUP(SCL2),
  1810. ASPEED_PINCTRL_GROUP(SD1),
  1811. ASPEED_PINCTRL_GROUP(SD2),
  1812. ASPEED_PINCTRL_GROUP(SDA1),
  1813. ASPEED_PINCTRL_GROUP(SDA2),
  1814. ASPEED_PINCTRL_GROUP(SGPS1),
  1815. ASPEED_PINCTRL_GROUP(SGPS2),
  1816. ASPEED_PINCTRL_GROUP(SIOONCTRL),
  1817. ASPEED_PINCTRL_GROUP(SIOPBI),
  1818. ASPEED_PINCTRL_GROUP(SIOPBO),
  1819. ASPEED_PINCTRL_GROUP(SIOPWREQ),
  1820. ASPEED_PINCTRL_GROUP(SIOPWRGD),
  1821. ASPEED_PINCTRL_GROUP(SIOS3),
  1822. ASPEED_PINCTRL_GROUP(SIOS5),
  1823. ASPEED_PINCTRL_GROUP(SIOSCI),
  1824. ASPEED_PINCTRL_GROUP(SPI1),
  1825. ASPEED_PINCTRL_GROUP(SPI1CS1),
  1826. ASPEED_PINCTRL_GROUP(SPI1DEBUG),
  1827. ASPEED_PINCTRL_GROUP(SPI1PASSTHRU),
  1828. ASPEED_PINCTRL_GROUP(SPI2CK),
  1829. ASPEED_PINCTRL_GROUP(SPI2CS0),
  1830. ASPEED_PINCTRL_GROUP(SPI2CS1),
  1831. ASPEED_PINCTRL_GROUP(SPI2MISO),
  1832. ASPEED_PINCTRL_GROUP(SPI2MOSI),
  1833. ASPEED_PINCTRL_GROUP(TIMER3),
  1834. ASPEED_PINCTRL_GROUP(TIMER4),
  1835. ASPEED_PINCTRL_GROUP(TIMER5),
  1836. ASPEED_PINCTRL_GROUP(TIMER6),
  1837. ASPEED_PINCTRL_GROUP(TIMER7),
  1838. ASPEED_PINCTRL_GROUP(TIMER8),
  1839. ASPEED_PINCTRL_GROUP(TXD1),
  1840. ASPEED_PINCTRL_GROUP(TXD2),
  1841. ASPEED_PINCTRL_GROUP(TXD3),
  1842. ASPEED_PINCTRL_GROUP(TXD4),
  1843. ASPEED_PINCTRL_GROUP(UART6),
  1844. ASPEED_PINCTRL_GROUP(USB11BHID),
  1845. ASPEED_PINCTRL_GROUP(USB2AD),
  1846. ASPEED_PINCTRL_GROUP(USB2AH),
  1847. ASPEED_PINCTRL_GROUP(USB2BD),
  1848. ASPEED_PINCTRL_GROUP(USB2BH),
  1849. ASPEED_PINCTRL_GROUP(USBCKI),
  1850. ASPEED_PINCTRL_GROUP(VGABIOSROM),
  1851. ASPEED_PINCTRL_GROUP(VGAHS),
  1852. ASPEED_PINCTRL_GROUP(VGAVS),
  1853. ASPEED_PINCTRL_GROUP(VPI24),
  1854. ASPEED_PINCTRL_GROUP(VPO),
  1855. ASPEED_PINCTRL_GROUP(WDTRST1),
  1856. ASPEED_PINCTRL_GROUP(WDTRST2),
  1857. };
  1858. static const struct aspeed_pin_function aspeed_g5_functions[] = {
  1859. ASPEED_PINCTRL_FUNC(ACPI),
  1860. ASPEED_PINCTRL_FUNC(ADC0),
  1861. ASPEED_PINCTRL_FUNC(ADC1),
  1862. ASPEED_PINCTRL_FUNC(ADC10),
  1863. ASPEED_PINCTRL_FUNC(ADC11),
  1864. ASPEED_PINCTRL_FUNC(ADC12),
  1865. ASPEED_PINCTRL_FUNC(ADC13),
  1866. ASPEED_PINCTRL_FUNC(ADC14),
  1867. ASPEED_PINCTRL_FUNC(ADC15),
  1868. ASPEED_PINCTRL_FUNC(ADC2),
  1869. ASPEED_PINCTRL_FUNC(ADC3),
  1870. ASPEED_PINCTRL_FUNC(ADC4),
  1871. ASPEED_PINCTRL_FUNC(ADC5),
  1872. ASPEED_PINCTRL_FUNC(ADC6),
  1873. ASPEED_PINCTRL_FUNC(ADC7),
  1874. ASPEED_PINCTRL_FUNC(ADC8),
  1875. ASPEED_PINCTRL_FUNC(ADC9),
  1876. ASPEED_PINCTRL_FUNC(BMCINT),
  1877. ASPEED_PINCTRL_FUNC(DDCCLK),
  1878. ASPEED_PINCTRL_FUNC(DDCDAT),
  1879. ASPEED_PINCTRL_FUNC(ESPI),
  1880. ASPEED_PINCTRL_FUNC(FWSPICS1),
  1881. ASPEED_PINCTRL_FUNC(FWSPICS2),
  1882. ASPEED_PINCTRL_FUNC(GPID0),
  1883. ASPEED_PINCTRL_FUNC(GPID2),
  1884. ASPEED_PINCTRL_FUNC(GPID4),
  1885. ASPEED_PINCTRL_FUNC(GPID6),
  1886. ASPEED_PINCTRL_FUNC(GPIE0),
  1887. ASPEED_PINCTRL_FUNC(GPIE2),
  1888. ASPEED_PINCTRL_FUNC(GPIE4),
  1889. ASPEED_PINCTRL_FUNC(GPIE6),
  1890. ASPEED_PINCTRL_FUNC(I2C10),
  1891. ASPEED_PINCTRL_FUNC(I2C11),
  1892. ASPEED_PINCTRL_FUNC(I2C12),
  1893. ASPEED_PINCTRL_FUNC(I2C13),
  1894. ASPEED_PINCTRL_FUNC(I2C14),
  1895. ASPEED_PINCTRL_FUNC(I2C3),
  1896. ASPEED_PINCTRL_FUNC(I2C4),
  1897. ASPEED_PINCTRL_FUNC(I2C5),
  1898. ASPEED_PINCTRL_FUNC(I2C6),
  1899. ASPEED_PINCTRL_FUNC(I2C7),
  1900. ASPEED_PINCTRL_FUNC(I2C8),
  1901. ASPEED_PINCTRL_FUNC(I2C9),
  1902. ASPEED_PINCTRL_FUNC(LAD0),
  1903. ASPEED_PINCTRL_FUNC(LAD1),
  1904. ASPEED_PINCTRL_FUNC(LAD2),
  1905. ASPEED_PINCTRL_FUNC(LAD3),
  1906. ASPEED_PINCTRL_FUNC(LCLK),
  1907. ASPEED_PINCTRL_FUNC(LFRAME),
  1908. ASPEED_PINCTRL_FUNC(LPCHC),
  1909. ASPEED_PINCTRL_FUNC(LPCPD),
  1910. ASPEED_PINCTRL_FUNC(LPCPLUS),
  1911. ASPEED_PINCTRL_FUNC(LPCPME),
  1912. ASPEED_PINCTRL_FUNC(LPCRST),
  1913. ASPEED_PINCTRL_FUNC(LPCSMI),
  1914. ASPEED_PINCTRL_FUNC(LSIRQ),
  1915. ASPEED_PINCTRL_FUNC(MAC1LINK),
  1916. ASPEED_PINCTRL_FUNC(MAC2LINK),
  1917. ASPEED_PINCTRL_FUNC(MDIO1),
  1918. ASPEED_PINCTRL_FUNC(MDIO2),
  1919. ASPEED_PINCTRL_FUNC(NCTS1),
  1920. ASPEED_PINCTRL_FUNC(NCTS2),
  1921. ASPEED_PINCTRL_FUNC(NCTS3),
  1922. ASPEED_PINCTRL_FUNC(NCTS4),
  1923. ASPEED_PINCTRL_FUNC(NDCD1),
  1924. ASPEED_PINCTRL_FUNC(NDCD2),
  1925. ASPEED_PINCTRL_FUNC(NDCD3),
  1926. ASPEED_PINCTRL_FUNC(NDCD4),
  1927. ASPEED_PINCTRL_FUNC(NDSR1),
  1928. ASPEED_PINCTRL_FUNC(NDSR2),
  1929. ASPEED_PINCTRL_FUNC(NDSR3),
  1930. ASPEED_PINCTRL_FUNC(NDSR4),
  1931. ASPEED_PINCTRL_FUNC(NDTR1),
  1932. ASPEED_PINCTRL_FUNC(NDTR2),
  1933. ASPEED_PINCTRL_FUNC(NDTR3),
  1934. ASPEED_PINCTRL_FUNC(NDTR4),
  1935. ASPEED_PINCTRL_FUNC(NRI1),
  1936. ASPEED_PINCTRL_FUNC(NRI2),
  1937. ASPEED_PINCTRL_FUNC(NRI3),
  1938. ASPEED_PINCTRL_FUNC(NRI4),
  1939. ASPEED_PINCTRL_FUNC(NRTS1),
  1940. ASPEED_PINCTRL_FUNC(NRTS2),
  1941. ASPEED_PINCTRL_FUNC(NRTS3),
  1942. ASPEED_PINCTRL_FUNC(NRTS4),
  1943. ASPEED_PINCTRL_FUNC(OSCCLK),
  1944. ASPEED_PINCTRL_FUNC(PEWAKE),
  1945. ASPEED_PINCTRL_FUNC(PNOR),
  1946. ASPEED_PINCTRL_FUNC(PWM0),
  1947. ASPEED_PINCTRL_FUNC(PWM1),
  1948. ASPEED_PINCTRL_FUNC(PWM2),
  1949. ASPEED_PINCTRL_FUNC(PWM3),
  1950. ASPEED_PINCTRL_FUNC(PWM4),
  1951. ASPEED_PINCTRL_FUNC(PWM5),
  1952. ASPEED_PINCTRL_FUNC(PWM6),
  1953. ASPEED_PINCTRL_FUNC(PWM7),
  1954. ASPEED_PINCTRL_FUNC(RGMII1),
  1955. ASPEED_PINCTRL_FUNC(RGMII2),
  1956. ASPEED_PINCTRL_FUNC(RMII1),
  1957. ASPEED_PINCTRL_FUNC(RMII2),
  1958. ASPEED_PINCTRL_FUNC(RXD1),
  1959. ASPEED_PINCTRL_FUNC(RXD2),
  1960. ASPEED_PINCTRL_FUNC(RXD3),
  1961. ASPEED_PINCTRL_FUNC(RXD4),
  1962. ASPEED_PINCTRL_FUNC(SALT1),
  1963. ASPEED_PINCTRL_FUNC(SALT10),
  1964. ASPEED_PINCTRL_FUNC(SALT11),
  1965. ASPEED_PINCTRL_FUNC(SALT12),
  1966. ASPEED_PINCTRL_FUNC(SALT13),
  1967. ASPEED_PINCTRL_FUNC(SALT14),
  1968. ASPEED_PINCTRL_FUNC(SALT2),
  1969. ASPEED_PINCTRL_FUNC(SALT3),
  1970. ASPEED_PINCTRL_FUNC(SALT4),
  1971. ASPEED_PINCTRL_FUNC(SALT5),
  1972. ASPEED_PINCTRL_FUNC(SALT6),
  1973. ASPEED_PINCTRL_FUNC(SALT7),
  1974. ASPEED_PINCTRL_FUNC(SALT8),
  1975. ASPEED_PINCTRL_FUNC(SALT9),
  1976. ASPEED_PINCTRL_FUNC(SCL1),
  1977. ASPEED_PINCTRL_FUNC(SCL2),
  1978. ASPEED_PINCTRL_FUNC(SD1),
  1979. ASPEED_PINCTRL_FUNC(SD2),
  1980. ASPEED_PINCTRL_FUNC(SDA1),
  1981. ASPEED_PINCTRL_FUNC(SDA2),
  1982. ASPEED_PINCTRL_FUNC(SGPS1),
  1983. ASPEED_PINCTRL_FUNC(SGPS2),
  1984. ASPEED_PINCTRL_FUNC(SIOONCTRL),
  1985. ASPEED_PINCTRL_FUNC(SIOPBI),
  1986. ASPEED_PINCTRL_FUNC(SIOPBO),
  1987. ASPEED_PINCTRL_FUNC(SIOPWREQ),
  1988. ASPEED_PINCTRL_FUNC(SIOPWRGD),
  1989. ASPEED_PINCTRL_FUNC(SIOS3),
  1990. ASPEED_PINCTRL_FUNC(SIOS5),
  1991. ASPEED_PINCTRL_FUNC(SIOSCI),
  1992. ASPEED_PINCTRL_FUNC(SPI1),
  1993. ASPEED_PINCTRL_FUNC(SPI1CS1),
  1994. ASPEED_PINCTRL_FUNC(SPI1DEBUG),
  1995. ASPEED_PINCTRL_FUNC(SPI1PASSTHRU),
  1996. ASPEED_PINCTRL_FUNC(SPI2CK),
  1997. ASPEED_PINCTRL_FUNC(SPI2CS0),
  1998. ASPEED_PINCTRL_FUNC(SPI2CS1),
  1999. ASPEED_PINCTRL_FUNC(SPI2MISO),
  2000. ASPEED_PINCTRL_FUNC(SPI2MOSI),
  2001. ASPEED_PINCTRL_FUNC(TIMER3),
  2002. ASPEED_PINCTRL_FUNC(TIMER4),
  2003. ASPEED_PINCTRL_FUNC(TIMER5),
  2004. ASPEED_PINCTRL_FUNC(TIMER6),
  2005. ASPEED_PINCTRL_FUNC(TIMER7),
  2006. ASPEED_PINCTRL_FUNC(TIMER8),
  2007. ASPEED_PINCTRL_FUNC(TXD1),
  2008. ASPEED_PINCTRL_FUNC(TXD2),
  2009. ASPEED_PINCTRL_FUNC(TXD3),
  2010. ASPEED_PINCTRL_FUNC(TXD4),
  2011. ASPEED_PINCTRL_FUNC(UART6),
  2012. ASPEED_PINCTRL_FUNC(USB11BHID),
  2013. ASPEED_PINCTRL_FUNC(USB2AD),
  2014. ASPEED_PINCTRL_FUNC(USB2AH),
  2015. ASPEED_PINCTRL_FUNC(USB2BD),
  2016. ASPEED_PINCTRL_FUNC(USB2BH),
  2017. ASPEED_PINCTRL_FUNC(USBCKI),
  2018. ASPEED_PINCTRL_FUNC(VGABIOSROM),
  2019. ASPEED_PINCTRL_FUNC(VGAHS),
  2020. ASPEED_PINCTRL_FUNC(VGAVS),
  2021. ASPEED_PINCTRL_FUNC(VPI24),
  2022. ASPEED_PINCTRL_FUNC(VPO),
  2023. ASPEED_PINCTRL_FUNC(WDTRST1),
  2024. ASPEED_PINCTRL_FUNC(WDTRST2),
  2025. };
  2026. static struct aspeed_pin_config aspeed_g5_configs[] = {
  2027. /* GPIOA, GPIOQ */
  2028. { PIN_CONFIG_BIAS_PULL_DOWN, { B14, B13 }, SCU8C, 16 },
  2029. { PIN_CONFIG_BIAS_DISABLE, { B14, B13 }, SCU8C, 16 },
  2030. { PIN_CONFIG_BIAS_PULL_DOWN, { A11, N20 }, SCU8C, 16 },
  2031. { PIN_CONFIG_BIAS_DISABLE, { A11, N20 }, SCU8C, 16 },
  2032. /* GPIOB, GPIOR */
  2033. { PIN_CONFIG_BIAS_PULL_DOWN, { K19, H20 }, SCU8C, 17 },
  2034. { PIN_CONFIG_BIAS_DISABLE, { K19, H20 }, SCU8C, 17 },
  2035. { PIN_CONFIG_BIAS_PULL_DOWN, { AA19, E10 }, SCU8C, 17 },
  2036. { PIN_CONFIG_BIAS_DISABLE, { AA19, E10 }, SCU8C, 17 },
  2037. /* GPIOC, GPIOS*/
  2038. { PIN_CONFIG_BIAS_PULL_DOWN, { C12, B11 }, SCU8C, 18 },
  2039. { PIN_CONFIG_BIAS_DISABLE, { C12, B11 }, SCU8C, 18 },
  2040. { PIN_CONFIG_BIAS_PULL_DOWN, { V20, AA20 }, SCU8C, 18 },
  2041. { PIN_CONFIG_BIAS_DISABLE, { V20, AA20 }, SCU8C, 18 },
  2042. /* GPIOD, GPIOY */
  2043. { PIN_CONFIG_BIAS_PULL_DOWN, { F19, C21 }, SCU8C, 19 },
  2044. { PIN_CONFIG_BIAS_DISABLE, { F19, C21 }, SCU8C, 19 },
  2045. { PIN_CONFIG_BIAS_PULL_DOWN, { R22, P20 }, SCU8C, 19 },
  2046. { PIN_CONFIG_BIAS_DISABLE, { R22, P20 }, SCU8C, 19 },
  2047. /* GPIOE, GPIOZ */
  2048. { PIN_CONFIG_BIAS_PULL_DOWN, { B20, B19 }, SCU8C, 20 },
  2049. { PIN_CONFIG_BIAS_DISABLE, { B20, B19 }, SCU8C, 20 },
  2050. { PIN_CONFIG_BIAS_PULL_DOWN, { Y20, W21 }, SCU8C, 20 },
  2051. { PIN_CONFIG_BIAS_DISABLE, { Y20, W21 }, SCU8C, 20 },
  2052. /* GPIOF, GPIOAA */
  2053. { PIN_CONFIG_BIAS_PULL_DOWN, { J19, H18 }, SCU8C, 21 },
  2054. { PIN_CONFIG_BIAS_DISABLE, { J19, H18 }, SCU8C, 21 },
  2055. { PIN_CONFIG_BIAS_PULL_DOWN, { Y21, P19 }, SCU8C, 21 },
  2056. { PIN_CONFIG_BIAS_DISABLE, { Y21, P19 }, SCU8C, 21 },
  2057. /* GPIOG, GPIOAB */
  2058. { PIN_CONFIG_BIAS_PULL_DOWN, { A19, E14 }, SCU8C, 22 },
  2059. { PIN_CONFIG_BIAS_DISABLE, { A19, E14 }, SCU8C, 22 },
  2060. { PIN_CONFIG_BIAS_PULL_DOWN, { N19, R20 }, SCU8C, 22 },
  2061. { PIN_CONFIG_BIAS_DISABLE, { N19, R20 }, SCU8C, 22 },
  2062. /* GPIOH, GPIOAC */
  2063. { PIN_CONFIG_BIAS_PULL_DOWN, { A18, D18 }, SCU8C, 23 },
  2064. { PIN_CONFIG_BIAS_DISABLE, { A18, D18 }, SCU8C, 23 },
  2065. { PIN_CONFIG_BIAS_PULL_DOWN, { G21, G22 }, SCU8C, 23 },
  2066. { PIN_CONFIG_BIAS_DISABLE, { G21, G22 }, SCU8C, 23 },
  2067. /* GPIOs [I, P] */
  2068. { PIN_CONFIG_BIAS_PULL_DOWN, { C18, A15 }, SCU8C, 24 },
  2069. { PIN_CONFIG_BIAS_DISABLE, { C18, A15 }, SCU8C, 24 },
  2070. { PIN_CONFIG_BIAS_PULL_DOWN, { R2, T3 }, SCU8C, 25 },
  2071. { PIN_CONFIG_BIAS_DISABLE, { R2, T3 }, SCU8C, 25 },
  2072. { PIN_CONFIG_BIAS_PULL_DOWN, { L3, R1 }, SCU8C, 26 },
  2073. { PIN_CONFIG_BIAS_DISABLE, { L3, R1 }, SCU8C, 26 },
  2074. { PIN_CONFIG_BIAS_PULL_DOWN, { T2, W1 }, SCU8C, 27 },
  2075. { PIN_CONFIG_BIAS_DISABLE, { T2, W1 }, SCU8C, 27 },
  2076. { PIN_CONFIG_BIAS_PULL_DOWN, { Y1, T5 }, SCU8C, 28 },
  2077. { PIN_CONFIG_BIAS_DISABLE, { Y1, T5 }, SCU8C, 28 },
  2078. { PIN_CONFIG_BIAS_PULL_DOWN, { V2, T4 }, SCU8C, 29 },
  2079. { PIN_CONFIG_BIAS_DISABLE, { V2, T4 }, SCU8C, 29 },
  2080. { PIN_CONFIG_BIAS_PULL_DOWN, { U5, W4 }, SCU8C, 30 },
  2081. { PIN_CONFIG_BIAS_DISABLE, { U5, W4 }, SCU8C, 30 },
  2082. { PIN_CONFIG_BIAS_PULL_DOWN, { V4, V6 }, SCU8C, 31 },
  2083. { PIN_CONFIG_BIAS_DISABLE, { V4, V6 }, SCU8C, 31 },
  2084. /* GPIOs T[0-5] (RGMII1 Tx pins) */
  2085. { PIN_CONFIG_DRIVE_STRENGTH, { B5, B5 }, SCU90, 8 },
  2086. { PIN_CONFIG_DRIVE_STRENGTH, { E9, A5 }, SCU90, 9 },
  2087. { PIN_CONFIG_BIAS_PULL_DOWN, { B5, D7 }, SCU90, 12 },
  2088. { PIN_CONFIG_BIAS_DISABLE, { B5, D7 }, SCU90, 12 },
  2089. /* GPIOs T[6-7], U[0-3] (RGMII2 TX pins) */
  2090. { PIN_CONFIG_DRIVE_STRENGTH, { B2, B2 }, SCU90, 10 },
  2091. { PIN_CONFIG_DRIVE_STRENGTH, { B1, B3 }, SCU90, 11 },
  2092. { PIN_CONFIG_BIAS_PULL_DOWN, { B2, D4 }, SCU90, 14 },
  2093. { PIN_CONFIG_BIAS_DISABLE, { B2, D4 }, SCU90, 14 },
  2094. /* GPIOs U[4-7], V[0-1] (RGMII1 Rx pins) */
  2095. { PIN_CONFIG_BIAS_PULL_DOWN, { B4, C4 }, SCU90, 13 },
  2096. { PIN_CONFIG_BIAS_DISABLE, { B4, C4 }, SCU90, 13 },
  2097. /* GPIOs V[2-7] (RGMII2 Rx pins) */
  2098. { PIN_CONFIG_BIAS_PULL_DOWN, { C2, E6 }, SCU90, 15 },
  2099. { PIN_CONFIG_BIAS_DISABLE, { C2, E6 }, SCU90, 15 },
  2100. /* ADC pull-downs (SCUA8[19:4]) */
  2101. { PIN_CONFIG_BIAS_PULL_DOWN, { F4, F4 }, SCUA8, 4 },
  2102. { PIN_CONFIG_BIAS_DISABLE, { F4, F4 }, SCUA8, 4 },
  2103. { PIN_CONFIG_BIAS_PULL_DOWN, { F5, F5 }, SCUA8, 5 },
  2104. { PIN_CONFIG_BIAS_DISABLE, { F5, F5 }, SCUA8, 5 },
  2105. { PIN_CONFIG_BIAS_PULL_DOWN, { E2, E2 }, SCUA8, 6 },
  2106. { PIN_CONFIG_BIAS_DISABLE, { E2, E2 }, SCUA8, 6 },
  2107. { PIN_CONFIG_BIAS_PULL_DOWN, { E1, E1 }, SCUA8, 7 },
  2108. { PIN_CONFIG_BIAS_DISABLE, { E1, E1 }, SCUA8, 7 },
  2109. { PIN_CONFIG_BIAS_PULL_DOWN, { F3, F3 }, SCUA8, 8 },
  2110. { PIN_CONFIG_BIAS_DISABLE, { F3, F3 }, SCUA8, 8 },
  2111. { PIN_CONFIG_BIAS_PULL_DOWN, { E3, E3 }, SCUA8, 9 },
  2112. { PIN_CONFIG_BIAS_DISABLE, { E3, E3 }, SCUA8, 9 },
  2113. { PIN_CONFIG_BIAS_PULL_DOWN, { G5, G5 }, SCUA8, 10 },
  2114. { PIN_CONFIG_BIAS_DISABLE, { G5, G5 }, SCUA8, 10 },
  2115. { PIN_CONFIG_BIAS_PULL_DOWN, { G4, G4 }, SCUA8, 11 },
  2116. { PIN_CONFIG_BIAS_DISABLE, { G4, G4 }, SCUA8, 11 },
  2117. { PIN_CONFIG_BIAS_PULL_DOWN, { F2, F2 }, SCUA8, 12 },
  2118. { PIN_CONFIG_BIAS_DISABLE, { F2, F2 }, SCUA8, 12 },
  2119. { PIN_CONFIG_BIAS_PULL_DOWN, { G3, G3 }, SCUA8, 13 },
  2120. { PIN_CONFIG_BIAS_DISABLE, { G3, G3 }, SCUA8, 13 },
  2121. { PIN_CONFIG_BIAS_PULL_DOWN, { G2, G2 }, SCUA8, 14 },
  2122. { PIN_CONFIG_BIAS_DISABLE, { G2, G2 }, SCUA8, 14 },
  2123. { PIN_CONFIG_BIAS_PULL_DOWN, { F1, F1 }, SCUA8, 15 },
  2124. { PIN_CONFIG_BIAS_DISABLE, { F1, F1 }, SCUA8, 15 },
  2125. { PIN_CONFIG_BIAS_PULL_DOWN, { H5, H5 }, SCUA8, 16 },
  2126. { PIN_CONFIG_BIAS_DISABLE, { H5, H5 }, SCUA8, 16 },
  2127. { PIN_CONFIG_BIAS_PULL_DOWN, { G1, G1 }, SCUA8, 17 },
  2128. { PIN_CONFIG_BIAS_DISABLE, { G1, G1 }, SCUA8, 17 },
  2129. { PIN_CONFIG_BIAS_PULL_DOWN, { H3, H3 }, SCUA8, 18 },
  2130. { PIN_CONFIG_BIAS_DISABLE, { H3, H3 }, SCUA8, 18 },
  2131. { PIN_CONFIG_BIAS_PULL_DOWN, { H4, H4 }, SCUA8, 19 },
  2132. { PIN_CONFIG_BIAS_DISABLE, { H4, H4 }, SCUA8, 19 },
  2133. /*
  2134. * Debounce settings for GPIOs D and E passthrough mode are in
  2135. * SCUA8[27:20] and so are managed by pinctrl. Normal GPIO debounce for
  2136. * banks D and E is handled by the GPIO driver - GPIO passthrough is
  2137. * treated like any other non-GPIO mux function. There is a catch
  2138. * however, in that the debounce period is configured in the GPIO
  2139. * controller. Due to this tangle between GPIO and pinctrl we don't yet
  2140. * fully support pass-through debounce.
  2141. */
  2142. { PIN_CONFIG_INPUT_DEBOUNCE, { F19, E21 }, SCUA8, 20 },
  2143. { PIN_CONFIG_INPUT_DEBOUNCE, { F20, D20 }, SCUA8, 21 },
  2144. { PIN_CONFIG_INPUT_DEBOUNCE, { D21, E20 }, SCUA8, 22 },
  2145. { PIN_CONFIG_INPUT_DEBOUNCE, { G18, C21 }, SCUA8, 23 },
  2146. { PIN_CONFIG_INPUT_DEBOUNCE, { B20, C20 }, SCUA8, 24 },
  2147. { PIN_CONFIG_INPUT_DEBOUNCE, { F18, F17 }, SCUA8, 25 },
  2148. { PIN_CONFIG_INPUT_DEBOUNCE, { E18, D19 }, SCUA8, 26 },
  2149. { PIN_CONFIG_INPUT_DEBOUNCE, { A20, B19 }, SCUA8, 27 },
  2150. };
  2151. static struct aspeed_pinctrl_data aspeed_g5_pinctrl_data = {
  2152. .pins = aspeed_g5_pins,
  2153. .npins = ARRAY_SIZE(aspeed_g5_pins),
  2154. .groups = aspeed_g5_groups,
  2155. .ngroups = ARRAY_SIZE(aspeed_g5_groups),
  2156. .functions = aspeed_g5_functions,
  2157. .nfunctions = ARRAY_SIZE(aspeed_g5_functions),
  2158. .configs = aspeed_g5_configs,
  2159. .nconfigs = ARRAY_SIZE(aspeed_g5_configs),
  2160. };
  2161. static const struct pinmux_ops aspeed_g5_pinmux_ops = {
  2162. .get_functions_count = aspeed_pinmux_get_fn_count,
  2163. .get_function_name = aspeed_pinmux_get_fn_name,
  2164. .get_function_groups = aspeed_pinmux_get_fn_groups,
  2165. .set_mux = aspeed_pinmux_set_mux,
  2166. .gpio_request_enable = aspeed_gpio_request_enable,
  2167. .strict = true,
  2168. };
  2169. static const struct pinctrl_ops aspeed_g5_pinctrl_ops = {
  2170. .get_groups_count = aspeed_pinctrl_get_groups_count,
  2171. .get_group_name = aspeed_pinctrl_get_group_name,
  2172. .get_group_pins = aspeed_pinctrl_get_group_pins,
  2173. .pin_dbg_show = aspeed_pinctrl_pin_dbg_show,
  2174. .dt_node_to_map = pinconf_generic_dt_node_to_map_all,
  2175. .dt_free_map = pinctrl_utils_free_map,
  2176. };
  2177. static const struct pinconf_ops aspeed_g5_conf_ops = {
  2178. .is_generic = true,
  2179. .pin_config_get = aspeed_pin_config_get,
  2180. .pin_config_set = aspeed_pin_config_set,
  2181. .pin_config_group_get = aspeed_pin_config_group_get,
  2182. .pin_config_group_set = aspeed_pin_config_group_set,
  2183. };
  2184. static struct pinctrl_desc aspeed_g5_pinctrl_desc = {
  2185. .name = "aspeed-g5-pinctrl",
  2186. .pins = aspeed_g5_pins,
  2187. .npins = ARRAY_SIZE(aspeed_g5_pins),
  2188. .pctlops = &aspeed_g5_pinctrl_ops,
  2189. .pmxops = &aspeed_g5_pinmux_ops,
  2190. .confops = &aspeed_g5_conf_ops,
  2191. };
  2192. static int aspeed_g5_pinctrl_probe(struct platform_device *pdev)
  2193. {
  2194. int i;
  2195. struct regmap *map;
  2196. struct device_node *node;
  2197. for (i = 0; i < ARRAY_SIZE(aspeed_g5_pins); i++)
  2198. aspeed_g5_pins[i].number = i;
  2199. node = of_parse_phandle(pdev->dev.of_node, "aspeed,external-nodes", 0);
  2200. map = syscon_node_to_regmap(node);
  2201. of_node_put(node);
  2202. if (IS_ERR(map)) {
  2203. dev_warn(&pdev->dev, "No GFX phandle found, some mux configurations may fail\n");
  2204. map = NULL;
  2205. }
  2206. aspeed_g5_pinctrl_data.maps[ASPEED_IP_GFX] = map;
  2207. node = of_parse_phandle(pdev->dev.of_node, "aspeed,external-nodes", 1);
  2208. if (node) {
  2209. map = syscon_node_to_regmap(node->parent);
  2210. if (IS_ERR(map)) {
  2211. dev_warn(&pdev->dev, "LHC parent is not a syscon, some mux configurations may fail\n");
  2212. map = NULL;
  2213. }
  2214. } else {
  2215. dev_warn(&pdev->dev, "No LHC phandle found, some mux configurations may fail\n");
  2216. map = NULL;
  2217. }
  2218. of_node_put(node);
  2219. aspeed_g5_pinctrl_data.maps[ASPEED_IP_LPC] = map;
  2220. return aspeed_pinctrl_probe(pdev, &aspeed_g5_pinctrl_desc,
  2221. &aspeed_g5_pinctrl_data);
  2222. }
  2223. static const struct of_device_id aspeed_g5_pinctrl_of_match[] = {
  2224. { .compatible = "aspeed,ast2500-pinctrl", },
  2225. { .compatible = "aspeed,g5-pinctrl", },
  2226. { },
  2227. };
  2228. static struct platform_driver aspeed_g5_pinctrl_driver = {
  2229. .probe = aspeed_g5_pinctrl_probe,
  2230. .driver = {
  2231. .name = "aspeed-g5-pinctrl",
  2232. .of_match_table = aspeed_g5_pinctrl_of_match,
  2233. },
  2234. };
  2235. static int aspeed_g5_pinctrl_init(void)
  2236. {
  2237. return platform_driver_register(&aspeed_g5_pinctrl_driver);
  2238. }
  2239. arch_initcall(aspeed_g5_pinctrl_init);