0014-pinctrl-dt-bindings-Add-pinfunc-header-file-for-mt27.patch 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792
  1. From 124894a4d1635915ff95c447767677b60fd27e9c Mon Sep 17 00:00:00 2001
  2. From: Biao Huang <biao.huang@mediatek.com>
  3. Date: Mon, 28 Dec 2015 15:09:04 +0800
  4. Subject: [PATCH 014/102] pinctrl: dt bindings: Add pinfunc header file for
  5. mt2701
  6. Add pinfunc header file, mt2701 related dts will include it
  7. Signed-off-by: Biao Huang <biao.huang@mediatek.com>
  8. Acked-by: Linus Walleij <linus.walleij@linaro.org>
  9. ---
  10. arch/arm/boot/dts/mt2701-pinfunc.h | 735 ++++++++
  11. drivers/pinctrl/mediatek/Kconfig | 6 +
  12. drivers/pinctrl/mediatek/Makefile | 1 +
  13. drivers/pinctrl/mediatek/pinctrl-mt2701.c | 586 +++++++
  14. drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 16 +
  15. drivers/pinctrl/mediatek/pinctrl-mtk-common.h | 12 +-
  16. drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h | 2323 +++++++++++++++++++++++++
  17. 7 files changed, 3678 insertions(+), 1 deletion(-)
  18. create mode 100644 arch/arm/boot/dts/mt2701-pinfunc.h
  19. create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt2701.c
  20. create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h
  21. --- /dev/null
  22. +++ b/arch/arm/boot/dts/mt2701-pinfunc.h
  23. @@ -0,0 +1,735 @@
  24. +/*
  25. + * Copyright (c) 2015 MediaTek Inc.
  26. + * Author: Biao Huang <biao.huang@mediatek.com>
  27. + *
  28. + * This program is free software; you can redistribute it and/or modify
  29. + * it under the terms of the GNU General Public License version 2 as
  30. + * published by the Free Software Foundation.
  31. + *
  32. + * This program is distributed in the hope that it will be useful,
  33. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  34. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  35. + * GNU General Public License for more details.
  36. + */
  37. +
  38. +#ifndef __DTS_MT2701_PINFUNC_H
  39. +#define __DTS_MT2701_PINFUNC_H
  40. +
  41. +#include <dt-bindings/pinctrl/mt65xx.h>
  42. +
  43. +#define MT2701_PIN_0_PWRAP_SPI0_MI__FUNC_GPIO0 (MTK_PIN_NO(0) | 0)
  44. +#define MT2701_PIN_0_PWRAP_SPI0_MI__FUNC_PWRAP_SPIDO (MTK_PIN_NO(0) | 1)
  45. +#define MT2701_PIN_0_PWRAP_SPI0_MI__FUNC_PWRAP_SPIDI (MTK_PIN_NO(0) | 2)
  46. +
  47. +#define MT2701_PIN_1_PWRAP_SPI0_MO__FUNC_GPIO1 (MTK_PIN_NO(1) | 0)
  48. +#define MT2701_PIN_1_PWRAP_SPI0_MO__FUNC_PWRAP_SPIDI (MTK_PIN_NO(1) | 1)
  49. +#define MT2701_PIN_1_PWRAP_SPI0_MO__FUNC_PWRAP_SPIDO (MTK_PIN_NO(1) | 2)
  50. +
  51. +#define MT2701_PIN_2_PWRAP_INT__FUNC_GPIO2 (MTK_PIN_NO(2) | 0)
  52. +#define MT2701_PIN_2_PWRAP_INT__FUNC_PWRAP_INT (MTK_PIN_NO(2) | 1)
  53. +
  54. +#define MT2701_PIN_3_PWRAP_SPI0_CK__FUNC_GPIO3 (MTK_PIN_NO(3) | 0)
  55. +#define MT2701_PIN_3_PWRAP_SPI0_CK__FUNC_PWRAP_SPICK_I (MTK_PIN_NO(3) | 1)
  56. +
  57. +#define MT2701_PIN_4_PWRAP_SPI0_CSN__FUNC_GPIO4 (MTK_PIN_NO(4) | 0)
  58. +#define MT2701_PIN_4_PWRAP_SPI0_CSN__FUNC_PWRAP_SPICS_B_I (MTK_PIN_NO(4) | 1)
  59. +
  60. +#define MT2701_PIN_5_PWRAP_SPI0_CK2__FUNC_GPIO5 (MTK_PIN_NO(5) | 0)
  61. +#define MT2701_PIN_5_PWRAP_SPI0_CK2__FUNC_PWRAP_SPICK2_I (MTK_PIN_NO(5) | 1)
  62. +#define MT2701_PIN_5_PWRAP_SPI0_CK2__FUNC_ANT_SEL1 (MTK_PIN_NO(5) | 5)
  63. +
  64. +#define MT2701_PIN_6_PWRAP_SPI0_CSN2__FUNC_GPIO6 (MTK_PIN_NO(6) | 0)
  65. +#define MT2701_PIN_6_PWRAP_SPI0_CSN2__FUNC_PWRAP_SPICS2_B_I (MTK_PIN_NO(6) | 1)
  66. +#define MT2701_PIN_6_PWRAP_SPI0_CSN2__FUNC_ANT_SEL0 (MTK_PIN_NO(6) | 5)
  67. +#define MT2701_PIN_6_PWRAP_SPI0_CSN2__FUNC_DBG_MON_A_0 (MTK_PIN_NO(6) | 7)
  68. +
  69. +#define MT2701_PIN_7_SPI1_CSN__FUNC_GPIO7 (MTK_PIN_NO(7) | 0)
  70. +#define MT2701_PIN_7_SPI1_CSN__FUNC_SPI1_CS (MTK_PIN_NO(7) | 1)
  71. +#define MT2701_PIN_7_SPI1_CSN__FUNC_KCOL0 (MTK_PIN_NO(7) | 4)
  72. +#define MT2701_PIN_7_SPI1_CSN__FUNC_DBG_MON_B_12 (MTK_PIN_NO(7) | 7)
  73. +
  74. +#define MT2701_PIN_8_SPI1_MI__FUNC_GPIO8 (MTK_PIN_NO(8) | 0)
  75. +#define MT2701_PIN_8_SPI1_MI__FUNC_SPI1_MI (MTK_PIN_NO(8) | 1)
  76. +#define MT2701_PIN_8_SPI1_MI__FUNC_SPI1_MO (MTK_PIN_NO(8) | 2)
  77. +#define MT2701_PIN_8_SPI1_MI__FUNC_KCOL1 (MTK_PIN_NO(8) | 4)
  78. +#define MT2701_PIN_8_SPI1_MI__FUNC_DBG_MON_B_13 (MTK_PIN_NO(8) | 7)
  79. +
  80. +#define MT2701_PIN_9_SPI1_MO__FUNC_GPIO9 (MTK_PIN_NO(9) | 0)
  81. +#define MT2701_PIN_9_SPI1_MO__FUNC_SPI1_MO (MTK_PIN_NO(9) | 1)
  82. +#define MT2701_PIN_9_SPI1_MO__FUNC_SPI1_MI (MTK_PIN_NO(9) | 2)
  83. +#define MT2701_PIN_9_SPI1_MO__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(9) | 3)
  84. +#define MT2701_PIN_9_SPI1_MO__FUNC_KCOL2 (MTK_PIN_NO(9) | 4)
  85. +#define MT2701_PIN_9_SPI1_MO__FUNC_DBG_MON_B_14 (MTK_PIN_NO(9) | 7)
  86. +
  87. +#define MT2701_PIN_10_RTC32K_CK__FUNC_GPIO10 (MTK_PIN_NO(10) | 0)
  88. +#define MT2701_PIN_10_RTC32K_CK__FUNC_RTC32K_CK (MTK_PIN_NO(10) | 1)
  89. +
  90. +#define MT2701_PIN_11_WATCHDOG__FUNC_GPIO11 (MTK_PIN_NO(11) | 0)
  91. +#define MT2701_PIN_11_WATCHDOG__FUNC_WATCHDOG (MTK_PIN_NO(11) | 1)
  92. +
  93. +#define MT2701_PIN_12_SRCLKENA__FUNC_GPIO12 (MTK_PIN_NO(12) | 0)
  94. +#define MT2701_PIN_12_SRCLKENA__FUNC_SRCLKENA (MTK_PIN_NO(12) | 1)
  95. +
  96. +#define MT2701_PIN_13_SRCLKENAI__FUNC_GPIO13 (MTK_PIN_NO(13) | 0)
  97. +#define MT2701_PIN_13_SRCLKENAI__FUNC_SRCLKENAI (MTK_PIN_NO(13) | 1)
  98. +
  99. +#define MT2701_PIN_14_URXD2__FUNC_GPIO14 (MTK_PIN_NO(14) | 0)
  100. +#define MT2701_PIN_14_URXD2__FUNC_URXD2 (MTK_PIN_NO(14) | 1)
  101. +#define MT2701_PIN_14_URXD2__FUNC_UTXD2 (MTK_PIN_NO(14) | 2)
  102. +#define MT2701_PIN_14_URXD2__FUNC_SRCCLKENAI2 (MTK_PIN_NO(14) | 5)
  103. +#define MT2701_PIN_14_URXD2__FUNC_DBG_MON_B_30 (MTK_PIN_NO(14) | 7)
  104. +
  105. +#define MT2701_PIN_15_UTXD2__FUNC_GPIO15 (MTK_PIN_NO(15) | 0)
  106. +#define MT2701_PIN_15_UTXD2__FUNC_UTXD2 (MTK_PIN_NO(15) | 1)
  107. +#define MT2701_PIN_15_UTXD2__FUNC_URXD2 (MTK_PIN_NO(15) | 2)
  108. +#define MT2701_PIN_15_UTXD2__FUNC_DBG_MON_B_31 (MTK_PIN_NO(15) | 7)
  109. +
  110. +#define MT2701_PIN_18_PCM_CLK__FUNC_GPIO18 (MTK_PIN_NO(18) | 0)
  111. +#define MT2701_PIN_18_PCM_CLK__FUNC_PCM_CLK0 (MTK_PIN_NO(18) | 1)
  112. +#define MT2701_PIN_18_PCM_CLK__FUNC_MRG_CLK (MTK_PIN_NO(18) | 2)
  113. +#define MT2701_PIN_18_PCM_CLK__FUNC_MM_TEST_CK (MTK_PIN_NO(18) | 4)
  114. +#define MT2701_PIN_18_PCM_CLK__FUNC_CONN_DSP_JCK (MTK_PIN_NO(18) | 5)
  115. +#define MT2701_PIN_18_PCM_CLK__FUNC_WCN_PCM_CLKO (MTK_PIN_NO(18) | 6)
  116. +#define MT2701_PIN_18_PCM_CLK__FUNC_DBG_MON_A_3 (MTK_PIN_NO(18) | 7)
  117. +
  118. +#define MT2701_PIN_19_PCM_SYNC__FUNC_GPIO19 (MTK_PIN_NO(19) | 0)
  119. +#define MT2701_PIN_19_PCM_SYNC__FUNC_PCM_SYNC (MTK_PIN_NO(19) | 1)
  120. +#define MT2701_PIN_19_PCM_SYNC__FUNC_MRG_SYNC (MTK_PIN_NO(19) | 2)
  121. +#define MT2701_PIN_19_PCM_SYNC__FUNC_CONN_DSP_JINTP (MTK_PIN_NO(19) | 5)
  122. +#define MT2701_PIN_19_PCM_SYNC__FUNC_WCN_PCM_SYNC (MTK_PIN_NO(19) | 6)
  123. +#define MT2701_PIN_19_PCM_SYNC__FUNC_DBG_MON_A_5 (MTK_PIN_NO(19) | 7)
  124. +
  125. +#define MT2701_PIN_20_PCM_RX__FUNC_GPIO20 (MTK_PIN_NO(20) | 0)
  126. +#define MT2701_PIN_20_PCM_RX__FUNC_PCM_RX (MTK_PIN_NO(20) | 1)
  127. +#define MT2701_PIN_20_PCM_RX__FUNC_MRG_RX (MTK_PIN_NO(20) | 2)
  128. +#define MT2701_PIN_20_PCM_RX__FUNC_MRG_TX (MTK_PIN_NO(20) | 3)
  129. +#define MT2701_PIN_20_PCM_RX__FUNC_PCM_TX (MTK_PIN_NO(20) | 4)
  130. +#define MT2701_PIN_20_PCM_RX__FUNC_CONN_DSP_JDI (MTK_PIN_NO(20) | 5)
  131. +#define MT2701_PIN_20_PCM_RX__FUNC_WCN_PCM_RX (MTK_PIN_NO(20) | 6)
  132. +#define MT2701_PIN_20_PCM_RX__FUNC_DBG_MON_A_4 (MTK_PIN_NO(20) | 7)
  133. +
  134. +#define MT2701_PIN_21_PCM_TX__FUNC_GPIO21 (MTK_PIN_NO(21) | 0)
  135. +#define MT2701_PIN_21_PCM_TX__FUNC_PCM_TX (MTK_PIN_NO(21) | 1)
  136. +#define MT2701_PIN_21_PCM_TX__FUNC_MRG_TX (MTK_PIN_NO(21) | 2)
  137. +#define MT2701_PIN_21_PCM_TX__FUNC_MRG_RX (MTK_PIN_NO(21) | 3)
  138. +#define MT2701_PIN_21_PCM_TX__FUNC_PCM_RX (MTK_PIN_NO(21) | 4)
  139. +#define MT2701_PIN_21_PCM_TX__FUNC_CONN_DSP_JMS (MTK_PIN_NO(21) | 5)
  140. +#define MT2701_PIN_21_PCM_TX__FUNC_WCN_PCM_TX (MTK_PIN_NO(21) | 6)
  141. +#define MT2701_PIN_21_PCM_TX__FUNC_DBG_MON_A_2 (MTK_PIN_NO(21) | 7)
  142. +
  143. +#define MT2701_PIN_22_EINT0__FUNC_GPIO22 (MTK_PIN_NO(22) | 0)
  144. +#define MT2701_PIN_22_EINT0__FUNC_UCTS0 (MTK_PIN_NO(22) | 1)
  145. +#define MT2701_PIN_22_EINT0__FUNC_KCOL3 (MTK_PIN_NO(22) | 3)
  146. +#define MT2701_PIN_22_EINT0__FUNC_CONN_DSP_JDO (MTK_PIN_NO(22) | 4)
  147. +#define MT2701_PIN_22_EINT0__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(22) | 5)
  148. +#define MT2701_PIN_22_EINT0__FUNC_DBG_MON_A_30 (MTK_PIN_NO(22) | 7)
  149. +#define MT2701_PIN_22_EINT0__FUNC_PCIE0_PERST_N (MTK_PIN_NO(22) | 10)
  150. +
  151. +#define MT2701_PIN_23_EINT1__FUNC_GPIO23 (MTK_PIN_NO(23) | 0)
  152. +#define MT2701_PIN_23_EINT1__FUNC_URTS0 (MTK_PIN_NO(23) | 1)
  153. +#define MT2701_PIN_23_EINT1__FUNC_KCOL2 (MTK_PIN_NO(23) | 3)
  154. +#define MT2701_PIN_23_EINT1__FUNC_CONN_MCU_TDO (MTK_PIN_NO(23) | 4)
  155. +#define MT2701_PIN_23_EINT1__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(23) | 5)
  156. +#define MT2701_PIN_23_EINT1__FUNC_DBG_MON_A_29 (MTK_PIN_NO(23) | 7)
  157. +#define MT2701_PIN_23_EINT1__FUNC_PCIE1_PERST_N (MTK_PIN_NO(23) | 10)
  158. +
  159. +#define MT2701_PIN_24_EINT2__FUNC_GPIO24 (MTK_PIN_NO(24) | 0)
  160. +#define MT2701_PIN_24_EINT2__FUNC_UCTS1 (MTK_PIN_NO(24) | 1)
  161. +#define MT2701_PIN_24_EINT2__FUNC_KCOL1 (MTK_PIN_NO(24) | 3)
  162. +#define MT2701_PIN_24_EINT2__FUNC_CONN_MCU_DBGACK_N (MTK_PIN_NO(24) | 4)
  163. +#define MT2701_PIN_24_EINT2__FUNC_DBG_MON_A_28 (MTK_PIN_NO(24) | 7)
  164. +#define MT2701_PIN_24_EINT2__FUNC_PCIE2_PERST_N (MTK_PIN_NO(24) | 10)
  165. +
  166. +#define MT2701_PIN_25_EINT3__FUNC_GPIO25 (MTK_PIN_NO(25) | 0)
  167. +#define MT2701_PIN_25_EINT3__FUNC_URTS1 (MTK_PIN_NO(25) | 1)
  168. +#define MT2701_PIN_25_EINT3__FUNC_KCOL0 (MTK_PIN_NO(25) | 3)
  169. +#define MT2701_PIN_25_EINT3__FUNC_CONN_MCU_DBGI_N (MTK_PIN_NO(25) | 4)
  170. +#define MT2701_PIN_25_EINT3__FUNC_DBG_MON_A_27 (MTK_PIN_NO(25) | 7)
  171. +
  172. +#define MT2701_PIN_26_EINT4__FUNC_GPIO26 (MTK_PIN_NO(26) | 0)
  173. +#define MT2701_PIN_26_EINT4__FUNC_UCTS3 (MTK_PIN_NO(26) | 1)
  174. +#define MT2701_PIN_26_EINT4__FUNC_DRV_VBUS_P1 (MTK_PIN_NO(26) | 2)
  175. +#define MT2701_PIN_26_EINT4__FUNC_KROW3 (MTK_PIN_NO(26) | 3)
  176. +#define MT2701_PIN_26_EINT4__FUNC_CONN_MCU_TCK0 (MTK_PIN_NO(26) | 4)
  177. +#define MT2701_PIN_26_EINT4__FUNC_CONN_MCU_AICE_JCKC (MTK_PIN_NO(26) | 5)
  178. +#define MT2701_PIN_26_EINT4__FUNC_PCIE2_WAKE_N (MTK_PIN_NO(26) | 6)
  179. +#define MT2701_PIN_26_EINT4__FUNC_DBG_MON_A_26 (MTK_PIN_NO(26) | 7)
  180. +
  181. +#define MT2701_PIN_27_EINT5__FUNC_GPIO27 (MTK_PIN_NO(27) | 0)
  182. +#define MT2701_PIN_27_EINT5__FUNC_URTS3 (MTK_PIN_NO(27) | 1)
  183. +#define MT2701_PIN_27_EINT5__FUNC_IDDIG_P1 (MTK_PIN_NO(27) | 2)
  184. +#define MT2701_PIN_27_EINT5__FUNC_KROW2 (MTK_PIN_NO(27) | 3)
  185. +#define MT2701_PIN_27_EINT5__FUNC_CONN_MCU_TDI (MTK_PIN_NO(27) | 4)
  186. +#define MT2701_PIN_27_EINT5__FUNC_PCIE1_WAKE_N (MTK_PIN_NO(27) | 6)
  187. +#define MT2701_PIN_27_EINT5__FUNC_DBG_MON_A_25 (MTK_PIN_NO(27) | 7)
  188. +
  189. +#define MT2701_PIN_28_EINT6__FUNC_GPIO28 (MTK_PIN_NO(28) | 0)
  190. +#define MT2701_PIN_28_EINT6__FUNC_DRV_VBUS (MTK_PIN_NO(28) | 1)
  191. +#define MT2701_PIN_28_EINT6__FUNC_KROW1 (MTK_PIN_NO(28) | 3)
  192. +#define MT2701_PIN_28_EINT6__FUNC_CONN_MCU_TRST_B (MTK_PIN_NO(28) | 4)
  193. +#define MT2701_PIN_28_EINT6__FUNC_PCIE0_WAKE_N (MTK_PIN_NO(28) | 6)
  194. +#define MT2701_PIN_28_EINT6__FUNC_DBG_MON_A_24 (MTK_PIN_NO(28) | 7)
  195. +
  196. +#define MT2701_PIN_29_EINT7__FUNC_GPIO29 (MTK_PIN_NO(29) | 0)
  197. +#define MT2701_PIN_29_EINT7__FUNC_IDDIG (MTK_PIN_NO(29) | 1)
  198. +#define MT2701_PIN_29_EINT7__FUNC_MSDC1_WP (MTK_PIN_NO(29) | 2)
  199. +#define MT2701_PIN_29_EINT7__FUNC_KROW0 (MTK_PIN_NO(29) | 3)
  200. +#define MT2701_PIN_29_EINT7__FUNC_CONN_MCU_TMS (MTK_PIN_NO(29) | 4)
  201. +#define MT2701_PIN_29_EINT7__FUNC_CONN_MCU_AICE_JMSC (MTK_PIN_NO(29) | 5)
  202. +#define MT2701_PIN_29_EINT7__FUNC_DBG_MON_A_23 (MTK_PIN_NO(29) | 7)
  203. +#define MT2701_PIN_29_EINT7__FUNC_PCIE2_PERST_N (MTK_PIN_NO(29) | 14)
  204. +
  205. +#define MT2701_PIN_33_I2S1_DATA__FUNC_GPIO33 (MTK_PIN_NO(33) | 0)
  206. +#define MT2701_PIN_33_I2S1_DATA__FUNC_I2S1_DATA (MTK_PIN_NO(33) | 1)
  207. +#define MT2701_PIN_33_I2S1_DATA__FUNC_I2S1_DATA_BYPS (MTK_PIN_NO(33) | 2)
  208. +#define MT2701_PIN_33_I2S1_DATA__FUNC_PCM_TX (MTK_PIN_NO(33) | 3)
  209. +#define MT2701_PIN_33_I2S1_DATA__FUNC_IMG_TEST_CK (MTK_PIN_NO(33) | 4)
  210. +#define MT2701_PIN_33_I2S1_DATA__FUNC_G1_RXD0 (MTK_PIN_NO(33) | 5)
  211. +#define MT2701_PIN_33_I2S1_DATA__FUNC_WCN_PCM_TX (MTK_PIN_NO(33) | 6)
  212. +#define MT2701_PIN_33_I2S1_DATA__FUNC_DBG_MON_B_8 (MTK_PIN_NO(33) | 7)
  213. +
  214. +#define MT2701_PIN_34_I2S1_DATA_IN__FUNC_GPIO34 (MTK_PIN_NO(34) | 0)
  215. +#define MT2701_PIN_34_I2S1_DATA_IN__FUNC_I2S1_DATA_IN (MTK_PIN_NO(34) | 1)
  216. +#define MT2701_PIN_34_I2S1_DATA_IN__FUNC_PCM_RX (MTK_PIN_NO(34) | 3)
  217. +#define MT2701_PIN_34_I2S1_DATA_IN__FUNC_VDEC_TEST_CK (MTK_PIN_NO(34) | 4)
  218. +#define MT2701_PIN_34_I2S1_DATA_IN__FUNC_G1_RXD1 (MTK_PIN_NO(34) | 5)
  219. +#define MT2701_PIN_34_I2S1_DATA_IN__FUNC_WCN_PCM_RX (MTK_PIN_NO(34) | 6)
  220. +#define MT2701_PIN_34_I2S1_DATA_IN__FUNC_DBG_MON_B_7 (MTK_PIN_NO(34) | 7)
  221. +
  222. +#define MT2701_PIN_35_I2S1_BCK__FUNC_GPIO35 (MTK_PIN_NO(35) | 0)
  223. +#define MT2701_PIN_35_I2S1_BCK__FUNC_I2S1_BCK (MTK_PIN_NO(35) | 1)
  224. +#define MT2701_PIN_35_I2S1_BCK__FUNC_PCM_CLK0 (MTK_PIN_NO(35) | 3)
  225. +#define MT2701_PIN_35_I2S1_BCK__FUNC_G1_RXD2 (MTK_PIN_NO(35) | 5)
  226. +#define MT2701_PIN_35_I2S1_BCK__FUNC_WCN_PCM_CLKO (MTK_PIN_NO(35) | 6)
  227. +#define MT2701_PIN_35_I2S1_BCK__FUNC_DBG_MON_B_9 (MTK_PIN_NO(35) | 7)
  228. +
  229. +#define MT2701_PIN_36_I2S1_LRCK__FUNC_GPIO36 (MTK_PIN_NO(36) | 0)
  230. +#define MT2701_PIN_36_I2S1_LRCK__FUNC_I2S1_LRCK (MTK_PIN_NO(36) | 1)
  231. +#define MT2701_PIN_36_I2S1_LRCK__FUNC_PCM_SYNC (MTK_PIN_NO(36) | 3)
  232. +#define MT2701_PIN_36_I2S1_LRCK__FUNC_G1_RXD3 (MTK_PIN_NO(36) | 5)
  233. +#define MT2701_PIN_36_I2S1_LRCK__FUNC_WCN_PCM_SYNC (MTK_PIN_NO(36) | 6)
  234. +#define MT2701_PIN_36_I2S1_LRCK__FUNC_DBG_MON_B_10 (MTK_PIN_NO(36) | 7)
  235. +
  236. +#define MT2701_PIN_37_I2S1_MCLK__FUNC_GPIO37 (MTK_PIN_NO(37) | 0)
  237. +#define MT2701_PIN_37_I2S1_MCLK__FUNC_I2S1_MCLK (MTK_PIN_NO(37) | 1)
  238. +#define MT2701_PIN_37_I2S1_MCLK__FUNC_G1_RXDV (MTK_PIN_NO(37) | 5)
  239. +#define MT2701_PIN_37_I2S1_MCLK__FUNC_DBG_MON_B_11 (MTK_PIN_NO(37) | 7)
  240. +
  241. +#define MT2701_PIN_39_JTMS__FUNC_GPIO39 (MTK_PIN_NO(39) | 0)
  242. +#define MT2701_PIN_39_JTMS__FUNC_JTMS (MTK_PIN_NO(39) | 1)
  243. +#define MT2701_PIN_39_JTMS__FUNC_CONN_MCU_TMS (MTK_PIN_NO(39) | 2)
  244. +#define MT2701_PIN_39_JTMS__FUNC_CONN_MCU_AICE_JMSC (MTK_PIN_NO(39) | 3)
  245. +#define MT2701_PIN_39_JTMS__FUNC_DFD_TMS_XI (MTK_PIN_NO(39) | 4)
  246. +
  247. +#define MT2701_PIN_40_JTCK__FUNC_GPIO40 (MTK_PIN_NO(40) | 0)
  248. +#define MT2701_PIN_40_JTCK__FUNC_JTCK (MTK_PIN_NO(40) | 1)
  249. +#define MT2701_PIN_40_JTCK__FUNC_CONN_MCU_TCK1 (MTK_PIN_NO(40) | 2)
  250. +#define MT2701_PIN_40_JTCK__FUNC_CONN_MCU_AICE_JCKC (MTK_PIN_NO(40) | 3)
  251. +#define MT2701_PIN_40_JTCK__FUNC_DFD_TCK_XI (MTK_PIN_NO(40) | 4)
  252. +
  253. +#define MT2701_PIN_41_JTDI__FUNC_GPIO41 (MTK_PIN_NO(41) | 0)
  254. +#define MT2701_PIN_41_JTDI__FUNC_JTDI (MTK_PIN_NO(41) | 1)
  255. +#define MT2701_PIN_41_JTDI__FUNC_CONN_MCU_TDI (MTK_PIN_NO(41) | 2)
  256. +#define MT2701_PIN_41_JTDI__FUNC_DFD_TDI_XI (MTK_PIN_NO(41) | 4)
  257. +
  258. +#define MT2701_PIN_42_JTDO__FUNC_GPIO42 (MTK_PIN_NO(42) | 0)
  259. +#define MT2701_PIN_42_JTDO__FUNC_JTDO (MTK_PIN_NO(42) | 1)
  260. +#define MT2701_PIN_42_JTDO__FUNC_CONN_MCU_TDO (MTK_PIN_NO(42) | 2)
  261. +#define MT2701_PIN_42_JTDO__FUNC_DFD_TDO (MTK_PIN_NO(42) | 4)
  262. +
  263. +#define MT2701_PIN_43_NCLE__FUNC_GPIO43 (MTK_PIN_NO(43) | 0)
  264. +#define MT2701_PIN_43_NCLE__FUNC_NCLE (MTK_PIN_NO(43) | 1)
  265. +#define MT2701_PIN_43_NCLE__FUNC_EXT_XCS2 (MTK_PIN_NO(43) | 2)
  266. +
  267. +#define MT2701_PIN_44_NCEB1__FUNC_GPIO44 (MTK_PIN_NO(44) | 0)
  268. +#define MT2701_PIN_44_NCEB1__FUNC_NCEB1 (MTK_PIN_NO(44) | 1)
  269. +#define MT2701_PIN_44_NCEB1__FUNC_IDDIG (MTK_PIN_NO(44) | 2)
  270. +
  271. +#define MT2701_PIN_45_NCEB0__FUNC_GPIO45 (MTK_PIN_NO(45) | 0)
  272. +#define MT2701_PIN_45_NCEB0__FUNC_NCEB0 (MTK_PIN_NO(45) | 1)
  273. +#define MT2701_PIN_45_NCEB0__FUNC_DRV_VBUS (MTK_PIN_NO(45) | 2)
  274. +
  275. +#define MT2701_PIN_46_IR__FUNC_GPIO46 (MTK_PIN_NO(46) | 0)
  276. +#define MT2701_PIN_46_IR__FUNC_IR (MTK_PIN_NO(46) | 1)
  277. +
  278. +#define MT2701_PIN_47_NREB__FUNC_GPIO47 (MTK_PIN_NO(47) | 0)
  279. +#define MT2701_PIN_47_NREB__FUNC_NREB (MTK_PIN_NO(47) | 1)
  280. +#define MT2701_PIN_47_NREB__FUNC_IDDIG_P1 (MTK_PIN_NO(47) | 2)
  281. +
  282. +#define MT2701_PIN_48_NRNB__FUNC_GPIO48 (MTK_PIN_NO(48) | 0)
  283. +#define MT2701_PIN_48_NRNB__FUNC_NRNB (MTK_PIN_NO(48) | 1)
  284. +#define MT2701_PIN_48_NRNB__FUNC_DRV_VBUS_P1 (MTK_PIN_NO(48) | 2)
  285. +
  286. +#define MT2701_PIN_49_I2S0_DATA__FUNC_GPIO49 (MTK_PIN_NO(49) | 0)
  287. +#define MT2701_PIN_49_I2S0_DATA__FUNC_I2S0_DATA (MTK_PIN_NO(49) | 1)
  288. +#define MT2701_PIN_49_I2S0_DATA__FUNC_I2S0_DATA_BYPS (MTK_PIN_NO(49) | 2)
  289. +#define MT2701_PIN_49_I2S0_DATA__FUNC_PCM_TX (MTK_PIN_NO(49) | 3)
  290. +#define MT2701_PIN_49_I2S0_DATA__FUNC_WCN_I2S_DO (MTK_PIN_NO(49) | 6)
  291. +#define MT2701_PIN_49_I2S0_DATA__FUNC_DBG_MON_B_3 (MTK_PIN_NO(49) | 7)
  292. +
  293. +#define MT2701_PIN_53_SPI0_CSN__FUNC_GPIO53 (MTK_PIN_NO(53) | 0)
  294. +#define MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS (MTK_PIN_NO(53) | 1)
  295. +#define MT2701_PIN_53_SPI0_CSN__FUNC_SPDIF (MTK_PIN_NO(53) | 3)
  296. +#define MT2701_PIN_53_SPI0_CSN__FUNC_ADC_CK (MTK_PIN_NO(53) | 4)
  297. +#define MT2701_PIN_53_SPI0_CSN__FUNC_PWM1 (MTK_PIN_NO(53) | 5)
  298. +#define MT2701_PIN_53_SPI0_CSN__FUNC_DBG_MON_A_7 (MTK_PIN_NO(53) | 7)
  299. +
  300. +#define MT2701_PIN_54_SPI0_CK__FUNC_GPIO54 (MTK_PIN_NO(54) | 0)
  301. +#define MT2701_PIN_54_SPI0_CK__FUNC_SPI0_CK (MTK_PIN_NO(54) | 1)
  302. +#define MT2701_PIN_54_SPI0_CK__FUNC_SPDIF_IN1 (MTK_PIN_NO(54) | 3)
  303. +#define MT2701_PIN_54_SPI0_CK__FUNC_ADC_DAT_IN (MTK_PIN_NO(54) | 4)
  304. +#define MT2701_PIN_54_SPI0_CK__FUNC_DBG_MON_A_10 (MTK_PIN_NO(54) | 7)
  305. +
  306. +#define MT2701_PIN_55_SPI0_MI__FUNC_GPIO55 (MTK_PIN_NO(55) | 0)
  307. +#define MT2701_PIN_55_SPI0_MI__FUNC_SPI0_MI (MTK_PIN_NO(55) | 1)
  308. +#define MT2701_PIN_55_SPI0_MI__FUNC_SPI0_MO (MTK_PIN_NO(55) | 2)
  309. +#define MT2701_PIN_55_SPI0_MI__FUNC_MSDC1_WP (MTK_PIN_NO(55) | 3)
  310. +#define MT2701_PIN_55_SPI0_MI__FUNC_ADC_WS (MTK_PIN_NO(55) | 4)
  311. +#define MT2701_PIN_55_SPI0_MI__FUNC_PWM2 (MTK_PIN_NO(55) | 5)
  312. +#define MT2701_PIN_55_SPI0_MI__FUNC_DBG_MON_A_8 (MTK_PIN_NO(55) | 7)
  313. +
  314. +#define MT2701_PIN_56_SPI0_MO__FUNC_GPIO56 (MTK_PIN_NO(56) | 0)
  315. +#define MT2701_PIN_56_SPI0_MO__FUNC_SPI0_MO (MTK_PIN_NO(56) | 1)
  316. +#define MT2701_PIN_56_SPI0_MO__FUNC_SPI0_MI (MTK_PIN_NO(56) | 2)
  317. +#define MT2701_PIN_56_SPI0_MO__FUNC_SPDIF_IN0 (MTK_PIN_NO(56) | 3)
  318. +#define MT2701_PIN_56_SPI0_MO__FUNC_DBG_MON_A_9 (MTK_PIN_NO(56) | 7)
  319. +
  320. +#define MT2701_PIN_57_SDA1__FUNC_GPIO57 (MTK_PIN_NO(57) | 0)
  321. +#define MT2701_PIN_57_SDA1__FUNC_SDA1 (MTK_PIN_NO(57) | 1)
  322. +
  323. +#define MT2701_PIN_58_SCL1__FUNC_GPIO58 (MTK_PIN_NO(58) | 0)
  324. +#define MT2701_PIN_58_SCL1__FUNC_SCL1 (MTK_PIN_NO(58) | 1)
  325. +
  326. +#define MT2701_PIN_72_I2S0_DATA_IN__FUNC_GPIO72 (MTK_PIN_NO(72) | 0)
  327. +#define MT2701_PIN_72_I2S0_DATA_IN__FUNC_I2S0_DATA_IN (MTK_PIN_NO(72) | 1)
  328. +#define MT2701_PIN_72_I2S0_DATA_IN__FUNC_PCM_RX (MTK_PIN_NO(72) | 3)
  329. +#define MT2701_PIN_72_I2S0_DATA_IN__FUNC_PWM0 (MTK_PIN_NO(72) | 4)
  330. +#define MT2701_PIN_72_I2S0_DATA_IN__FUNC_DISP_PWM (MTK_PIN_NO(72) | 5)
  331. +#define MT2701_PIN_72_I2S0_DATA_IN__FUNC_WCN_I2S_DI (MTK_PIN_NO(72) | 6)
  332. +#define MT2701_PIN_72_I2S0_DATA_IN__FUNC_DBG_MON_B_2 (MTK_PIN_NO(72) | 7)
  333. +
  334. +#define MT2701_PIN_73_I2S0_LRCK__FUNC_GPIO73 (MTK_PIN_NO(73) | 0)
  335. +#define MT2701_PIN_73_I2S0_LRCK__FUNC_I2S0_LRCK (MTK_PIN_NO(73) | 1)
  336. +#define MT2701_PIN_73_I2S0_LRCK__FUNC_PCM_SYNC (MTK_PIN_NO(73) | 3)
  337. +#define MT2701_PIN_73_I2S0_LRCK__FUNC_WCN_I2S_LRCK (MTK_PIN_NO(73) | 6)
  338. +#define MT2701_PIN_73_I2S0_LRCK__FUNC_DBG_MON_B_5 (MTK_PIN_NO(73) | 7)
  339. +
  340. +#define MT2701_PIN_74_I2S0_BCK__FUNC_GPIO74 (MTK_PIN_NO(74) | 0)
  341. +#define MT2701_PIN_74_I2S0_BCK__FUNC_I2S0_BCK (MTK_PIN_NO(74) | 1)
  342. +#define MT2701_PIN_74_I2S0_BCK__FUNC_PCM_CLK0 (MTK_PIN_NO(74) | 3)
  343. +#define MT2701_PIN_74_I2S0_BCK__FUNC_WCN_I2S_BCK (MTK_PIN_NO(74) | 6)
  344. +#define MT2701_PIN_74_I2S0_BCK__FUNC_DBG_MON_B_4 (MTK_PIN_NO(74) | 7)
  345. +
  346. +#define MT2701_PIN_75_SDA0__FUNC_GPIO75 (MTK_PIN_NO(75) | 0)
  347. +#define MT2701_PIN_75_SDA0__FUNC_SDA0 (MTK_PIN_NO(75) | 1)
  348. +
  349. +#define MT2701_PIN_76_SCL0__FUNC_GPIO76 (MTK_PIN_NO(76) | 0)
  350. +#define MT2701_PIN_76_SCL0__FUNC_SCL0 (MTK_PIN_NO(76) | 1)
  351. +
  352. +#define MT2701_PIN_77_SDA2__FUNC_GPIO77 (MTK_PIN_NO(77) | 0)
  353. +#define MT2701_PIN_77_SDA2__FUNC_SDA2 (MTK_PIN_NO(77) | 1)
  354. +
  355. +#define MT2701_PIN_78_SCL2__FUNC_GPIO78 (MTK_PIN_NO(78) | 0)
  356. +#define MT2701_PIN_78_SCL2__FUNC_SCL2 (MTK_PIN_NO(78) | 1)
  357. +
  358. +#define MT2701_PIN_79_URXD0__FUNC_GPIO79 (MTK_PIN_NO(79) | 0)
  359. +#define MT2701_PIN_79_URXD0__FUNC_URXD0 (MTK_PIN_NO(79) | 1)
  360. +#define MT2701_PIN_79_URXD0__FUNC_UTXD0 (MTK_PIN_NO(79) | 2)
  361. +#define MT2701_PIN_79_URXD0__FUNC_ (MTK_PIN_NO(79) | 5)
  362. +
  363. +#define MT2701_PIN_80_UTXD0__FUNC_GPIO80 (MTK_PIN_NO(80) | 0)
  364. +#define MT2701_PIN_80_UTXD0__FUNC_UTXD0 (MTK_PIN_NO(80) | 1)
  365. +#define MT2701_PIN_80_UTXD0__FUNC_URXD0 (MTK_PIN_NO(80) | 2)
  366. +
  367. +#define MT2701_PIN_81_URXD1__FUNC_GPIO81 (MTK_PIN_NO(81) | 0)
  368. +#define MT2701_PIN_81_URXD1__FUNC_URXD1 (MTK_PIN_NO(81) | 1)
  369. +#define MT2701_PIN_81_URXD1__FUNC_UTXD1 (MTK_PIN_NO(81) | 2)
  370. +
  371. +#define MT2701_PIN_82_UTXD1__FUNC_GPIO82 (MTK_PIN_NO(82) | 0)
  372. +#define MT2701_PIN_82_UTXD1__FUNC_UTXD1 (MTK_PIN_NO(82) | 1)
  373. +#define MT2701_PIN_82_UTXD1__FUNC_URXD1 (MTK_PIN_NO(82) | 2)
  374. +
  375. +#define MT2701_PIN_83_LCM_RST__FUNC_GPIO83 (MTK_PIN_NO(83) | 0)
  376. +#define MT2701_PIN_83_LCM_RST__FUNC_LCM_RST (MTK_PIN_NO(83) | 1)
  377. +#define MT2701_PIN_83_LCM_RST__FUNC_VDAC_CK_XI (MTK_PIN_NO(83) | 2)
  378. +#define MT2701_PIN_83_LCM_RST__FUNC_DBG_MON_B_1 (MTK_PIN_NO(83) | 7)
  379. +
  380. +#define MT2701_PIN_84_DSI_TE__FUNC_GPIO84 (MTK_PIN_NO(84) | 0)
  381. +#define MT2701_PIN_84_DSI_TE__FUNC_DSI_TE (MTK_PIN_NO(84) | 1)
  382. +#define MT2701_PIN_84_DSI_TE__FUNC_DBG_MON_B_0 (MTK_PIN_NO(84) | 7)
  383. +
  384. +#define MT2701_PIN_91_TDN3__FUNC_GPI91 (MTK_PIN_NO(91) | 0)
  385. +#define MT2701_PIN_91_TDN3__FUNC_TDN3 (MTK_PIN_NO(91) | 1)
  386. +
  387. +#define MT2701_PIN_92_TDP3__FUNC_GPI92 (MTK_PIN_NO(92) | 0)
  388. +#define MT2701_PIN_92_TDP3__FUNC_TDP3 (MTK_PIN_NO(92) | 1)
  389. +
  390. +#define MT2701_PIN_93_TDN2__FUNC_GPI93 (MTK_PIN_NO(93) | 0)
  391. +#define MT2701_PIN_93_TDN2__FUNC_TDN2 (MTK_PIN_NO(93) | 1)
  392. +
  393. +#define MT2701_PIN_94_TDP2__FUNC_GPI94 (MTK_PIN_NO(94) | 0)
  394. +#define MT2701_PIN_94_TDP2__FUNC_TDP2 (MTK_PIN_NO(94) | 1)
  395. +
  396. +#define MT2701_PIN_95_TCN__FUNC_GPI95 (MTK_PIN_NO(95) | 0)
  397. +#define MT2701_PIN_95_TCN__FUNC_TCN (MTK_PIN_NO(95) | 1)
  398. +
  399. +#define MT2701_PIN_96_TCP__FUNC_GPI96 (MTK_PIN_NO(96) | 0)
  400. +#define MT2701_PIN_96_TCP__FUNC_TCP (MTK_PIN_NO(96) | 1)
  401. +
  402. +#define MT2701_PIN_97_TDN1__FUNC_GPI97 (MTK_PIN_NO(97) | 0)
  403. +#define MT2701_PIN_97_TDN1__FUNC_TDN1 (MTK_PIN_NO(97) | 1)
  404. +
  405. +#define MT2701_PIN_98_TDP1__FUNC_GPI98 (MTK_PIN_NO(98) | 0)
  406. +#define MT2701_PIN_98_TDP1__FUNC_TDP1 (MTK_PIN_NO(98) | 1)
  407. +
  408. +#define MT2701_PIN_99_TDN0__FUNC_GPI99 (MTK_PIN_NO(99) | 0)
  409. +#define MT2701_PIN_99_TDN0__FUNC_TDN0 (MTK_PIN_NO(99) | 1)
  410. +
  411. +#define MT2701_PIN_100_TDP0__FUNC_GPI100 (MTK_PIN_NO(100) | 0)
  412. +#define MT2701_PIN_100_TDP0__FUNC_TDP0 (MTK_PIN_NO(100) | 1)
  413. +
  414. +#define MT2701_PIN_101_SPI2_CSN__FUNC_GPIO101 (MTK_PIN_NO(101) | 0)
  415. +#define MT2701_PIN_101_SPI2_CSN__FUNC_SPI2_CS (MTK_PIN_NO(101) | 1)
  416. +#define MT2701_PIN_101_SPI2_CSN__FUNC_SCL3 (MTK_PIN_NO(101) | 3)
  417. +#define MT2701_PIN_101_SPI2_CSN__FUNC_KROW0 (MTK_PIN_NO(101) | 4)
  418. +
  419. +#define MT2701_PIN_102_SPI2_MI__FUNC_GPIO102 (MTK_PIN_NO(102) | 0)
  420. +#define MT2701_PIN_102_SPI2_MI__FUNC_SPI2_MI (MTK_PIN_NO(102) | 1)
  421. +#define MT2701_PIN_102_SPI2_MI__FUNC_SPI2_MO (MTK_PIN_NO(102) | 2)
  422. +#define MT2701_PIN_102_SPI2_MI__FUNC_SDA3 (MTK_PIN_NO(102) | 3)
  423. +#define MT2701_PIN_102_SPI2_MI__FUNC_KROW1 (MTK_PIN_NO(102) | 4)
  424. +
  425. +#define MT2701_PIN_103_SPI2_MO__FUNC_GPIO103 (MTK_PIN_NO(103) | 0)
  426. +#define MT2701_PIN_103_SPI2_MO__FUNC_SPI2_MO (MTK_PIN_NO(103) | 1)
  427. +#define MT2701_PIN_103_SPI2_MO__FUNC_SPI2_MI (MTK_PIN_NO(103) | 2)
  428. +#define MT2701_PIN_103_SPI2_MO__FUNC_SCL3 (MTK_PIN_NO(103) | 3)
  429. +#define MT2701_PIN_103_SPI2_MO__FUNC_KROW2 (MTK_PIN_NO(103) | 4)
  430. +
  431. +#define MT2701_PIN_104_SPI2_CLK__FUNC_GPIO104 (MTK_PIN_NO(104) | 0)
  432. +#define MT2701_PIN_104_SPI2_CLK__FUNC_SPI2_CK (MTK_PIN_NO(104) | 1)
  433. +#define MT2701_PIN_104_SPI2_CLK__FUNC_SDA3 (MTK_PIN_NO(104) | 3)
  434. +#define MT2701_PIN_104_SPI2_CLK__FUNC_KROW3 (MTK_PIN_NO(104) | 4)
  435. +
  436. +#define MT2701_PIN_105_MSDC1_CMD__FUNC_GPIO105 (MTK_PIN_NO(105) | 0)
  437. +#define MT2701_PIN_105_MSDC1_CMD__FUNC_MSDC1_CMD (MTK_PIN_NO(105) | 1)
  438. +#define MT2701_PIN_105_MSDC1_CMD__FUNC_ANT_SEL0 (MTK_PIN_NO(105) | 2)
  439. +#define MT2701_PIN_105_MSDC1_CMD__FUNC_SDA1 (MTK_PIN_NO(105) | 3)
  440. +#define MT2701_PIN_105_MSDC1_CMD__FUNC_I2SOUT_BCK (MTK_PIN_NO(105) | 6)
  441. +#define MT2701_PIN_105_MSDC1_CMD__FUNC_DBG_MON_B_27 (MTK_PIN_NO(105) | 7)
  442. +
  443. +#define MT2701_PIN_106_MSDC1_CLK__FUNC_GPIO106 (MTK_PIN_NO(106) | 0)
  444. +#define MT2701_PIN_106_MSDC1_CLK__FUNC_MSDC1_CLK (MTK_PIN_NO(106) | 1)
  445. +#define MT2701_PIN_106_MSDC1_CLK__FUNC_ANT_SEL1 (MTK_PIN_NO(106) | 2)
  446. +#define MT2701_PIN_106_MSDC1_CLK__FUNC_SCL1 (MTK_PIN_NO(106) | 3)
  447. +#define MT2701_PIN_106_MSDC1_CLK__FUNC_I2SOUT_LRCK (MTK_PIN_NO(106) | 6)
  448. +#define MT2701_PIN_106_MSDC1_CLK__FUNC_DBG_MON_B_28 (MTK_PIN_NO(106) | 7)
  449. +
  450. +#define MT2701_PIN_107_MSDC1_DAT0__FUNC_GPIO107 (MTK_PIN_NO(107) | 0)
  451. +#define MT2701_PIN_107_MSDC1_DAT0__FUNC_MSDC1_DAT0 (MTK_PIN_NO(107) | 1)
  452. +#define MT2701_PIN_107_MSDC1_DAT0__FUNC_ANT_SEL2 (MTK_PIN_NO(107) | 2)
  453. +#define MT2701_PIN_107_MSDC1_DAT0__FUNC_UTXD0 (MTK_PIN_NO(107) | 5)
  454. +#define MT2701_PIN_107_MSDC1_DAT0__FUNC_I2SOUT_DATA_OUT (MTK_PIN_NO(107) | 6)
  455. +#define MT2701_PIN_107_MSDC1_DAT0__FUNC_DBG_MON_B_26 (MTK_PIN_NO(107) | 7)
  456. +
  457. +#define MT2701_PIN_108_MSDC1_DAT1__FUNC_GPIO108 (MTK_PIN_NO(108) | 0)
  458. +#define MT2701_PIN_108_MSDC1_DAT1__FUNC_MSDC1_DAT1 (MTK_PIN_NO(108) | 1)
  459. +#define MT2701_PIN_108_MSDC1_DAT1__FUNC_ANT_SEL3 (MTK_PIN_NO(108) | 2)
  460. +#define MT2701_PIN_108_MSDC1_DAT1__FUNC_PWM0 (MTK_PIN_NO(108) | 3)
  461. +#define MT2701_PIN_108_MSDC1_DAT1__FUNC_URXD0 (MTK_PIN_NO(108) | 5)
  462. +#define MT2701_PIN_108_MSDC1_DAT1__FUNC_PWM1 (MTK_PIN_NO(108) | 6)
  463. +#define MT2701_PIN_108_MSDC1_DAT1__FUNC_DBG_MON_B_25 (MTK_PIN_NO(108) | 7)
  464. +
  465. +#define MT2701_PIN_109_MSDC1_DAT2__FUNC_GPIO109 (MTK_PIN_NO(109) | 0)
  466. +#define MT2701_PIN_109_MSDC1_DAT2__FUNC_MSDC1_DAT2 (MTK_PIN_NO(109) | 1)
  467. +#define MT2701_PIN_109_MSDC1_DAT2__FUNC_ANT_SEL4 (MTK_PIN_NO(109) | 2)
  468. +#define MT2701_PIN_109_MSDC1_DAT2__FUNC_SDA2 (MTK_PIN_NO(109) | 3)
  469. +#define MT2701_PIN_109_MSDC1_DAT2__FUNC_UTXD1 (MTK_PIN_NO(109) | 5)
  470. +#define MT2701_PIN_109_MSDC1_DAT2__FUNC_PWM2 (MTK_PIN_NO(109) | 6)
  471. +#define MT2701_PIN_109_MSDC1_DAT2__FUNC_DBG_MON_B_24 (MTK_PIN_NO(109) | 7)
  472. +
  473. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_GPIO110 (MTK_PIN_NO(110) | 0)
  474. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_MSDC1_DAT3 (MTK_PIN_NO(110) | 1)
  475. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_ANT_SEL5 (MTK_PIN_NO(110) | 2)
  476. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_SCL2 (MTK_PIN_NO(110) | 3)
  477. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(110) | 4)
  478. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_URXD1 (MTK_PIN_NO(110) | 5)
  479. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_PWM3 (MTK_PIN_NO(110) | 6)
  480. +#define MT2701_PIN_110_MSDC1_DAT3__FUNC_DBG_MON_B_23 (MTK_PIN_NO(110) | 7)
  481. +
  482. +#define MT2701_PIN_111_MSDC0_DAT7__FUNC_GPIO111 (MTK_PIN_NO(111) | 0)
  483. +#define MT2701_PIN_111_MSDC0_DAT7__FUNC_MSDC0_DAT7 (MTK_PIN_NO(111) | 1)
  484. +#define MT2701_PIN_111_MSDC0_DAT7__FUNC_NLD7 (MTK_PIN_NO(111) | 4)
  485. +
  486. +#define MT2701_PIN_112_MSDC0_DAT6__FUNC_GPIO112 (MTK_PIN_NO(112) | 0)
  487. +#define MT2701_PIN_112_MSDC0_DAT6__FUNC_MSDC0_DAT6 (MTK_PIN_NO(112) | 1)
  488. +#define MT2701_PIN_112_MSDC0_DAT6__FUNC_NLD6 (MTK_PIN_NO(112) | 4)
  489. +
  490. +#define MT2701_PIN_113_MSDC0_DAT5__FUNC_GPIO113 (MTK_PIN_NO(113) | 0)
  491. +#define MT2701_PIN_113_MSDC0_DAT5__FUNC_MSDC0_DAT5 (MTK_PIN_NO(113) | 1)
  492. +#define MT2701_PIN_113_MSDC0_DAT5__FUNC_NLD5 (MTK_PIN_NO(113) | 4)
  493. +
  494. +#define MT2701_PIN_114_MSDC0_DAT4__FUNC_GPIO114 (MTK_PIN_NO(114) | 0)
  495. +#define MT2701_PIN_114_MSDC0_DAT4__FUNC_MSDC0_DAT4 (MTK_PIN_NO(114) | 1)
  496. +#define MT2701_PIN_114_MSDC0_DAT4__FUNC_NLD4 (MTK_PIN_NO(114) | 4)
  497. +
  498. +#define MT2701_PIN_115_MSDC0_RSTB__FUNC_GPIO115 (MTK_PIN_NO(115) | 0)
  499. +#define MT2701_PIN_115_MSDC0_RSTB__FUNC_MSDC0_RSTB (MTK_PIN_NO(115) | 1)
  500. +#define MT2701_PIN_115_MSDC0_RSTB__FUNC_NLD8 (MTK_PIN_NO(115) | 4)
  501. +
  502. +#define MT2701_PIN_116_MSDC0_CMD__FUNC_GPIO116 (MTK_PIN_NO(116) | 0)
  503. +#define MT2701_PIN_116_MSDC0_CMD__FUNC_MSDC0_CMD (MTK_PIN_NO(116) | 1)
  504. +#define MT2701_PIN_116_MSDC0_CMD__FUNC_NALE (MTK_PIN_NO(116) | 4)
  505. +
  506. +#define MT2701_PIN_117_MSDC0_CLK__FUNC_GPIO117 (MTK_PIN_NO(117) | 0)
  507. +#define MT2701_PIN_117_MSDC0_CLK__FUNC_MSDC0_CLK (MTK_PIN_NO(117) | 1)
  508. +#define MT2701_PIN_117_MSDC0_CLK__FUNC_NWEB (MTK_PIN_NO(117) | 4)
  509. +
  510. +#define MT2701_PIN_118_MSDC0_DAT3__FUNC_GPIO118 (MTK_PIN_NO(118) | 0)
  511. +#define MT2701_PIN_118_MSDC0_DAT3__FUNC_MSDC0_DAT3 (MTK_PIN_NO(118) | 1)
  512. +#define MT2701_PIN_118_MSDC0_DAT3__FUNC_NLD3 (MTK_PIN_NO(118) | 4)
  513. +
  514. +#define MT2701_PIN_119_MSDC0_DAT2__FUNC_GPIO119 (MTK_PIN_NO(119) | 0)
  515. +#define MT2701_PIN_119_MSDC0_DAT2__FUNC_MSDC0_DAT2 (MTK_PIN_NO(119) | 1)
  516. +#define MT2701_PIN_119_MSDC0_DAT2__FUNC_NLD2 (MTK_PIN_NO(119) | 4)
  517. +
  518. +#define MT2701_PIN_120_MSDC0_DAT1__FUNC_GPIO120 (MTK_PIN_NO(120) | 0)
  519. +#define MT2701_PIN_120_MSDC0_DAT1__FUNC_MSDC0_DAT1 (MTK_PIN_NO(120) | 1)
  520. +#define MT2701_PIN_120_MSDC0_DAT1__FUNC_NLD1 (MTK_PIN_NO(120) | 4)
  521. +
  522. +#define MT2701_PIN_121_MSDC0_DAT0__FUNC_GPIO121 (MTK_PIN_NO(121) | 0)
  523. +#define MT2701_PIN_121_MSDC0_DAT0__FUNC_MSDC0_DAT0 (MTK_PIN_NO(121) | 1)
  524. +#define MT2701_PIN_121_MSDC0_DAT0__FUNC_NLD0 (MTK_PIN_NO(121) | 4)
  525. +#define MT2701_PIN_121_MSDC0_DAT0__FUNC_WATCHDOG (MTK_PIN_NO(121) | 5)
  526. +
  527. +#define MT2701_PIN_122_CEC__FUNC_GPIO122 (MTK_PIN_NO(122) | 0)
  528. +#define MT2701_PIN_122_CEC__FUNC_CEC (MTK_PIN_NO(122) | 1)
  529. +#define MT2701_PIN_122_CEC__FUNC_SDA2 (MTK_PIN_NO(122) | 4)
  530. +#define MT2701_PIN_122_CEC__FUNC_URXD0 (MTK_PIN_NO(122) | 5)
  531. +
  532. +#define MT2701_PIN_123_HTPLG__FUNC_GPIO123 (MTK_PIN_NO(123) | 0)
  533. +#define MT2701_PIN_123_HTPLG__FUNC_HTPLG (MTK_PIN_NO(123) | 1)
  534. +#define MT2701_PIN_123_HTPLG__FUNC_SCL2 (MTK_PIN_NO(123) | 4)
  535. +#define MT2701_PIN_123_HTPLG__FUNC_UTXD0 (MTK_PIN_NO(123) | 5)
  536. +
  537. +#define MT2701_PIN_124_HDMISCK__FUNC_GPIO124 (MTK_PIN_NO(124) | 0)
  538. +#define MT2701_PIN_124_HDMISCK__FUNC_HDMISCK (MTK_PIN_NO(124) | 1)
  539. +#define MT2701_PIN_124_HDMISCK__FUNC_SDA1 (MTK_PIN_NO(124) | 4)
  540. +#define MT2701_PIN_124_HDMISCK__FUNC_PWM3 (MTK_PIN_NO(124) | 5)
  541. +
  542. +#define MT2701_PIN_125_HDMISD__FUNC_GPIO125 (MTK_PIN_NO(125) | 0)
  543. +#define MT2701_PIN_125_HDMISD__FUNC_HDMISD (MTK_PIN_NO(125) | 1)
  544. +#define MT2701_PIN_125_HDMISD__FUNC_SCL1 (MTK_PIN_NO(125) | 4)
  545. +#define MT2701_PIN_125_HDMISD__FUNC_PWM4 (MTK_PIN_NO(125) | 5)
  546. +
  547. +#define MT2701_PIN_126_I2S0_MCLK__FUNC_GPIO126 (MTK_PIN_NO(126) | 0)
  548. +#define MT2701_PIN_126_I2S0_MCLK__FUNC_I2S0_MCLK (MTK_PIN_NO(126) | 1)
  549. +#define MT2701_PIN_126_I2S0_MCLK__FUNC_WCN_I2S_MCLK (MTK_PIN_NO(126) | 6)
  550. +#define MT2701_PIN_126_I2S0_MCLK__FUNC_DBG_MON_B_6 (MTK_PIN_NO(126) | 7)
  551. +
  552. +#define MT2701_PIN_199_SPI1_CLK__FUNC_GPIO199 (MTK_PIN_NO(199) | 0)
  553. +#define MT2701_PIN_199_SPI1_CLK__FUNC_SPI1_CK (MTK_PIN_NO(199) | 1)
  554. +#define MT2701_PIN_199_SPI1_CLK__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(199) | 3)
  555. +#define MT2701_PIN_199_SPI1_CLK__FUNC_KCOL3 (MTK_PIN_NO(199) | 4)
  556. +#define MT2701_PIN_199_SPI1_CLK__FUNC_DBG_MON_B_15 (MTK_PIN_NO(199) | 7)
  557. +
  558. +#define MT2701_PIN_200_SPDIF_OUT__FUNC_GPIO200 (MTK_PIN_NO(200) | 0)
  559. +#define MT2701_PIN_200_SPDIF_OUT__FUNC_SPDIF_OUT (MTK_PIN_NO(200) | 1)
  560. +#define MT2701_PIN_200_SPDIF_OUT__FUNC_G1_TXD3 (MTK_PIN_NO(200) | 5)
  561. +#define MT2701_PIN_200_SPDIF_OUT__FUNC_URXD2 (MTK_PIN_NO(200) | 6)
  562. +#define MT2701_PIN_200_SPDIF_OUT__FUNC_DBG_MON_B_16 (MTK_PIN_NO(200) | 7)
  563. +
  564. +#define MT2701_PIN_201_SPDIF_IN0__FUNC_GPIO201 (MTK_PIN_NO(201) | 0)
  565. +#define MT2701_PIN_201_SPDIF_IN0__FUNC_SPDIF_IN0 (MTK_PIN_NO(201) | 1)
  566. +#define MT2701_PIN_201_SPDIF_IN0__FUNC_G1_TXEN (MTK_PIN_NO(201) | 5)
  567. +#define MT2701_PIN_201_SPDIF_IN0__FUNC_UTXD2 (MTK_PIN_NO(201) | 6)
  568. +#define MT2701_PIN_201_SPDIF_IN0__FUNC_DBG_MON_B_17 (MTK_PIN_NO(201) | 7)
  569. +
  570. +#define MT2701_PIN_202_SPDIF_IN1__FUNC_GPIO202 (MTK_PIN_NO(202) | 0)
  571. +#define MT2701_PIN_202_SPDIF_IN1__FUNC_SPDIF_IN1 (MTK_PIN_NO(202) | 1)
  572. +
  573. +#define MT2701_PIN_203_PWM0__FUNC_GPIO203 (MTK_PIN_NO(203) | 0)
  574. +#define MT2701_PIN_203_PWM0__FUNC_PWM0 (MTK_PIN_NO(203) | 1)
  575. +#define MT2701_PIN_203_PWM0__FUNC_DISP_PWM (MTK_PIN_NO(203) | 2)
  576. +#define MT2701_PIN_203_PWM0__FUNC_G1_TXD2 (MTK_PIN_NO(203) | 5)
  577. +#define MT2701_PIN_203_PWM0__FUNC_DBG_MON_B_18 (MTK_PIN_NO(203) | 7)
  578. +#define MT2701_PIN_203_PWM0__FUNC_I2S2_DATA (MTK_PIN_NO(203) | 9)
  579. +
  580. +#define MT2701_PIN_204_PWM1__FUNC_GPIO204 (MTK_PIN_NO(204) | 0)
  581. +#define MT2701_PIN_204_PWM1__FUNC_PWM1 (MTK_PIN_NO(204) | 1)
  582. +#define MT2701_PIN_204_PWM1__FUNC_CLKM3 (MTK_PIN_NO(204) | 2)
  583. +#define MT2701_PIN_204_PWM1__FUNC_G1_TXD1 (MTK_PIN_NO(204) | 5)
  584. +#define MT2701_PIN_204_PWM1__FUNC_DBG_MON_B_19 (MTK_PIN_NO(204) | 7)
  585. +#define MT2701_PIN_204_PWM1__FUNC_I2S3_DATA (MTK_PIN_NO(204) | 9)
  586. +
  587. +#define MT2701_PIN_205_PWM2__FUNC_GPIO205 (MTK_PIN_NO(205) | 0)
  588. +#define MT2701_PIN_205_PWM2__FUNC_PWM2 (MTK_PIN_NO(205) | 1)
  589. +#define MT2701_PIN_205_PWM2__FUNC_CLKM2 (MTK_PIN_NO(205) | 2)
  590. +#define MT2701_PIN_205_PWM2__FUNC_G1_TXD0 (MTK_PIN_NO(205) | 5)
  591. +#define MT2701_PIN_205_PWM2__FUNC_DBG_MON_B_20 (MTK_PIN_NO(205) | 7)
  592. +
  593. +#define MT2701_PIN_206_PWM3__FUNC_GPIO206 (MTK_PIN_NO(206) | 0)
  594. +#define MT2701_PIN_206_PWM3__FUNC_PWM3 (MTK_PIN_NO(206) | 1)
  595. +#define MT2701_PIN_206_PWM3__FUNC_CLKM1 (MTK_PIN_NO(206) | 2)
  596. +#define MT2701_PIN_206_PWM3__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(206) | 3)
  597. +#define MT2701_PIN_206_PWM3__FUNC_G1_TXC (MTK_PIN_NO(206) | 5)
  598. +#define MT2701_PIN_206_PWM3__FUNC_DBG_MON_B_21 (MTK_PIN_NO(206) | 7)
  599. +
  600. +#define MT2701_PIN_207_PWM4__FUNC_GPIO207 (MTK_PIN_NO(207) | 0)
  601. +#define MT2701_PIN_207_PWM4__FUNC_PWM4 (MTK_PIN_NO(207) | 1)
  602. +#define MT2701_PIN_207_PWM4__FUNC_CLKM0 (MTK_PIN_NO(207) | 2)
  603. +#define MT2701_PIN_207_PWM4__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(207) | 3)
  604. +#define MT2701_PIN_207_PWM4__FUNC_G1_RXC (MTK_PIN_NO(207) | 5)
  605. +#define MT2701_PIN_207_PWM4__FUNC_DBG_MON_B_22 (MTK_PIN_NO(207) | 7)
  606. +
  607. +#define MT2701_PIN_208_AUD_EXT_CK1__FUNC_GPIO208 (MTK_PIN_NO(208) | 0)
  608. +#define MT2701_PIN_208_AUD_EXT_CK1__FUNC_AUD_EXT_CK1 (MTK_PIN_NO(208) | 1)
  609. +#define MT2701_PIN_208_AUD_EXT_CK1__FUNC_PWM0 (MTK_PIN_NO(208) | 2)
  610. +#define MT2701_PIN_208_AUD_EXT_CK1__FUNC_ANT_SEL5 (MTK_PIN_NO(208) | 4)
  611. +#define MT2701_PIN_208_AUD_EXT_CK1__FUNC_DISP_PWM (MTK_PIN_NO(208) | 5)
  612. +#define MT2701_PIN_208_AUD_EXT_CK1__FUNC_DBG_MON_A_31 (MTK_PIN_NO(208) | 7)
  613. +#define MT2701_PIN_208_AUD_EXT_CK1__FUNC_PCIE0_PERST_N (MTK_PIN_NO(208) | 11)
  614. +
  615. +#define MT2701_PIN_209_AUD_EXT_CK2__FUNC_GPIO209 (MTK_PIN_NO(209) | 0)
  616. +#define MT2701_PIN_209_AUD_EXT_CK2__FUNC_AUD_EXT_CK2 (MTK_PIN_NO(209) | 1)
  617. +#define MT2701_PIN_209_AUD_EXT_CK2__FUNC_MSDC1_WP (MTK_PIN_NO(209) | 2)
  618. +#define MT2701_PIN_209_AUD_EXT_CK2__FUNC_PWM1 (MTK_PIN_NO(209) | 5)
  619. +#define MT2701_PIN_209_AUD_EXT_CK2__FUNC_DBG_MON_A_32 (MTK_PIN_NO(209) | 7)
  620. +#define MT2701_PIN_209_AUD_EXT_CK2__FUNC_PCIE1_PERST_N (MTK_PIN_NO(209) | 11)
  621. +
  622. +#define MT2701_PIN_236_EXT_SDIO3__FUNC_GPIO236 (MTK_PIN_NO(236) | 0)
  623. +#define MT2701_PIN_236_EXT_SDIO3__FUNC_EXT_SDIO3 (MTK_PIN_NO(236) | 1)
  624. +#define MT2701_PIN_236_EXT_SDIO3__FUNC_IDDIG (MTK_PIN_NO(236) | 2)
  625. +#define MT2701_PIN_236_EXT_SDIO3__FUNC_DBG_MON_A_1 (MTK_PIN_NO(236) | 7)
  626. +
  627. +#define MT2701_PIN_237_EXT_SDIO2__FUNC_GPIO237 (MTK_PIN_NO(237) | 0)
  628. +#define MT2701_PIN_237_EXT_SDIO2__FUNC_EXT_SDIO2 (MTK_PIN_NO(237) | 1)
  629. +#define MT2701_PIN_237_EXT_SDIO2__FUNC_DRV_VBUS (MTK_PIN_NO(237) | 2)
  630. +
  631. +#define MT2701_PIN_238_EXT_SDIO1__FUNC_GPIO238 (MTK_PIN_NO(238) | 0)
  632. +#define MT2701_PIN_238_EXT_SDIO1__FUNC_EXT_SDIO1 (MTK_PIN_NO(238) | 1)
  633. +#define MT2701_PIN_238_EXT_SDIO1__FUNC_IDDIG_P1 (MTK_PIN_NO(238) | 2)
  634. +
  635. +#define MT2701_PIN_239_EXT_SDIO0__FUNC_GPIO239 (MTK_PIN_NO(239) | 0)
  636. +#define MT2701_PIN_239_EXT_SDIO0__FUNC_EXT_SDIO0 (MTK_PIN_NO(239) | 1)
  637. +#define MT2701_PIN_239_EXT_SDIO0__FUNC_DRV_VBUS_P1 (MTK_PIN_NO(239) | 2)
  638. +
  639. +#define MT2701_PIN_240_EXT_XCS__FUNC_GPIO240 (MTK_PIN_NO(240) | 0)
  640. +#define MT2701_PIN_240_EXT_XCS__FUNC_EXT_XCS (MTK_PIN_NO(240) | 1)
  641. +
  642. +#define MT2701_PIN_241_EXT_SCK__FUNC_GPIO241 (MTK_PIN_NO(241) | 0)
  643. +#define MT2701_PIN_241_EXT_SCK__FUNC_EXT_SCK (MTK_PIN_NO(241) | 1)
  644. +
  645. +#define MT2701_PIN_242_URTS2__FUNC_GPIO242 (MTK_PIN_NO(242) | 0)
  646. +#define MT2701_PIN_242_URTS2__FUNC_URTS2 (MTK_PIN_NO(242) | 1)
  647. +#define MT2701_PIN_242_URTS2__FUNC_UTXD3 (MTK_PIN_NO(242) | 2)
  648. +#define MT2701_PIN_242_URTS2__FUNC_URXD3 (MTK_PIN_NO(242) | 3)
  649. +#define MT2701_PIN_242_URTS2__FUNC_SCL1 (MTK_PIN_NO(242) | 4)
  650. +#define MT2701_PIN_242_URTS2__FUNC_DBG_MON_B_32 (MTK_PIN_NO(242) | 7)
  651. +
  652. +#define MT2701_PIN_243_UCTS2__FUNC_GPIO243 (MTK_PIN_NO(243) | 0)
  653. +#define MT2701_PIN_243_UCTS2__FUNC_UCTS2 (MTK_PIN_NO(243) | 1)
  654. +#define MT2701_PIN_243_UCTS2__FUNC_URXD3 (MTK_PIN_NO(243) | 2)
  655. +#define MT2701_PIN_243_UCTS2__FUNC_UTXD3 (MTK_PIN_NO(243) | 3)
  656. +#define MT2701_PIN_243_UCTS2__FUNC_SDA1 (MTK_PIN_NO(243) | 4)
  657. +#define MT2701_PIN_243_UCTS2__FUNC_DBG_MON_A_6 (MTK_PIN_NO(243) | 7)
  658. +
  659. +#define MT2701_PIN_244_HDMI_SDA_RX__FUNC_GPIO244 (MTK_PIN_NO(244) | 0)
  660. +#define MT2701_PIN_244_HDMI_SDA_RX__FUNC_HDMI_SDA_RX (MTK_PIN_NO(244) | 1)
  661. +
  662. +#define MT2701_PIN_245_HDMI_SCL_RX__FUNC_GPIO245 (MTK_PIN_NO(245) | 0)
  663. +#define MT2701_PIN_245_HDMI_SCL_RX__FUNC_HDMI_SCL_RX (MTK_PIN_NO(245) | 1)
  664. +
  665. +#define MT2701_PIN_246_MHL_SENCE__FUNC_GPIO246 (MTK_PIN_NO(246) | 0)
  666. +
  667. +#define MT2701_PIN_247_HDMI_HPD_CBUS_RX__FUNC_GPIO247 (MTK_PIN_NO(247) | 0)
  668. +#define MT2701_PIN_247_HDMI_HPD_CBUS_RX__FUNC_HDMI_HPD_RX (MTK_PIN_NO(247) | 1)
  669. +
  670. +#define MT2701_PIN_248_HDMI_TESTOUTP_RX__FUNC_GPIO248 (MTK_PIN_NO(248) | 0)
  671. +#define MT2701_PIN_248_HDMI_TESTOUTP_RX__FUNC_HDMI_TESTOUTP_RX (MTK_PIN_NO(248) | 1)
  672. +
  673. +#define MT2701_PIN_249_MSDC0E_RSTB__FUNC_MSDC0E_RSTB (MTK_PIN_NO(249) | 9)
  674. +
  675. +#define MT2701_PIN_250_MSDC0E_DAT7__FUNC_MSDC3_DAT7 (MTK_PIN_NO(250) | 9)
  676. +#define MT2701_PIN_250_MSDC0E_DAT7__FUNC_PCIE0_CLKREQ_N (MTK_PIN_NO(250) | 14)
  677. +
  678. +#define MT2701_PIN_251_MSDC0E_DAT6__FUNC_MSDC3_DAT6 (MTK_PIN_NO(251) | 9)
  679. +#define MT2701_PIN_251_MSDC0E_DAT6__FUNC_PCIE0_WAKE_N (MTK_PIN_NO(251) | 14)
  680. +
  681. +#define MT2701_PIN_252_MSDC0E_DAT5__FUNC_MSDC3_DAT5 (MTK_PIN_NO(252) | 9)
  682. +#define MT2701_PIN_252_MSDC0E_DAT5__FUNC_PCIE1_CLKREQ_N (MTK_PIN_NO(252) | 14)
  683. +
  684. +#define MT2701_PIN_253_MSDC0E_DAT4__FUNC_MSDC3_DAT4 (MTK_PIN_NO(253) | 9)
  685. +#define MT2701_PIN_253_MSDC0E_DAT4__FUNC_PCIE1_WAKE_N (MTK_PIN_NO(253) | 14)
  686. +
  687. +#define MT2701_PIN_254_MSDC0E_DAT3__FUNC_MSDC3_DAT3 (MTK_PIN_NO(254) | 9)
  688. +#define MT2701_PIN_254_MSDC0E_DAT3__FUNC_PCIE2_CLKREQ_N (MTK_PIN_NO(254) | 14)
  689. +
  690. +#define MT2701_PIN_255_MSDC0E_DAT2__FUNC_MSDC3_DAT2 (MTK_PIN_NO(255) | 9)
  691. +#define MT2701_PIN_255_MSDC0E_DAT2__FUNC_PCIE2_WAKE_N (MTK_PIN_NO(255) | 14)
  692. +
  693. +#define MT2701_PIN_256_MSDC0E_DAT1__FUNC_MSDC3_DAT1 (MTK_PIN_NO(256) | 9)
  694. +
  695. +#define MT2701_PIN_257_MSDC0E_DAT0__FUNC_MSDC3_DAT0 (MTK_PIN_NO(257) | 9)
  696. +
  697. +#define MT2701_PIN_258_MSDC0E_CMD__FUNC_MSDC3_CMD (MTK_PIN_NO(258) | 9)
  698. +
  699. +#define MT2701_PIN_259_MSDC0E_CLK__FUNC_MSDC3_CLK (MTK_PIN_NO(259) | 9)
  700. +
  701. +#define MT2701_PIN_260_MSDC0E_DSL__FUNC_MSDC3_DSL (MTK_PIN_NO(260) | 9)
  702. +
  703. +#define MT2701_PIN_261_MSDC1_INS__FUNC_GPIO261 (MTK_PIN_NO(261) | 0)
  704. +#define MT2701_PIN_261_MSDC1_INS__FUNC_MSDC1_INS (MTK_PIN_NO(261) | 1)
  705. +#define MT2701_PIN_261_MSDC1_INS__FUNC_DBG_MON_B_29 (MTK_PIN_NO(261) | 7)
  706. +
  707. +#define MT2701_PIN_262_G2_TXEN__FUNC_GPIO262 (MTK_PIN_NO(262) | 0)
  708. +#define MT2701_PIN_262_G2_TXEN__FUNC_G2_TXEN (MTK_PIN_NO(262) | 1)
  709. +
  710. +#define MT2701_PIN_263_G2_TXD3__FUNC_GPIO263 (MTK_PIN_NO(263) | 0)
  711. +#define MT2701_PIN_263_G2_TXD3__FUNC_G2_TXD3 (MTK_PIN_NO(263) | 1)
  712. +#define MT2701_PIN_263_G2_TXD3__FUNC_ANT_SEL5 (MTK_PIN_NO(263) | 6)
  713. +
  714. +#define MT2701_PIN_264_G2_TXD2__FUNC_GPIO264 (MTK_PIN_NO(264) | 0)
  715. +#define MT2701_PIN_264_G2_TXD2__FUNC_G2_TXD2 (MTK_PIN_NO(264) | 1)
  716. +#define MT2701_PIN_264_G2_TXD2__FUNC_ANT_SEL4 (MTK_PIN_NO(264) | 6)
  717. +
  718. +#define MT2701_PIN_265_G2_TXD1__FUNC_GPIO265 (MTK_PIN_NO(265) | 0)
  719. +#define MT2701_PIN_265_G2_TXD1__FUNC_G2_TXD1 (MTK_PIN_NO(265) | 1)
  720. +#define MT2701_PIN_265_G2_TXD1__FUNC_ANT_SEL3 (MTK_PIN_NO(265) | 6)
  721. +
  722. +#define MT2701_PIN_266_G2_TXD0__FUNC_GPIO266 (MTK_PIN_NO(266) | 0)
  723. +#define MT2701_PIN_266_G2_TXD0__FUNC_G2_TXD0 (MTK_PIN_NO(266) | 1)
  724. +#define MT2701_PIN_266_G2_TXD0__FUNC_ANT_SEL2 (MTK_PIN_NO(266) | 6)
  725. +
  726. +#define MT2701_PIN_267_G2_TXC__FUNC_GPIO267 (MTK_PIN_NO(267) | 0)
  727. +#define MT2701_PIN_267_G2_TXC__FUNC_G2_TXC (MTK_PIN_NO(267) | 1)
  728. +
  729. +#define MT2701_PIN_268_G2_RXC__FUNC_GPIO268 (MTK_PIN_NO(268) | 0)
  730. +#define MT2701_PIN_268_G2_RXC__FUNC_G2_RXC (MTK_PIN_NO(268) | 1)
  731. +
  732. +#define MT2701_PIN_269_G2_RXD0__FUNC_GPIO269 (MTK_PIN_NO(269) | 0)
  733. +#define MT2701_PIN_269_G2_RXD0__FUNC_G2_RXD0 (MTK_PIN_NO(269) | 1)
  734. +
  735. +#define MT2701_PIN_270_G2_RXD1__FUNC_GPIO270 (MTK_PIN_NO(270) | 0)
  736. +#define MT2701_PIN_270_G2_RXD1__FUNC_G2_RXD1 (MTK_PIN_NO(270) | 1)
  737. +
  738. +#define MT2701_PIN_271_G2_RXD2__FUNC_GPIO271 (MTK_PIN_NO(271) | 0)
  739. +#define MT2701_PIN_271_G2_RXD2__FUNC_G2_RXD2 (MTK_PIN_NO(271) | 1)
  740. +
  741. +#define MT2701_PIN_272_G2_RXD3__FUNC_GPIO272 (MTK_PIN_NO(272) | 0)
  742. +#define MT2701_PIN_272_G2_RXD3__FUNC_G2_RXD3 (MTK_PIN_NO(272) | 1)
  743. +
  744. +#define MT2701_PIN_274_G2_RXDV__FUNC_GPIO274 (MTK_PIN_NO(274) | 0)
  745. +#define MT2701_PIN_274_G2_RXDV__FUNC_G2_RXDV (MTK_PIN_NO(274) | 1)
  746. +
  747. +#define MT2701_PIN_275_MDC__FUNC_GPIO275 (MTK_PIN_NO(275) | 0)
  748. +#define MT2701_PIN_275_MDC__FUNC_MDC (MTK_PIN_NO(275) | 1)
  749. +#define MT2701_PIN_275_MDC__FUNC_ANT_SEL0 (MTK_PIN_NO(275) | 6)
  750. +
  751. +#define MT2701_PIN_276_MDIO__FUNC_GPIO276 (MTK_PIN_NO(276) | 0)
  752. +#define MT2701_PIN_276_MDIO__FUNC_MDIO (MTK_PIN_NO(276) | 1)
  753. +#define MT2701_PIN_276_MDIO__FUNC_ANT_SEL1 (MTK_PIN_NO(276) | 6)
  754. +
  755. +#define MT2701_PIN_278_JTAG_RESET__FUNC_GPIO278 (MTK_PIN_NO(278) | 0)
  756. +#define MT2701_PIN_278_JTAG_RESET__FUNC_JTAG_RESET (MTK_PIN_NO(278) | 1)
  757. +
  758. +#endif /* __DTS_MT2701_PINFUNC_H */
  759. --- a/drivers/pinctrl/mediatek/Kconfig
  760. +++ b/drivers/pinctrl/mediatek/Kconfig
  761. @@ -9,6 +9,12 @@ config PINCTRL_MTK_COMMON
  762. select OF_GPIO
  763. # For ARMv7 SoCs
  764. +config PINCTRL_MT2701
  765. + bool "Mediatek MT2701 pin control" if COMPILE_TEST && !MACH_MT2701
  766. + depends on OF
  767. + default MACH_MT2701
  768. + select PINCTRL_MTK_COMMON
  769. +
  770. config PINCTRL_MT8135
  771. bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
  772. depends on OF
  773. --- a/drivers/pinctrl/mediatek/Makefile
  774. +++ b/drivers/pinctrl/mediatek/Makefile
  775. @@ -2,6 +2,7 @@
  776. obj-$(CONFIG_PINCTRL_MTK_COMMON) += pinctrl-mtk-common.o
  777. # SoC Drivers
  778. +obj-$(CONFIG_PINCTRL_MT2701) += pinctrl-mt2701.o
  779. obj-$(CONFIG_PINCTRL_MT8135) += pinctrl-mt8135.o
  780. obj-$(CONFIG_PINCTRL_MT8127) += pinctrl-mt8127.o
  781. obj-$(CONFIG_PINCTRL_MT8173) += pinctrl-mt8173.o
  782. --- /dev/null
  783. +++ b/drivers/pinctrl/mediatek/pinctrl-mt2701.c
  784. @@ -0,0 +1,586 @@
  785. +/*
  786. + * Copyright (c) 2015 MediaTek Inc.
  787. + * Author: Biao Huang <biao.huang@mediatek.com>
  788. + *
  789. + * This program is free software; you can redistribute it and/or modify
  790. + * it under the terms of the GNU General Public License version 2 as
  791. + * published by the Free Software Foundation.
  792. + *
  793. + * This program is distributed in the hope that it will be useful,
  794. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  795. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  796. + * GNU General Public License for more details.
  797. + */
  798. +
  799. +#include <dt-bindings/pinctrl/mt65xx.h>
  800. +#include <linux/module.h>
  801. +#include <linux/of.h>
  802. +#include <linux/of_device.h>
  803. +#include <linux/platform_device.h>
  804. +#include <linux/pinctrl/pinctrl.h>
  805. +#include <linux/regmap.h>
  806. +
  807. +#include "pinctrl-mtk-common.h"
  808. +#include "pinctrl-mtk-mt2701.h"
  809. +
  810. +/**
  811. + * struct mtk_spec_pinmux_set
  812. + * - For special pins' mode setting
  813. + * @pin: The pin number.
  814. + * @offset: The offset of extra setting register.
  815. + * @bit: The bit of extra setting register.
  816. + */
  817. +struct mtk_spec_pinmux_set {
  818. + unsigned short pin;
  819. + unsigned short offset;
  820. + unsigned char bit;
  821. +};
  822. +
  823. +#define MTK_PINMUX_SPEC(_pin, _offset, _bit) \
  824. + { \
  825. + .pin = _pin, \
  826. + .offset = _offset, \
  827. + .bit = _bit, \
  828. + }
  829. +
  830. +static const struct mtk_drv_group_desc mt2701_drv_grp[] = {
  831. + /* 0E4E8SR 4/8/12/16 */
  832. + MTK_DRV_GRP(4, 16, 1, 2, 4),
  833. + /* 0E2E4SR 2/4/6/8 */
  834. + MTK_DRV_GRP(2, 8, 1, 2, 2),
  835. + /* E8E4E2 2/4/6/8/10/12/14/16 */
  836. + MTK_DRV_GRP(2, 16, 0, 2, 2)
  837. +};
  838. +
  839. +static const struct mtk_pin_drv_grp mt2701_pin_drv[] = {
  840. + MTK_PIN_DRV_GRP(0, 0xf50, 0, 1),
  841. + MTK_PIN_DRV_GRP(1, 0xf50, 0, 1),
  842. + MTK_PIN_DRV_GRP(2, 0xf50, 0, 1),
  843. + MTK_PIN_DRV_GRP(3, 0xf50, 0, 1),
  844. + MTK_PIN_DRV_GRP(4, 0xf50, 0, 1),
  845. + MTK_PIN_DRV_GRP(5, 0xf50, 0, 1),
  846. + MTK_PIN_DRV_GRP(6, 0xf50, 0, 1),
  847. + MTK_PIN_DRV_GRP(7, 0xf50, 4, 1),
  848. + MTK_PIN_DRV_GRP(8, 0xf50, 4, 1),
  849. + MTK_PIN_DRV_GRP(9, 0xf50, 4, 1),
  850. + MTK_PIN_DRV_GRP(10, 0xf50, 8, 1),
  851. + MTK_PIN_DRV_GRP(11, 0xf50, 8, 1),
  852. + MTK_PIN_DRV_GRP(12, 0xf50, 8, 1),
  853. + MTK_PIN_DRV_GRP(13, 0xf50, 8, 1),
  854. + MTK_PIN_DRV_GRP(14, 0xf50, 12, 0),
  855. + MTK_PIN_DRV_GRP(15, 0xf50, 12, 0),
  856. + MTK_PIN_DRV_GRP(16, 0xf60, 0, 0),
  857. + MTK_PIN_DRV_GRP(17, 0xf60, 0, 0),
  858. + MTK_PIN_DRV_GRP(18, 0xf60, 4, 0),
  859. + MTK_PIN_DRV_GRP(19, 0xf60, 4, 0),
  860. + MTK_PIN_DRV_GRP(20, 0xf60, 4, 0),
  861. + MTK_PIN_DRV_GRP(21, 0xf60, 4, 0),
  862. + MTK_PIN_DRV_GRP(22, 0xf60, 8, 0),
  863. + MTK_PIN_DRV_GRP(23, 0xf60, 8, 0),
  864. + MTK_PIN_DRV_GRP(24, 0xf60, 8, 0),
  865. + MTK_PIN_DRV_GRP(25, 0xf60, 8, 0),
  866. + MTK_PIN_DRV_GRP(26, 0xf60, 8, 0),
  867. + MTK_PIN_DRV_GRP(27, 0xf60, 12, 0),
  868. + MTK_PIN_DRV_GRP(28, 0xf60, 12, 0),
  869. + MTK_PIN_DRV_GRP(29, 0xf60, 12, 0),
  870. + MTK_PIN_DRV_GRP(30, 0xf60, 0, 0),
  871. + MTK_PIN_DRV_GRP(31, 0xf60, 0, 0),
  872. + MTK_PIN_DRV_GRP(32, 0xf60, 0, 0),
  873. + MTK_PIN_DRV_GRP(33, 0xf70, 0, 0),
  874. + MTK_PIN_DRV_GRP(34, 0xf70, 0, 0),
  875. + MTK_PIN_DRV_GRP(35, 0xf70, 0, 0),
  876. + MTK_PIN_DRV_GRP(36, 0xf70, 0, 0),
  877. + MTK_PIN_DRV_GRP(37, 0xf70, 0, 0),
  878. + MTK_PIN_DRV_GRP(38, 0xf70, 4, 0),
  879. + MTK_PIN_DRV_GRP(39, 0xf70, 8, 1),
  880. + MTK_PIN_DRV_GRP(40, 0xf70, 8, 1),
  881. + MTK_PIN_DRV_GRP(41, 0xf70, 8, 1),
  882. + MTK_PIN_DRV_GRP(42, 0xf70, 8, 1),
  883. + MTK_PIN_DRV_GRP(43, 0xf70, 12, 0),
  884. + MTK_PIN_DRV_GRP(44, 0xf70, 12, 0),
  885. + MTK_PIN_DRV_GRP(45, 0xf70, 12, 0),
  886. + MTK_PIN_DRV_GRP(47, 0xf80, 0, 0),
  887. + MTK_PIN_DRV_GRP(48, 0xf80, 0, 0),
  888. + MTK_PIN_DRV_GRP(49, 0xf80, 4, 0),
  889. + MTK_PIN_DRV_GRP(50, 0xf70, 4, 0),
  890. + MTK_PIN_DRV_GRP(51, 0xf70, 4, 0),
  891. + MTK_PIN_DRV_GRP(52, 0xf70, 4, 0),
  892. + MTK_PIN_DRV_GRP(53, 0xf80, 12, 0),
  893. + MTK_PIN_DRV_GRP(54, 0xf80, 12, 0),
  894. + MTK_PIN_DRV_GRP(55, 0xf80, 12, 0),
  895. + MTK_PIN_DRV_GRP(56, 0xf80, 12, 0),
  896. + MTK_PIN_DRV_GRP(60, 0xf90, 8, 1),
  897. + MTK_PIN_DRV_GRP(61, 0xf90, 8, 1),
  898. + MTK_PIN_DRV_GRP(62, 0xf90, 8, 1),
  899. + MTK_PIN_DRV_GRP(63, 0xf90, 12, 1),
  900. + MTK_PIN_DRV_GRP(64, 0xf90, 12, 1),
  901. + MTK_PIN_DRV_GRP(65, 0xf90, 12, 1),
  902. + MTK_PIN_DRV_GRP(66, 0xfa0, 0, 1),
  903. + MTK_PIN_DRV_GRP(67, 0xfa0, 0, 1),
  904. + MTK_PIN_DRV_GRP(68, 0xfa0, 0, 1),
  905. + MTK_PIN_DRV_GRP(69, 0xfa0, 0, 1),
  906. + MTK_PIN_DRV_GRP(70, 0xfa0, 0, 1),
  907. + MTK_PIN_DRV_GRP(71, 0xfa0, 0, 1),
  908. + MTK_PIN_DRV_GRP(72, 0xf80, 4, 0),
  909. + MTK_PIN_DRV_GRP(73, 0xf80, 4, 0),
  910. + MTK_PIN_DRV_GRP(74, 0xf80, 4, 0),
  911. + MTK_PIN_DRV_GRP(85, 0xda0, 0, 2),
  912. + MTK_PIN_DRV_GRP(86, 0xd90, 0, 2),
  913. + MTK_PIN_DRV_GRP(87, 0xdb0, 0, 2),
  914. + MTK_PIN_DRV_GRP(88, 0xdb0, 0, 2),
  915. + MTK_PIN_DRV_GRP(89, 0xdb0, 0, 2),
  916. + MTK_PIN_DRV_GRP(90, 0xdb0, 0, 2),
  917. + MTK_PIN_DRV_GRP(105, 0xd40, 0, 2),
  918. + MTK_PIN_DRV_GRP(106, 0xd30, 0, 2),
  919. + MTK_PIN_DRV_GRP(107, 0xd50, 0, 2),
  920. + MTK_PIN_DRV_GRP(108, 0xd50, 0, 2),
  921. + MTK_PIN_DRV_GRP(109, 0xd50, 0, 2),
  922. + MTK_PIN_DRV_GRP(110, 0xd50, 0, 2),
  923. + MTK_PIN_DRV_GRP(111, 0xce0, 0, 2),
  924. + MTK_PIN_DRV_GRP(112, 0xce0, 0, 2),
  925. + MTK_PIN_DRV_GRP(113, 0xce0, 0, 2),
  926. + MTK_PIN_DRV_GRP(114, 0xce0, 0, 2),
  927. + MTK_PIN_DRV_GRP(115, 0xce0, 0, 2),
  928. + MTK_PIN_DRV_GRP(116, 0xcd0, 0, 2),
  929. + MTK_PIN_DRV_GRP(117, 0xcc0, 0, 2),
  930. + MTK_PIN_DRV_GRP(118, 0xce0, 0, 2),
  931. + MTK_PIN_DRV_GRP(119, 0xce0, 0, 2),
  932. + MTK_PIN_DRV_GRP(120, 0xce0, 0, 2),
  933. + MTK_PIN_DRV_GRP(121, 0xce0, 0, 2),
  934. + MTK_PIN_DRV_GRP(126, 0xf80, 4, 0),
  935. + MTK_PIN_DRV_GRP(188, 0xf70, 4, 0),
  936. + MTK_PIN_DRV_GRP(189, 0xfe0, 8, 0),
  937. + MTK_PIN_DRV_GRP(190, 0xfe0, 8, 0),
  938. + MTK_PIN_DRV_GRP(191, 0xfe0, 8, 0),
  939. + MTK_PIN_DRV_GRP(192, 0xfe0, 8, 0),
  940. + MTK_PIN_DRV_GRP(193, 0xfe0, 8, 0),
  941. + MTK_PIN_DRV_GRP(194, 0xfe0, 12, 0),
  942. + MTK_PIN_DRV_GRP(195, 0xfe0, 12, 0),
  943. + MTK_PIN_DRV_GRP(196, 0xfe0, 12, 0),
  944. + MTK_PIN_DRV_GRP(197, 0xfe0, 12, 0),
  945. + MTK_PIN_DRV_GRP(198, 0xfe0, 12, 0),
  946. + MTK_PIN_DRV_GRP(199, 0xf50, 4, 1),
  947. + MTK_PIN_DRV_GRP(200, 0xfd0, 0, 0),
  948. + MTK_PIN_DRV_GRP(201, 0xfd0, 0, 0),
  949. + MTK_PIN_DRV_GRP(202, 0xfd0, 0, 0),
  950. + MTK_PIN_DRV_GRP(203, 0xfd0, 4, 0),
  951. + MTK_PIN_DRV_GRP(204, 0xfd0, 4, 0),
  952. + MTK_PIN_DRV_GRP(205, 0xfd0, 4, 0),
  953. + MTK_PIN_DRV_GRP(206, 0xfd0, 4, 0),
  954. + MTK_PIN_DRV_GRP(207, 0xfd0, 4, 0),
  955. + MTK_PIN_DRV_GRP(208, 0xfd0, 8, 0),
  956. + MTK_PIN_DRV_GRP(209, 0xfd0, 8, 0),
  957. + MTK_PIN_DRV_GRP(210, 0xfd0, 12, 1),
  958. + MTK_PIN_DRV_GRP(211, 0xff0, 0, 1),
  959. + MTK_PIN_DRV_GRP(212, 0xff0, 0, 1),
  960. + MTK_PIN_DRV_GRP(213, 0xff0, 0, 1),
  961. + MTK_PIN_DRV_GRP(214, 0xff0, 0, 1),
  962. + MTK_PIN_DRV_GRP(215, 0xff0, 0, 1),
  963. + MTK_PIN_DRV_GRP(216, 0xff0, 0, 1),
  964. + MTK_PIN_DRV_GRP(217, 0xff0, 0, 1),
  965. + MTK_PIN_DRV_GRP(218, 0xff0, 0, 1),
  966. + MTK_PIN_DRV_GRP(219, 0xff0, 0, 1),
  967. + MTK_PIN_DRV_GRP(220, 0xff0, 0, 1),
  968. + MTK_PIN_DRV_GRP(221, 0xff0, 0, 1),
  969. + MTK_PIN_DRV_GRP(222, 0xff0, 0, 1),
  970. + MTK_PIN_DRV_GRP(223, 0xff0, 0, 1),
  971. + MTK_PIN_DRV_GRP(224, 0xff0, 0, 1),
  972. + MTK_PIN_DRV_GRP(225, 0xff0, 0, 1),
  973. + MTK_PIN_DRV_GRP(226, 0xff0, 0, 1),
  974. + MTK_PIN_DRV_GRP(227, 0xff0, 0, 1),
  975. + MTK_PIN_DRV_GRP(228, 0xff0, 0, 1),
  976. + MTK_PIN_DRV_GRP(229, 0xff0, 0, 1),
  977. + MTK_PIN_DRV_GRP(230, 0xff0, 0, 1),
  978. + MTK_PIN_DRV_GRP(231, 0xff0, 0, 1),
  979. + MTK_PIN_DRV_GRP(232, 0xff0, 0, 1),
  980. + MTK_PIN_DRV_GRP(233, 0xff0, 0, 1),
  981. + MTK_PIN_DRV_GRP(234, 0xff0, 0, 1),
  982. + MTK_PIN_DRV_GRP(235, 0xff0, 0, 1),
  983. + MTK_PIN_DRV_GRP(236, 0xff0, 4, 0),
  984. + MTK_PIN_DRV_GRP(237, 0xff0, 4, 0),
  985. + MTK_PIN_DRV_GRP(238, 0xff0, 4, 0),
  986. + MTK_PIN_DRV_GRP(239, 0xff0, 4, 0),
  987. + MTK_PIN_DRV_GRP(240, 0xff0, 4, 0),
  988. + MTK_PIN_DRV_GRP(241, 0xff0, 4, 0),
  989. + MTK_PIN_DRV_GRP(242, 0xff0, 8, 0),
  990. + MTK_PIN_DRV_GRP(243, 0xff0, 8, 0),
  991. + MTK_PIN_DRV_GRP(248, 0xf00, 0, 0),
  992. + MTK_PIN_DRV_GRP(249, 0xfc0, 0, 2),
  993. + MTK_PIN_DRV_GRP(250, 0xfc0, 0, 2),
  994. + MTK_PIN_DRV_GRP(251, 0xfc0, 0, 2),
  995. + MTK_PIN_DRV_GRP(252, 0xfc0, 0, 2),
  996. + MTK_PIN_DRV_GRP(253, 0xfc0, 0, 2),
  997. + MTK_PIN_DRV_GRP(254, 0xfc0, 0, 2),
  998. + MTK_PIN_DRV_GRP(255, 0xfc0, 0, 2),
  999. + MTK_PIN_DRV_GRP(256, 0xfc0, 0, 2),
  1000. + MTK_PIN_DRV_GRP(257, 0xce0, 0, 2),
  1001. + MTK_PIN_DRV_GRP(258, 0xcb0, 0, 2),
  1002. + MTK_PIN_DRV_GRP(259, 0xc90, 0, 2),
  1003. + MTK_PIN_DRV_GRP(260, 0x3a0, 0, 2),
  1004. + MTK_PIN_DRV_GRP(261, 0xd50, 0, 2),
  1005. + MTK_PIN_DRV_GRP(262, 0xf00, 8, 0),
  1006. + MTK_PIN_DRV_GRP(263, 0xf00, 8, 0),
  1007. + MTK_PIN_DRV_GRP(264, 0xf00, 8, 0),
  1008. + MTK_PIN_DRV_GRP(265, 0xf00, 8, 0),
  1009. + MTK_PIN_DRV_GRP(266, 0xf00, 8, 0),
  1010. + MTK_PIN_DRV_GRP(267, 0xf00, 8, 0),
  1011. + MTK_PIN_DRV_GRP(268, 0xf00, 8, 0),
  1012. + MTK_PIN_DRV_GRP(269, 0xf00, 8, 0),
  1013. + MTK_PIN_DRV_GRP(270, 0xf00, 8, 0),
  1014. + MTK_PIN_DRV_GRP(271, 0xf00, 8, 0),
  1015. + MTK_PIN_DRV_GRP(272, 0xf00, 8, 0),
  1016. + MTK_PIN_DRV_GRP(273, 0xf00, 8, 0),
  1017. + MTK_PIN_DRV_GRP(274, 0xf00, 8, 0),
  1018. + MTK_PIN_DRV_GRP(275, 0xf00, 8, 0),
  1019. + MTK_PIN_DRV_GRP(276, 0xf00, 8, 0),
  1020. + MTK_PIN_DRV_GRP(277, 0xf00, 8, 0),
  1021. + MTK_PIN_DRV_GRP(278, 0xf70, 8, 1),
  1022. +};
  1023. +
  1024. +static const struct mtk_pin_spec_pupd_set_samereg mt2701_spec_pupd[] = {
  1025. + MTK_PIN_PUPD_SPEC_SR(111, 0xd00, 12, 13, 14), /* ms0 data7 */
  1026. + MTK_PIN_PUPD_SPEC_SR(112, 0xd00, 8, 9, 10), /* ms0 data6 */
  1027. + MTK_PIN_PUPD_SPEC_SR(113, 0xd00, 4, 5, 6), /* ms0 data5 */
  1028. + MTK_PIN_PUPD_SPEC_SR(114, 0xd00, 0, 1, 2), /* ms0 data4 */
  1029. + MTK_PIN_PUPD_SPEC_SR(115, 0xd10, 0, 1, 2), /* ms0 rstb */
  1030. + MTK_PIN_PUPD_SPEC_SR(116, 0xcd0, 8, 9, 10), /* ms0 cmd */
  1031. + MTK_PIN_PUPD_SPEC_SR(117, 0xcc0, 8, 9, 10), /* ms0 clk */
  1032. + MTK_PIN_PUPD_SPEC_SR(118, 0xcf0, 12, 13, 14), /* ms0 data3 */
  1033. + MTK_PIN_PUPD_SPEC_SR(119, 0xcf0, 8, 9, 10), /* ms0 data2 */
  1034. + MTK_PIN_PUPD_SPEC_SR(120, 0xcf0, 4, 5, 6), /* ms0 data1 */
  1035. + MTK_PIN_PUPD_SPEC_SR(121, 0xcf0, 0, 1, 2), /* ms0 data0 */
  1036. +
  1037. + MTK_PIN_PUPD_SPEC_SR(105, 0xd40, 8, 9, 10), /* ms1 cmd */
  1038. + MTK_PIN_PUPD_SPEC_SR(106, 0xd30, 8, 9, 10), /* ms1 clk */
  1039. + MTK_PIN_PUPD_SPEC_SR(107, 0xd60, 0, 1, 2), /* ms1 dat0 */
  1040. + MTK_PIN_PUPD_SPEC_SR(108, 0xd60, 10, 9, 8), /* ms1 dat1 */
  1041. + MTK_PIN_PUPD_SPEC_SR(109, 0xd60, 4, 5, 6), /* ms1 dat2 */
  1042. + MTK_PIN_PUPD_SPEC_SR(110, 0xc60, 12, 13, 14), /* ms1 dat3 */
  1043. +
  1044. + MTK_PIN_PUPD_SPEC_SR(85, 0xda0, 8, 9, 10), /* ms2 cmd */
  1045. + MTK_PIN_PUPD_SPEC_SR(86, 0xd90, 8, 9, 10), /* ms2 clk */
  1046. + MTK_PIN_PUPD_SPEC_SR(87, 0xdc0, 0, 1, 2), /* ms2 dat0 */
  1047. + MTK_PIN_PUPD_SPEC_SR(88, 0xdc0, 10, 9, 8), /* ms2 dat1 */
  1048. + MTK_PIN_PUPD_SPEC_SR(89, 0xdc0, 4, 5, 6), /* ms2 dat2 */
  1049. + MTK_PIN_PUPD_SPEC_SR(90, 0xdc0, 12, 13, 14), /* ms2 dat3 */
  1050. +
  1051. + MTK_PIN_PUPD_SPEC_SR(249, 0x140, 0, 1, 2), /* ms0e rstb */
  1052. + MTK_PIN_PUPD_SPEC_SR(250, 0x130, 12, 13, 14), /* ms0e dat7 */
  1053. + MTK_PIN_PUPD_SPEC_SR(251, 0x130, 8, 9, 10), /* ms0e dat6 */
  1054. + MTK_PIN_PUPD_SPEC_SR(252, 0x130, 4, 5, 6), /* ms0e dat5 */
  1055. + MTK_PIN_PUPD_SPEC_SR(253, 0x130, 0, 1, 2), /* ms0e dat4 */
  1056. + MTK_PIN_PUPD_SPEC_SR(254, 0xf40, 12, 13, 14), /* ms0e dat3 */
  1057. + MTK_PIN_PUPD_SPEC_SR(255, 0xf40, 8, 9, 10), /* ms0e dat2 */
  1058. + MTK_PIN_PUPD_SPEC_SR(256, 0xf40, 4, 5, 6), /* ms0e dat1 */
  1059. + MTK_PIN_PUPD_SPEC_SR(257, 0xf40, 0, 1, 2), /* ms0e dat0 */
  1060. + MTK_PIN_PUPD_SPEC_SR(258, 0xcb0, 8, 9, 10), /* ms0e cmd */
  1061. + MTK_PIN_PUPD_SPEC_SR(259, 0xc90, 8, 9, 10), /* ms0e clk */
  1062. + MTK_PIN_PUPD_SPEC_SR(261, 0x140, 8, 9, 10), /* ms1 ins */
  1063. +};
  1064. +
  1065. +static int mt2701_spec_pull_set(struct regmap *regmap, unsigned int pin,
  1066. + unsigned char align, bool isup, unsigned int r1r0)
  1067. +{
  1068. + return mtk_pctrl_spec_pull_set_samereg(regmap, mt2701_spec_pupd,
  1069. + ARRAY_SIZE(mt2701_spec_pupd), pin, align, isup, r1r0);
  1070. +}
  1071. +
  1072. +static const struct mtk_pin_ies_smt_set mt2701_ies_set[] = {
  1073. + MTK_PIN_IES_SMT_SPEC(0, 6, 0xb20, 0),
  1074. + MTK_PIN_IES_SMT_SPEC(7, 9, 0xb20, 1),
  1075. + MTK_PIN_IES_SMT_SPEC(10, 13, 0xb30, 3),
  1076. + MTK_PIN_IES_SMT_SPEC(14, 15, 0xb30, 13),
  1077. + MTK_PIN_IES_SMT_SPEC(16, 17, 0xb40, 7),
  1078. + MTK_PIN_IES_SMT_SPEC(18, 21, 0xb40, 13),
  1079. + MTK_PIN_IES_SMT_SPEC(22, 26, 0xb40, 13),
  1080. + MTK_PIN_IES_SMT_SPEC(27, 29, 0xb40, 13),
  1081. + MTK_PIN_IES_SMT_SPEC(30, 32, 0xb40, 7),
  1082. + MTK_PIN_IES_SMT_SPEC(33, 37, 0xb40, 13),
  1083. + MTK_PIN_IES_SMT_SPEC(38, 38, 0xb20, 13),
  1084. + MTK_PIN_IES_SMT_SPEC(39, 42, 0xb40, 13),
  1085. + MTK_PIN_IES_SMT_SPEC(43, 45, 0xb20, 10),
  1086. + MTK_PIN_IES_SMT_SPEC(47, 48, 0xb20, 11),
  1087. + MTK_PIN_IES_SMT_SPEC(49, 49, 0xb20, 12),
  1088. + MTK_PIN_IES_SMT_SPEC(50, 52, 0xb20, 13),
  1089. + MTK_PIN_IES_SMT_SPEC(53, 56, 0xb20, 14),
  1090. + MTK_PIN_IES_SMT_SPEC(57, 58, 0xb20, 15),
  1091. + MTK_PIN_IES_SMT_SPEC(59, 59, 0xb30, 10),
  1092. + MTK_PIN_IES_SMT_SPEC(60, 62, 0xb30, 0),
  1093. + MTK_PIN_IES_SMT_SPEC(63, 65, 0xb30, 1),
  1094. + MTK_PIN_IES_SMT_SPEC(66, 71, 0xb30, 2),
  1095. + MTK_PIN_IES_SMT_SPEC(72, 74, 0xb20, 12),
  1096. + MTK_PIN_IES_SMT_SPEC(75, 76, 0xb30, 3),
  1097. + MTK_PIN_IES_SMT_SPEC(77, 78, 0xb30, 4),
  1098. + MTK_PIN_IES_SMT_SPEC(79, 82, 0xb30, 5),
  1099. + MTK_PIN_IES_SMT_SPEC(83, 84, 0xb30, 2),
  1100. + MTK_PIN_IES_SMT_SPEC(85, 85, 0xda0, 4),
  1101. + MTK_PIN_IES_SMT_SPEC(86, 86, 0xd90, 4),
  1102. + MTK_PIN_IES_SMT_SPEC(87, 90, 0xdb0, 4),
  1103. + MTK_PIN_IES_SMT_SPEC(101, 104, 0xb30, 6),
  1104. + MTK_PIN_IES_SMT_SPEC(105, 105, 0xd40, 4),
  1105. + MTK_PIN_IES_SMT_SPEC(106, 106, 0xd30, 4),
  1106. + MTK_PIN_IES_SMT_SPEC(107, 110, 0xd50, 4),
  1107. + MTK_PIN_IES_SMT_SPEC(111, 115, 0xce0, 4),
  1108. + MTK_PIN_IES_SMT_SPEC(116, 116, 0xcd0, 4),
  1109. + MTK_PIN_IES_SMT_SPEC(117, 117, 0xcc0, 4),
  1110. + MTK_PIN_IES_SMT_SPEC(118, 121, 0xce0, 4),
  1111. + MTK_PIN_IES_SMT_SPEC(122, 125, 0xb30, 7),
  1112. + MTK_PIN_IES_SMT_SPEC(126, 126, 0xb20, 12),
  1113. + MTK_PIN_IES_SMT_SPEC(127, 142, 0xb30, 9),
  1114. + MTK_PIN_IES_SMT_SPEC(143, 160, 0xb30, 10),
  1115. + MTK_PIN_IES_SMT_SPEC(161, 168, 0xb30, 12),
  1116. + MTK_PIN_IES_SMT_SPEC(169, 183, 0xb30, 10),
  1117. + MTK_PIN_IES_SMT_SPEC(184, 186, 0xb30, 9),
  1118. + MTK_PIN_IES_SMT_SPEC(187, 187, 0xb30, 14),
  1119. + MTK_PIN_IES_SMT_SPEC(188, 188, 0xb20, 13),
  1120. + MTK_PIN_IES_SMT_SPEC(189, 193, 0xb30, 15),
  1121. + MTK_PIN_IES_SMT_SPEC(194, 198, 0xb40, 0),
  1122. + MTK_PIN_IES_SMT_SPEC(199, 199, 0xb20, 1),
  1123. + MTK_PIN_IES_SMT_SPEC(200, 202, 0xb40, 1),
  1124. + MTK_PIN_IES_SMT_SPEC(203, 207, 0xb40, 2),
  1125. + MTK_PIN_IES_SMT_SPEC(208, 209, 0xb40, 3),
  1126. + MTK_PIN_IES_SMT_SPEC(210, 210, 0xb40, 4),
  1127. + MTK_PIN_IES_SMT_SPEC(211, 235, 0xb40, 5),
  1128. + MTK_PIN_IES_SMT_SPEC(236, 241, 0xb40, 6),
  1129. + MTK_PIN_IES_SMT_SPEC(242, 243, 0xb40, 7),
  1130. + MTK_PIN_IES_SMT_SPEC(244, 247, 0xb40, 8),
  1131. + MTK_PIN_IES_SMT_SPEC(248, 248, 0xb40, 9),
  1132. + MTK_PIN_IES_SMT_SPEC(249, 257, 0xfc0, 4),
  1133. + MTK_PIN_IES_SMT_SPEC(258, 258, 0xcb0, 4),
  1134. + MTK_PIN_IES_SMT_SPEC(259, 259, 0xc90, 4),
  1135. + MTK_PIN_IES_SMT_SPEC(260, 260, 0x3a0, 4),
  1136. + MTK_PIN_IES_SMT_SPEC(261, 261, 0xd50, 4),
  1137. + MTK_PIN_IES_SMT_SPEC(262, 277, 0xb40, 12),
  1138. + MTK_PIN_IES_SMT_SPEC(278, 278, 0xb40, 13),
  1139. +};
  1140. +
  1141. +static const struct mtk_pin_ies_smt_set mt2701_smt_set[] = {
  1142. + MTK_PIN_IES_SMT_SPEC(0, 6, 0xb50, 0),
  1143. + MTK_PIN_IES_SMT_SPEC(7, 9, 0xb50, 1),
  1144. + MTK_PIN_IES_SMT_SPEC(10, 13, 0xb60, 3),
  1145. + MTK_PIN_IES_SMT_SPEC(14, 15, 0xb60, 13),
  1146. + MTK_PIN_IES_SMT_SPEC(16, 17, 0xb70, 7),
  1147. + MTK_PIN_IES_SMT_SPEC(18, 21, 0xb70, 13),
  1148. + MTK_PIN_IES_SMT_SPEC(22, 26, 0xb70, 13),
  1149. + MTK_PIN_IES_SMT_SPEC(27, 29, 0xb70, 13),
  1150. + MTK_PIN_IES_SMT_SPEC(30, 32, 0xb70, 7),
  1151. + MTK_PIN_IES_SMT_SPEC(33, 37, 0xb70, 13),
  1152. + MTK_PIN_IES_SMT_SPEC(38, 38, 0xb50, 13),
  1153. + MTK_PIN_IES_SMT_SPEC(39, 42, 0xb70, 13),
  1154. + MTK_PIN_IES_SMT_SPEC(43, 45, 0xb50, 10),
  1155. + MTK_PIN_IES_SMT_SPEC(47, 48, 0xb50, 11),
  1156. + MTK_PIN_IES_SMT_SPEC(49, 49, 0xb50, 12),
  1157. + MTK_PIN_IES_SMT_SPEC(50, 52, 0xb50, 13),
  1158. + MTK_PIN_IES_SMT_SPEC(53, 56, 0xb50, 14),
  1159. + MTK_PIN_IES_SMT_SPEC(57, 58, 0xb50, 15),
  1160. + MTK_PIN_IES_SMT_SPEC(59, 59, 0xb60, 10),
  1161. + MTK_PIN_IES_SMT_SPEC(60, 62, 0xb60, 0),
  1162. + MTK_PIN_IES_SMT_SPEC(63, 65, 0xb60, 1),
  1163. + MTK_PIN_IES_SMT_SPEC(66, 71, 0xb60, 2),
  1164. + MTK_PIN_IES_SMT_SPEC(72, 74, 0xb50, 12),
  1165. + MTK_PIN_IES_SMT_SPEC(75, 76, 0xb60, 3),
  1166. + MTK_PIN_IES_SMT_SPEC(77, 78, 0xb60, 4),
  1167. + MTK_PIN_IES_SMT_SPEC(79, 82, 0xb60, 5),
  1168. + MTK_PIN_IES_SMT_SPEC(83, 84, 0xb60, 2),
  1169. + MTK_PIN_IES_SMT_SPEC(85, 85, 0xda0, 11),
  1170. + MTK_PIN_IES_SMT_SPEC(86, 86, 0xd90, 11),
  1171. + MTK_PIN_IES_SMT_SPEC(87, 87, 0xdc0, 3),
  1172. + MTK_PIN_IES_SMT_SPEC(88, 88, 0xdc0, 7),
  1173. + MTK_PIN_IES_SMT_SPEC(89, 89, 0xdc0, 11),
  1174. + MTK_PIN_IES_SMT_SPEC(90, 90, 0xdc0, 15),
  1175. + MTK_PIN_IES_SMT_SPEC(101, 104, 0xb60, 6),
  1176. + MTK_PIN_IES_SMT_SPEC(105, 105, 0xd40, 11),
  1177. + MTK_PIN_IES_SMT_SPEC(106, 106, 0xd30, 11),
  1178. + MTK_PIN_IES_SMT_SPEC(107, 107, 0xd60, 3),
  1179. + MTK_PIN_IES_SMT_SPEC(108, 108, 0xd60, 7),
  1180. + MTK_PIN_IES_SMT_SPEC(109, 109, 0xd60, 11),
  1181. + MTK_PIN_IES_SMT_SPEC(110, 110, 0xd60, 15),
  1182. + MTK_PIN_IES_SMT_SPEC(111, 111, 0xd00, 15),
  1183. + MTK_PIN_IES_SMT_SPEC(112, 112, 0xd00, 11),
  1184. + MTK_PIN_IES_SMT_SPEC(113, 113, 0xd00, 7),
  1185. + MTK_PIN_IES_SMT_SPEC(114, 114, 0xd00, 3),
  1186. + MTK_PIN_IES_SMT_SPEC(115, 115, 0xd10, 3),
  1187. + MTK_PIN_IES_SMT_SPEC(116, 116, 0xcd0, 11),
  1188. + MTK_PIN_IES_SMT_SPEC(117, 117, 0xcc0, 11),
  1189. + MTK_PIN_IES_SMT_SPEC(118, 118, 0xcf0, 15),
  1190. + MTK_PIN_IES_SMT_SPEC(119, 119, 0xcf0, 11),
  1191. + MTK_PIN_IES_SMT_SPEC(120, 120, 0xcf0, 7),
  1192. + MTK_PIN_IES_SMT_SPEC(121, 121, 0xcf0, 3),
  1193. + MTK_PIN_IES_SMT_SPEC(122, 125, 0xb60, 7),
  1194. + MTK_PIN_IES_SMT_SPEC(126, 126, 0xb50, 12),
  1195. + MTK_PIN_IES_SMT_SPEC(127, 142, 0xb60, 9),
  1196. + MTK_PIN_IES_SMT_SPEC(143, 160, 0xb60, 10),
  1197. + MTK_PIN_IES_SMT_SPEC(161, 168, 0xb60, 12),
  1198. + MTK_PIN_IES_SMT_SPEC(169, 183, 0xb60, 10),
  1199. + MTK_PIN_IES_SMT_SPEC(184, 186, 0xb60, 9),
  1200. + MTK_PIN_IES_SMT_SPEC(187, 187, 0xb60, 14),
  1201. + MTK_PIN_IES_SMT_SPEC(188, 188, 0xb50, 13),
  1202. + MTK_PIN_IES_SMT_SPEC(189, 193, 0xb60, 15),
  1203. + MTK_PIN_IES_SMT_SPEC(194, 198, 0xb70, 0),
  1204. + MTK_PIN_IES_SMT_SPEC(199, 199, 0xb50, 1),
  1205. + MTK_PIN_IES_SMT_SPEC(200, 202, 0xb70, 1),
  1206. + MTK_PIN_IES_SMT_SPEC(203, 207, 0xb70, 2),
  1207. + MTK_PIN_IES_SMT_SPEC(208, 209, 0xb70, 3),
  1208. + MTK_PIN_IES_SMT_SPEC(210, 210, 0xb70, 4),
  1209. + MTK_PIN_IES_SMT_SPEC(211, 235, 0xb70, 5),
  1210. + MTK_PIN_IES_SMT_SPEC(236, 241, 0xb70, 6),
  1211. + MTK_PIN_IES_SMT_SPEC(242, 243, 0xb70, 7),
  1212. + MTK_PIN_IES_SMT_SPEC(244, 247, 0xb70, 8),
  1213. + MTK_PIN_IES_SMT_SPEC(248, 248, 0xb70, 9),
  1214. + MTK_PIN_IES_SMT_SPEC(249, 249, 0x140, 3),
  1215. + MTK_PIN_IES_SMT_SPEC(250, 250, 0x130, 15),
  1216. + MTK_PIN_IES_SMT_SPEC(251, 251, 0x130, 11),
  1217. + MTK_PIN_IES_SMT_SPEC(252, 252, 0x130, 7),
  1218. + MTK_PIN_IES_SMT_SPEC(253, 253, 0x130, 3),
  1219. + MTK_PIN_IES_SMT_SPEC(254, 254, 0xf40, 15),
  1220. + MTK_PIN_IES_SMT_SPEC(255, 255, 0xf40, 11),
  1221. + MTK_PIN_IES_SMT_SPEC(256, 256, 0xf40, 7),
  1222. + MTK_PIN_IES_SMT_SPEC(257, 257, 0xf40, 3),
  1223. + MTK_PIN_IES_SMT_SPEC(258, 258, 0xcb0, 11),
  1224. + MTK_PIN_IES_SMT_SPEC(259, 259, 0xc90, 11),
  1225. + MTK_PIN_IES_SMT_SPEC(260, 260, 0x3a0, 11),
  1226. + MTK_PIN_IES_SMT_SPEC(261, 261, 0x0b0, 3),
  1227. + MTK_PIN_IES_SMT_SPEC(262, 277, 0xb70, 12),
  1228. + MTK_PIN_IES_SMT_SPEC(278, 278, 0xb70, 13),
  1229. +};
  1230. +
  1231. +static int mt2701_ies_smt_set(struct regmap *regmap, unsigned int pin,
  1232. + unsigned char align, int value, enum pin_config_param arg)
  1233. +{
  1234. + if (arg == PIN_CONFIG_INPUT_ENABLE)
  1235. + return mtk_pconf_spec_set_ies_smt_range(regmap, mt2701_ies_set,
  1236. + ARRAY_SIZE(mt2701_ies_set), pin, align, value);
  1237. + else if (arg == PIN_CONFIG_INPUT_SCHMITT_ENABLE)
  1238. + return mtk_pconf_spec_set_ies_smt_range(regmap, mt2701_smt_set,
  1239. + ARRAY_SIZE(mt2701_smt_set), pin, align, value);
  1240. + return -EINVAL;
  1241. +}
  1242. +
  1243. +static const struct mtk_spec_pinmux_set mt2701_spec_pinmux[] = {
  1244. + MTK_PINMUX_SPEC(22, 0xb10, 3),
  1245. + MTK_PINMUX_SPEC(23, 0xb10, 4),
  1246. + MTK_PINMUX_SPEC(24, 0xb10, 5),
  1247. + MTK_PINMUX_SPEC(29, 0xb10, 9),
  1248. + MTK_PINMUX_SPEC(208, 0xb10, 7),
  1249. + MTK_PINMUX_SPEC(209, 0xb10, 8),
  1250. + MTK_PINMUX_SPEC(203, 0xf20, 0),
  1251. + MTK_PINMUX_SPEC(204, 0xf20, 1),
  1252. + MTK_PINMUX_SPEC(249, 0xef0, 0),
  1253. + MTK_PINMUX_SPEC(250, 0xef0, 0),
  1254. + MTK_PINMUX_SPEC(251, 0xef0, 0),
  1255. + MTK_PINMUX_SPEC(252, 0xef0, 0),
  1256. + MTK_PINMUX_SPEC(253, 0xef0, 0),
  1257. + MTK_PINMUX_SPEC(254, 0xef0, 0),
  1258. + MTK_PINMUX_SPEC(255, 0xef0, 0),
  1259. + MTK_PINMUX_SPEC(256, 0xef0, 0),
  1260. + MTK_PINMUX_SPEC(257, 0xef0, 0),
  1261. + MTK_PINMUX_SPEC(258, 0xef0, 0),
  1262. + MTK_PINMUX_SPEC(259, 0xef0, 0),
  1263. + MTK_PINMUX_SPEC(260, 0xef0, 0),
  1264. +};
  1265. +
  1266. +static void mt2701_spec_pinmux_set(struct regmap *reg, unsigned int pin,
  1267. + unsigned int mode)
  1268. +{
  1269. + unsigned int i, value, mask;
  1270. + unsigned int info_num = ARRAY_SIZE(mt2701_spec_pinmux);
  1271. + unsigned int spec_flag;
  1272. +
  1273. + for (i = 0; i < info_num; i++) {
  1274. + if (pin == mt2701_spec_pinmux[i].pin)
  1275. + break;
  1276. + }
  1277. +
  1278. + if (i == info_num)
  1279. + return;
  1280. +
  1281. + spec_flag = (mode >> 3);
  1282. + mask = BIT(mt2701_spec_pinmux[i].bit);
  1283. + if (!spec_flag)
  1284. + value = mask;
  1285. + else
  1286. + value = 0;
  1287. + regmap_update_bits(reg, mt2701_spec_pinmux[i].offset, mask, value);
  1288. +}
  1289. +
  1290. +static void mt2701_spec_dir_set(unsigned int *reg_addr, unsigned int pin)
  1291. +{
  1292. + if (pin > 175)
  1293. + *reg_addr += 0x10;
  1294. +}
  1295. +
  1296. +static const struct mtk_pinctrl_devdata mt2701_pinctrl_data = {
  1297. + .pins = mtk_pins_mt2701,
  1298. + .npins = ARRAY_SIZE(mtk_pins_mt2701),
  1299. + .grp_desc = mt2701_drv_grp,
  1300. + .n_grp_cls = ARRAY_SIZE(mt2701_drv_grp),
  1301. + .pin_drv_grp = mt2701_pin_drv,
  1302. + .n_pin_drv_grps = ARRAY_SIZE(mt2701_pin_drv),
  1303. + .spec_pull_set = mt2701_spec_pull_set,
  1304. + .spec_ies_smt_set = mt2701_ies_smt_set,
  1305. + .spec_pinmux_set = mt2701_spec_pinmux_set,
  1306. + .spec_dir_set = mt2701_spec_dir_set,
  1307. + .dir_offset = 0x0000,
  1308. + .pullen_offset = 0x0150,
  1309. + .pullsel_offset = 0x0280,
  1310. + .dout_offset = 0x0500,
  1311. + .din_offset = 0x0630,
  1312. + .pinmux_offset = 0x0760,
  1313. + .type1_start = 280,
  1314. + .type1_end = 280,
  1315. + .port_shf = 4,
  1316. + .port_mask = 0x1f,
  1317. + .port_align = 4,
  1318. + .eint_offsets = {
  1319. + .name = "mt2701_eint",
  1320. + .stat = 0x000,
  1321. + .ack = 0x040,
  1322. + .mask = 0x080,
  1323. + .mask_set = 0x0c0,
  1324. + .mask_clr = 0x100,
  1325. + .sens = 0x140,
  1326. + .sens_set = 0x180,
  1327. + .sens_clr = 0x1c0,
  1328. + .soft = 0x200,
  1329. + .soft_set = 0x240,
  1330. + .soft_clr = 0x280,
  1331. + .pol = 0x300,
  1332. + .pol_set = 0x340,
  1333. + .pol_clr = 0x380,
  1334. + .dom_en = 0x400,
  1335. + .dbnc_ctrl = 0x500,
  1336. + .dbnc_set = 0x600,
  1337. + .dbnc_clr = 0x700,
  1338. + .port_mask = 6,
  1339. + .ports = 6,
  1340. + },
  1341. + .ap_num = 169,
  1342. + .db_cnt = 16,
  1343. +};
  1344. +
  1345. +static int mt2701_pinctrl_probe(struct platform_device *pdev)
  1346. +{
  1347. + return mtk_pctrl_init(pdev, &mt2701_pinctrl_data, NULL);
  1348. +}
  1349. +
  1350. +static const struct of_device_id mt2701_pctrl_match[] = {
  1351. + { .compatible = "mediatek,mt2701-pinctrl", },
  1352. + {}
  1353. +};
  1354. +MODULE_DEVICE_TABLE(of, mt2701_pctrl_match);
  1355. +
  1356. +static struct platform_driver mtk_pinctrl_driver = {
  1357. + .probe = mt2701_pinctrl_probe,
  1358. + .driver = {
  1359. + .name = "mediatek-mt2701-pinctrl",
  1360. + .owner = THIS_MODULE,
  1361. + .of_match_table = mt2701_pctrl_match,
  1362. + },
  1363. +};
  1364. +
  1365. +static int __init mtk_pinctrl_init(void)
  1366. +{
  1367. + return platform_driver_register(&mtk_pinctrl_driver);
  1368. +}
  1369. +
  1370. +arch_initcall(mtk_pinctrl_init);
  1371. --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
  1372. +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
  1373. @@ -47,6 +47,8 @@
  1374. static const char * const mtk_gpio_functions[] = {
  1375. "func0", "func1", "func2", "func3",
  1376. "func4", "func5", "func6", "func7",
  1377. + "func8", "func9", "func10", "func11",
  1378. + "func12", "func13", "func14", "func15",
  1379. };
  1380. /*
  1381. @@ -81,6 +83,9 @@ static int mtk_pmx_gpio_set_direction(st
  1382. reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset;
  1383. bit = BIT(offset & 0xf);
  1384. + if (pctl->devdata->spec_dir_set)
  1385. + pctl->devdata->spec_dir_set(&reg_addr, offset);
  1386. +
  1387. if (input)
  1388. /* Different SoC has different alignment offset. */
  1389. reg_addr = CLR_ADDR(reg_addr, pctl);
  1390. @@ -347,6 +352,7 @@ static int mtk_pconf_parse_conf(struct p
  1391. ret = mtk_pconf_set_pull_select(pctl, pin, true, false, arg);
  1392. break;
  1393. case PIN_CONFIG_INPUT_ENABLE:
  1394. + mtk_pmx_gpio_set_direction(pctldev, NULL, pin, true);
  1395. ret = mtk_pconf_set_ies_smt(pctl, pin, arg, param);
  1396. break;
  1397. case PIN_CONFIG_OUTPUT:
  1398. @@ -354,6 +360,7 @@ static int mtk_pconf_parse_conf(struct p
  1399. ret = mtk_pmx_gpio_set_direction(pctldev, NULL, pin, false);
  1400. break;
  1401. case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
  1402. + mtk_pmx_gpio_set_direction(pctldev, NULL, pin, true);
  1403. ret = mtk_pconf_set_ies_smt(pctl, pin, arg, param);
  1404. break;
  1405. case PIN_CONFIG_DRIVE_STRENGTH:
  1406. @@ -667,9 +674,14 @@ static int mtk_pmx_set_mode(struct pinct
  1407. unsigned int mask = (1L << GPIO_MODE_BITS) - 1;
  1408. struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);
  1409. + if (pctl->devdata->spec_pinmux_set)
  1410. + pctl->devdata->spec_pinmux_set(mtk_get_regmap(pctl, pin),
  1411. + pin, mode);
  1412. +
  1413. reg_addr = ((pin / MAX_GPIO_MODE_PER_REG) << pctl->devdata->port_shf)
  1414. + pctl->devdata->pinmux_offset;
  1415. + mode &= mask;
  1416. bit = pin % MAX_GPIO_MODE_PER_REG;
  1417. mask <<= (GPIO_MODE_BITS * bit);
  1418. val = (mode << (GPIO_MODE_BITS * bit));
  1419. @@ -746,6 +758,10 @@ static int mtk_gpio_get_direction(struct
  1420. reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset;
  1421. bit = BIT(offset & 0xf);
  1422. +
  1423. + if (pctl->devdata->spec_dir_set)
  1424. + pctl->devdata->spec_dir_set(&reg_addr, offset);
  1425. +
  1426. regmap_read(pctl->regmap1, reg_addr, &read_val);
  1427. return !(read_val & bit);
  1428. }
  1429. --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
  1430. +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
  1431. @@ -209,7 +209,14 @@ struct mtk_eint_offsets {
  1432. * means when user set smt, input enable is set at the same time. So they
  1433. * also need special control. If special control is success, this should
  1434. * return 0, otherwise return non-zero value.
  1435. - *
  1436. + * @spec_pinmux_set: In some cases, there are two pinmux functions share
  1437. + * the same value in the same segment of pinmux control register. If user
  1438. + * want to use one of the two functions, they need an extra bit setting to
  1439. + * select the right one.
  1440. + * @spec_dir_set: In very few SoCs, direction control registers are not
  1441. + * arranged continuously, they may be cut to parts. So they need special
  1442. + * dir setting.
  1443. +
  1444. * @dir_offset: The direction register offset.
  1445. * @pullen_offset: The pull-up/pull-down enable register offset.
  1446. * @pinmux_offset: The pinmux register offset.
  1447. @@ -234,6 +241,9 @@ struct mtk_pinctrl_devdata {
  1448. unsigned char align, bool isup, unsigned int arg);
  1449. int (*spec_ies_smt_set)(struct regmap *reg, unsigned int pin,
  1450. unsigned char align, int value, enum pin_config_param arg);
  1451. + void (*spec_pinmux_set)(struct regmap *reg, unsigned int pin,
  1452. + unsigned int mode);
  1453. + void (*spec_dir_set)(unsigned int *reg_addr, unsigned int pin);
  1454. unsigned int dir_offset;
  1455. unsigned int ies_offset;
  1456. unsigned int smt_offset;
  1457. --- /dev/null
  1458. +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h
  1459. @@ -0,0 +1,2323 @@
  1460. +/*
  1461. + * Copyright (c) 2015 MediaTek Inc.
  1462. + * Author: Biao Huang <biao.huang@mediatek.com>
  1463. + *
  1464. + * This program is free software; you can redistribute it and/or modify
  1465. + * it under the terms of the GNU General Public License version 2 as
  1466. + * published by the Free Software Foundation.
  1467. + *
  1468. + * This program is distributed in the hope that it will be useful,
  1469. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1470. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1471. + * GNU General Public License for more details.
  1472. + */
  1473. +
  1474. +#ifndef __PINCTRL_MTK_MT2701_H
  1475. +#define __PINCTRL_MTK_MT2701_H
  1476. +
  1477. +#include <linux/pinctrl/pinctrl.h>
  1478. +#include "pinctrl-mtk-common.h"
  1479. +
  1480. +static const struct mtk_desc_pin mtk_pins_mt2701[] = {
  1481. + MTK_PIN(
  1482. + PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
  1483. + NULL, "mt2701",
  1484. + MTK_EINT_FUNCTION(0, 148),
  1485. + MTK_FUNCTION(0, "GPIO0"),
  1486. + MTK_FUNCTION(1, "PWRAP_SPIDO"),
  1487. + MTK_FUNCTION(2, "PWRAP_SPIDI")
  1488. + ),
  1489. + MTK_PIN(
  1490. + PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
  1491. + NULL, "mt2701",
  1492. + MTK_EINT_FUNCTION(0, 149),
  1493. + MTK_FUNCTION(0, "GPIO1"),
  1494. + MTK_FUNCTION(1, "PWRAP_SPIDI"),
  1495. + MTK_FUNCTION(2, "PWRAP_SPIDO")
  1496. + ),
  1497. + MTK_PIN(
  1498. + PINCTRL_PIN(2, "PWRAP_INT"),
  1499. + NULL, "mt2701",
  1500. + MTK_EINT_FUNCTION(0, 150),
  1501. + MTK_FUNCTION(0, "GPIO2"),
  1502. + MTK_FUNCTION(1, "PWRAP_INT")
  1503. + ),
  1504. + MTK_PIN(
  1505. + PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
  1506. + NULL, "mt2701",
  1507. + MTK_EINT_FUNCTION(0, 151),
  1508. + MTK_FUNCTION(0, "GPIO3"),
  1509. + MTK_FUNCTION(1, "PWRAP_SPICK_I")
  1510. + ),
  1511. + MTK_PIN(
  1512. + PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
  1513. + NULL, "mt2701",
  1514. + MTK_EINT_FUNCTION(0, 152),
  1515. + MTK_FUNCTION(0, "GPIO4"),
  1516. + MTK_FUNCTION(1, "PWRAP_SPICS_B_I")
  1517. + ),
  1518. + MTK_PIN(
  1519. + PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
  1520. + NULL, "mt2701",
  1521. + MTK_EINT_FUNCTION(0, 153),
  1522. + MTK_FUNCTION(0, "GPIO5"),
  1523. + MTK_FUNCTION(1, "PWRAP_SPICK2_I"),
  1524. + MTK_FUNCTION(5, "ANT_SEL1")
  1525. + ),
  1526. + MTK_PIN(
  1527. + PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
  1528. + NULL, "mt2701",
  1529. + MTK_EINT_FUNCTION(0, 154),
  1530. + MTK_FUNCTION(0, "GPIO6"),
  1531. + MTK_FUNCTION(1, "PWRAP_SPICS2_B_I"),
  1532. + MTK_FUNCTION(5, "ANT_SEL0"),
  1533. + MTK_FUNCTION(7, "DBG_MON_A[0]")
  1534. + ),
  1535. + MTK_PIN(
  1536. + PINCTRL_PIN(7, "SPI1_CSN"),
  1537. + NULL, "mt2701",
  1538. + MTK_EINT_FUNCTION(0, 155),
  1539. + MTK_FUNCTION(0, "GPIO7"),
  1540. + MTK_FUNCTION(1, "SPI1_CS"),
  1541. + MTK_FUNCTION(4, "KCOL0"),
  1542. + MTK_FUNCTION(7, "DBG_MON_B[12]")
  1543. + ),
  1544. + MTK_PIN(
  1545. + PINCTRL_PIN(8, "SPI1_MI"),
  1546. + NULL, "mt2701",
  1547. + MTK_EINT_FUNCTION(0, 156),
  1548. + MTK_FUNCTION(0, "GPIO8"),
  1549. + MTK_FUNCTION(1, "SPI1_MI"),
  1550. + MTK_FUNCTION(2, "SPI1_MO"),
  1551. + MTK_FUNCTION(4, "KCOL1"),
  1552. + MTK_FUNCTION(7, "DBG_MON_B[13]")
  1553. + ),
  1554. + MTK_PIN(
  1555. + PINCTRL_PIN(9, "SPI1_MO"),
  1556. + NULL, "mt2701",
  1557. + MTK_EINT_FUNCTION(0, 157),
  1558. + MTK_FUNCTION(0, "GPIO9"),
  1559. + MTK_FUNCTION(1, "SPI1_MO"),
  1560. + MTK_FUNCTION(2, "SPI1_MI"),
  1561. + MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
  1562. + MTK_FUNCTION(4, "KCOL2"),
  1563. + MTK_FUNCTION(7, "DBG_MON_B[14]")
  1564. + ),
  1565. + MTK_PIN(
  1566. + PINCTRL_PIN(10, "RTC32K_CK"),
  1567. + NULL, "mt2701",
  1568. + MTK_EINT_FUNCTION(0, 158),
  1569. + MTK_FUNCTION(0, "GPIO10"),
  1570. + MTK_FUNCTION(1, "RTC32K_CK")
  1571. + ),
  1572. + MTK_PIN(
  1573. + PINCTRL_PIN(11, "WATCHDOG"),
  1574. + NULL, "mt2701",
  1575. + MTK_EINT_FUNCTION(0, 159),
  1576. + MTK_FUNCTION(0, "GPIO11"),
  1577. + MTK_FUNCTION(1, "WATCHDOG")
  1578. + ),
  1579. + MTK_PIN(
  1580. + PINCTRL_PIN(12, "SRCLKENA"),
  1581. + NULL, "mt2701",
  1582. + MTK_EINT_FUNCTION(0, 160),
  1583. + MTK_FUNCTION(0, "GPIO12"),
  1584. + MTK_FUNCTION(1, "SRCLKENA")
  1585. + ),
  1586. + MTK_PIN(
  1587. + PINCTRL_PIN(13, "SRCLKENAI"),
  1588. + NULL, "mt2701",
  1589. + MTK_EINT_FUNCTION(0, 161),
  1590. + MTK_FUNCTION(0, "GPIO13"),
  1591. + MTK_FUNCTION(1, "SRCLKENAI")
  1592. + ),
  1593. + MTK_PIN(
  1594. + PINCTRL_PIN(14, "URXD2"),
  1595. + NULL, "mt2701",
  1596. + MTK_EINT_FUNCTION(0, 162),
  1597. + MTK_FUNCTION(0, "GPIO14"),
  1598. + MTK_FUNCTION(1, "URXD2"),
  1599. + MTK_FUNCTION(2, "UTXD2"),
  1600. + MTK_FUNCTION(5, "SRCCLKENAI2"),
  1601. + MTK_FUNCTION(7, "DBG_MON_B[30]")
  1602. + ),
  1603. + MTK_PIN(
  1604. + PINCTRL_PIN(15, "UTXD2"),
  1605. + NULL, "mt2701",
  1606. + MTK_EINT_FUNCTION(0, 163),
  1607. + MTK_FUNCTION(0, "GPIO15"),
  1608. + MTK_FUNCTION(1, "UTXD2"),
  1609. + MTK_FUNCTION(2, "URXD2"),
  1610. + MTK_FUNCTION(7, "DBG_MON_B[31]")
  1611. + ),
  1612. + MTK_PIN(
  1613. + PINCTRL_PIN(16, "I2S5_DATA_IN"),
  1614. + NULL, "mt2701",
  1615. + MTK_EINT_FUNCTION(0, 164),
  1616. + MTK_FUNCTION(0, "GPIO16"),
  1617. + MTK_FUNCTION(1, "I2S5_DATA_IN"),
  1618. + MTK_FUNCTION(3, "PCM_RX"),
  1619. + MTK_FUNCTION(4, "ANT_SEL4")
  1620. + ),
  1621. + MTK_PIN(
  1622. + PINCTRL_PIN(17, "I2S5_BCK"),
  1623. + NULL, "mt2701",
  1624. + MTK_EINT_FUNCTION(0, 165),
  1625. + MTK_FUNCTION(0, "GPIO17"),
  1626. + MTK_FUNCTION(1, "I2S5_BCK"),
  1627. + MTK_FUNCTION(3, "PCM_CLK0"),
  1628. + MTK_FUNCTION(4, "ANT_SEL2")
  1629. + ),
  1630. + MTK_PIN(
  1631. + PINCTRL_PIN(18, "PCM_CLK"),
  1632. + NULL, "mt2701",
  1633. + MTK_EINT_FUNCTION(0, 166),
  1634. + MTK_FUNCTION(0, "GPIO18"),
  1635. + MTK_FUNCTION(1, "PCM_CLK0"),
  1636. + MTK_FUNCTION(2, "MRG_CLK"),
  1637. + MTK_FUNCTION(4, "MM_TEST_CK"),
  1638. + MTK_FUNCTION(5, "CONN_DSP_JCK"),
  1639. + MTK_FUNCTION(6, "WCN_PCM_CLKO"),
  1640. + MTK_FUNCTION(7, "DBG_MON_A[3]")
  1641. + ),
  1642. + MTK_PIN(
  1643. + PINCTRL_PIN(19, "PCM_SYNC"),
  1644. + NULL, "mt2701",
  1645. + MTK_EINT_FUNCTION(0, 167),
  1646. + MTK_FUNCTION(0, "GPIO19"),
  1647. + MTK_FUNCTION(1, "PCM_SYNC"),
  1648. + MTK_FUNCTION(2, "MRG_SYNC"),
  1649. + MTK_FUNCTION(5, "CONN_DSP_JINTP"),
  1650. + MTK_FUNCTION(6, "WCN_PCM_SYNC"),
  1651. + MTK_FUNCTION(7, "DBG_MON_A[5]")
  1652. + ),
  1653. + MTK_PIN(
  1654. + PINCTRL_PIN(20, "PCM_RX"),
  1655. + NULL, "mt2701",
  1656. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1657. + MTK_FUNCTION(0, "GPIO20"),
  1658. + MTK_FUNCTION(1, "PCM_RX"),
  1659. + MTK_FUNCTION(2, "MRG_RX"),
  1660. + MTK_FUNCTION(3, "MRG_TX"),
  1661. + MTK_FUNCTION(4, "PCM_TX"),
  1662. + MTK_FUNCTION(5, "CONN_DSP_JDI"),
  1663. + MTK_FUNCTION(6, "WCN_PCM_RX"),
  1664. + MTK_FUNCTION(7, "DBG_MON_A[4]")
  1665. + ),
  1666. + MTK_PIN(
  1667. + PINCTRL_PIN(21, "PCM_TX"),
  1668. + NULL, "mt2701",
  1669. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1670. + MTK_FUNCTION(0, "GPIO21"),
  1671. + MTK_FUNCTION(1, "PCM_TX"),
  1672. + MTK_FUNCTION(2, "MRG_TX"),
  1673. + MTK_FUNCTION(3, "MRG_RX"),
  1674. + MTK_FUNCTION(4, "PCM_RX"),
  1675. + MTK_FUNCTION(5, "CONN_DSP_JMS"),
  1676. + MTK_FUNCTION(6, "WCN_PCM_TX"),
  1677. + MTK_FUNCTION(7, "DBG_MON_A[2]")
  1678. + ),
  1679. + MTK_PIN(
  1680. + PINCTRL_PIN(22, "EINT0"),
  1681. + NULL, "mt2701",
  1682. + MTK_EINT_FUNCTION(0, 0),
  1683. + MTK_FUNCTION(0, "GPIO22"),
  1684. + MTK_FUNCTION(1, "UCTS0"),
  1685. + MTK_FUNCTION(3, "KCOL3"),
  1686. + MTK_FUNCTION(4, "CONN_DSP_JDO"),
  1687. + MTK_FUNCTION(5, "EXT_FRAME_SYNC"),
  1688. + MTK_FUNCTION(7, "DBG_MON_A[30]"),
  1689. + MTK_FUNCTION(10, "PCIE0_PERST_N")
  1690. + ),
  1691. + MTK_PIN(
  1692. + PINCTRL_PIN(23, "EINT1"),
  1693. + NULL, "mt2701",
  1694. + MTK_EINT_FUNCTION(0, 1),
  1695. + MTK_FUNCTION(0, "GPIO23"),
  1696. + MTK_FUNCTION(1, "URTS0"),
  1697. + MTK_FUNCTION(3, "KCOL2"),
  1698. + MTK_FUNCTION(4, "CONN_MCU_TDO"),
  1699. + MTK_FUNCTION(5, "EXT_FRAME_SYNC"),
  1700. + MTK_FUNCTION(7, "DBG_MON_A[29]"),
  1701. + MTK_FUNCTION(10, "PCIE1_PERST_N")
  1702. + ),
  1703. + MTK_PIN(
  1704. + PINCTRL_PIN(24, "EINT2"),
  1705. + NULL, "mt2701",
  1706. + MTK_EINT_FUNCTION(0, 2),
  1707. + MTK_FUNCTION(0, "GPIO24"),
  1708. + MTK_FUNCTION(1, "UCTS1"),
  1709. + MTK_FUNCTION(3, "KCOL1"),
  1710. + MTK_FUNCTION(4, "CONN_MCU_DBGACK_N"),
  1711. + MTK_FUNCTION(7, "DBG_MON_A[28]"),
  1712. + MTK_FUNCTION(10, "PCIE2_PERST_N")
  1713. + ),
  1714. + MTK_PIN(
  1715. + PINCTRL_PIN(25, "EINT3"),
  1716. + NULL, "mt2701",
  1717. + MTK_EINT_FUNCTION(0, 3),
  1718. + MTK_FUNCTION(0, "GPIO25"),
  1719. + MTK_FUNCTION(1, "URTS1"),
  1720. + MTK_FUNCTION(3, "KCOL0"),
  1721. + MTK_FUNCTION(4, "CONN_MCU_DBGI_N"),
  1722. + MTK_FUNCTION(7, "DBG_MON_A[27]")
  1723. + ),
  1724. + MTK_PIN(
  1725. + PINCTRL_PIN(26, "EINT4"),
  1726. + NULL, "mt2701",
  1727. + MTK_EINT_FUNCTION(0, 4),
  1728. + MTK_FUNCTION(0, "GPIO26"),
  1729. + MTK_FUNCTION(1, "UCTS3"),
  1730. + MTK_FUNCTION(2, "DRV_VBUS_P1"),
  1731. + MTK_FUNCTION(3, "KROW3"),
  1732. + MTK_FUNCTION(4, "CONN_MCU_TCK0"),
  1733. + MTK_FUNCTION(5, "CONN_MCU_AICE_JCKC"),
  1734. + MTK_FUNCTION(6, "PCIE2_WAKE_N"),
  1735. + MTK_FUNCTION(7, "DBG_MON_A[26]")
  1736. + ),
  1737. + MTK_PIN(
  1738. + PINCTRL_PIN(27, "EINT5"),
  1739. + NULL, "mt2701",
  1740. + MTK_EINT_FUNCTION(0, 5),
  1741. + MTK_FUNCTION(0, "GPIO27"),
  1742. + MTK_FUNCTION(1, "URTS3"),
  1743. + MTK_FUNCTION(2, "IDDIG_P1"),
  1744. + MTK_FUNCTION(3, "KROW2"),
  1745. + MTK_FUNCTION(4, "CONN_MCU_TDI"),
  1746. + MTK_FUNCTION(6, "PCIE1_WAKE_N"),
  1747. + MTK_FUNCTION(7, "DBG_MON_A[25]")
  1748. + ),
  1749. + MTK_PIN(
  1750. + PINCTRL_PIN(28, "EINT6"),
  1751. + NULL, "mt2701",
  1752. + MTK_EINT_FUNCTION(0, 6),
  1753. + MTK_FUNCTION(0, "GPIO28"),
  1754. + MTK_FUNCTION(1, "DRV_VBUS"),
  1755. + MTK_FUNCTION(3, "KROW1"),
  1756. + MTK_FUNCTION(4, "CONN_MCU_TRST_B"),
  1757. + MTK_FUNCTION(6, "PCIE0_WAKE_N"),
  1758. + MTK_FUNCTION(7, "DBG_MON_A[24]")
  1759. + ),
  1760. + MTK_PIN(
  1761. + PINCTRL_PIN(29, "EINT7"),
  1762. + NULL, "mt2701",
  1763. + MTK_EINT_FUNCTION(0, 7),
  1764. + MTK_FUNCTION(0, "GPIO29"),
  1765. + MTK_FUNCTION(1, "IDDIG"),
  1766. + MTK_FUNCTION(2, "MSDC1_WP"),
  1767. + MTK_FUNCTION(3, "KROW0"),
  1768. + MTK_FUNCTION(4, "CONN_MCU_TMS"),
  1769. + MTK_FUNCTION(5, "CONN_MCU_AICE_JMSC"),
  1770. + MTK_FUNCTION(7, "DBG_MON_A[23]"),
  1771. + MTK_FUNCTION(14, "PCIE2_PERST_N")
  1772. + ),
  1773. + MTK_PIN(
  1774. + PINCTRL_PIN(30, "I2S5_LRCK"),
  1775. + NULL, "mt2701",
  1776. + MTK_EINT_FUNCTION(0, 12),
  1777. + MTK_FUNCTION(0, "GPIO30"),
  1778. + MTK_FUNCTION(1, "I2S5_LRCK"),
  1779. + MTK_FUNCTION(3, "PCM_SYNC"),
  1780. + MTK_FUNCTION(4, "ANT_SEL1")
  1781. + ),
  1782. + MTK_PIN(
  1783. + PINCTRL_PIN(31, "I2S5_MCLK"),
  1784. + NULL, "mt2701",
  1785. + MTK_EINT_FUNCTION(0, 13),
  1786. + MTK_FUNCTION(0, "GPIO31"),
  1787. + MTK_FUNCTION(1, "I2S5_MCLK"),
  1788. + MTK_FUNCTION(4, "ANT_SEL0")
  1789. + ),
  1790. + MTK_PIN(
  1791. + PINCTRL_PIN(32, "I2S5_DATA"),
  1792. + NULL, "mt2701",
  1793. + MTK_EINT_FUNCTION(0, 14),
  1794. + MTK_FUNCTION(0, "GPIO32"),
  1795. + MTK_FUNCTION(1, "I2S5_DATA"),
  1796. + MTK_FUNCTION(2, "I2S5_DATA_BYPS"),
  1797. + MTK_FUNCTION(3, "PCM_TX"),
  1798. + MTK_FUNCTION(4, "ANT_SEL3")
  1799. + ),
  1800. + MTK_PIN(
  1801. + PINCTRL_PIN(33, "I2S1_DATA"),
  1802. + NULL, "mt2701",
  1803. + MTK_EINT_FUNCTION(0, 15),
  1804. + MTK_FUNCTION(0, "GPIO33"),
  1805. + MTK_FUNCTION(1, "I2S1_DATA"),
  1806. + MTK_FUNCTION(2, "I2S1_DATA_BYPS"),
  1807. + MTK_FUNCTION(3, "PCM_TX"),
  1808. + MTK_FUNCTION(4, "IMG_TEST_CK"),
  1809. + MTK_FUNCTION(5, "G1_RXD0"),
  1810. + MTK_FUNCTION(6, "WCN_PCM_TX"),
  1811. + MTK_FUNCTION(7, "DBG_MON_B[8]")
  1812. + ),
  1813. + MTK_PIN(
  1814. + PINCTRL_PIN(34, "I2S1_DATA_IN"),
  1815. + NULL, "mt2701",
  1816. + MTK_EINT_FUNCTION(0, 16),
  1817. + MTK_FUNCTION(0, "GPIO34"),
  1818. + MTK_FUNCTION(1, "I2S1_DATA_IN"),
  1819. + MTK_FUNCTION(3, "PCM_RX"),
  1820. + MTK_FUNCTION(4, "VDEC_TEST_CK"),
  1821. + MTK_FUNCTION(5, "G1_RXD1"),
  1822. + MTK_FUNCTION(6, "WCN_PCM_RX"),
  1823. + MTK_FUNCTION(7, "DBG_MON_B[7]")
  1824. + ),
  1825. + MTK_PIN(
  1826. + PINCTRL_PIN(35, "I2S1_BCK"),
  1827. + NULL, "mt2701",
  1828. + MTK_EINT_FUNCTION(0, 17),
  1829. + MTK_FUNCTION(0, "GPIO35"),
  1830. + MTK_FUNCTION(1, "I2S1_BCK"),
  1831. + MTK_FUNCTION(3, "PCM_CLK0"),
  1832. + MTK_FUNCTION(5, "G1_RXD2"),
  1833. + MTK_FUNCTION(6, "WCN_PCM_CLKO"),
  1834. + MTK_FUNCTION(7, "DBG_MON_B[9]")
  1835. + ),
  1836. + MTK_PIN(
  1837. + PINCTRL_PIN(36, "I2S1_LRCK"),
  1838. + NULL, "mt2701",
  1839. + MTK_EINT_FUNCTION(0, 18),
  1840. + MTK_FUNCTION(0, "GPIO36"),
  1841. + MTK_FUNCTION(1, "I2S1_LRCK"),
  1842. + MTK_FUNCTION(3, "PCM_SYNC"),
  1843. + MTK_FUNCTION(5, "G1_RXD3"),
  1844. + MTK_FUNCTION(6, "WCN_PCM_SYNC"),
  1845. + MTK_FUNCTION(7, "DBG_MON_B[10]")
  1846. + ),
  1847. + MTK_PIN(
  1848. + PINCTRL_PIN(37, "I2S1_MCLK"),
  1849. + NULL, "mt2701",
  1850. + MTK_EINT_FUNCTION(0, 19),
  1851. + MTK_FUNCTION(0, "GPIO37"),
  1852. + MTK_FUNCTION(1, "I2S1_MCLK"),
  1853. + MTK_FUNCTION(5, "G1_RXDV"),
  1854. + MTK_FUNCTION(7, "DBG_MON_B[11]")
  1855. + ),
  1856. + MTK_PIN(
  1857. + PINCTRL_PIN(38, "I2S2_DATA"),
  1858. + NULL, "mt2701",
  1859. + MTK_EINT_FUNCTION(0, 20),
  1860. + MTK_FUNCTION(0, "GPIO38"),
  1861. + MTK_FUNCTION(2, "I2S2_DATA_BYPS"),
  1862. + MTK_FUNCTION(3, "PCM_TX"),
  1863. + MTK_FUNCTION(4, "DMIC_DAT0")
  1864. + ),
  1865. + MTK_PIN(
  1866. + PINCTRL_PIN(39, "JTMS"),
  1867. + NULL, "mt2701",
  1868. + MTK_EINT_FUNCTION(0, 21),
  1869. + MTK_FUNCTION(0, "GPIO39"),
  1870. + MTK_FUNCTION(1, "JTMS"),
  1871. + MTK_FUNCTION(2, "CONN_MCU_TMS"),
  1872. + MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC"),
  1873. + MTK_FUNCTION(4, "DFD_TMS_XI")
  1874. + ),
  1875. + MTK_PIN(
  1876. + PINCTRL_PIN(40, "JTCK"),
  1877. + NULL, "mt2701",
  1878. + MTK_EINT_FUNCTION(0, 22),
  1879. + MTK_FUNCTION(0, "GPIO40"),
  1880. + MTK_FUNCTION(1, "JTCK"),
  1881. + MTK_FUNCTION(2, "CONN_MCU_TCK1"),
  1882. + MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC"),
  1883. + MTK_FUNCTION(4, "DFD_TCK_XI")
  1884. + ),
  1885. + MTK_PIN(
  1886. + PINCTRL_PIN(41, "JTDI"),
  1887. + NULL, "mt2701",
  1888. + MTK_EINT_FUNCTION(0, 23),
  1889. + MTK_FUNCTION(0, "GPIO41"),
  1890. + MTK_FUNCTION(1, "JTDI"),
  1891. + MTK_FUNCTION(2, "CONN_MCU_TDI"),
  1892. + MTK_FUNCTION(4, "DFD_TDI_XI")
  1893. + ),
  1894. + MTK_PIN(
  1895. + PINCTRL_PIN(42, "JTDO"),
  1896. + NULL, "mt2701",
  1897. + MTK_EINT_FUNCTION(0, 24),
  1898. + MTK_FUNCTION(0, "GPIO42"),
  1899. + MTK_FUNCTION(1, "JTDO"),
  1900. + MTK_FUNCTION(2, "CONN_MCU_TDO"),
  1901. + MTK_FUNCTION(4, "DFD_TDO")
  1902. + ),
  1903. + MTK_PIN(
  1904. + PINCTRL_PIN(43, "NCLE"),
  1905. + NULL, "mt2701",
  1906. + MTK_EINT_FUNCTION(0, 25),
  1907. + MTK_FUNCTION(0, "GPIO43"),
  1908. + MTK_FUNCTION(1, "NCLE"),
  1909. + MTK_FUNCTION(2, "EXT_XCS2")
  1910. + ),
  1911. + MTK_PIN(
  1912. + PINCTRL_PIN(44, "NCEB1"),
  1913. + NULL, "mt2701",
  1914. + MTK_EINT_FUNCTION(0, 26),
  1915. + MTK_FUNCTION(0, "GPIO44"),
  1916. + MTK_FUNCTION(1, "NCEB1"),
  1917. + MTK_FUNCTION(2, "IDDIG")
  1918. + ),
  1919. + MTK_PIN(
  1920. + PINCTRL_PIN(45, "NCEB0"),
  1921. + NULL, "mt2701",
  1922. + MTK_EINT_FUNCTION(0, 27),
  1923. + MTK_FUNCTION(0, "GPIO45"),
  1924. + MTK_FUNCTION(1, "NCEB0"),
  1925. + MTK_FUNCTION(2, "DRV_VBUS")
  1926. + ),
  1927. + MTK_PIN(
  1928. + PINCTRL_PIN(46, "IR"),
  1929. + NULL, "mt2701",
  1930. + MTK_EINT_FUNCTION(0, 28),
  1931. + MTK_FUNCTION(0, "GPIO46"),
  1932. + MTK_FUNCTION(1, "IR")
  1933. + ),
  1934. + MTK_PIN(
  1935. + PINCTRL_PIN(47, "NREB"),
  1936. + NULL, "mt2701",
  1937. + MTK_EINT_FUNCTION(0, 29),
  1938. + MTK_FUNCTION(0, "GPIO47"),
  1939. + MTK_FUNCTION(1, "NREB"),
  1940. + MTK_FUNCTION(2, "IDDIG_P1")
  1941. + ),
  1942. + MTK_PIN(
  1943. + PINCTRL_PIN(48, "NRNB"),
  1944. + NULL, "mt2701",
  1945. + MTK_EINT_FUNCTION(0, 30),
  1946. + MTK_FUNCTION(0, "GPIO48"),
  1947. + MTK_FUNCTION(1, "NRNB"),
  1948. + MTK_FUNCTION(2, "DRV_VBUS_P1")
  1949. + ),
  1950. + MTK_PIN(
  1951. + PINCTRL_PIN(49, "I2S0_DATA"),
  1952. + NULL, "mt2701",
  1953. + MTK_EINT_FUNCTION(0, 31),
  1954. + MTK_FUNCTION(0, "GPIO49"),
  1955. + MTK_FUNCTION(1, "I2S0_DATA"),
  1956. + MTK_FUNCTION(2, "I2S0_DATA_BYPS"),
  1957. + MTK_FUNCTION(3, "PCM_TX"),
  1958. + MTK_FUNCTION(6, "WCN_I2S_DO"),
  1959. + MTK_FUNCTION(7, "DBG_MON_B[3]")
  1960. + ),
  1961. + MTK_PIN(
  1962. + PINCTRL_PIN(50, "I2S2_BCK"),
  1963. + NULL, "mt2701",
  1964. + MTK_EINT_FUNCTION(0, 32),
  1965. + MTK_FUNCTION(0, "GPIO50"),
  1966. + MTK_FUNCTION(1, "I2S2_BCK"),
  1967. + MTK_FUNCTION(3, "PCM_CLK0"),
  1968. + MTK_FUNCTION(4, "DMIC_SCK1")
  1969. + ),
  1970. + MTK_PIN(
  1971. + PINCTRL_PIN(51, "I2S2_DATA_IN"),
  1972. + NULL, "mt2701",
  1973. + MTK_EINT_FUNCTION(0, 33),
  1974. + MTK_FUNCTION(0, "GPIO51"),
  1975. + MTK_FUNCTION(1, "I2S2_DATA_IN"),
  1976. + MTK_FUNCTION(3, "PCM_RX"),
  1977. + MTK_FUNCTION(4, "DMIC_SCK0")
  1978. + ),
  1979. + MTK_PIN(
  1980. + PINCTRL_PIN(52, "I2S2_LRCK"),
  1981. + NULL, "mt2701",
  1982. + MTK_EINT_FUNCTION(0, 34),
  1983. + MTK_FUNCTION(0, "GPIO52"),
  1984. + MTK_FUNCTION(1, "I2S2_LRCK"),
  1985. + MTK_FUNCTION(3, "PCM_SYNC"),
  1986. + MTK_FUNCTION(4, "DMIC_DAT1")
  1987. + ),
  1988. + MTK_PIN(
  1989. + PINCTRL_PIN(53, "SPI0_CSN"),
  1990. + NULL, "mt2701",
  1991. + MTK_EINT_FUNCTION(0, 35),
  1992. + MTK_FUNCTION(0, "GPIO53"),
  1993. + MTK_FUNCTION(1, "SPI0_CS"),
  1994. + MTK_FUNCTION(3, "SPDIF"),
  1995. + MTK_FUNCTION(4, "ADC_CK"),
  1996. + MTK_FUNCTION(5, "PWM1"),
  1997. + MTK_FUNCTION(7, "DBG_MON_A[7]")
  1998. + ),
  1999. + MTK_PIN(
  2000. + PINCTRL_PIN(54, "SPI0_CK"),
  2001. + NULL, "mt2701",
  2002. + MTK_EINT_FUNCTION(0, 36),
  2003. + MTK_FUNCTION(0, "GPIO54"),
  2004. + MTK_FUNCTION(1, "SPI0_CK"),
  2005. + MTK_FUNCTION(3, "SPDIF_IN1"),
  2006. + MTK_FUNCTION(4, "ADC_DAT_IN"),
  2007. + MTK_FUNCTION(7, "DBG_MON_A[10]")
  2008. + ),
  2009. + MTK_PIN(
  2010. + PINCTRL_PIN(55, "SPI0_MI"),
  2011. + NULL, "mt2701",
  2012. + MTK_EINT_FUNCTION(0, 37),
  2013. + MTK_FUNCTION(0, "GPIO55"),
  2014. + MTK_FUNCTION(1, "SPI0_MI"),
  2015. + MTK_FUNCTION(2, "SPI0_MO"),
  2016. + MTK_FUNCTION(3, "MSDC1_WP"),
  2017. + MTK_FUNCTION(4, "ADC_WS"),
  2018. + MTK_FUNCTION(5, "PWM2"),
  2019. + MTK_FUNCTION(7, "DBG_MON_A[8]")
  2020. + ),
  2021. + MTK_PIN(
  2022. + PINCTRL_PIN(56, "SPI0_MO"),
  2023. + NULL, "mt2701",
  2024. + MTK_EINT_FUNCTION(0, 38),
  2025. + MTK_FUNCTION(0, "GPIO56"),
  2026. + MTK_FUNCTION(1, "SPI0_MO"),
  2027. + MTK_FUNCTION(2, "SPI0_MI"),
  2028. + MTK_FUNCTION(3, "SPDIF_IN0"),
  2029. + MTK_FUNCTION(7, "DBG_MON_A[9]")
  2030. + ),
  2031. + MTK_PIN(
  2032. + PINCTRL_PIN(57, "SDA1"),
  2033. + NULL, "mt2701",
  2034. + MTK_EINT_FUNCTION(0, 39),
  2035. + MTK_FUNCTION(0, "GPIO57"),
  2036. + MTK_FUNCTION(1, "SDA1")
  2037. + ),
  2038. + MTK_PIN(
  2039. + PINCTRL_PIN(58, "SCL1"),
  2040. + NULL, "mt2701",
  2041. + MTK_EINT_FUNCTION(0, 40),
  2042. + MTK_FUNCTION(0, "GPIO58"),
  2043. + MTK_FUNCTION(1, "SCL1")
  2044. + ),
  2045. + MTK_PIN(
  2046. + PINCTRL_PIN(59, "RAMBUF_I_CLK"),
  2047. + NULL, "mt2701",
  2048. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2049. + MTK_FUNCTION(0, "GPIO59"),
  2050. + MTK_FUNCTION(1, "RAMBUF_I_CLK")
  2051. + ),
  2052. + MTK_PIN(
  2053. + PINCTRL_PIN(60, "WB_RSTB"),
  2054. + NULL, "mt2701",
  2055. + MTK_EINT_FUNCTION(0, 41),
  2056. + MTK_FUNCTION(0, "GPIO60"),
  2057. + MTK_FUNCTION(1, "WB_RSTB"),
  2058. + MTK_FUNCTION(7, "DBG_MON_A[11]")
  2059. + ),
  2060. + MTK_PIN(
  2061. + PINCTRL_PIN(61, "F2W_DATA"),
  2062. + NULL, "mt2701",
  2063. + MTK_EINT_FUNCTION(0, 42),
  2064. + MTK_FUNCTION(0, "GPIO61"),
  2065. + MTK_FUNCTION(1, "F2W_DATA"),
  2066. + MTK_FUNCTION(7, "DBG_MON_A[16]")
  2067. + ),
  2068. + MTK_PIN(
  2069. + PINCTRL_PIN(62, "F2W_CLK"),
  2070. + NULL, "mt2701",
  2071. + MTK_EINT_FUNCTION(0, 43),
  2072. + MTK_FUNCTION(0, "GPIO62"),
  2073. + MTK_FUNCTION(1, "F2W_CK"),
  2074. + MTK_FUNCTION(7, "DBG_MON_A[15]")
  2075. + ),
  2076. + MTK_PIN(
  2077. + PINCTRL_PIN(63, "WB_SCLK"),
  2078. + NULL, "mt2701",
  2079. + MTK_EINT_FUNCTION(0, 44),
  2080. + MTK_FUNCTION(0, "GPIO63"),
  2081. + MTK_FUNCTION(1, "WB_SCLK"),
  2082. + MTK_FUNCTION(7, "DBG_MON_A[13]")
  2083. + ),
  2084. + MTK_PIN(
  2085. + PINCTRL_PIN(64, "WB_SDATA"),
  2086. + NULL, "mt2701",
  2087. + MTK_EINT_FUNCTION(0, 45),
  2088. + MTK_FUNCTION(0, "GPIO64"),
  2089. + MTK_FUNCTION(1, "WB_SDATA"),
  2090. + MTK_FUNCTION(7, "DBG_MON_A[12]")
  2091. + ),
  2092. + MTK_PIN(
  2093. + PINCTRL_PIN(65, "WB_SEN"),
  2094. + NULL, "mt2701",
  2095. + MTK_EINT_FUNCTION(0, 46),
  2096. + MTK_FUNCTION(0, "GPIO65"),
  2097. + MTK_FUNCTION(1, "WB_SEN"),
  2098. + MTK_FUNCTION(7, "DBG_MON_A[14]")
  2099. + ),
  2100. + MTK_PIN(
  2101. + PINCTRL_PIN(66, "WB_CRTL0"),
  2102. + NULL, "mt2701",
  2103. + MTK_EINT_FUNCTION(0, 47),
  2104. + MTK_FUNCTION(0, "GPIO66"),
  2105. + MTK_FUNCTION(1, "WB_CRTL0"),
  2106. + MTK_FUNCTION(5, "DFD_NTRST_XI"),
  2107. + MTK_FUNCTION(7, "DBG_MON_A[17]")
  2108. + ),
  2109. + MTK_PIN(
  2110. + PINCTRL_PIN(67, "WB_CRTL1"),
  2111. + NULL, "mt2701",
  2112. + MTK_EINT_FUNCTION(0, 48),
  2113. + MTK_FUNCTION(0, "GPIO67"),
  2114. + MTK_FUNCTION(1, "WB_CRTL1"),
  2115. + MTK_FUNCTION(5, "DFD_TMS_XI"),
  2116. + MTK_FUNCTION(7, "DBG_MON_A[18]")
  2117. + ),
  2118. + MTK_PIN(
  2119. + PINCTRL_PIN(68, "WB_CRTL2"),
  2120. + NULL, "mt2701",
  2121. + MTK_EINT_FUNCTION(0, 49),
  2122. + MTK_FUNCTION(0, "GPIO68"),
  2123. + MTK_FUNCTION(1, "WB_CRTL2"),
  2124. + MTK_FUNCTION(5, "DFD_TCK_XI"),
  2125. + MTK_FUNCTION(7, "DBG_MON_A[19]")
  2126. + ),
  2127. + MTK_PIN(
  2128. + PINCTRL_PIN(69, "WB_CRTL3"),
  2129. + NULL, "mt2701",
  2130. + MTK_EINT_FUNCTION(0, 50),
  2131. + MTK_FUNCTION(0, "GPIO69"),
  2132. + MTK_FUNCTION(1, "WB_CRTL3"),
  2133. + MTK_FUNCTION(5, "DFD_TDI_XI"),
  2134. + MTK_FUNCTION(7, "DBG_MON_A[20]")
  2135. + ),
  2136. + MTK_PIN(
  2137. + PINCTRL_PIN(70, "WB_CRTL4"),
  2138. + NULL, "mt2701",
  2139. + MTK_EINT_FUNCTION(0, 51),
  2140. + MTK_FUNCTION(0, "GPIO70"),
  2141. + MTK_FUNCTION(1, "WB_CRTL4"),
  2142. + MTK_FUNCTION(5, "DFD_TDO"),
  2143. + MTK_FUNCTION(7, "DBG_MON_A[21]")
  2144. + ),
  2145. + MTK_PIN(
  2146. + PINCTRL_PIN(71, "WB_CRTL5"),
  2147. + NULL, "mt2701",
  2148. + MTK_EINT_FUNCTION(0, 52),
  2149. + MTK_FUNCTION(0, "GPIO71"),
  2150. + MTK_FUNCTION(1, "WB_CRTL5"),
  2151. + MTK_FUNCTION(7, "DBG_MON_A[22]")
  2152. + ),
  2153. + MTK_PIN(
  2154. + PINCTRL_PIN(72, "I2S0_DATA_IN"),
  2155. + NULL, "mt2701",
  2156. + MTK_EINT_FUNCTION(0, 53),
  2157. + MTK_FUNCTION(0, "GPIO72"),
  2158. + MTK_FUNCTION(1, "I2S0_DATA_IN"),
  2159. + MTK_FUNCTION(3, "PCM_RX"),
  2160. + MTK_FUNCTION(4, "PWM0"),
  2161. + MTK_FUNCTION(5, "DISP_PWM"),
  2162. + MTK_FUNCTION(6, "WCN_I2S_DI"),
  2163. + MTK_FUNCTION(7, "DBG_MON_B[2]")
  2164. + ),
  2165. + MTK_PIN(
  2166. + PINCTRL_PIN(73, "I2S0_LRCK"),
  2167. + NULL, "mt2701",
  2168. + MTK_EINT_FUNCTION(0, 54),
  2169. + MTK_FUNCTION(0, "GPIO73"),
  2170. + MTK_FUNCTION(1, "I2S0_LRCK"),
  2171. + MTK_FUNCTION(3, "PCM_SYNC"),
  2172. + MTK_FUNCTION(6, "WCN_I2S_LRCK"),
  2173. + MTK_FUNCTION(7, "DBG_MON_B[5]")
  2174. + ),
  2175. + MTK_PIN(
  2176. + PINCTRL_PIN(74, "I2S0_BCK"),
  2177. + NULL, "mt2701",
  2178. + MTK_EINT_FUNCTION(0, 55),
  2179. + MTK_FUNCTION(0, "GPIO74"),
  2180. + MTK_FUNCTION(1, "I2S0_BCK"),
  2181. + MTK_FUNCTION(3, "PCM_CLK0"),
  2182. + MTK_FUNCTION(6, "WCN_I2S_BCK"),
  2183. + MTK_FUNCTION(7, "DBG_MON_B[4]")
  2184. + ),
  2185. + MTK_PIN(
  2186. + PINCTRL_PIN(75, "SDA0"),
  2187. + NULL, "mt2701",
  2188. + MTK_EINT_FUNCTION(0, 56),
  2189. + MTK_FUNCTION(0, "GPIO75"),
  2190. + MTK_FUNCTION(1, "SDA0")
  2191. + ),
  2192. + MTK_PIN(
  2193. + PINCTRL_PIN(76, "SCL0"),
  2194. + NULL, "mt2701",
  2195. + MTK_EINT_FUNCTION(0, 57),
  2196. + MTK_FUNCTION(0, "GPIO76"),
  2197. + MTK_FUNCTION(1, "SCL0")
  2198. + ),
  2199. + MTK_PIN(
  2200. + PINCTRL_PIN(77, "SDA2"),
  2201. + NULL, "mt2701",
  2202. + MTK_EINT_FUNCTION(0, 58),
  2203. + MTK_FUNCTION(0, "GPIO77"),
  2204. + MTK_FUNCTION(1, "SDA2")
  2205. + ),
  2206. + MTK_PIN(
  2207. + PINCTRL_PIN(78, "SCL2"),
  2208. + NULL, "mt2701",
  2209. + MTK_EINT_FUNCTION(0, 59),
  2210. + MTK_FUNCTION(0, "GPIO78"),
  2211. + MTK_FUNCTION(1, "SCL2")
  2212. + ),
  2213. + MTK_PIN(
  2214. + PINCTRL_PIN(79, "URXD0"),
  2215. + NULL, "mt2701",
  2216. + MTK_EINT_FUNCTION(0, 60),
  2217. + MTK_FUNCTION(0, "GPIO79"),
  2218. + MTK_FUNCTION(1, "URXD0"),
  2219. + MTK_FUNCTION(2, "UTXD0")
  2220. + ),
  2221. + MTK_PIN(
  2222. + PINCTRL_PIN(80, "UTXD0"),
  2223. + NULL, "mt2701",
  2224. + MTK_EINT_FUNCTION(0, 61),
  2225. + MTK_FUNCTION(0, "GPIO80"),
  2226. + MTK_FUNCTION(1, "UTXD0"),
  2227. + MTK_FUNCTION(2, "URXD0")
  2228. + ),
  2229. + MTK_PIN(
  2230. + PINCTRL_PIN(81, "URXD1"),
  2231. + NULL, "mt2701",
  2232. + MTK_EINT_FUNCTION(0, 62),
  2233. + MTK_FUNCTION(0, "GPIO81"),
  2234. + MTK_FUNCTION(1, "URXD1"),
  2235. + MTK_FUNCTION(2, "UTXD1")
  2236. + ),
  2237. + MTK_PIN(
  2238. + PINCTRL_PIN(82, "UTXD1"),
  2239. + NULL, "mt2701",
  2240. + MTK_EINT_FUNCTION(0, 63),
  2241. + MTK_FUNCTION(0, "GPIO82"),
  2242. + MTK_FUNCTION(1, "UTXD1"),
  2243. + MTK_FUNCTION(2, "URXD1")
  2244. + ),
  2245. + MTK_PIN(
  2246. + PINCTRL_PIN(83, "LCM_RST"),
  2247. + NULL, "mt2701",
  2248. + MTK_EINT_FUNCTION(0, 64),
  2249. + MTK_FUNCTION(0, "GPIO83"),
  2250. + MTK_FUNCTION(1, "LCM_RST"),
  2251. + MTK_FUNCTION(2, "VDAC_CK_XI"),
  2252. + MTK_FUNCTION(7, "DBG_MON_B[1]")
  2253. + ),
  2254. + MTK_PIN(
  2255. + PINCTRL_PIN(84, "DSI_TE"),
  2256. + NULL, "mt2701",
  2257. + MTK_EINT_FUNCTION(0, 65),
  2258. + MTK_FUNCTION(0, "GPIO84"),
  2259. + MTK_FUNCTION(1, "DSI_TE"),
  2260. + MTK_FUNCTION(7, "DBG_MON_B[0]")
  2261. + ),
  2262. + MTK_PIN(
  2263. + PINCTRL_PIN(85, "MSDC2_CMD"),
  2264. + NULL, "mt2701",
  2265. + MTK_EINT_FUNCTION(0, 66),
  2266. + MTK_FUNCTION(0, "GPIO85"),
  2267. + MTK_FUNCTION(1, "MSDC2_CMD"),
  2268. + MTK_FUNCTION(2, "ANT_SEL0"),
  2269. + MTK_FUNCTION(3, "SDA1"),
  2270. + MTK_FUNCTION(6, "I2SOUT_BCK")
  2271. + ),
  2272. + MTK_PIN(
  2273. + PINCTRL_PIN(86, "MSDC2_CLK"),
  2274. + NULL, "mt2701",
  2275. + MTK_EINT_FUNCTION(0, 67),
  2276. + MTK_FUNCTION(0, "GPIO86"),
  2277. + MTK_FUNCTION(1, "MSDC2_CLK"),
  2278. + MTK_FUNCTION(2, "ANT_SEL1"),
  2279. + MTK_FUNCTION(3, "SCL1"),
  2280. + MTK_FUNCTION(6, "I2SOUT_LRCK")
  2281. + ),
  2282. + MTK_PIN(
  2283. + PINCTRL_PIN(87, "MSDC2_DAT0"),
  2284. + NULL, "mt2701",
  2285. + MTK_EINT_FUNCTION(0, 68),
  2286. + MTK_FUNCTION(0, "GPIO87"),
  2287. + MTK_FUNCTION(1, "MSDC2_DAT0"),
  2288. + MTK_FUNCTION(2, "ANT_SEL2"),
  2289. + MTK_FUNCTION(5, "UTXD0"),
  2290. + MTK_FUNCTION(6, "I2SOUT_DATA_OUT")
  2291. + ),
  2292. + MTK_PIN(
  2293. + PINCTRL_PIN(88, "MSDC2_DAT1"),
  2294. + NULL, "mt2701",
  2295. + MTK_EINT_FUNCTION(0, 71),
  2296. + MTK_FUNCTION(0, "GPIO88"),
  2297. + MTK_FUNCTION(1, "MSDC2_DAT1"),
  2298. + MTK_FUNCTION(2, "ANT_SEL3"),
  2299. + MTK_FUNCTION(3, "PWM0"),
  2300. + MTK_FUNCTION(5, "URXD0"),
  2301. + MTK_FUNCTION(6, "PWM1")
  2302. + ),
  2303. + MTK_PIN(
  2304. + PINCTRL_PIN(89, "MSDC2_DAT2"),
  2305. + NULL, "mt2701",
  2306. + MTK_EINT_FUNCTION(0, 72),
  2307. + MTK_FUNCTION(0, "GPIO89"),
  2308. + MTK_FUNCTION(1, "MSDC2_DAT2"),
  2309. + MTK_FUNCTION(2, "ANT_SEL4"),
  2310. + MTK_FUNCTION(3, "SDA2"),
  2311. + MTK_FUNCTION(5, "UTXD1"),
  2312. + MTK_FUNCTION(6, "PWM2")
  2313. + ),
  2314. + MTK_PIN(
  2315. + PINCTRL_PIN(90, "MSDC2_DAT3"),
  2316. + NULL, "mt2701",
  2317. + MTK_EINT_FUNCTION(0, 73),
  2318. + MTK_FUNCTION(0, "GPIO90"),
  2319. + MTK_FUNCTION(1, "MSDC2_DAT3"),
  2320. + MTK_FUNCTION(2, "ANT_SEL5"),
  2321. + MTK_FUNCTION(3, "SCL2"),
  2322. + MTK_FUNCTION(4, "EXT_FRAME_SYNC"),
  2323. + MTK_FUNCTION(5, "URXD1"),
  2324. + MTK_FUNCTION(6, "PWM3")
  2325. + ),
  2326. + MTK_PIN(
  2327. + PINCTRL_PIN(91, "TDN3"),
  2328. + NULL, "mt2701",
  2329. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2330. + MTK_FUNCTION(0, "GPI91"),
  2331. + MTK_FUNCTION(1, "TDN3")
  2332. + ),
  2333. + MTK_PIN(
  2334. + PINCTRL_PIN(92, "TDP3"),
  2335. + NULL, "mt2701",
  2336. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2337. + MTK_FUNCTION(0, "GPI92"),
  2338. + MTK_FUNCTION(1, "TDP3")
  2339. + ),
  2340. + MTK_PIN(
  2341. + PINCTRL_PIN(93, "TDN2"),
  2342. + NULL, "mt2701",
  2343. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2344. + MTK_FUNCTION(0, "GPI93"),
  2345. + MTK_FUNCTION(1, "TDN2")
  2346. + ),
  2347. + MTK_PIN(
  2348. + PINCTRL_PIN(94, "TDP2"),
  2349. + NULL, "mt2701",
  2350. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2351. + MTK_FUNCTION(0, "GPI94"),
  2352. + MTK_FUNCTION(1, "TDP2")
  2353. + ),
  2354. + MTK_PIN(
  2355. + PINCTRL_PIN(95, "TCN"),
  2356. + NULL, "mt2701",
  2357. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2358. + MTK_FUNCTION(0, "GPI95"),
  2359. + MTK_FUNCTION(1, "TCN")
  2360. + ),
  2361. + MTK_PIN(
  2362. + PINCTRL_PIN(96, "TCP"),
  2363. + NULL, "mt2701",
  2364. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2365. + MTK_FUNCTION(0, "GPI96"),
  2366. + MTK_FUNCTION(1, "TCP")
  2367. + ),
  2368. + MTK_PIN(
  2369. + PINCTRL_PIN(97, "TDN1"),
  2370. + NULL, "mt2701",
  2371. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2372. + MTK_FUNCTION(0, "GPI97"),
  2373. + MTK_FUNCTION(1, "TDN1")
  2374. + ),
  2375. + MTK_PIN(
  2376. + PINCTRL_PIN(98, "TDP1"),
  2377. + NULL, "mt2701",
  2378. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2379. + MTK_FUNCTION(0, "GPI98"),
  2380. + MTK_FUNCTION(1, "TDP1")
  2381. + ),
  2382. + MTK_PIN(
  2383. + PINCTRL_PIN(99, "TDN0"),
  2384. + NULL, "mt2701",
  2385. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2386. + MTK_FUNCTION(0, "GPI99"),
  2387. + MTK_FUNCTION(1, "TDN0")
  2388. + ),
  2389. + MTK_PIN(
  2390. + PINCTRL_PIN(100, "TDP0"),
  2391. + NULL, "mt2701",
  2392. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2393. + MTK_FUNCTION(0, "GPI100"),
  2394. + MTK_FUNCTION(1, "TDP0")
  2395. + ),
  2396. + MTK_PIN(
  2397. + PINCTRL_PIN(101, "SPI2_CSN"),
  2398. + NULL, "mt2701",
  2399. + MTK_EINT_FUNCTION(0, 74),
  2400. + MTK_FUNCTION(0, "GPIO101"),
  2401. + MTK_FUNCTION(1, "SPI2_CS"),
  2402. + MTK_FUNCTION(3, "SCL3"),
  2403. + MTK_FUNCTION(4, "KROW0")
  2404. + ),
  2405. + MTK_PIN(
  2406. + PINCTRL_PIN(102, "SPI2_MI"),
  2407. + NULL, "mt2701",
  2408. + MTK_EINT_FUNCTION(0, 75),
  2409. + MTK_FUNCTION(0, "GPIO102"),
  2410. + MTK_FUNCTION(1, "SPI2_MI"),
  2411. + MTK_FUNCTION(2, "SPI2_MO"),
  2412. + MTK_FUNCTION(3, "SDA3"),
  2413. + MTK_FUNCTION(4, "KROW1")
  2414. + ),
  2415. + MTK_PIN(
  2416. + PINCTRL_PIN(103, "SPI2_MO"),
  2417. + NULL, "mt2701",
  2418. + MTK_EINT_FUNCTION(0, 76),
  2419. + MTK_FUNCTION(0, "GPIO103"),
  2420. + MTK_FUNCTION(1, "SPI2_MO"),
  2421. + MTK_FUNCTION(2, "SPI2_MI"),
  2422. + MTK_FUNCTION(3, "SCL3"),
  2423. + MTK_FUNCTION(4, "KROW2")
  2424. + ),
  2425. + MTK_PIN(
  2426. + PINCTRL_PIN(104, "SPI2_CLK"),
  2427. + NULL, "mt2701",
  2428. + MTK_EINT_FUNCTION(0, 77),
  2429. + MTK_FUNCTION(0, "GPIO104"),
  2430. + MTK_FUNCTION(1, "SPI2_CK"),
  2431. + MTK_FUNCTION(3, "SDA3"),
  2432. + MTK_FUNCTION(4, "KROW3")
  2433. + ),
  2434. + MTK_PIN(
  2435. + PINCTRL_PIN(105, "MSDC1_CMD"),
  2436. + NULL, "mt2701",
  2437. + MTK_EINT_FUNCTION(0, 78),
  2438. + MTK_FUNCTION(0, "GPIO105"),
  2439. + MTK_FUNCTION(1, "MSDC1_CMD"),
  2440. + MTK_FUNCTION(2, "ANT_SEL0"),
  2441. + MTK_FUNCTION(3, "SDA1"),
  2442. + MTK_FUNCTION(6, "I2SOUT_BCK"),
  2443. + MTK_FUNCTION(7, "DBG_MON_B[27]")
  2444. + ),
  2445. + MTK_PIN(
  2446. + PINCTRL_PIN(106, "MSDC1_CLK"),
  2447. + NULL, "mt2701",
  2448. + MTK_EINT_FUNCTION(0, 79),
  2449. + MTK_FUNCTION(0, "GPIO106"),
  2450. + MTK_FUNCTION(1, "MSDC1_CLK"),
  2451. + MTK_FUNCTION(2, "ANT_SEL1"),
  2452. + MTK_FUNCTION(3, "SCL1"),
  2453. + MTK_FUNCTION(6, "I2SOUT_LRCK"),
  2454. + MTK_FUNCTION(7, "DBG_MON_B[28]")
  2455. + ),
  2456. + MTK_PIN(
  2457. + PINCTRL_PIN(107, "MSDC1_DAT0"),
  2458. + NULL, "mt2701",
  2459. + MTK_EINT_FUNCTION(0, 80),
  2460. + MTK_FUNCTION(0, "GPIO107"),
  2461. + MTK_FUNCTION(1, "MSDC1_DAT0"),
  2462. + MTK_FUNCTION(2, "ANT_SEL2"),
  2463. + MTK_FUNCTION(5, "UTXD0"),
  2464. + MTK_FUNCTION(6, "I2SOUT_DATA_OUT"),
  2465. + MTK_FUNCTION(7, "DBG_MON_B[26]")
  2466. + ),
  2467. + MTK_PIN(
  2468. + PINCTRL_PIN(108, "MSDC1_DAT1"),
  2469. + NULL, "mt2701",
  2470. + MTK_EINT_FUNCTION(0, 81),
  2471. + MTK_FUNCTION(0, "GPIO108"),
  2472. + MTK_FUNCTION(1, "MSDC1_DAT1"),
  2473. + MTK_FUNCTION(2, "ANT_SEL3"),
  2474. + MTK_FUNCTION(3, "PWM0"),
  2475. + MTK_FUNCTION(5, "URXD0"),
  2476. + MTK_FUNCTION(6, "PWM1"),
  2477. + MTK_FUNCTION(7, "DBG_MON_B[25]")
  2478. + ),
  2479. + MTK_PIN(
  2480. + PINCTRL_PIN(109, "MSDC1_DAT2"),
  2481. + NULL, "mt2701",
  2482. + MTK_EINT_FUNCTION(0, 82),
  2483. + MTK_FUNCTION(0, "GPIO109"),
  2484. + MTK_FUNCTION(1, "MSDC1_DAT2"),
  2485. + MTK_FUNCTION(2, "ANT_SEL4"),
  2486. + MTK_FUNCTION(3, "SDA2"),
  2487. + MTK_FUNCTION(5, "UTXD1"),
  2488. + MTK_FUNCTION(6, "PWM2"),
  2489. + MTK_FUNCTION(7, "DBG_MON_B[24]")
  2490. + ),
  2491. + MTK_PIN(
  2492. + PINCTRL_PIN(110, "MSDC1_DAT3"),
  2493. + NULL, "mt2701",
  2494. + MTK_EINT_FUNCTION(0, 83),
  2495. + MTK_FUNCTION(0, "GPIO110"),
  2496. + MTK_FUNCTION(1, "MSDC1_DAT3"),
  2497. + MTK_FUNCTION(2, "ANT_SEL5"),
  2498. + MTK_FUNCTION(3, "SCL2"),
  2499. + MTK_FUNCTION(4, "EXT_FRAME_SYNC"),
  2500. + MTK_FUNCTION(5, "URXD1"),
  2501. + MTK_FUNCTION(6, "PWM3"),
  2502. + MTK_FUNCTION(7, "DBG_MON_B[23]")
  2503. + ),
  2504. + MTK_PIN(
  2505. + PINCTRL_PIN(111, "MSDC0_DAT7"),
  2506. + NULL, "mt2701",
  2507. + MTK_EINT_FUNCTION(0, 84),
  2508. + MTK_FUNCTION(0, "GPIO111"),
  2509. + MTK_FUNCTION(1, "MSDC0_DAT7"),
  2510. + MTK_FUNCTION(4, "NLD7")
  2511. + ),
  2512. + MTK_PIN(
  2513. + PINCTRL_PIN(112, "MSDC0_DAT6"),
  2514. + NULL, "mt2701",
  2515. + MTK_EINT_FUNCTION(0, 85),
  2516. + MTK_FUNCTION(0, "GPIO112"),
  2517. + MTK_FUNCTION(1, "MSDC0_DAT6"),
  2518. + MTK_FUNCTION(4, "NLD6")
  2519. + ),
  2520. + MTK_PIN(
  2521. + PINCTRL_PIN(113, "MSDC0_DAT5"),
  2522. + NULL, "mt2701",
  2523. + MTK_EINT_FUNCTION(0, 86),
  2524. + MTK_FUNCTION(0, "GPIO113"),
  2525. + MTK_FUNCTION(1, "MSDC0_DAT5"),
  2526. + MTK_FUNCTION(4, "NLD5")
  2527. + ),
  2528. + MTK_PIN(
  2529. + PINCTRL_PIN(114, "MSDC0_DAT4"),
  2530. + NULL, "mt2701",
  2531. + MTK_EINT_FUNCTION(0, 87),
  2532. + MTK_FUNCTION(0, "GPIO114"),
  2533. + MTK_FUNCTION(1, "MSDC0_DAT4"),
  2534. + MTK_FUNCTION(4, "NLD4")
  2535. + ),
  2536. + MTK_PIN(
  2537. + PINCTRL_PIN(115, "MSDC0_RSTB"),
  2538. + NULL, "mt2701",
  2539. + MTK_EINT_FUNCTION(0, 88),
  2540. + MTK_FUNCTION(0, "GPIO115"),
  2541. + MTK_FUNCTION(1, "MSDC0_RSTB"),
  2542. + MTK_FUNCTION(4, "NLD8")
  2543. + ),
  2544. + MTK_PIN(
  2545. + PINCTRL_PIN(116, "MSDC0_CMD"),
  2546. + NULL, "mt2701",
  2547. + MTK_EINT_FUNCTION(0, 89),
  2548. + MTK_FUNCTION(0, "GPIO116"),
  2549. + MTK_FUNCTION(1, "MSDC0_CMD"),
  2550. + MTK_FUNCTION(4, "NALE")
  2551. + ),
  2552. + MTK_PIN(
  2553. + PINCTRL_PIN(117, "MSDC0_CLK"),
  2554. + NULL, "mt2701",
  2555. + MTK_EINT_FUNCTION(0, 90),
  2556. + MTK_FUNCTION(0, "GPIO117"),
  2557. + MTK_FUNCTION(1, "MSDC0_CLK"),
  2558. + MTK_FUNCTION(4, "NWEB")
  2559. + ),
  2560. + MTK_PIN(
  2561. + PINCTRL_PIN(118, "MSDC0_DAT3"),
  2562. + NULL, "mt2701",
  2563. + MTK_EINT_FUNCTION(0, 91),
  2564. + MTK_FUNCTION(0, "GPIO118"),
  2565. + MTK_FUNCTION(1, "MSDC0_DAT3"),
  2566. + MTK_FUNCTION(4, "NLD3")
  2567. + ),
  2568. + MTK_PIN(
  2569. + PINCTRL_PIN(119, "MSDC0_DAT2"),
  2570. + NULL, "mt2701",
  2571. + MTK_EINT_FUNCTION(0, 92),
  2572. + MTK_FUNCTION(0, "GPIO119"),
  2573. + MTK_FUNCTION(1, "MSDC0_DAT2"),
  2574. + MTK_FUNCTION(4, "NLD2")
  2575. + ),
  2576. + MTK_PIN(
  2577. + PINCTRL_PIN(120, "MSDC0_DAT1"),
  2578. + NULL, "mt2701",
  2579. + MTK_EINT_FUNCTION(0, 93),
  2580. + MTK_FUNCTION(0, "GPIO120"),
  2581. + MTK_FUNCTION(1, "MSDC0_DAT1"),
  2582. + MTK_FUNCTION(4, "NLD1")
  2583. + ),
  2584. + MTK_PIN(
  2585. + PINCTRL_PIN(121, "MSDC0_DAT0"),
  2586. + NULL, "mt2701",
  2587. + MTK_EINT_FUNCTION(0, 94),
  2588. + MTK_FUNCTION(0, "GPIO121"),
  2589. + MTK_FUNCTION(1, "MSDC0_DAT0"),
  2590. + MTK_FUNCTION(4, "NLD0"),
  2591. + MTK_FUNCTION(5, "WATCHDOG")
  2592. + ),
  2593. + MTK_PIN(
  2594. + PINCTRL_PIN(122, "CEC"),
  2595. + NULL, "mt2701",
  2596. + MTK_EINT_FUNCTION(0, 95),
  2597. + MTK_FUNCTION(0, "GPIO122"),
  2598. + MTK_FUNCTION(1, "CEC"),
  2599. + MTK_FUNCTION(4, "SDA2"),
  2600. + MTK_FUNCTION(5, "URXD0")
  2601. + ),
  2602. + MTK_PIN(
  2603. + PINCTRL_PIN(123, "HTPLG"),
  2604. + NULL, "mt2701",
  2605. + MTK_EINT_FUNCTION(0, 96),
  2606. + MTK_FUNCTION(0, "GPIO123"),
  2607. + MTK_FUNCTION(1, "HTPLG"),
  2608. + MTK_FUNCTION(4, "SCL2"),
  2609. + MTK_FUNCTION(5, "UTXD0")
  2610. + ),
  2611. + MTK_PIN(
  2612. + PINCTRL_PIN(124, "HDMISCK"),
  2613. + NULL, "mt2701",
  2614. + MTK_EINT_FUNCTION(0, 97),
  2615. + MTK_FUNCTION(0, "GPIO124"),
  2616. + MTK_FUNCTION(1, "HDMISCK"),
  2617. + MTK_FUNCTION(4, "SDA1"),
  2618. + MTK_FUNCTION(5, "PWM3")
  2619. + ),
  2620. + MTK_PIN(
  2621. + PINCTRL_PIN(125, "HDMISD"),
  2622. + NULL, "mt2701",
  2623. + MTK_EINT_FUNCTION(0, 98),
  2624. + MTK_FUNCTION(0, "GPIO125"),
  2625. + MTK_FUNCTION(1, "HDMISD"),
  2626. + MTK_FUNCTION(4, "SCL1"),
  2627. + MTK_FUNCTION(5, "PWM4")
  2628. + ),
  2629. + MTK_PIN(
  2630. + PINCTRL_PIN(126, "I2S0_MCLK"),
  2631. + NULL, "mt2701",
  2632. + MTK_EINT_FUNCTION(0, 99),
  2633. + MTK_FUNCTION(0, "GPIO126"),
  2634. + MTK_FUNCTION(1, "I2S0_MCLK"),
  2635. + MTK_FUNCTION(6, "WCN_I2S_MCLK"),
  2636. + MTK_FUNCTION(7, "DBG_MON_B[6]")
  2637. + ),
  2638. + MTK_PIN(
  2639. + PINCTRL_PIN(127, "RAMBUF_IDATA0"),
  2640. + NULL, "mt2701",
  2641. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2642. + MTK_FUNCTION(0, "GPIO127"),
  2643. + MTK_FUNCTION(1, "RAMBUF_IDATA0")
  2644. + ),
  2645. + MTK_PIN(
  2646. + PINCTRL_PIN(128, "RAMBUF_IDATA1"),
  2647. + NULL, "mt2701",
  2648. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2649. + MTK_FUNCTION(0, "GPIO128"),
  2650. + MTK_FUNCTION(1, "RAMBUF_IDATA1")
  2651. + ),
  2652. + MTK_PIN(
  2653. + PINCTRL_PIN(129, "RAMBUF_IDATA2"),
  2654. + NULL, "mt2701",
  2655. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2656. + MTK_FUNCTION(0, "GPIO129"),
  2657. + MTK_FUNCTION(1, "RAMBUF_IDATA2")
  2658. + ),
  2659. + MTK_PIN(
  2660. + PINCTRL_PIN(130, "RAMBUF_IDATA3"),
  2661. + NULL, "mt2701",
  2662. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2663. + MTK_FUNCTION(0, "GPIO130"),
  2664. + MTK_FUNCTION(1, "RAMBUF_IDATA3")
  2665. + ),
  2666. + MTK_PIN(
  2667. + PINCTRL_PIN(131, "RAMBUF_IDATA4"),
  2668. + NULL, "mt2701",
  2669. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2670. + MTK_FUNCTION(0, "GPIO131"),
  2671. + MTK_FUNCTION(1, "RAMBUF_IDATA4")
  2672. + ),
  2673. + MTK_PIN(
  2674. + PINCTRL_PIN(132, "RAMBUF_IDATA5"),
  2675. + NULL, "mt2701",
  2676. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2677. + MTK_FUNCTION(0, "GPIO132"),
  2678. + MTK_FUNCTION(1, "RAMBUF_IDATA5")
  2679. + ),
  2680. + MTK_PIN(
  2681. + PINCTRL_PIN(133, "RAMBUF_IDATA6"),
  2682. + NULL, "mt2701",
  2683. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2684. + MTK_FUNCTION(0, "GPIO133"),
  2685. + MTK_FUNCTION(1, "RAMBUF_IDATA6")
  2686. + ),
  2687. + MTK_PIN(
  2688. + PINCTRL_PIN(134, "RAMBUF_IDATA7"),
  2689. + NULL, "mt2701",
  2690. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2691. + MTK_FUNCTION(0, "GPIO134"),
  2692. + MTK_FUNCTION(1, "RAMBUF_IDATA7")
  2693. + ),
  2694. + MTK_PIN(
  2695. + PINCTRL_PIN(135, "RAMBUF_IDATA8"),
  2696. + NULL, "mt2701",
  2697. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2698. + MTK_FUNCTION(0, "GPIO135"),
  2699. + MTK_FUNCTION(1, "RAMBUF_IDATA8")
  2700. + ),
  2701. + MTK_PIN(
  2702. + PINCTRL_PIN(136, "RAMBUF_IDATA9"),
  2703. + NULL, "mt2701",
  2704. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2705. + MTK_FUNCTION(0, "GPIO136"),
  2706. + MTK_FUNCTION(1, "RAMBUF_IDATA9")
  2707. + ),
  2708. + MTK_PIN(
  2709. + PINCTRL_PIN(137, "RAMBUF_IDATA10"),
  2710. + NULL, "mt2701",
  2711. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2712. + MTK_FUNCTION(0, "GPIO137"),
  2713. + MTK_FUNCTION(1, "RAMBUF_IDATA10")
  2714. + ),
  2715. + MTK_PIN(
  2716. + PINCTRL_PIN(138, "RAMBUF_IDATA11"),
  2717. + NULL, "mt2701",
  2718. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2719. + MTK_FUNCTION(0, "GPIO138"),
  2720. + MTK_FUNCTION(1, "RAMBUF_IDATA11")
  2721. + ),
  2722. + MTK_PIN(
  2723. + PINCTRL_PIN(139, "RAMBUF_IDATA12"),
  2724. + NULL, "mt2701",
  2725. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2726. + MTK_FUNCTION(0, "GPIO139"),
  2727. + MTK_FUNCTION(1, "RAMBUF_IDATA12")
  2728. + ),
  2729. + MTK_PIN(
  2730. + PINCTRL_PIN(140, "RAMBUF_IDATA13"),
  2731. + NULL, "mt2701",
  2732. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2733. + MTK_FUNCTION(0, "GPIO140"),
  2734. + MTK_FUNCTION(1, "RAMBUF_IDATA13")
  2735. + ),
  2736. + MTK_PIN(
  2737. + PINCTRL_PIN(141, "RAMBUF_IDATA14"),
  2738. + NULL, "mt2701",
  2739. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2740. + MTK_FUNCTION(0, "GPIO141"),
  2741. + MTK_FUNCTION(1, "RAMBUF_IDATA14")
  2742. + ),
  2743. + MTK_PIN(
  2744. + PINCTRL_PIN(142, "RAMBUF_IDATA15"),
  2745. + NULL, "mt2701",
  2746. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2747. + MTK_FUNCTION(0, "GPIO142"),
  2748. + MTK_FUNCTION(1, "RAMBUF_IDATA15")
  2749. + ),
  2750. + MTK_PIN(
  2751. + PINCTRL_PIN(143, "RAMBUF_ODATA0"),
  2752. + NULL, "mt2701",
  2753. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2754. + MTK_FUNCTION(0, "GPIO143"),
  2755. + MTK_FUNCTION(1, "RAMBUF_ODATA0")
  2756. + ),
  2757. + MTK_PIN(
  2758. + PINCTRL_PIN(144, "RAMBUF_ODATA1"),
  2759. + NULL, "mt2701",
  2760. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2761. + MTK_FUNCTION(0, "GPIO144"),
  2762. + MTK_FUNCTION(1, "RAMBUF_ODATA1")
  2763. + ),
  2764. + MTK_PIN(
  2765. + PINCTRL_PIN(145, "RAMBUF_ODATA2"),
  2766. + NULL, "mt2701",
  2767. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2768. + MTK_FUNCTION(0, "GPIO145"),
  2769. + MTK_FUNCTION(1, "RAMBUF_ODATA2")
  2770. + ),
  2771. + MTK_PIN(
  2772. + PINCTRL_PIN(146, "RAMBUF_ODATA3"),
  2773. + NULL, "mt2701",
  2774. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2775. + MTK_FUNCTION(0, "GPIO146"),
  2776. + MTK_FUNCTION(1, "RAMBUF_ODATA3")
  2777. + ),
  2778. + MTK_PIN(
  2779. + PINCTRL_PIN(147, "RAMBUF_ODATA4"),
  2780. + NULL, "mt2701",
  2781. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2782. + MTK_FUNCTION(0, "GPIO147"),
  2783. + MTK_FUNCTION(1, "RAMBUF_ODATA4")
  2784. + ),
  2785. + MTK_PIN(
  2786. + PINCTRL_PIN(148, "RAMBUF_ODATA5"),
  2787. + NULL, "mt2701",
  2788. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2789. + MTK_FUNCTION(0, "GPIO148"),
  2790. + MTK_FUNCTION(1, "RAMBUF_ODATA5")
  2791. + ),
  2792. + MTK_PIN(
  2793. + PINCTRL_PIN(149, "RAMBUF_ODATA6"),
  2794. + NULL, "mt2701",
  2795. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2796. + MTK_FUNCTION(0, "GPIO149"),
  2797. + MTK_FUNCTION(1, "RAMBUF_ODATA6")
  2798. + ),
  2799. + MTK_PIN(
  2800. + PINCTRL_PIN(150, "RAMBUF_ODATA7"),
  2801. + NULL, "mt2701",
  2802. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2803. + MTK_FUNCTION(0, "GPIO150"),
  2804. + MTK_FUNCTION(1, "RAMBUF_ODATA7")
  2805. + ),
  2806. + MTK_PIN(
  2807. + PINCTRL_PIN(151, "RAMBUF_ODATA8"),
  2808. + NULL, "mt2701",
  2809. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2810. + MTK_FUNCTION(0, "GPIO151"),
  2811. + MTK_FUNCTION(1, "RAMBUF_ODATA8")
  2812. + ),
  2813. + MTK_PIN(
  2814. + PINCTRL_PIN(152, "RAMBUF_ODATA9"),
  2815. + NULL, "mt2701",
  2816. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2817. + MTK_FUNCTION(0, "GPIO152"),
  2818. + MTK_FUNCTION(1, "RAMBUF_ODATA9")
  2819. + ),
  2820. + MTK_PIN(
  2821. + PINCTRL_PIN(153, "RAMBUF_ODATA10"),
  2822. + NULL, "mt2701",
  2823. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2824. + MTK_FUNCTION(0, "GPIO153"),
  2825. + MTK_FUNCTION(1, "RAMBUF_ODATA10")
  2826. + ),
  2827. + MTK_PIN(
  2828. + PINCTRL_PIN(154, "RAMBUF_ODATA11"),
  2829. + NULL, "mt2701",
  2830. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2831. + MTK_FUNCTION(0, "GPIO154"),
  2832. + MTK_FUNCTION(1, "RAMBUF_ODATA11")
  2833. + ),
  2834. + MTK_PIN(
  2835. + PINCTRL_PIN(155, "RAMBUF_ODATA12"),
  2836. + NULL, "mt2701",
  2837. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2838. + MTK_FUNCTION(0, "GPIO155"),
  2839. + MTK_FUNCTION(1, "RAMBUF_ODATA12")
  2840. + ),
  2841. + MTK_PIN(
  2842. + PINCTRL_PIN(156, "RAMBUF_ODATA13"),
  2843. + NULL, "mt2701",
  2844. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2845. + MTK_FUNCTION(0, "GPIO156"),
  2846. + MTK_FUNCTION(1, "RAMBUF_ODATA13")
  2847. + ),
  2848. + MTK_PIN(
  2849. + PINCTRL_PIN(157, "RAMBUF_ODATA14"),
  2850. + NULL, "mt2701",
  2851. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2852. + MTK_FUNCTION(0, "GPIO157"),
  2853. + MTK_FUNCTION(1, "RAMBUF_ODATA14")
  2854. + ),
  2855. + MTK_PIN(
  2856. + PINCTRL_PIN(158, "RAMBUF_ODATA15"),
  2857. + NULL, "mt2701",
  2858. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2859. + MTK_FUNCTION(0, "GPIO158"),
  2860. + MTK_FUNCTION(1, "RAMBUF_ODATA15")
  2861. + ),
  2862. + MTK_PIN(
  2863. + PINCTRL_PIN(159, "RAMBUF_BE0"),
  2864. + NULL, "mt2701",
  2865. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2866. + MTK_FUNCTION(0, "GPIO159"),
  2867. + MTK_FUNCTION(1, "RAMBUF_BE0")
  2868. + ),
  2869. + MTK_PIN(
  2870. + PINCTRL_PIN(160, "RAMBUF_BE1"),
  2871. + NULL, "mt2701",
  2872. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2873. + MTK_FUNCTION(0, "GPIO160"),
  2874. + MTK_FUNCTION(1, "RAMBUF_BE1")
  2875. + ),
  2876. + MTK_PIN(
  2877. + PINCTRL_PIN(161, "AP2PT_INT"),
  2878. + NULL, "mt2701",
  2879. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2880. + MTK_FUNCTION(0, "GPIO161"),
  2881. + MTK_FUNCTION(1, "AP2PT_INT")
  2882. + ),
  2883. + MTK_PIN(
  2884. + PINCTRL_PIN(162, "AP2PT_INT_CLR"),
  2885. + NULL, "mt2701",
  2886. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2887. + MTK_FUNCTION(0, "GPIO162"),
  2888. + MTK_FUNCTION(1, "AP2PT_INT_CLR")
  2889. + ),
  2890. + MTK_PIN(
  2891. + PINCTRL_PIN(163, "PT2AP_INT"),
  2892. + NULL, "mt2701",
  2893. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2894. + MTK_FUNCTION(0, "GPIO163"),
  2895. + MTK_FUNCTION(1, "PT2AP_INT")
  2896. + ),
  2897. + MTK_PIN(
  2898. + PINCTRL_PIN(164, "PT2AP_INT_CLR"),
  2899. + NULL, "mt2701",
  2900. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2901. + MTK_FUNCTION(0, "GPIO164"),
  2902. + MTK_FUNCTION(1, "PT2AP_INT_CLR")
  2903. + ),
  2904. + MTK_PIN(
  2905. + PINCTRL_PIN(165, "AP2UP_INT"),
  2906. + NULL, "mt2701",
  2907. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2908. + MTK_FUNCTION(0, "GPIO165"),
  2909. + MTK_FUNCTION(1, "AP2UP_INT")
  2910. + ),
  2911. + MTK_PIN(
  2912. + PINCTRL_PIN(166, "AP2UP_INT_CLR"),
  2913. + NULL, "mt2701",
  2914. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2915. + MTK_FUNCTION(0, "GPIO166"),
  2916. + MTK_FUNCTION(1, "AP2UP_INT_CLR")
  2917. + ),
  2918. + MTK_PIN(
  2919. + PINCTRL_PIN(167, "UP2AP_INT"),
  2920. + NULL, "mt2701",
  2921. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2922. + MTK_FUNCTION(0, "GPIO167"),
  2923. + MTK_FUNCTION(1, "UP2AP_INT")
  2924. + ),
  2925. + MTK_PIN(
  2926. + PINCTRL_PIN(168, "UP2AP_INT_CLR"),
  2927. + NULL, "mt2701",
  2928. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2929. + MTK_FUNCTION(0, "GPIO168"),
  2930. + MTK_FUNCTION(1, "UP2AP_INT_CLR")
  2931. + ),
  2932. + MTK_PIN(
  2933. + PINCTRL_PIN(169, "RAMBUF_ADDR0"),
  2934. + NULL, "mt2701",
  2935. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2936. + MTK_FUNCTION(0, "GPIO169"),
  2937. + MTK_FUNCTION(1, "RAMBUF_ADDR0")
  2938. + ),
  2939. + MTK_PIN(
  2940. + PINCTRL_PIN(170, "RAMBUF_ADDR1"),
  2941. + NULL, "mt2701",
  2942. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2943. + MTK_FUNCTION(0, "GPIO170"),
  2944. + MTK_FUNCTION(1, "RAMBUF_ADDR1")
  2945. + ),
  2946. + MTK_PIN(
  2947. + PINCTRL_PIN(171, "RAMBUF_ADDR2"),
  2948. + NULL, "mt2701",
  2949. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2950. + MTK_FUNCTION(0, "GPIO171"),
  2951. + MTK_FUNCTION(1, "RAMBUF_ADDR2")
  2952. + ),
  2953. + MTK_PIN(
  2954. + PINCTRL_PIN(172, "RAMBUF_ADDR3"),
  2955. + NULL, "mt2701",
  2956. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2957. + MTK_FUNCTION(0, "GPIO172"),
  2958. + MTK_FUNCTION(1, "RAMBUF_ADDR3")
  2959. + ),
  2960. + MTK_PIN(
  2961. + PINCTRL_PIN(173, "RAMBUF_ADDR4"),
  2962. + NULL, "mt2701",
  2963. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2964. + MTK_FUNCTION(0, "GPIO173"),
  2965. + MTK_FUNCTION(1, "RAMBUF_ADDR4")
  2966. + ),
  2967. + MTK_PIN(
  2968. + PINCTRL_PIN(174, "RAMBUF_ADDR5"),
  2969. + NULL, "mt2701",
  2970. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2971. + MTK_FUNCTION(0, "GPIO174"),
  2972. + MTK_FUNCTION(1, "RAMBUF_ADDR5")
  2973. + ),
  2974. + MTK_PIN(
  2975. + PINCTRL_PIN(175, "RAMBUF_ADDR6"),
  2976. + NULL, "mt2701",
  2977. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2978. + MTK_FUNCTION(0, "GPIO175"),
  2979. + MTK_FUNCTION(1, "RAMBUF_ADDR6")
  2980. + ),
  2981. + MTK_PIN(
  2982. + PINCTRL_PIN(176, "RAMBUF_ADDR7"),
  2983. + NULL, "mt2701",
  2984. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2985. + MTK_FUNCTION(0, "GPIO176"),
  2986. + MTK_FUNCTION(1, "RAMBUF_ADDR7")
  2987. + ),
  2988. + MTK_PIN(
  2989. + PINCTRL_PIN(177, "RAMBUF_ADDR8"),
  2990. + NULL, "mt2701",
  2991. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2992. + MTK_FUNCTION(0, "GPIO177"),
  2993. + MTK_FUNCTION(1, "RAMBUF_ADDR8")
  2994. + ),
  2995. + MTK_PIN(
  2996. + PINCTRL_PIN(178, "RAMBUF_ADDR9"),
  2997. + NULL, "mt2701",
  2998. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2999. + MTK_FUNCTION(0, "GPIO178"),
  3000. + MTK_FUNCTION(1, "RAMBUF_ADDR9")
  3001. + ),
  3002. + MTK_PIN(
  3003. + PINCTRL_PIN(179, "RAMBUF_ADDR10"),
  3004. + NULL, "mt2701",
  3005. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3006. + MTK_FUNCTION(0, "GPIO179"),
  3007. + MTK_FUNCTION(1, "RAMBUF_ADDR10")
  3008. + ),
  3009. + MTK_PIN(
  3010. + PINCTRL_PIN(180, "RAMBUF_RW"),
  3011. + NULL, "mt2701",
  3012. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3013. + MTK_FUNCTION(0, "GPIO180"),
  3014. + MTK_FUNCTION(1, "RAMBUF_RW")
  3015. + ),
  3016. + MTK_PIN(
  3017. + PINCTRL_PIN(181, "RAMBUF_LAST"),
  3018. + NULL, "mt2701",
  3019. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3020. + MTK_FUNCTION(0, "GPIO181"),
  3021. + MTK_FUNCTION(1, "RAMBUF_LAST")
  3022. + ),
  3023. + MTK_PIN(
  3024. + PINCTRL_PIN(182, "RAMBUF_HP"),
  3025. + NULL, "mt2701",
  3026. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3027. + MTK_FUNCTION(0, "GPIO182"),
  3028. + MTK_FUNCTION(1, "RAMBUF_HP")
  3029. + ),
  3030. + MTK_PIN(
  3031. + PINCTRL_PIN(183, "RAMBUF_REQ"),
  3032. + NULL, "mt2701",
  3033. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3034. + MTK_FUNCTION(0, "GPIO183"),
  3035. + MTK_FUNCTION(1, "RAMBUF_REQ")
  3036. + ),
  3037. + MTK_PIN(
  3038. + PINCTRL_PIN(184, "RAMBUF_ALE"),
  3039. + NULL, "mt2701",
  3040. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3041. + MTK_FUNCTION(0, "GPIO184"),
  3042. + MTK_FUNCTION(1, "RAMBUF_ALE")
  3043. + ),
  3044. + MTK_PIN(
  3045. + PINCTRL_PIN(185, "RAMBUF_DLE"),
  3046. + NULL, "mt2701",
  3047. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3048. + MTK_FUNCTION(0, "GPIO185"),
  3049. + MTK_FUNCTION(1, "RAMBUF_DLE")
  3050. + ),
  3051. + MTK_PIN(
  3052. + PINCTRL_PIN(186, "RAMBUF_WDLE"),
  3053. + NULL, "mt2701",
  3054. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3055. + MTK_FUNCTION(0, "GPIO186"),
  3056. + MTK_FUNCTION(1, "RAMBUF_WDLE")
  3057. + ),
  3058. + MTK_PIN(
  3059. + PINCTRL_PIN(187, "RAMBUF_O_CLK"),
  3060. + NULL, "mt2701",
  3061. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3062. + MTK_FUNCTION(0, "GPIO187"),
  3063. + MTK_FUNCTION(1, "RAMBUF_O_CLK")
  3064. + ),
  3065. + MTK_PIN(
  3066. + PINCTRL_PIN(188, "I2S2_MCLK"),
  3067. + NULL, "mt2701",
  3068. + MTK_EINT_FUNCTION(0, 100),
  3069. + MTK_FUNCTION(0, "GPIO188"),
  3070. + MTK_FUNCTION(1, "I2S2_MCLK")
  3071. + ),
  3072. + MTK_PIN(
  3073. + PINCTRL_PIN(189, "I2S3_DATA"),
  3074. + NULL, "mt2701",
  3075. + MTK_EINT_FUNCTION(0, 101),
  3076. + MTK_FUNCTION(0, "GPIO189"),
  3077. + MTK_FUNCTION(2, "I2S3_DATA_BYPS"),
  3078. + MTK_FUNCTION(3, "PCM_TX")
  3079. + ),
  3080. + MTK_PIN(
  3081. + PINCTRL_PIN(190, "I2S3_DATA_IN"),
  3082. + NULL, "mt2701",
  3083. + MTK_EINT_FUNCTION(0, 102),
  3084. + MTK_FUNCTION(0, "GPIO190"),
  3085. + MTK_FUNCTION(1, "I2S3_DATA_IN"),
  3086. + MTK_FUNCTION(3, "PCM_RX")
  3087. + ),
  3088. + MTK_PIN(
  3089. + PINCTRL_PIN(191, "I2S3_BCK"),
  3090. + NULL, "mt2701",
  3091. + MTK_EINT_FUNCTION(0, 103),
  3092. + MTK_FUNCTION(0, "GPIO191"),
  3093. + MTK_FUNCTION(1, "I2S3_BCK"),
  3094. + MTK_FUNCTION(3, "PCM_CLK0")
  3095. + ),
  3096. + MTK_PIN(
  3097. + PINCTRL_PIN(192, "I2S3_LRCK"),
  3098. + NULL, "mt2701",
  3099. + MTK_EINT_FUNCTION(0, 104),
  3100. + MTK_FUNCTION(0, "GPIO192"),
  3101. + MTK_FUNCTION(1, "I2S3_LRCK"),
  3102. + MTK_FUNCTION(3, "PCM_SYNC")
  3103. + ),
  3104. + MTK_PIN(
  3105. + PINCTRL_PIN(193, "I2S3_MCLK"),
  3106. + NULL, "mt2701",
  3107. + MTK_EINT_FUNCTION(0, 105),
  3108. + MTK_FUNCTION(0, "GPIO193"),
  3109. + MTK_FUNCTION(1, "I2S3_MCLK")
  3110. + ),
  3111. + MTK_PIN(
  3112. + PINCTRL_PIN(194, "I2S4_DATA"),
  3113. + NULL, "mt2701",
  3114. + MTK_EINT_FUNCTION(0, 106),
  3115. + MTK_FUNCTION(0, "GPIO194"),
  3116. + MTK_FUNCTION(1, "I2S4_DATA"),
  3117. + MTK_FUNCTION(2, "I2S4_DATA_BYPS"),
  3118. + MTK_FUNCTION(3, "PCM_TX")
  3119. + ),
  3120. + MTK_PIN(
  3121. + PINCTRL_PIN(195, "I2S4_DATA_IN"),
  3122. + NULL, "mt2701",
  3123. + MTK_EINT_FUNCTION(0, 107),
  3124. + MTK_FUNCTION(0, "GPIO195"),
  3125. + MTK_FUNCTION(1, "I2S4_DATA_IN"),
  3126. + MTK_FUNCTION(3, "PCM_RX")
  3127. + ),
  3128. + MTK_PIN(
  3129. + PINCTRL_PIN(196, "I2S4_BCK"),
  3130. + NULL, "mt2701",
  3131. + MTK_EINT_FUNCTION(0, 108),
  3132. + MTK_FUNCTION(0, "GPIO196"),
  3133. + MTK_FUNCTION(1, "I2S4_BCK"),
  3134. + MTK_FUNCTION(3, "PCM_CLK0")
  3135. + ),
  3136. + MTK_PIN(
  3137. + PINCTRL_PIN(197, "I2S4_LRCK"),
  3138. + NULL, "mt2701",
  3139. + MTK_EINT_FUNCTION(0, 109),
  3140. + MTK_FUNCTION(0, "GPIO197"),
  3141. + MTK_FUNCTION(1, "I2S4_LRCK"),
  3142. + MTK_FUNCTION(3, "PCM_SYNC")
  3143. + ),
  3144. + MTK_PIN(
  3145. + PINCTRL_PIN(198, "I2S4_MCLK"),
  3146. + NULL, "mt2701",
  3147. + MTK_EINT_FUNCTION(0, 110),
  3148. + MTK_FUNCTION(0, "GPIO198"),
  3149. + MTK_FUNCTION(1, "I2S4_MCLK")
  3150. + ),
  3151. + MTK_PIN(
  3152. + PINCTRL_PIN(199, "SPI1_CLK"),
  3153. + NULL, "mt2701",
  3154. + MTK_EINT_FUNCTION(0, 111),
  3155. + MTK_FUNCTION(0, "GPIO199"),
  3156. + MTK_FUNCTION(1, "SPI1_CK"),
  3157. + MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
  3158. + MTK_FUNCTION(4, "KCOL3"),
  3159. + MTK_FUNCTION(7, "DBG_MON_B[15]")
  3160. + ),
  3161. + MTK_PIN(
  3162. + PINCTRL_PIN(200, "SPDIF_OUT"),
  3163. + NULL, "mt2701",
  3164. + MTK_EINT_FUNCTION(0, 112),
  3165. + MTK_FUNCTION(0, "GPIO200"),
  3166. + MTK_FUNCTION(1, "SPDIF_OUT"),
  3167. + MTK_FUNCTION(5, "G1_TXD3"),
  3168. + MTK_FUNCTION(6, "URXD2"),
  3169. + MTK_FUNCTION(7, "DBG_MON_B[16]")
  3170. + ),
  3171. + MTK_PIN(
  3172. + PINCTRL_PIN(201, "SPDIF_IN0"),
  3173. + NULL, "mt2701",
  3174. + MTK_EINT_FUNCTION(0, 113),
  3175. + MTK_FUNCTION(0, "GPIO201"),
  3176. + MTK_FUNCTION(1, "SPDIF_IN0"),
  3177. + MTK_FUNCTION(5, "G1_TXEN"),
  3178. + MTK_FUNCTION(6, "UTXD2"),
  3179. + MTK_FUNCTION(7, "DBG_MON_B[17]")
  3180. + ),
  3181. + MTK_PIN(
  3182. + PINCTRL_PIN(202, "SPDIF_IN1"),
  3183. + NULL, "mt2701",
  3184. + MTK_EINT_FUNCTION(0, 114),
  3185. + MTK_FUNCTION(0, "GPIO202"),
  3186. + MTK_FUNCTION(1, "SPDIF_IN1")
  3187. + ),
  3188. + MTK_PIN(
  3189. + PINCTRL_PIN(203, "PWM0"),
  3190. + NULL, "mt2701",
  3191. + MTK_EINT_FUNCTION(0, 115),
  3192. + MTK_FUNCTION(0, "GPIO203"),
  3193. + MTK_FUNCTION(1, "PWM0"),
  3194. + MTK_FUNCTION(2, "DISP_PWM"),
  3195. + MTK_FUNCTION(5, "G1_TXD2"),
  3196. + MTK_FUNCTION(7, "DBG_MON_B[18]"),
  3197. + MTK_FUNCTION(9, "I2S2_DATA")
  3198. + ),
  3199. + MTK_PIN(
  3200. + PINCTRL_PIN(204, "PWM1"),
  3201. + NULL, "mt2701",
  3202. + MTK_EINT_FUNCTION(0, 116),
  3203. + MTK_FUNCTION(0, "GPIO204"),
  3204. + MTK_FUNCTION(1, "PWM1"),
  3205. + MTK_FUNCTION(2, "CLKM3"),
  3206. + MTK_FUNCTION(5, "G1_TXD1"),
  3207. + MTK_FUNCTION(7, "DBG_MON_B[19]"),
  3208. + MTK_FUNCTION(9, "I2S3_DATA")
  3209. + ),
  3210. + MTK_PIN(
  3211. + PINCTRL_PIN(205, "PWM2"),
  3212. + NULL, "mt2701",
  3213. + MTK_EINT_FUNCTION(0, 117),
  3214. + MTK_FUNCTION(0, "GPIO205"),
  3215. + MTK_FUNCTION(1, "PWM2"),
  3216. + MTK_FUNCTION(2, "CLKM2"),
  3217. + MTK_FUNCTION(5, "G1_TXD0"),
  3218. + MTK_FUNCTION(7, "DBG_MON_B[20]")
  3219. + ),
  3220. + MTK_PIN(
  3221. + PINCTRL_PIN(206, "PWM3"),
  3222. + NULL, "mt2701",
  3223. + MTK_EINT_FUNCTION(0, 118),
  3224. + MTK_FUNCTION(0, "GPIO206"),
  3225. + MTK_FUNCTION(1, "PWM3"),
  3226. + MTK_FUNCTION(2, "CLKM1"),
  3227. + MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
  3228. + MTK_FUNCTION(5, "G1_TXC"),
  3229. + MTK_FUNCTION(7, "DBG_MON_B[21]")
  3230. + ),
  3231. + MTK_PIN(
  3232. + PINCTRL_PIN(207, "PWM4"),
  3233. + NULL, "mt2701",
  3234. + MTK_EINT_FUNCTION(0, 119),
  3235. + MTK_FUNCTION(0, "GPIO207"),
  3236. + MTK_FUNCTION(1, "PWM4"),
  3237. + MTK_FUNCTION(2, "CLKM0"),
  3238. + MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
  3239. + MTK_FUNCTION(5, "G1_RXC"),
  3240. + MTK_FUNCTION(7, "DBG_MON_B[22]")
  3241. + ),
  3242. + MTK_PIN(
  3243. + PINCTRL_PIN(208, "AUD_EXT_CK1"),
  3244. + NULL, "mt2701",
  3245. + MTK_EINT_FUNCTION(0, 120),
  3246. + MTK_FUNCTION(0, "GPIO208"),
  3247. + MTK_FUNCTION(1, "AUD_EXT_CK1"),
  3248. + MTK_FUNCTION(2, "PWM0"),
  3249. + MTK_FUNCTION(4, "ANT_SEL5"),
  3250. + MTK_FUNCTION(5, "DISP_PWM"),
  3251. + MTK_FUNCTION(7, "DBG_MON_A[31]"),
  3252. + MTK_FUNCTION(11, "PCIE0_PERST_N")
  3253. + ),
  3254. + MTK_PIN(
  3255. + PINCTRL_PIN(209, "AUD_EXT_CK2"),
  3256. + NULL, "mt2701",
  3257. + MTK_EINT_FUNCTION(0, 121),
  3258. + MTK_FUNCTION(0, "GPIO209"),
  3259. + MTK_FUNCTION(1, "AUD_EXT_CK2"),
  3260. + MTK_FUNCTION(2, "MSDC1_WP"),
  3261. + MTK_FUNCTION(5, "PWM1"),
  3262. + MTK_FUNCTION(7, "DBG_MON_A[32]"),
  3263. + MTK_FUNCTION(11, "PCIE1_PERST_N")
  3264. + ),
  3265. + MTK_PIN(
  3266. + PINCTRL_PIN(210, "AUD_CLOCK"),
  3267. + NULL, "mt2701",
  3268. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3269. + MTK_FUNCTION(0, "GPIO210"),
  3270. + MTK_FUNCTION(1, "AUD_CLOCK")
  3271. + ),
  3272. + MTK_PIN(
  3273. + PINCTRL_PIN(211, "DVP_RESET"),
  3274. + NULL, "mt2701",
  3275. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3276. + MTK_FUNCTION(0, "GPIO211"),
  3277. + MTK_FUNCTION(1, "DVP_RESET")
  3278. + ),
  3279. + MTK_PIN(
  3280. + PINCTRL_PIN(212, "DVP_CLOCK"),
  3281. + NULL, "mt2701",
  3282. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3283. + MTK_FUNCTION(0, "GPIO212"),
  3284. + MTK_FUNCTION(1, "DVP_CLOCK")
  3285. + ),
  3286. + MTK_PIN(
  3287. + PINCTRL_PIN(213, "DVP_CS"),
  3288. + NULL, "mt2701",
  3289. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3290. + MTK_FUNCTION(0, "GPIO213"),
  3291. + MTK_FUNCTION(1, "DVP_CS")
  3292. + ),
  3293. + MTK_PIN(
  3294. + PINCTRL_PIN(214, "DVP_CK"),
  3295. + NULL, "mt2701",
  3296. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3297. + MTK_FUNCTION(0, "GPIO214"),
  3298. + MTK_FUNCTION(1, "DVP_CK")
  3299. + ),
  3300. + MTK_PIN(
  3301. + PINCTRL_PIN(215, "DVP_DI"),
  3302. + NULL, "mt2701",
  3303. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3304. + MTK_FUNCTION(0, "GPIO215"),
  3305. + MTK_FUNCTION(1, "DVP_DI")
  3306. + ),
  3307. + MTK_PIN(
  3308. + PINCTRL_PIN(216, "DVP_DO"),
  3309. + NULL, "mt2701",
  3310. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3311. + MTK_FUNCTION(0, "GPIO216"),
  3312. + MTK_FUNCTION(1, "DVP_DO")
  3313. + ),
  3314. + MTK_PIN(
  3315. + PINCTRL_PIN(217, "AP_CS"),
  3316. + NULL, "mt2701",
  3317. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3318. + MTK_FUNCTION(0, "GPIO217"),
  3319. + MTK_FUNCTION(1, "AP_CS")
  3320. + ),
  3321. + MTK_PIN(
  3322. + PINCTRL_PIN(218, "AP_CK"),
  3323. + NULL, "mt2701",
  3324. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3325. + MTK_FUNCTION(0, "GPIO218"),
  3326. + MTK_FUNCTION(1, "AP_CK")
  3327. + ),
  3328. + MTK_PIN(
  3329. + PINCTRL_PIN(219, "AP_DI"),
  3330. + NULL, "mt2701",
  3331. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3332. + MTK_FUNCTION(0, "GPIO219"),
  3333. + MTK_FUNCTION(1, "AP_DI")
  3334. + ),
  3335. + MTK_PIN(
  3336. + PINCTRL_PIN(220, "AP_DO"),
  3337. + NULL, "mt2701",
  3338. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3339. + MTK_FUNCTION(0, "GPIO220"),
  3340. + MTK_FUNCTION(1, "AP_DO")
  3341. + ),
  3342. + MTK_PIN(
  3343. + PINCTRL_PIN(221, "DVD_BCLK"),
  3344. + NULL, "mt2701",
  3345. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3346. + MTK_FUNCTION(0, "GPIO221"),
  3347. + MTK_FUNCTION(1, "DVD_BCLK")
  3348. + ),
  3349. + MTK_PIN(
  3350. + PINCTRL_PIN(222, "T8032_CLK"),
  3351. + NULL, "mt2701",
  3352. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3353. + MTK_FUNCTION(0, "GPIO222"),
  3354. + MTK_FUNCTION(1, "T8032_CLK")
  3355. + ),
  3356. + MTK_PIN(
  3357. + PINCTRL_PIN(223, "AP_BCLK"),
  3358. + NULL, "mt2701",
  3359. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3360. + MTK_FUNCTION(0, "GPIO223"),
  3361. + MTK_FUNCTION(1, "AP_BCLK")
  3362. + ),
  3363. + MTK_PIN(
  3364. + PINCTRL_PIN(224, "HOST_CS"),
  3365. + NULL, "mt2701",
  3366. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3367. + MTK_FUNCTION(0, "GPIO224"),
  3368. + MTK_FUNCTION(1, "HOST_CS")
  3369. + ),
  3370. + MTK_PIN(
  3371. + PINCTRL_PIN(225, "HOST_CK"),
  3372. + NULL, "mt2701",
  3373. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3374. + MTK_FUNCTION(0, "GPIO225"),
  3375. + MTK_FUNCTION(1, "HOST_CK")
  3376. + ),
  3377. + MTK_PIN(
  3378. + PINCTRL_PIN(226, "HOST_DO0"),
  3379. + NULL, "mt2701",
  3380. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3381. + MTK_FUNCTION(0, "GPIO226"),
  3382. + MTK_FUNCTION(1, "HOST_DO0")
  3383. + ),
  3384. + MTK_PIN(
  3385. + PINCTRL_PIN(227, "HOST_DO1"),
  3386. + NULL, "mt2701",
  3387. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3388. + MTK_FUNCTION(0, "GPIO227"),
  3389. + MTK_FUNCTION(1, "HOST_DO1")
  3390. + ),
  3391. + MTK_PIN(
  3392. + PINCTRL_PIN(228, "SLV_CS"),
  3393. + NULL, "mt2701",
  3394. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3395. + MTK_FUNCTION(0, "GPIO228"),
  3396. + MTK_FUNCTION(1, "SLV_CS")
  3397. + ),
  3398. + MTK_PIN(
  3399. + PINCTRL_PIN(229, "SLV_CK"),
  3400. + NULL, "mt2701",
  3401. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3402. + MTK_FUNCTION(0, "GPIO229"),
  3403. + MTK_FUNCTION(1, "SLV_CK")
  3404. + ),
  3405. + MTK_PIN(
  3406. + PINCTRL_PIN(230, "SLV_DI0"),
  3407. + NULL, "mt2701",
  3408. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3409. + MTK_FUNCTION(0, "GPIO230"),
  3410. + MTK_FUNCTION(1, "SLV_DI0")
  3411. + ),
  3412. + MTK_PIN(
  3413. + PINCTRL_PIN(231, "SLV_DI1"),
  3414. + NULL, "mt2701",
  3415. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3416. + MTK_FUNCTION(0, "GPIO231"),
  3417. + MTK_FUNCTION(1, "SLV_DI1")
  3418. + ),
  3419. + MTK_PIN(
  3420. + PINCTRL_PIN(232, "AP2DSP_INT"),
  3421. + NULL, "mt2701",
  3422. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3423. + MTK_FUNCTION(0, "GPIO232"),
  3424. + MTK_FUNCTION(1, "AP2DSP_INT")
  3425. + ),
  3426. + MTK_PIN(
  3427. + PINCTRL_PIN(233, "AP2DSP_INT_CLR"),
  3428. + NULL, "mt2701",
  3429. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3430. + MTK_FUNCTION(0, "GPIO233"),
  3431. + MTK_FUNCTION(1, "AP2DSP_INT_CLR")
  3432. + ),
  3433. + MTK_PIN(
  3434. + PINCTRL_PIN(234, "DSP2AP_INT"),
  3435. + NULL, "mt2701",
  3436. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3437. + MTK_FUNCTION(0, "GPIO234"),
  3438. + MTK_FUNCTION(1, "DSP2AP_INT")
  3439. + ),
  3440. + MTK_PIN(
  3441. + PINCTRL_PIN(235, "DSP2AP_INT_CLR"),
  3442. + NULL, "mt2701",
  3443. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3444. + MTK_FUNCTION(0, "GPIO235"),
  3445. + MTK_FUNCTION(1, "DSP2AP_INT_CLR")
  3446. + ),
  3447. + MTK_PIN(
  3448. + PINCTRL_PIN(236, "EXT_SDIO3"),
  3449. + NULL, "mt2701",
  3450. + MTK_EINT_FUNCTION(0, 122),
  3451. + MTK_FUNCTION(0, "GPIO236"),
  3452. + MTK_FUNCTION(1, "EXT_SDIO3"),
  3453. + MTK_FUNCTION(2, "IDDIG"),
  3454. + MTK_FUNCTION(7, "DBG_MON_A[1]")
  3455. + ),
  3456. + MTK_PIN(
  3457. + PINCTRL_PIN(237, "EXT_SDIO2"),
  3458. + NULL, "mt2701",
  3459. + MTK_EINT_FUNCTION(0, 123),
  3460. + MTK_FUNCTION(0, "GPIO237"),
  3461. + MTK_FUNCTION(1, "EXT_SDIO2"),
  3462. + MTK_FUNCTION(2, "DRV_VBUS")
  3463. + ),
  3464. + MTK_PIN(
  3465. + PINCTRL_PIN(238, "EXT_SDIO1"),
  3466. + NULL, "mt2701",
  3467. + MTK_EINT_FUNCTION(0, 124),
  3468. + MTK_FUNCTION(0, "GPIO238"),
  3469. + MTK_FUNCTION(1, "EXT_SDIO1"),
  3470. + MTK_FUNCTION(2, "IDDIG_P1")
  3471. + ),
  3472. + MTK_PIN(
  3473. + PINCTRL_PIN(239, "EXT_SDIO0"),
  3474. + NULL, "mt2701",
  3475. + MTK_EINT_FUNCTION(0, 125),
  3476. + MTK_FUNCTION(0, "GPIO239"),
  3477. + MTK_FUNCTION(1, "EXT_SDIO0"),
  3478. + MTK_FUNCTION(2, "DRV_VBUS_P1")
  3479. + ),
  3480. + MTK_PIN(
  3481. + PINCTRL_PIN(240, "EXT_XCS"),
  3482. + NULL, "mt2701",
  3483. + MTK_EINT_FUNCTION(0, 126),
  3484. + MTK_FUNCTION(0, "GPIO240"),
  3485. + MTK_FUNCTION(1, "EXT_XCS")
  3486. + ),
  3487. + MTK_PIN(
  3488. + PINCTRL_PIN(241, "EXT_SCK"),
  3489. + NULL, "mt2701",
  3490. + MTK_EINT_FUNCTION(0, 127),
  3491. + MTK_FUNCTION(0, "GPIO241"),
  3492. + MTK_FUNCTION(1, "EXT_SCK")
  3493. + ),
  3494. + MTK_PIN(
  3495. + PINCTRL_PIN(242, "URTS2"),
  3496. + NULL, "mt2701",
  3497. + MTK_EINT_FUNCTION(0, 128),
  3498. + MTK_FUNCTION(0, "GPIO242"),
  3499. + MTK_FUNCTION(1, "URTS2"),
  3500. + MTK_FUNCTION(2, "UTXD3"),
  3501. + MTK_FUNCTION(3, "URXD3"),
  3502. + MTK_FUNCTION(4, "SCL1"),
  3503. + MTK_FUNCTION(7, "DBG_MON_B[32]")
  3504. + ),
  3505. + MTK_PIN(
  3506. + PINCTRL_PIN(243, "UCTS2"),
  3507. + NULL, "mt2701",
  3508. + MTK_EINT_FUNCTION(0, 129),
  3509. + MTK_FUNCTION(0, "GPIO243"),
  3510. + MTK_FUNCTION(1, "UCTS2"),
  3511. + MTK_FUNCTION(2, "URXD3"),
  3512. + MTK_FUNCTION(3, "UTXD3"),
  3513. + MTK_FUNCTION(4, "SDA1"),
  3514. + MTK_FUNCTION(7, "DBG_MON_A[6]")
  3515. + ),
  3516. + MTK_PIN(
  3517. + PINCTRL_PIN(244, "HDMI_SDA_RX"),
  3518. + NULL, "mt2701",
  3519. + MTK_EINT_FUNCTION(0, 130),
  3520. + MTK_FUNCTION(0, "GPIO244"),
  3521. + MTK_FUNCTION(1, "HDMI_SDA_RX")
  3522. + ),
  3523. + MTK_PIN(
  3524. + PINCTRL_PIN(245, "HDMI_SCL_RX"),
  3525. + NULL, "mt2701",
  3526. + MTK_EINT_FUNCTION(0, 131),
  3527. + MTK_FUNCTION(0, "GPIO245"),
  3528. + MTK_FUNCTION(1, "HDMI_SCL_RX")
  3529. + ),
  3530. + MTK_PIN(
  3531. + PINCTRL_PIN(246, "MHL_SENCE"),
  3532. + NULL, "mt2701",
  3533. + MTK_EINT_FUNCTION(0, 132),
  3534. + MTK_FUNCTION(0, "GPIO246")
  3535. + ),
  3536. + MTK_PIN(
  3537. + PINCTRL_PIN(247, "HDMI_HPD_CBUS_RX"),
  3538. + NULL, "mt2701",
  3539. + MTK_EINT_FUNCTION(0, 69),
  3540. + MTK_FUNCTION(0, "GPIO247"),
  3541. + MTK_FUNCTION(1, "HDMI_HPD_RX")
  3542. + ),
  3543. + MTK_PIN(
  3544. + PINCTRL_PIN(248, "HDMI_TESTOUTP_RX"),
  3545. + NULL, "mt2701",
  3546. + MTK_EINT_FUNCTION(0, 133),
  3547. + MTK_FUNCTION(0, "GPIO248"),
  3548. + MTK_FUNCTION(1, "HDMI_TESTOUTP_RX")
  3549. + ),
  3550. + MTK_PIN(
  3551. + PINCTRL_PIN(249, "MSDC0E_RSTB"),
  3552. + NULL, "mt2701",
  3553. + MTK_EINT_FUNCTION(0, 134),
  3554. + MTK_FUNCTION(0, "GPIO249"),
  3555. + MTK_FUNCTION(1, "MSDC0E_RSTB")
  3556. + ),
  3557. + MTK_PIN(
  3558. + PINCTRL_PIN(250, "MSDC0E_DAT7"),
  3559. + NULL, "mt2701",
  3560. + MTK_EINT_FUNCTION(0, 135),
  3561. + MTK_FUNCTION(0, "GPIO250"),
  3562. + MTK_FUNCTION(1, "MSDC3_DAT7"),
  3563. + MTK_FUNCTION(6, "PCIE0_CLKREQ_N")
  3564. + ),
  3565. + MTK_PIN(
  3566. + PINCTRL_PIN(251, "MSDC0E_DAT6"),
  3567. + NULL, "mt2701",
  3568. + MTK_EINT_FUNCTION(0, 136),
  3569. + MTK_FUNCTION(0, "GPIO251"),
  3570. + MTK_FUNCTION(1, "MSDC3_DAT6"),
  3571. + MTK_FUNCTION(6, "PCIE0_WAKE_N")
  3572. + ),
  3573. + MTK_PIN(
  3574. + PINCTRL_PIN(252, "MSDC0E_DAT5"),
  3575. + NULL, "mt2701",
  3576. + MTK_EINT_FUNCTION(0, 137),
  3577. + MTK_FUNCTION(0, "GPIO252"),
  3578. + MTK_FUNCTION(1, "MSDC3_DAT5"),
  3579. + MTK_FUNCTION(6, "PCIE1_CLKREQ_N")
  3580. + ),
  3581. + MTK_PIN(
  3582. + PINCTRL_PIN(253, "MSDC0E_DAT4"),
  3583. + NULL, "mt2701",
  3584. + MTK_EINT_FUNCTION(0, 138),
  3585. + MTK_FUNCTION(0, "GPIO253"),
  3586. + MTK_FUNCTION(1, "MSDC3_DAT4"),
  3587. + MTK_FUNCTION(6, "PCIE1_WAKE_N")
  3588. + ),
  3589. + MTK_PIN(
  3590. + PINCTRL_PIN(254, "MSDC0E_DAT3"),
  3591. + NULL, "mt2701",
  3592. + MTK_EINT_FUNCTION(0, 139),
  3593. + MTK_FUNCTION(0, "GPIO254"),
  3594. + MTK_FUNCTION(1, "MSDC3_DAT3"),
  3595. + MTK_FUNCTION(6, "PCIE2_CLKREQ_N")
  3596. + ),
  3597. + MTK_PIN(
  3598. + PINCTRL_PIN(255, "MSDC0E_DAT2"),
  3599. + NULL, "mt2701",
  3600. + MTK_EINT_FUNCTION(0, 140),
  3601. + MTK_FUNCTION(0, "GPIO255"),
  3602. + MTK_FUNCTION(1, "MSDC3_DAT2"),
  3603. + MTK_FUNCTION(6, "PCIE2_WAKE_N")
  3604. + ),
  3605. + MTK_PIN(
  3606. + PINCTRL_PIN(256, "MSDC0E_DAT1"),
  3607. + NULL, "mt2701",
  3608. + MTK_EINT_FUNCTION(0, 141),
  3609. + MTK_FUNCTION(0, "GPIO256"),
  3610. + MTK_FUNCTION(1, "MSDC3_DAT1")
  3611. + ),
  3612. + MTK_PIN(
  3613. + PINCTRL_PIN(257, "MSDC0E_DAT0"),
  3614. + NULL, "mt2701",
  3615. + MTK_EINT_FUNCTION(0, 142),
  3616. + MTK_FUNCTION(0, "GPIO257"),
  3617. + MTK_FUNCTION(1, "MSDC3_DAT0")
  3618. + ),
  3619. + MTK_PIN(
  3620. + PINCTRL_PIN(258, "MSDC0E_CMD"),
  3621. + NULL, "mt2701",
  3622. + MTK_EINT_FUNCTION(0, 143),
  3623. + MTK_FUNCTION(0, "GPIO258"),
  3624. + MTK_FUNCTION(1, "MSDC3_CMD")
  3625. + ),
  3626. + MTK_PIN(
  3627. + PINCTRL_PIN(259, "MSDC0E_CLK"),
  3628. + NULL, "mt2701",
  3629. + MTK_EINT_FUNCTION(0, 144),
  3630. + MTK_FUNCTION(0, "GPIO259"),
  3631. + MTK_FUNCTION(1, "MSDC3_CLK")
  3632. + ),
  3633. + MTK_PIN(
  3634. + PINCTRL_PIN(260, "MSDC0E_DSL"),
  3635. + NULL, "mt2701",
  3636. + MTK_EINT_FUNCTION(0, 145),
  3637. + MTK_FUNCTION(0, "GPIO260"),
  3638. + MTK_FUNCTION(1, "MSDC3_DSL")
  3639. + ),
  3640. + MTK_PIN(
  3641. + PINCTRL_PIN(261, "MSDC1_INS"),
  3642. + NULL, "mt2701",
  3643. + MTK_EINT_FUNCTION(0, 146),
  3644. + MTK_FUNCTION(0, "GPIO261"),
  3645. + MTK_FUNCTION(1, "MSDC1_INS"),
  3646. + MTK_FUNCTION(7, "DBG_MON_B[29]")
  3647. + ),
  3648. + MTK_PIN(
  3649. + PINCTRL_PIN(262, "G2_TXEN"),
  3650. + NULL, "mt2701",
  3651. + MTK_EINT_FUNCTION(0, 8),
  3652. + MTK_FUNCTION(0, "GPIO262"),
  3653. + MTK_FUNCTION(1, "G2_TXEN")
  3654. + ),
  3655. + MTK_PIN(
  3656. + PINCTRL_PIN(263, "G2_TXD3"),
  3657. + NULL, "mt2701",
  3658. + MTK_EINT_FUNCTION(0, 9),
  3659. + MTK_FUNCTION(0, "GPIO263"),
  3660. + MTK_FUNCTION(1, "G2_TXD3"),
  3661. + MTK_FUNCTION(6, "ANT_SEL5")
  3662. + ),
  3663. + MTK_PIN(
  3664. + PINCTRL_PIN(264, "G2_TXD2"),
  3665. + NULL, "mt2701",
  3666. + MTK_EINT_FUNCTION(0, 10),
  3667. + MTK_FUNCTION(0, "GPIO264"),
  3668. + MTK_FUNCTION(1, "G2_TXD2"),
  3669. + MTK_FUNCTION(6, "ANT_SEL4")
  3670. + ),
  3671. + MTK_PIN(
  3672. + PINCTRL_PIN(265, "G2_TXD1"),
  3673. + NULL, "mt2701",
  3674. + MTK_EINT_FUNCTION(0, 11),
  3675. + MTK_FUNCTION(0, "GPIO265"),
  3676. + MTK_FUNCTION(1, "G2_TXD1"),
  3677. + MTK_FUNCTION(6, "ANT_SEL3")
  3678. + ),
  3679. + MTK_PIN(
  3680. + PINCTRL_PIN(266, "G2_TXD0"),
  3681. + NULL, "mt2701",
  3682. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3683. + MTK_FUNCTION(0, "GPIO266"),
  3684. + MTK_FUNCTION(1, "G2_TXD0"),
  3685. + MTK_FUNCTION(6, "ANT_SEL2")
  3686. + ),
  3687. + MTK_PIN(
  3688. + PINCTRL_PIN(267, "G2_TXC"),
  3689. + NULL, "mt2701",
  3690. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3691. + MTK_FUNCTION(0, "GPIO267"),
  3692. + MTK_FUNCTION(1, "G2_TXC")
  3693. + ),
  3694. + MTK_PIN(
  3695. + PINCTRL_PIN(268, "G2_RXC"),
  3696. + NULL, "mt2701",
  3697. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3698. + MTK_FUNCTION(0, "GPIO268"),
  3699. + MTK_FUNCTION(1, "G2_RXC")
  3700. + ),
  3701. + MTK_PIN(
  3702. + PINCTRL_PIN(269, "G2_RXD0"),
  3703. + NULL, "mt2701",
  3704. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3705. + MTK_FUNCTION(0, "GPIO269"),
  3706. + MTK_FUNCTION(1, "G2_RXD0")
  3707. + ),
  3708. + MTK_PIN(
  3709. + PINCTRL_PIN(270, "G2_RXD1"),
  3710. + NULL, "mt2701",
  3711. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3712. + MTK_FUNCTION(0, "GPIO270"),
  3713. + MTK_FUNCTION(1, "G2_RXD1")
  3714. + ),
  3715. + MTK_PIN(
  3716. + PINCTRL_PIN(271, "G2_RXD2"),
  3717. + NULL, "mt2701",
  3718. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3719. + MTK_FUNCTION(0, "GPIO271"),
  3720. + MTK_FUNCTION(1, "G2_RXD2")
  3721. + ),
  3722. + MTK_PIN(
  3723. + PINCTRL_PIN(272, "G2_RXD3"),
  3724. + NULL, "mt2701",
  3725. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3726. + MTK_FUNCTION(0, "GPIO272"),
  3727. + MTK_FUNCTION(1, "G2_RXD3")
  3728. + ),
  3729. + MTK_PIN(
  3730. + PINCTRL_PIN(273, "ESW_INT"),
  3731. + NULL, "mt2701",
  3732. + MTK_EINT_FUNCTION(0, 168),
  3733. + MTK_FUNCTION(0, "GPIO273"),
  3734. + MTK_FUNCTION(1, "ESW_INT")
  3735. + ),
  3736. + MTK_PIN(
  3737. + PINCTRL_PIN(274, "G2_RXDV"),
  3738. + NULL, "mt2701",
  3739. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3740. + MTK_FUNCTION(0, "GPIO274"),
  3741. + MTK_FUNCTION(1, "G2_RXDV")
  3742. + ),
  3743. + MTK_PIN(
  3744. + PINCTRL_PIN(275, "MDC"),
  3745. + NULL, "mt2701",
  3746. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3747. + MTK_FUNCTION(0, "GPIO275"),
  3748. + MTK_FUNCTION(1, "MDC"),
  3749. + MTK_FUNCTION(6, "ANT_SEL0")
  3750. + ),
  3751. + MTK_PIN(
  3752. + PINCTRL_PIN(276, "MDIO"),
  3753. + NULL, "mt2701",
  3754. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3755. + MTK_FUNCTION(0, "GPIO276"),
  3756. + MTK_FUNCTION(1, "MDIO"),
  3757. + MTK_FUNCTION(6, "ANT_SEL1")
  3758. + ),
  3759. + MTK_PIN(
  3760. + PINCTRL_PIN(277, "ESW_RST"),
  3761. + NULL, "mt2701",
  3762. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3763. + MTK_FUNCTION(0, "GPIO277"),
  3764. + MTK_FUNCTION(1, "ESW_RST")
  3765. + ),
  3766. + MTK_PIN(
  3767. + PINCTRL_PIN(278, "JTAG_RESET"),
  3768. + NULL, "mt2701",
  3769. + MTK_EINT_FUNCTION(0, 147),
  3770. + MTK_FUNCTION(0, "GPIO278"),
  3771. + MTK_FUNCTION(1, "JTAG_RESET")
  3772. + ),
  3773. + MTK_PIN(
  3774. + PINCTRL_PIN(279, "USB3_RES_BOND"),
  3775. + NULL, "mt2701",
  3776. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  3777. + MTK_FUNCTION(0, "GPIO279"),
  3778. + MTK_FUNCTION(1, "USB3_RES_BOND")
  3779. + ),
  3780. +};
  3781. +
  3782. +#endif /* __PINCTRL_MTK_MT2701_H */