0016-pinctrl-dt-bindings-Add-pinctrl-file-for-mt7623.patch 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379
  1. From 641ccb565a934ffaa30b828f2361e6f57325c70a Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Sat, 27 Jun 2015 13:13:05 +0200
  4. Subject: [PATCH 016/102] pinctrl: dt bindings: Add pinctrl file for mt7623
  5. Add the driver and header files required to make pinctrl work on MediaTek
  6. MT7623.
  7. Signed-off-by: John Crispin <blogic@openwrt.org>
  8. ---
  9. drivers/pinctrl/mediatek/Kconfig | 6 +
  10. drivers/pinctrl/mediatek/Makefile | 1 +
  11. drivers/pinctrl/mediatek/pinctrl-mt7623.c | 380 +++++
  12. drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h | 1937 +++++++++++++++++++++++++
  13. include/dt-bindings/pinctrl/mt7623-pinfunc.h | 3 +
  14. 5 files changed, 2327 insertions(+)
  15. create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7623.c
  16. create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
  17. --- a/drivers/pinctrl/mediatek/Kconfig
  18. +++ b/drivers/pinctrl/mediatek/Kconfig
  19. @@ -15,6 +15,12 @@ config PINCTRL_MT2701
  20. default MACH_MT2701
  21. select PINCTRL_MTK_COMMON
  22. +config PINCTRL_MT7623
  23. + bool "Mediatek MT7623 pin control" if COMPILE_TEST && !MACH_MT7623
  24. + depends on OF
  25. + default MACH_MT7623
  26. + select PINCTRL_MTK_COMMON
  27. +
  28. config PINCTRL_MT8135
  29. bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
  30. depends on OF
  31. --- a/drivers/pinctrl/mediatek/Makefile
  32. +++ b/drivers/pinctrl/mediatek/Makefile
  33. @@ -3,6 +3,7 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON) += pinc
  34. # SoC Drivers
  35. obj-$(CONFIG_PINCTRL_MT2701) += pinctrl-mt2701.o
  36. +obj-$(CONFIG_PINCTRL_MT7623) += pinctrl-mt7623.o
  37. obj-$(CONFIG_PINCTRL_MT8135) += pinctrl-mt8135.o
  38. obj-$(CONFIG_PINCTRL_MT8127) += pinctrl-mt8127.o
  39. obj-$(CONFIG_PINCTRL_MT8173) += pinctrl-mt8173.o
  40. --- /dev/null
  41. +++ b/drivers/pinctrl/mediatek/pinctrl-mt7623.c
  42. @@ -0,0 +1,380 @@
  43. +/*
  44. + * Copyright (c) 2016 John Crispin <blogic@openwrt.org>
  45. + *
  46. + * This program is free software; you can redistribute it and/or modify
  47. + * it under the terms of the GNU General Public License version 2 as
  48. + * published by the Free Software Foundation.
  49. + *
  50. + * This program is distributed in the hope that it will be useful,
  51. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  52. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  53. + * GNU General Public License for more details.
  54. + */
  55. +
  56. +#include <dt-bindings/pinctrl/mt65xx.h>
  57. +#include <linux/module.h>
  58. +#include <linux/of.h>
  59. +#include <linux/of_device.h>
  60. +#include <linux/platform_device.h>
  61. +#include <linux/pinctrl/pinctrl.h>
  62. +#include <linux/regmap.h>
  63. +
  64. +#include "pinctrl-mtk-common.h"
  65. +#include "pinctrl-mtk-mt7623.h"
  66. +
  67. +static const struct mtk_drv_group_desc mt7623_drv_grp[] = {
  68. + /* 0E4E8SR 4/8/12/16 */
  69. + MTK_DRV_GRP(4, 16, 1, 2, 4),
  70. + /* 0E2E4SR 2/4/6/8 */
  71. + MTK_DRV_GRP(2, 8, 1, 2, 2),
  72. + /* E8E4E2 2/4/6/8/10/12/14/16 */
  73. + MTK_DRV_GRP(2, 16, 0, 2, 2)
  74. +};
  75. +
  76. +#define DRV_SEL0 0xf50
  77. +#define DRV_SEL1 0xf60
  78. +#define DRV_SEL2 0xf70
  79. +#define DRV_SEL3 0xf80
  80. +#define DRV_SEL4 0xf90
  81. +#define DRV_SEL5 0xfa0
  82. +#define DRV_SEL6 0xfb0
  83. +#define DRV_SEL7 0xfe0
  84. +#define DRV_SEL8 0xfd0
  85. +#define DRV_SEL9 0xff0
  86. +#define DRV_SEL10 0xf00
  87. +
  88. +#define MSDC0_CTRL0 0xcc0
  89. +#define MSDC0_CTRL1 0xcd0
  90. +#define MSDC0_CTRL2 0xce0
  91. +#define MSDC0_CTRL3 0xcf0
  92. +#define MSDC0_CTRL4 0xd00
  93. +#define MSDC0_CTRL5 0xd10
  94. +#define MSDC0_CTRL6 0xd20
  95. +#define MSDC1_CTRL0 0xd30
  96. +#define MSDC1_CTRL1 0xd40
  97. +#define MSDC1_CTRL2 0xd50
  98. +#define MSDC1_CTRL3 0xd60
  99. +#define MSDC1_CTRL4 0xd70
  100. +#define MSDC1_CTRL5 0xd80
  101. +#define MSDC1_CTRL6 0xd90
  102. +
  103. +#define IES_EN0 0xb20
  104. +#define IES_EN1 0xb30
  105. +#define IES_EN2 0xb40
  106. +
  107. +#define SMT_EN0 0xb50
  108. +#define SMT_EN1 0xb60
  109. +#define SMT_EN2 0xb70
  110. +
  111. +static const struct mtk_pin_drv_grp mt7623_pin_drv[] = {
  112. + MTK_PIN_DRV_GRP(0, DRV_SEL0, 0, 1),
  113. + MTK_PIN_DRV_GRP(1, DRV_SEL0, 0, 1),
  114. + MTK_PIN_DRV_GRP(2, DRV_SEL0, 0, 1),
  115. + MTK_PIN_DRV_GRP(3, DRV_SEL0, 0, 1),
  116. + MTK_PIN_DRV_GRP(4, DRV_SEL0, 0, 1),
  117. + MTK_PIN_DRV_GRP(5, DRV_SEL0, 0, 1),
  118. + MTK_PIN_DRV_GRP(6, DRV_SEL0, 0, 1),
  119. + MTK_PIN_DRV_GRP(7, DRV_SEL0, 4, 1),
  120. + MTK_PIN_DRV_GRP(8, DRV_SEL0, 4, 1),
  121. + MTK_PIN_DRV_GRP(9, DRV_SEL0, 4, 1),
  122. + MTK_PIN_DRV_GRP(10, DRV_SEL0, 8, 1),
  123. + MTK_PIN_DRV_GRP(11, DRV_SEL0, 8, 1),
  124. + MTK_PIN_DRV_GRP(12, DRV_SEL0, 8, 1),
  125. + MTK_PIN_DRV_GRP(13, DRV_SEL0, 8, 1),
  126. + MTK_PIN_DRV_GRP(14, DRV_SEL0, 12, 0),
  127. + MTK_PIN_DRV_GRP(15, DRV_SEL0, 12, 0),
  128. + MTK_PIN_DRV_GRP(18, DRV_SEL1, 4, 0),
  129. + MTK_PIN_DRV_GRP(19, DRV_SEL1, 4, 0),
  130. + MTK_PIN_DRV_GRP(20, DRV_SEL1, 4, 0),
  131. + MTK_PIN_DRV_GRP(21, DRV_SEL1, 4, 0),
  132. + MTK_PIN_DRV_GRP(22, DRV_SEL1, 8, 0),
  133. + MTK_PIN_DRV_GRP(23, DRV_SEL1, 8, 0),
  134. + MTK_PIN_DRV_GRP(24, DRV_SEL1, 8, 0),
  135. + MTK_PIN_DRV_GRP(25, DRV_SEL1, 8, 0),
  136. + MTK_PIN_DRV_GRP(26, DRV_SEL1, 8, 0),
  137. + MTK_PIN_DRV_GRP(27, DRV_SEL1, 12, 0),
  138. + MTK_PIN_DRV_GRP(28, DRV_SEL1, 12, 0),
  139. + MTK_PIN_DRV_GRP(29, DRV_SEL1, 12, 0),
  140. + MTK_PIN_DRV_GRP(33, DRV_SEL2, 0, 0),
  141. + MTK_PIN_DRV_GRP(34, DRV_SEL2, 0, 0),
  142. + MTK_PIN_DRV_GRP(35, DRV_SEL2, 0, 0),
  143. + MTK_PIN_DRV_GRP(36, DRV_SEL2, 0, 0),
  144. + MTK_PIN_DRV_GRP(37, DRV_SEL2, 0, 0),
  145. + MTK_PIN_DRV_GRP(39, DRV_SEL2, 8, 1),
  146. + MTK_PIN_DRV_GRP(40, DRV_SEL2, 8, 1),
  147. + MTK_PIN_DRV_GRP(41, DRV_SEL2, 8, 1),
  148. + MTK_PIN_DRV_GRP(42, DRV_SEL2, 8, 1),
  149. + MTK_PIN_DRV_GRP(43, DRV_SEL2, 12, 0),
  150. + MTK_PIN_DRV_GRP(44, DRV_SEL2, 12, 0),
  151. + MTK_PIN_DRV_GRP(45, DRV_SEL2, 12, 0),
  152. + MTK_PIN_DRV_GRP(47, DRV_SEL3, 0, 0),
  153. + MTK_PIN_DRV_GRP(48, DRV_SEL3, 0, 0),
  154. + MTK_PIN_DRV_GRP(49, DRV_SEL3, 4, 0),
  155. + MTK_PIN_DRV_GRP(53, DRV_SEL3, 12, 0),
  156. + MTK_PIN_DRV_GRP(54, DRV_SEL3, 12, 0),
  157. + MTK_PIN_DRV_GRP(55, DRV_SEL3, 12, 0),
  158. + MTK_PIN_DRV_GRP(56, DRV_SEL3, 12, 0),
  159. + MTK_PIN_DRV_GRP(60, DRV_SEL4, 8, 1),
  160. + MTK_PIN_DRV_GRP(61, DRV_SEL4, 8, 1),
  161. + MTK_PIN_DRV_GRP(62, DRV_SEL4, 8, 1),
  162. + MTK_PIN_DRV_GRP(63, DRV_SEL4, 12, 1),
  163. + MTK_PIN_DRV_GRP(64, DRV_SEL4, 12, 1),
  164. + MTK_PIN_DRV_GRP(65, DRV_SEL4, 12, 1),
  165. + MTK_PIN_DRV_GRP(66, DRV_SEL5, 0, 1),
  166. + MTK_PIN_DRV_GRP(67, DRV_SEL5, 0, 1),
  167. + MTK_PIN_DRV_GRP(68, DRV_SEL5, 0, 1),
  168. + MTK_PIN_DRV_GRP(69, DRV_SEL5, 0, 1),
  169. + MTK_PIN_DRV_GRP(70, DRV_SEL5, 0, 1),
  170. + MTK_PIN_DRV_GRP(71, DRV_SEL5, 0, 1),
  171. + MTK_PIN_DRV_GRP(72, DRV_SEL3, 4, 0),
  172. + MTK_PIN_DRV_GRP(73, DRV_SEL3, 4, 0),
  173. + MTK_PIN_DRV_GRP(74, DRV_SEL3, 4, 0),
  174. + MTK_PIN_DRV_GRP(83, DRV_SEL5, 0, 1),
  175. + MTK_PIN_DRV_GRP(84, DRV_SEL5, 0, 1),
  176. + MTK_PIN_DRV_GRP(105, MSDC1_CTRL1, 0, 1),
  177. + MTK_PIN_DRV_GRP(106, MSDC1_CTRL0, 0, 1),
  178. + MTK_PIN_DRV_GRP(107, MSDC1_CTRL2, 0, 1),
  179. + MTK_PIN_DRV_GRP(108, MSDC1_CTRL2, 0, 1),
  180. + MTK_PIN_DRV_GRP(109, MSDC1_CTRL2, 0, 1),
  181. + MTK_PIN_DRV_GRP(110, MSDC1_CTRL2, 0, 1),
  182. + MTK_PIN_DRV_GRP(111, MSDC0_CTRL2, 0, 1),
  183. + MTK_PIN_DRV_GRP(112, MSDC0_CTRL2, 0, 1),
  184. + MTK_PIN_DRV_GRP(113, MSDC0_CTRL2, 0, 1),
  185. + MTK_PIN_DRV_GRP(114, MSDC0_CTRL2, 0, 1),
  186. + MTK_PIN_DRV_GRP(115, MSDC0_CTRL2, 0, 1),
  187. + MTK_PIN_DRV_GRP(116, MSDC0_CTRL1, 0, 1),
  188. + MTK_PIN_DRV_GRP(117, MSDC0_CTRL0, 0, 1),
  189. + MTK_PIN_DRV_GRP(118, MSDC0_CTRL2, 0, 1),
  190. + MTK_PIN_DRV_GRP(119, MSDC0_CTRL2, 0, 1),
  191. + MTK_PIN_DRV_GRP(120, MSDC0_CTRL2, 0, 1),
  192. + MTK_PIN_DRV_GRP(121, MSDC0_CTRL2, 0, 1),
  193. + MTK_PIN_DRV_GRP(126, DRV_SEL3, 4, 0),
  194. + MTK_PIN_DRV_GRP(199, DRV_SEL0, 4, 1),
  195. + MTK_PIN_DRV_GRP(200, DRV_SEL8, 0, 0),
  196. + MTK_PIN_DRV_GRP(201, DRV_SEL8, 0, 0),
  197. + MTK_PIN_DRV_GRP(203, DRV_SEL8, 4, 0),
  198. + MTK_PIN_DRV_GRP(204, DRV_SEL8, 4, 0),
  199. + MTK_PIN_DRV_GRP(205, DRV_SEL8, 4, 0),
  200. + MTK_PIN_DRV_GRP(206, DRV_SEL8, 4, 0),
  201. + MTK_PIN_DRV_GRP(207, DRV_SEL8, 4, 0),
  202. + MTK_PIN_DRV_GRP(208, DRV_SEL8, 8, 0),
  203. + MTK_PIN_DRV_GRP(209, DRV_SEL8, 8, 0),
  204. + MTK_PIN_DRV_GRP(236, DRV_SEL9, 4, 0),
  205. + MTK_PIN_DRV_GRP(237, DRV_SEL9, 4, 0),
  206. + MTK_PIN_DRV_GRP(238, DRV_SEL9, 4, 0),
  207. + MTK_PIN_DRV_GRP(239, DRV_SEL9, 4, 0),
  208. + MTK_PIN_DRV_GRP(240, DRV_SEL9, 4, 0),
  209. + MTK_PIN_DRV_GRP(241, DRV_SEL9, 4, 0),
  210. + MTK_PIN_DRV_GRP(242, DRV_SEL9, 8, 0),
  211. + MTK_PIN_DRV_GRP(243, DRV_SEL9, 8, 0),
  212. + MTK_PIN_DRV_GRP(257, MSDC0_CTRL2, 0, 1),
  213. + MTK_PIN_DRV_GRP(261, MSDC1_CTRL2, 0, 1),
  214. + MTK_PIN_DRV_GRP(262, DRV_SEL10, 8, 0),
  215. + MTK_PIN_DRV_GRP(263, DRV_SEL10, 8, 0),
  216. + MTK_PIN_DRV_GRP(264, DRV_SEL10, 8, 0),
  217. + MTK_PIN_DRV_GRP(265, DRV_SEL10, 8, 0),
  218. + MTK_PIN_DRV_GRP(266, DRV_SEL10, 8, 0),
  219. + MTK_PIN_DRV_GRP(267, DRV_SEL10, 8, 0),
  220. + MTK_PIN_DRV_GRP(268, DRV_SEL10, 8, 0),
  221. + MTK_PIN_DRV_GRP(269, DRV_SEL10, 8, 0),
  222. + MTK_PIN_DRV_GRP(270, DRV_SEL10, 8, 0),
  223. + MTK_PIN_DRV_GRP(271, DRV_SEL10, 8, 0),
  224. + MTK_PIN_DRV_GRP(272, DRV_SEL10, 8, 0),
  225. + MTK_PIN_DRV_GRP(274, DRV_SEL10, 8, 0),
  226. + MTK_PIN_DRV_GRP(275, DRV_SEL10, 8, 0),
  227. + MTK_PIN_DRV_GRP(276, DRV_SEL10, 8, 0),
  228. + MTK_PIN_DRV_GRP(278, DRV_SEL2, 8, 1),
  229. +};
  230. +
  231. +static const struct mtk_pin_spec_pupd_set_samereg mt7623_spec_pupd[] = {
  232. + MTK_PIN_PUPD_SPEC_SR(105, MSDC1_CTRL1, 8, 9, 10),
  233. + MTK_PIN_PUPD_SPEC_SR(106, MSDC1_CTRL0, 8, 9, 10),
  234. + MTK_PIN_PUPD_SPEC_SR(107, MSDC1_CTRL3, 0, 1, 2),
  235. + MTK_PIN_PUPD_SPEC_SR(108, MSDC1_CTRL3, 4, 5, 6),
  236. + MTK_PIN_PUPD_SPEC_SR(109, MSDC1_CTRL3, 8, 9, 10),
  237. + MTK_PIN_PUPD_SPEC_SR(110, MSDC1_CTRL3, 12, 13, 14),
  238. + MTK_PIN_PUPD_SPEC_SR(111, MSDC0_CTRL4, 12, 13, 14),
  239. + MTK_PIN_PUPD_SPEC_SR(112, MSDC0_CTRL4, 8, 9, 10),
  240. + MTK_PIN_PUPD_SPEC_SR(113, MSDC0_CTRL4, 4, 5, 6),
  241. + MTK_PIN_PUPD_SPEC_SR(114, MSDC0_CTRL4, 0, 1, 2),
  242. + MTK_PIN_PUPD_SPEC_SR(115, MSDC0_CTRL5, 0, 1, 2),
  243. + MTK_PIN_PUPD_SPEC_SR(116, MSDC0_CTRL1, 8, 9, 10),
  244. + MTK_PIN_PUPD_SPEC_SR(117, MSDC0_CTRL0, 8, 9, 10),
  245. + MTK_PIN_PUPD_SPEC_SR(118, MSDC0_CTRL3, 12, 13, 14),
  246. + MTK_PIN_PUPD_SPEC_SR(119, MSDC0_CTRL3, 8, 9, 10),
  247. + MTK_PIN_PUPD_SPEC_SR(120, MSDC0_CTRL3, 4, 5, 6),
  248. + MTK_PIN_PUPD_SPEC_SR(121, MSDC0_CTRL3, 0, 1, 2),
  249. +};
  250. +
  251. +static int mt7623_spec_pull_set(struct regmap *regmap, unsigned int pin,
  252. + unsigned char align, bool isup, unsigned int r1r0)
  253. +{
  254. + return mtk_pctrl_spec_pull_set_samereg(regmap, mt7623_spec_pupd,
  255. + ARRAY_SIZE(mt7623_spec_pupd), pin, align, isup, r1r0);
  256. +}
  257. +
  258. +static const struct mtk_pin_ies_smt_set mt7623_ies_set[] = {
  259. + MTK_PIN_IES_SMT_SPEC(0, 6, IES_EN0, 0),
  260. + MTK_PIN_IES_SMT_SPEC(7, 9, IES_EN0, 1),
  261. + MTK_PIN_IES_SMT_SPEC(10, 13, IES_EN0, 2),
  262. + MTK_PIN_IES_SMT_SPEC(14, 15, IES_EN0, 3),
  263. + MTK_PIN_IES_SMT_SPEC(18, 21, IES_EN0, 5),
  264. + MTK_PIN_IES_SMT_SPEC(22, 26, IES_EN0, 6),
  265. + MTK_PIN_IES_SMT_SPEC(27, 29, IES_EN0, 7),
  266. + MTK_PIN_IES_SMT_SPEC(33, 37, IES_EN0, 8),
  267. + MTK_PIN_IES_SMT_SPEC(39, 42, IES_EN0, 9),
  268. + MTK_PIN_IES_SMT_SPEC(43, 45, IES_EN0, 10),
  269. + MTK_PIN_IES_SMT_SPEC(47, 48, IES_EN0, 11),
  270. + MTK_PIN_IES_SMT_SPEC(49, 49, IES_EN0, 12),
  271. + MTK_PIN_IES_SMT_SPEC(53, 56, IES_EN0, 14),
  272. + MTK_PIN_IES_SMT_SPEC(60, 62, IES_EN1, 0),
  273. + MTK_PIN_IES_SMT_SPEC(63, 65, IES_EN1, 1),
  274. + MTK_PIN_IES_SMT_SPEC(66, 71, IES_EN1, 2),
  275. + MTK_PIN_IES_SMT_SPEC(72, 74, IES_EN0, 12),
  276. + MTK_PIN_IES_SMT_SPEC(75, 76, IES_EN1, 3),
  277. + MTK_PIN_IES_SMT_SPEC(83, 84, IES_EN1, 2),
  278. + MTK_PIN_IES_SMT_SPEC(105, 121, MSDC1_CTRL1, 4),
  279. + MTK_PIN_IES_SMT_SPEC(122, 125, IES_EN1, 7),
  280. + MTK_PIN_IES_SMT_SPEC(126, 126, IES_EN0, 12),
  281. + MTK_PIN_IES_SMT_SPEC(199, 201, IES_EN0, 1),
  282. + MTK_PIN_IES_SMT_SPEC(203, 207, IES_EN2, 2),
  283. + MTK_PIN_IES_SMT_SPEC(208, 209, IES_EN2, 3),
  284. + MTK_PIN_IES_SMT_SPEC(236, 241, IES_EN2, 6),
  285. + MTK_PIN_IES_SMT_SPEC(242, 243, IES_EN2, 7),
  286. + MTK_PIN_IES_SMT_SPEC(261, 261, MSDC1_CTRL2, 4),
  287. + MTK_PIN_IES_SMT_SPEC(262, 272, IES_EN2, 12),
  288. + MTK_PIN_IES_SMT_SPEC(274, 276, IES_EN2, 12),
  289. + MTK_PIN_IES_SMT_SPEC(278, 278, IES_EN2, 13),
  290. +};
  291. +
  292. +static const struct mtk_pin_ies_smt_set mt7623_smt_set[] = {
  293. + MTK_PIN_IES_SMT_SPEC(0, 6, SMT_EN0, 0),
  294. + MTK_PIN_IES_SMT_SPEC(7, 9, SMT_EN0, 1),
  295. + MTK_PIN_IES_SMT_SPEC(10, 13, SMT_EN0, 2),
  296. + MTK_PIN_IES_SMT_SPEC(14, 15, SMT_EN0, 3),
  297. + MTK_PIN_IES_SMT_SPEC(18, 21, SMT_EN0, 5),
  298. + MTK_PIN_IES_SMT_SPEC(22, 26, SMT_EN0, 6),
  299. + MTK_PIN_IES_SMT_SPEC(27, 29, SMT_EN0, 7),
  300. + MTK_PIN_IES_SMT_SPEC(33, 37, SMT_EN0, 8),
  301. + MTK_PIN_IES_SMT_SPEC(39, 42, SMT_EN0, 9),
  302. + MTK_PIN_IES_SMT_SPEC(43, 45, SMT_EN0, 10),
  303. + MTK_PIN_IES_SMT_SPEC(47, 48, SMT_EN0, 11),
  304. + MTK_PIN_IES_SMT_SPEC(49, 49, SMT_EN0, 12),
  305. + MTK_PIN_IES_SMT_SPEC(53, 56, SMT_EN0, 14),
  306. + MTK_PIN_IES_SMT_SPEC(60, 62, SMT_EN1, 0),
  307. + MTK_PIN_IES_SMT_SPEC(63, 65, SMT_EN1, 1),
  308. + MTK_PIN_IES_SMT_SPEC(66, 71, SMT_EN1, 2),
  309. + MTK_PIN_IES_SMT_SPEC(72, 74, SMT_EN0, 12),
  310. + MTK_PIN_IES_SMT_SPEC(75, 76, SMT_EN1, 3),
  311. + MTK_PIN_IES_SMT_SPEC(83, 84, SMT_EN1, 2),
  312. + MTK_PIN_IES_SMT_SPEC(105, 106, MSDC1_CTRL1, 11),
  313. + MTK_PIN_IES_SMT_SPEC(107, 107, MSDC1_CTRL3, 3),
  314. + MTK_PIN_IES_SMT_SPEC(108, 108, MSDC1_CTRL3, 7),
  315. + MTK_PIN_IES_SMT_SPEC(109, 109, MSDC1_CTRL3, 11),
  316. + MTK_PIN_IES_SMT_SPEC(110, 111, MSDC1_CTRL3, 15),
  317. + MTK_PIN_IES_SMT_SPEC(112, 112, MSDC0_CTRL4, 11),
  318. + MTK_PIN_IES_SMT_SPEC(113, 113, MSDC0_CTRL4, 7),
  319. + MTK_PIN_IES_SMT_SPEC(114, 115, MSDC0_CTRL4, 3),
  320. + MTK_PIN_IES_SMT_SPEC(116, 117, MSDC0_CTRL1, 11),
  321. + MTK_PIN_IES_SMT_SPEC(118, 118, MSDC0_CTRL3, 15),
  322. + MTK_PIN_IES_SMT_SPEC(119, 119, MSDC0_CTRL3, 11),
  323. + MTK_PIN_IES_SMT_SPEC(120, 120, MSDC0_CTRL3, 7),
  324. + MTK_PIN_IES_SMT_SPEC(121, 121, MSDC0_CTRL3, 3),
  325. + MTK_PIN_IES_SMT_SPEC(122, 125, SMT_EN1, 7),
  326. + MTK_PIN_IES_SMT_SPEC(126, 126, SMT_EN0, 12),
  327. + MTK_PIN_IES_SMT_SPEC(199, 201, SMT_EN0, 1),
  328. + MTK_PIN_IES_SMT_SPEC(203, 207, SMT_EN2, 2),
  329. + MTK_PIN_IES_SMT_SPEC(208, 209, SMT_EN2, 3),
  330. + MTK_PIN_IES_SMT_SPEC(236, 241, SMT_EN2, 6),
  331. + MTK_PIN_IES_SMT_SPEC(242, 243, SMT_EN2, 7),
  332. + MTK_PIN_IES_SMT_SPEC(261, 261, MSDC1_CTRL6, 3),
  333. + MTK_PIN_IES_SMT_SPEC(262, 272, SMT_EN2, 12),
  334. + MTK_PIN_IES_SMT_SPEC(274, 276, SMT_EN2, 12),
  335. + MTK_PIN_IES_SMT_SPEC(278, 278, SMT_EN2, 13),
  336. +};
  337. +
  338. +static int mt7623_ies_smt_set(struct regmap *regmap, unsigned int pin,
  339. + unsigned char align, int value, enum pin_config_param arg)
  340. +{
  341. + if (arg == PIN_CONFIG_INPUT_ENABLE)
  342. + return mtk_pconf_spec_set_ies_smt_range(regmap, mt7623_ies_set,
  343. + ARRAY_SIZE(mt7623_ies_set), pin, align, value);
  344. + else if (arg == PIN_CONFIG_INPUT_SCHMITT_ENABLE)
  345. + return mtk_pconf_spec_set_ies_smt_range(regmap, mt7623_smt_set,
  346. + ARRAY_SIZE(mt7623_smt_set), pin, align, value);
  347. + return -EINVAL;
  348. +}
  349. +
  350. +static const struct mtk_pinctrl_devdata mt7623_pinctrl_data = {
  351. + .pins = mtk_pins_mt7623,
  352. + .npins = ARRAY_SIZE(mtk_pins_mt7623),
  353. + .grp_desc = mt7623_drv_grp,
  354. + .n_grp_cls = ARRAY_SIZE(mt7623_drv_grp),
  355. + .pin_drv_grp = mt7623_pin_drv,
  356. + .n_pin_drv_grps = ARRAY_SIZE(mt7623_pin_drv),
  357. + .spec_pull_set = mt7623_spec_pull_set,
  358. + .spec_ies_smt_set = mt7623_ies_smt_set,
  359. + .dir_offset = 0x0000,
  360. + .pullen_offset = 0x0150,
  361. + .pullsel_offset = 0x0280,
  362. + .dout_offset = 0x0500,
  363. + .din_offset = 0x0630,
  364. + .pinmux_offset = 0x0760,
  365. + .type1_start = 280,
  366. + .type1_end = 280,
  367. + .port_shf = 4,
  368. + .port_mask = 0x1f,
  369. + .port_align = 4,
  370. + .eint_offsets = {
  371. + .name = "mt7623_eint",
  372. + .stat = 0x000,
  373. + .ack = 0x040,
  374. + .mask = 0x080,
  375. + .mask_set = 0x0c0,
  376. + .mask_clr = 0x100,
  377. + .sens = 0x140,
  378. + .sens_set = 0x180,
  379. + .sens_clr = 0x1c0,
  380. + .soft = 0x200,
  381. + .soft_set = 0x240,
  382. + .soft_clr = 0x280,
  383. + .pol = 0x300,
  384. + .pol_set = 0x340,
  385. + .pol_clr = 0x380,
  386. + .dom_en = 0x400,
  387. + .dbnc_ctrl = 0x500,
  388. + .dbnc_set = 0x600,
  389. + .dbnc_clr = 0x700,
  390. + .port_mask = 6,
  391. + .ports = 6,
  392. + },
  393. + .ap_num = 169,
  394. + .db_cnt = 16,
  395. +};
  396. +
  397. +static int mt7623_pinctrl_probe(struct platform_device *pdev)
  398. +{
  399. + return mtk_pctrl_init(pdev, &mt7623_pinctrl_data, NULL);
  400. +}
  401. +
  402. +static const struct of_device_id mt7623_pctrl_match[] = {
  403. + { .compatible = "mediatek,mt7623-pinctrl", },
  404. + {}
  405. +};
  406. +MODULE_DEVICE_TABLE(of, mt7623_pctrl_match);
  407. +
  408. +static struct platform_driver mtk_pinctrl_driver = {
  409. + .probe = mt7623_pinctrl_probe,
  410. + .driver = {
  411. + .name = "mediatek-mt7623-pinctrl",
  412. + .owner = THIS_MODULE,
  413. + .of_match_table = mt7623_pctrl_match,
  414. + },
  415. +};
  416. +
  417. +static int __init mtk_pinctrl_init(void)
  418. +{
  419. + return platform_driver_register(&mtk_pinctrl_driver);
  420. +}
  421. +
  422. +arch_initcall(mtk_pinctrl_init);
  423. --- /dev/null
  424. +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
  425. @@ -0,0 +1,1937 @@
  426. +/*
  427. + * Copyright (c) 2016 John Crispin <blogic@openwrt.org>
  428. + *
  429. + * This program is free software; you can redistribute it and/or modify
  430. + * it under the terms of the GNU General Public License version 2 as
  431. + * published by the Free Software Foundation.
  432. + *
  433. + * This program is distributed in the hope that it will be useful,
  434. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  435. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  436. + * GNU General Public License for more details.
  437. + */
  438. +
  439. +#ifndef __PINCTRL_MTK_MT7623_H
  440. +#define __PINCTRL_MTK_MT7623_H
  441. +
  442. +#include <linux/pinctrl/pinctrl.h>
  443. +#include "pinctrl-mtk-common.h"
  444. +
  445. +static const struct mtk_desc_pin mtk_pins_mt7623[] = {
  446. + MTK_PIN(
  447. + PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
  448. + "J20", "mt7623",
  449. + MTK_EINT_FUNCTION(0, 148),
  450. + MTK_FUNCTION(0, "GPIO0"),
  451. + MTK_FUNCTION(1, "PWRAP_SPIDO"),
  452. + MTK_FUNCTION(2, "PWRAP_SPIDI")
  453. + ),
  454. + MTK_PIN(
  455. + PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
  456. + "D10", "mt7623",
  457. + MTK_EINT_FUNCTION(0, 149),
  458. + MTK_FUNCTION(0, "GPIO1"),
  459. + MTK_FUNCTION(1, "PWRAP_SPIDI"),
  460. + MTK_FUNCTION(2, "PWRAP_SPIDO")
  461. + ),
  462. + MTK_PIN(
  463. + PINCTRL_PIN(2, "PWRAP_INT"),
  464. + "E11", "mt7623",
  465. + MTK_EINT_FUNCTION(0, 150),
  466. + MTK_FUNCTION(0, "GPIO2"),
  467. + MTK_FUNCTION(1, "PWRAP_INT")
  468. + ),
  469. + MTK_PIN(
  470. + PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
  471. + "H12", "mt7623",
  472. + MTK_EINT_FUNCTION(0, 151),
  473. + MTK_FUNCTION(0, "GPIO3"),
  474. + MTK_FUNCTION(1, "PWRAP_SPICK_I")
  475. + ),
  476. + MTK_PIN(
  477. + PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
  478. + "E12", "mt7623",
  479. + MTK_EINT_FUNCTION(0, 152),
  480. + MTK_FUNCTION(0, "GPIO4"),
  481. + MTK_FUNCTION(1, "PWRAP_SPICS_B_I")
  482. + ),
  483. + MTK_PIN(
  484. + PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
  485. + "H11", "mt7623",
  486. + MTK_EINT_FUNCTION(0, 155),
  487. + MTK_FUNCTION(0, "GPIO5"),
  488. + MTK_FUNCTION(1, "PWRAP_SPICK2_I")
  489. + ),
  490. + MTK_PIN(
  491. + PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
  492. + "G11", "mt7623",
  493. + MTK_EINT_FUNCTION(0, 156),
  494. + MTK_FUNCTION(0, "GPIO6"),
  495. + MTK_FUNCTION(1, "PWRAP_SPICS2_B_I")
  496. + ),
  497. + MTK_PIN(
  498. + PINCTRL_PIN(7, "SPI1_CSN"),
  499. + "G19", "mt7623",
  500. + MTK_EINT_FUNCTION(0, 153),
  501. + MTK_FUNCTION(0, "GPIO7"),
  502. + MTK_FUNCTION(1, "SPI1_CS")
  503. + ),
  504. + MTK_PIN(
  505. + PINCTRL_PIN(8, "SPI1_MI"),
  506. + "F19", "mt7623",
  507. + MTK_EINT_FUNCTION(0, 154),
  508. + MTK_FUNCTION(0, "GPIO8"),
  509. + MTK_FUNCTION(1, "SPI1_MI"),
  510. + MTK_FUNCTION(2, "SPI1_MO")
  511. + ),
  512. + MTK_PIN(
  513. + PINCTRL_PIN(9, "SPI1_MO"),
  514. + "G20", "mt7623",
  515. + MTK_EINT_FUNCTION(0, 157),
  516. + MTK_FUNCTION(0, "GPIO9"),
  517. + MTK_FUNCTION(1, "SPI1_MO"),
  518. + MTK_FUNCTION(2, "SPI1_MI")
  519. + ),
  520. + MTK_PIN(
  521. + PINCTRL_PIN(10, "RTC32K_CK"),
  522. + "A13", "mt7623",
  523. + MTK_EINT_FUNCTION(0, 158),
  524. + MTK_FUNCTION(0, "GPIO10"),
  525. + MTK_FUNCTION(1, "RTC32K_CK")
  526. + ),
  527. + MTK_PIN(
  528. + PINCTRL_PIN(11, "WATCHDOG"),
  529. + "D14", "mt7623",
  530. + MTK_EINT_FUNCTION(0, 159),
  531. + MTK_FUNCTION(0, "GPIO11"),
  532. + MTK_FUNCTION(1, "WATCHDOG")
  533. + ),
  534. + MTK_PIN(
  535. + PINCTRL_PIN(12, "SRCLKENA"),
  536. + "C13", "mt7623",
  537. + MTK_EINT_FUNCTION(0, 169),
  538. + MTK_FUNCTION(0, "GPIO12"),
  539. + MTK_FUNCTION(1, "SRCLKENA")
  540. + ),
  541. + MTK_PIN(
  542. + PINCTRL_PIN(13, "SRCLKENAI"),
  543. + "B13", "mt7623",
  544. + MTK_EINT_FUNCTION(0, 161),
  545. + MTK_FUNCTION(0, "GPIO13"),
  546. + MTK_FUNCTION(1, "SRCLKENAI")
  547. + ),
  548. + MTK_PIN(
  549. + PINCTRL_PIN(14, "GPIO14"),
  550. + "E18", "mt7623",
  551. + MTK_EINT_FUNCTION(0, 162),
  552. + MTK_FUNCTION(0, "GPIO14"),
  553. + MTK_FUNCTION(1, "URXD2"),
  554. + MTK_FUNCTION(2, "UTXD2")
  555. + ),
  556. + MTK_PIN(
  557. + PINCTRL_PIN(15, "GPIO15"),
  558. + "E17", "mt7623",
  559. + MTK_EINT_FUNCTION(0, 163),
  560. + MTK_FUNCTION(0, "GPIO15"),
  561. + MTK_FUNCTION(1, "UTXD2"),
  562. + MTK_FUNCTION(2, "URXD2")
  563. + ),
  564. + MTK_PIN(
  565. + PINCTRL_PIN(16, "GPIO16"),
  566. + NULL, "mt7623",
  567. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  568. + MTK_FUNCTION(0, "GPIO16")
  569. + ),
  570. + MTK_PIN(
  571. + PINCTRL_PIN(17, "GPIO17"),
  572. + NULL, "mt7623",
  573. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  574. + MTK_FUNCTION(0, "GPIO17")
  575. + ),
  576. + MTK_PIN(
  577. + PINCTRL_PIN(18, "PCM_CLK"),
  578. + "C19", "mt7623",
  579. + MTK_EINT_FUNCTION(0, 166),
  580. + MTK_FUNCTION(0, "GPIO18"),
  581. + MTK_FUNCTION(1, "PCM_CLK0"),
  582. + MTK_FUNCTION(6, "AP_PCM_CLKO")
  583. + ),
  584. + MTK_PIN(
  585. + PINCTRL_PIN(19, "PCM_SYNC"),
  586. + "D19", "mt7623",
  587. + MTK_EINT_FUNCTION(0, 167),
  588. + MTK_FUNCTION(0, "GPIO19"),
  589. + MTK_FUNCTION(1, "PCM_SYNC"),
  590. + MTK_FUNCTION(6, "AP_PCM_SYNC")
  591. + ),
  592. + MTK_PIN(
  593. + PINCTRL_PIN(20, "PCM_RX"),
  594. + "D18", "mt7623",
  595. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  596. + MTK_FUNCTION(0, "GPIO20"),
  597. + MTK_FUNCTION(1, "PCM_RX"),
  598. + MTK_FUNCTION(4, "PCM_TX"),
  599. + MTK_FUNCTION(6, "AP_PCM_RX")
  600. + ),
  601. + MTK_PIN(
  602. + PINCTRL_PIN(21, "PCM_TX"),
  603. + "C18", "mt7623",
  604. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  605. + MTK_FUNCTION(0, "GPIO21"),
  606. + MTK_FUNCTION(1, "PCM_TX"),
  607. + MTK_FUNCTION(4, "PCM_RX"),
  608. + MTK_FUNCTION(6, "AP_PCM_TX")
  609. + ),
  610. + MTK_PIN(
  611. + PINCTRL_PIN(22, "EINT0"),
  612. + "H15", "mt7623",
  613. + MTK_EINT_FUNCTION(0, 0),
  614. + MTK_FUNCTION(0, "GPIO22"),
  615. + MTK_FUNCTION(1, "UCTS0"),
  616. + MTK_FUNCTION(2, "PCIE0_PERST_N")
  617. + ),
  618. + MTK_PIN(
  619. + PINCTRL_PIN(23, "EINT1"),
  620. + "J16", "mt7623",
  621. + MTK_EINT_FUNCTION(0, 1),
  622. + MTK_FUNCTION(0, "GPIO23"),
  623. + MTK_FUNCTION(1, "URTS0"),
  624. + MTK_FUNCTION(2, "PCIE1_PERST_N")
  625. + ),
  626. + MTK_PIN(
  627. + PINCTRL_PIN(24, "EINT2"),
  628. + "H16", "mt7623",
  629. + MTK_EINT_FUNCTION(0, 2),
  630. + MTK_FUNCTION(0, "GPIO24"),
  631. + MTK_FUNCTION(1, "UCTS1"),
  632. + MTK_FUNCTION(2, "PCIE2_PERST_N")
  633. + ),
  634. + MTK_PIN(
  635. + PINCTRL_PIN(25, "EINT3"),
  636. + "K15", "mt7623",
  637. + MTK_EINT_FUNCTION(0, 3),
  638. + MTK_FUNCTION(0, "GPIO25"),
  639. + MTK_FUNCTION(1, "URTS1")
  640. + ),
  641. + MTK_PIN(
  642. + PINCTRL_PIN(26, "EINT4"),
  643. + "G15", "mt7623",
  644. + MTK_EINT_FUNCTION(0, 4),
  645. + MTK_FUNCTION(0, "GPIO26"),
  646. + MTK_FUNCTION(1, "UCTS3"),
  647. + MTK_FUNCTION(6, "PCIE2_WAKE_N")
  648. + ),
  649. + MTK_PIN(
  650. + PINCTRL_PIN(27, "EINT5"),
  651. + "F15", "mt7623",
  652. + MTK_EINT_FUNCTION(0, 5),
  653. + MTK_FUNCTION(0, "GPIO27"),
  654. + MTK_FUNCTION(1, "URTS3"),
  655. + MTK_FUNCTION(6, "PCIE1_WAKE_N")
  656. + ),
  657. + MTK_PIN(
  658. + PINCTRL_PIN(28, "EINT6"),
  659. + "J15", "mt7623",
  660. + MTK_EINT_FUNCTION(0, 6),
  661. + MTK_FUNCTION(0, "GPIO28"),
  662. + MTK_FUNCTION(1, "DRV_VBUS"),
  663. + MTK_FUNCTION(6, "PCIE0_WAKE_N")
  664. + ),
  665. + MTK_PIN(
  666. + PINCTRL_PIN(29, "EINT7"),
  667. + "E15", "mt7623",
  668. + MTK_EINT_FUNCTION(0, 7),
  669. + MTK_FUNCTION(0, "GPIO29"),
  670. + MTK_FUNCTION(1, "IDDIG"),
  671. + MTK_FUNCTION(2, "MSDC1_WP"),
  672. + MTK_FUNCTION(6, "PCIE2_PERST_N")
  673. + ),
  674. + MTK_PIN(
  675. + PINCTRL_PIN(30, "GPIO30"),
  676. + NULL, "mt7623",
  677. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  678. + MTK_FUNCTION(0, "GPIO30")
  679. + ),
  680. + MTK_PIN(
  681. + PINCTRL_PIN(31, "GPIO31"),
  682. + NULL, "mt7623",
  683. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  684. + MTK_FUNCTION(0, "GPIO31")
  685. + ),
  686. + MTK_PIN(
  687. + PINCTRL_PIN(32, "GPIO32"),
  688. + NULL, "mt7623",
  689. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  690. + MTK_FUNCTION(0, "GPIO32")
  691. + ),
  692. + MTK_PIN(
  693. + PINCTRL_PIN(33, "I2S1_DATA"),
  694. + "Y18", "mt7623",
  695. + MTK_EINT_FUNCTION(0, 15),
  696. + MTK_FUNCTION(0, "GPIO33"),
  697. + MTK_FUNCTION(1, "I2S1_DATA"),
  698. + MTK_FUNCTION(3, "PCM_TX"),
  699. + MTK_FUNCTION(6, "AP_PCM_TX")
  700. + ),
  701. + MTK_PIN(
  702. + PINCTRL_PIN(34, "I2S1_DATA_IN"),
  703. + "Y17", "mt7623",
  704. + MTK_EINT_FUNCTION(0, 16),
  705. + MTK_FUNCTION(0, "GPIO34"),
  706. + MTK_FUNCTION(1, "I2S1_DATA_IN"),
  707. + MTK_FUNCTION(3, "PCM_RX"),
  708. + MTK_FUNCTION(6, "AP_PCM_RX")
  709. + ),
  710. + MTK_PIN(
  711. + PINCTRL_PIN(35, "I2S1_BCK"),
  712. + "V17", "mt7623",
  713. + MTK_EINT_FUNCTION(0, 17),
  714. + MTK_FUNCTION(0, "GPIO35"),
  715. + MTK_FUNCTION(1, "I2S1_BCK"),
  716. + MTK_FUNCTION(3, "PCM_CLK0"),
  717. + MTK_FUNCTION(6, "AP_PCM_CLKO")
  718. + ),
  719. + MTK_PIN(
  720. + PINCTRL_PIN(36, "I2S1_LRCK"),
  721. + "W17", "mt7623",
  722. + MTK_EINT_FUNCTION(0, 18),
  723. + MTK_FUNCTION(0, "GPIO36"),
  724. + MTK_FUNCTION(1, "I2S1_LRCK"),
  725. + MTK_FUNCTION(3, "PCM_SYNC"),
  726. + MTK_FUNCTION(6, "AP_PCM_SYNC")
  727. + ),
  728. + MTK_PIN(
  729. + PINCTRL_PIN(37, "I2S1_MCLK"),
  730. + "AA18", "mt7623",
  731. + MTK_EINT_FUNCTION(0, 19),
  732. + MTK_FUNCTION(0, "GPIO37"),
  733. + MTK_FUNCTION(1, "I2S1_MCLK")
  734. + ),
  735. + MTK_PIN(
  736. + PINCTRL_PIN(38, "GPIO38"),
  737. + NULL, "mt7623",
  738. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  739. + MTK_FUNCTION(0, "GPIO38")
  740. + ),
  741. + MTK_PIN(
  742. + PINCTRL_PIN(39, "JTMS"),
  743. + "G21", "mt7623",
  744. + MTK_EINT_FUNCTION(0, 21),
  745. + MTK_FUNCTION(0, "GPIO39"),
  746. + MTK_FUNCTION(1, "JTMS")
  747. + ),
  748. + MTK_PIN(
  749. + PINCTRL_PIN(40, "GPIO40"),
  750. + NULL, "mt7623",
  751. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  752. + MTK_FUNCTION(0, "GPIO40")
  753. + ),
  754. + MTK_PIN(
  755. + PINCTRL_PIN(41, "JTDI"),
  756. + "H22", "mt7623",
  757. + MTK_EINT_FUNCTION(0, 23),
  758. + MTK_FUNCTION(0, "GPIO41"),
  759. + MTK_FUNCTION(1, "JTDI")
  760. + ),
  761. + MTK_PIN(
  762. + PINCTRL_PIN(42, "JTDO"),
  763. + "H21", "mt7623",
  764. + MTK_EINT_FUNCTION(0, 24),
  765. + MTK_FUNCTION(0, "GPIO42"),
  766. + MTK_FUNCTION(1, "JTDO")
  767. + ),
  768. + MTK_PIN(
  769. + PINCTRL_PIN(43, "NCLE"),
  770. + "C7", "mt7623",
  771. + MTK_EINT_FUNCTION(0, 25),
  772. + MTK_FUNCTION(0, "GPIO43"),
  773. + MTK_FUNCTION(1, "NCLE"),
  774. + MTK_FUNCTION(2, "EXT_XCS2")
  775. + ),
  776. + MTK_PIN(
  777. + PINCTRL_PIN(44, "NCEB1"),
  778. + "C6", "mt7623",
  779. + MTK_EINT_FUNCTION(0, 26),
  780. + MTK_FUNCTION(0, "GPIO44"),
  781. + MTK_FUNCTION(1, "NCEB1"),
  782. + MTK_FUNCTION(2, "IDDIG")
  783. + ),
  784. + MTK_PIN(
  785. + PINCTRL_PIN(45, "NCEB0"),
  786. + "D7", "mt7623",
  787. + MTK_EINT_FUNCTION(0, 27),
  788. + MTK_FUNCTION(0, "GPIO45"),
  789. + MTK_FUNCTION(1, "NCEB0"),
  790. + MTK_FUNCTION(2, "DRV_VBUS")
  791. + ),
  792. + MTK_PIN(
  793. + PINCTRL_PIN(46, "IR"),
  794. + "D15", "mt7623",
  795. + MTK_EINT_FUNCTION(0, 28),
  796. + MTK_FUNCTION(0, "GPIO46"),
  797. + MTK_FUNCTION(1, "IR")
  798. + ),
  799. + MTK_PIN(
  800. + PINCTRL_PIN(47, "NREB"),
  801. + "A6", "mt7623",
  802. + MTK_EINT_FUNCTION(0, 29),
  803. + MTK_FUNCTION(0, "GPIO47"),
  804. + MTK_FUNCTION(1, "NREB")
  805. + ),
  806. + MTK_PIN(
  807. + PINCTRL_PIN(48, "NRNB"),
  808. + "B6", "mt7623",
  809. + MTK_EINT_FUNCTION(0, 30),
  810. + MTK_FUNCTION(0, "GPIO48"),
  811. + MTK_FUNCTION(1, "NRNB")
  812. + ),
  813. + MTK_PIN(
  814. + PINCTRL_PIN(49, "I2S0_DATA"),
  815. + "AB18", "mt7623",
  816. + MTK_EINT_FUNCTION(0, 31),
  817. + MTK_FUNCTION(0, "GPIO49"),
  818. + MTK_FUNCTION(1, "I2S0_DATA"),
  819. + MTK_FUNCTION(3, "PCM_TX"),
  820. + MTK_FUNCTION(6, "AP_I2S_DO")
  821. + ),
  822. + MTK_PIN(
  823. + PINCTRL_PIN(50, "GPIO50"),
  824. + NULL, "mt7623",
  825. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  826. + MTK_FUNCTION(0, "GPIO50")
  827. + ),
  828. + MTK_PIN(
  829. + PINCTRL_PIN(51, "GPIO51"),
  830. + NULL, "mt7623",
  831. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  832. + MTK_FUNCTION(0, "GPIO51")
  833. + ),
  834. + MTK_PIN(
  835. + PINCTRL_PIN(52, "GPIO52"),
  836. + NULL, "mt7623",
  837. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  838. + MTK_FUNCTION(0, "GPIO52")
  839. + ),
  840. + MTK_PIN(
  841. + PINCTRL_PIN(53, "SPI0_CSN"),
  842. + "E7", "mt7623",
  843. + MTK_EINT_FUNCTION(0, 35),
  844. + MTK_FUNCTION(0, "GPIO53"),
  845. + MTK_FUNCTION(1, "SPI0_CS"),
  846. + MTK_FUNCTION(5, "PWM1")
  847. + ),
  848. + MTK_PIN(
  849. + PINCTRL_PIN(54, "SPI0_CK"),
  850. + "F7", "mt7623",
  851. + MTK_EINT_FUNCTION(0, 36),
  852. + MTK_FUNCTION(0, "GPIO54"),
  853. + MTK_FUNCTION(1, "SPI0_CK")
  854. + ),
  855. + MTK_PIN(
  856. + PINCTRL_PIN(55, "SPI0_MI"),
  857. + "E6", "mt7623",
  858. + MTK_EINT_FUNCTION(0, 37),
  859. + MTK_FUNCTION(0, "GPIO55"),
  860. + MTK_FUNCTION(1, "SPI0_MI"),
  861. + MTK_FUNCTION(2, "SPI0_MO"),
  862. + MTK_FUNCTION(3, "MSDC1_WP"),
  863. + MTK_FUNCTION(5, "PWM2")
  864. + ),
  865. + MTK_PIN(
  866. + PINCTRL_PIN(56, "SPI0_MO"),
  867. + "G7", "mt7623",
  868. + MTK_EINT_FUNCTION(0, 38),
  869. + MTK_FUNCTION(0, "GPIO56"),
  870. + MTK_FUNCTION(1, "SPI0_MO"),
  871. + MTK_FUNCTION(2, "SPI0_MI")
  872. + ),
  873. + MTK_PIN(
  874. + PINCTRL_PIN(57, "GPIO57"),
  875. + NULL, "mt7623",
  876. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  877. + MTK_FUNCTION(0, "GPIO57")
  878. + ),
  879. + MTK_PIN(
  880. + PINCTRL_PIN(58, "GPIO58"),
  881. + NULL, "mt7623",
  882. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  883. + MTK_FUNCTION(0, "GPIO58")
  884. + ),
  885. + MTK_PIN(
  886. + PINCTRL_PIN(59, "GPIO59"),
  887. + NULL, "mt7623",
  888. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  889. + MTK_FUNCTION(0, "GPIO59")
  890. + ),
  891. + MTK_PIN(
  892. + PINCTRL_PIN(60, "WB_RSTB"),
  893. + "Y21", "mt7623",
  894. + MTK_EINT_FUNCTION(0, 41),
  895. + MTK_FUNCTION(0, "GPIO60"),
  896. + MTK_FUNCTION(1, "WB_RSTB")
  897. + ),
  898. + MTK_PIN(
  899. + PINCTRL_PIN(61, "GPIO61"),
  900. + "AA21", "mt7623",
  901. + MTK_EINT_FUNCTION(0, 42),
  902. + MTK_FUNCTION(0, "GPIO61"),
  903. + MTK_FUNCTION(1, "TEST_FD")
  904. + ),
  905. + MTK_PIN(
  906. + PINCTRL_PIN(62, "GPIO62"),
  907. + "AB22", "mt7623",
  908. + MTK_EINT_FUNCTION(0, 43),
  909. + MTK_FUNCTION(0, "GPIO62"),
  910. + MTK_FUNCTION(1, "TEST_FC")
  911. + ),
  912. + MTK_PIN(
  913. + PINCTRL_PIN(63, "WB_SCLK"),
  914. + "AC23", "mt7623",
  915. + MTK_EINT_FUNCTION(0, 44),
  916. + MTK_FUNCTION(0, "GPIO63"),
  917. + MTK_FUNCTION(1, "WB_SCLK")
  918. + ),
  919. + MTK_PIN(
  920. + PINCTRL_PIN(64, "WB_SDATA"),
  921. + "AB21", "mt7623",
  922. + MTK_EINT_FUNCTION(0, 45),
  923. + MTK_FUNCTION(0, "GPIO64"),
  924. + MTK_FUNCTION(1, "WB_SDATA")
  925. + ),
  926. + MTK_PIN(
  927. + PINCTRL_PIN(65, "WB_SEN"),
  928. + "AB24", "mt7623",
  929. + MTK_EINT_FUNCTION(0, 46),
  930. + MTK_FUNCTION(0, "GPIO65"),
  931. + MTK_FUNCTION(1, "WB_SEN")
  932. + ),
  933. + MTK_PIN(
  934. + PINCTRL_PIN(66, "WB_CRTL0"),
  935. + "AB20", "mt7623",
  936. + MTK_EINT_FUNCTION(0, 47),
  937. + MTK_FUNCTION(0, "GPIO66"),
  938. + MTK_FUNCTION(1, "WB_CRTL0")
  939. + ),
  940. + MTK_PIN(
  941. + PINCTRL_PIN(67, "WB_CRTL1"),
  942. + "AC20", "mt7623",
  943. + MTK_EINT_FUNCTION(0, 48),
  944. + MTK_FUNCTION(0, "GPIO67"),
  945. + MTK_FUNCTION(1, "WB_CRTL1")
  946. + ),
  947. + MTK_PIN(
  948. + PINCTRL_PIN(68, "WB_CRTL2"),
  949. + "AB19", "mt7623",
  950. + MTK_EINT_FUNCTION(0, 49),
  951. + MTK_FUNCTION(0, "GPIO68"),
  952. + MTK_FUNCTION(1, "WB_CRTL2")
  953. + ),
  954. + MTK_PIN(
  955. + PINCTRL_PIN(69, "WB_CRTL3"),
  956. + "AC19", "mt7623",
  957. + MTK_EINT_FUNCTION(0, 50),
  958. + MTK_FUNCTION(0, "GPIO69"),
  959. + MTK_FUNCTION(1, "WB_CRTL3")
  960. + ),
  961. + MTK_PIN(
  962. + PINCTRL_PIN(70, "WB_CRTL4"),
  963. + "AD19", "mt7623",
  964. + MTK_EINT_FUNCTION(0, 51),
  965. + MTK_FUNCTION(0, "GPIO70"),
  966. + MTK_FUNCTION(1, "WB_CRTL4")
  967. + ),
  968. + MTK_PIN(
  969. + PINCTRL_PIN(71, "WB_CRTL5"),
  970. + "AE19", "mt7623",
  971. + MTK_EINT_FUNCTION(0, 52),
  972. + MTK_FUNCTION(0, "GPIO71"),
  973. + MTK_FUNCTION(1, "WB_CRTL5")
  974. + ),
  975. + MTK_PIN(
  976. + PINCTRL_PIN(72, "I2S0_DATA_IN"),
  977. + "AA20", "mt7623",
  978. + MTK_EINT_FUNCTION(0, 53),
  979. + MTK_FUNCTION(0, "GPIO72"),
  980. + MTK_FUNCTION(1, "I2S0_DATA_IN"),
  981. + MTK_FUNCTION(3, "PCM_RX"),
  982. + MTK_FUNCTION(4, "PWM0"),
  983. + MTK_FUNCTION(5, "DISP_PWM"),
  984. + MTK_FUNCTION(6, "AP_I2S_DI")
  985. + ),
  986. + MTK_PIN(
  987. + PINCTRL_PIN(73, "I2S0_LRCK"),
  988. + "Y20", "mt7623",
  989. + MTK_EINT_FUNCTION(0, 54),
  990. + MTK_FUNCTION(0, "GPIO73"),
  991. + MTK_FUNCTION(1, "I2S0_LRCK"),
  992. + MTK_FUNCTION(3, "PCM_SYNC"),
  993. + MTK_FUNCTION(6, "AP_I2S_LRCK")
  994. + ),
  995. + MTK_PIN(
  996. + PINCTRL_PIN(74, "I2S0_BCK"),
  997. + "Y19", "mt7623",
  998. + MTK_EINT_FUNCTION(0, 55),
  999. + MTK_FUNCTION(0, "GPIO74"),
  1000. + MTK_FUNCTION(1, "I2S0_BCK"),
  1001. + MTK_FUNCTION(3, "PCM_CLK0"),
  1002. + MTK_FUNCTION(6, "AP_I2S_BCK")
  1003. + ),
  1004. + MTK_PIN(
  1005. + PINCTRL_PIN(75, "SDA0"),
  1006. + "K19", "mt7623",
  1007. + MTK_EINT_FUNCTION(0, 56),
  1008. + MTK_FUNCTION(0, "GPIO75"),
  1009. + MTK_FUNCTION(1, "SDA0")
  1010. + ),
  1011. + MTK_PIN(
  1012. + PINCTRL_PIN(76, "SCL0"),
  1013. + "K20", "mt7623",
  1014. + MTK_EINT_FUNCTION(0, 57),
  1015. + MTK_FUNCTION(0, "GPIO76"),
  1016. + MTK_FUNCTION(1, "SCL0")
  1017. + ),
  1018. + MTK_PIN(
  1019. + PINCTRL_PIN(77, "GPIO77"),
  1020. + NULL, "mt7623",
  1021. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1022. + MTK_FUNCTION(0, "GPIO77")
  1023. + ),
  1024. + MTK_PIN(
  1025. + PINCTRL_PIN(78, "GPIO78"),
  1026. + NULL, "mt7623",
  1027. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1028. + MTK_FUNCTION(0, "GPIO78")
  1029. + ),
  1030. + MTK_PIN(
  1031. + PINCTRL_PIN(79, "GPIO79"),
  1032. + NULL, "mt7623",
  1033. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1034. + MTK_FUNCTION(0, "GPIO79")
  1035. + ),
  1036. + MTK_PIN(
  1037. + PINCTRL_PIN(80, "GPIO80"),
  1038. + NULL, "mt7623",
  1039. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1040. + MTK_FUNCTION(0, "GPIO80")
  1041. + ),
  1042. + MTK_PIN(
  1043. + PINCTRL_PIN(81, "GPIO81"),
  1044. + NULL, "mt7623",
  1045. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1046. + MTK_FUNCTION(0, "GPIO81")
  1047. + ),
  1048. + MTK_PIN(
  1049. + PINCTRL_PIN(82, "GPIO82"),
  1050. + NULL, "mt7623",
  1051. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1052. + MTK_FUNCTION(0, "GPIO82")
  1053. + ),
  1054. + MTK_PIN(
  1055. + PINCTRL_PIN(83, "LCM_RST"),
  1056. + "V16", "mt7623",
  1057. + MTK_EINT_FUNCTION(0, 64),
  1058. + MTK_FUNCTION(0, "GPIO83"),
  1059. + MTK_FUNCTION(1, "LCM_RST")
  1060. + ),
  1061. + MTK_PIN(
  1062. + PINCTRL_PIN(84, "DSI_TE"),
  1063. + "V14", "mt7623",
  1064. + MTK_EINT_FUNCTION(0, 65),
  1065. + MTK_FUNCTION(0, "GPIO84"),
  1066. + MTK_FUNCTION(1, "DSI_TE")
  1067. + ),
  1068. + MTK_PIN(
  1069. + PINCTRL_PIN(85, "GPIO85"),
  1070. + NULL, "mt7623",
  1071. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1072. + MTK_FUNCTION(0, "GPIO85")
  1073. + ),
  1074. + MTK_PIN(
  1075. + PINCTRL_PIN(86, "GPIO86"),
  1076. + NULL, "mt7623",
  1077. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1078. + MTK_FUNCTION(0, "GPIO86")
  1079. + ),
  1080. + MTK_PIN(
  1081. + PINCTRL_PIN(87, "GPIO87"),
  1082. + NULL, "mt7623",
  1083. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1084. + MTK_FUNCTION(0, "GPIO87")
  1085. + ),
  1086. + MTK_PIN(
  1087. + PINCTRL_PIN(88, "GPIO88"),
  1088. + NULL, "mt7623",
  1089. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1090. + MTK_FUNCTION(0, "GPIO88")
  1091. + ),
  1092. + MTK_PIN(
  1093. + PINCTRL_PIN(89, "GPIO89"),
  1094. + NULL, "mt7623",
  1095. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1096. + MTK_FUNCTION(0, "GPIO89")
  1097. + ),
  1098. + MTK_PIN(
  1099. + PINCTRL_PIN(90, "GPIO90"),
  1100. + NULL, "mt7623",
  1101. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1102. + MTK_FUNCTION(0, "GPIO90")
  1103. + ),
  1104. + MTK_PIN(
  1105. + PINCTRL_PIN(91, "GPIO91"),
  1106. + NULL, "mt7623",
  1107. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1108. + MTK_FUNCTION(0, "GPIO91")
  1109. + ),
  1110. + MTK_PIN(
  1111. + PINCTRL_PIN(92, "GPIO92"),
  1112. + NULL, "mt7623",
  1113. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1114. + MTK_FUNCTION(0, "GPIO92")
  1115. + ),
  1116. + MTK_PIN(
  1117. + PINCTRL_PIN(93, "GPIO93"),
  1118. + NULL, "mt7623",
  1119. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1120. + MTK_FUNCTION(0, "GPIO93")
  1121. + ),
  1122. + MTK_PIN(
  1123. + PINCTRL_PIN(94, "GPIO94"),
  1124. + NULL, "mt7623",
  1125. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1126. + MTK_FUNCTION(0, "GPIO94")
  1127. + ),
  1128. + MTK_PIN(
  1129. + PINCTRL_PIN(95, "MIPI_TCN"),
  1130. + "AB14", "mt7623",
  1131. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1132. + MTK_FUNCTION(0, "GPIO95"),
  1133. + MTK_FUNCTION(1, "TCN")
  1134. + ),
  1135. + MTK_PIN(
  1136. + PINCTRL_PIN(96, "MIPI_TCP"),
  1137. + "AC14", "mt7623",
  1138. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1139. + MTK_FUNCTION(0, "GPIO96"),
  1140. + MTK_FUNCTION(1, "TCP")
  1141. + ),
  1142. + MTK_PIN(
  1143. + PINCTRL_PIN(97, "MIPI_TDN1"),
  1144. + "AE15", "mt7623",
  1145. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1146. + MTK_FUNCTION(0, "GPIO97"),
  1147. + MTK_FUNCTION(1, "TDN1")
  1148. + ),
  1149. + MTK_PIN(
  1150. + PINCTRL_PIN(98, "MIPI_TDP1"),
  1151. + "AD15", "mt7623",
  1152. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1153. + MTK_FUNCTION(0, "GPIO98"),
  1154. + MTK_FUNCTION(1, "TDP1")
  1155. + ),
  1156. + MTK_PIN(
  1157. + PINCTRL_PIN(99, "MIPI_TDN0"),
  1158. + "AB15", "mt7623",
  1159. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1160. + MTK_FUNCTION(0, "GPIO99"),
  1161. + MTK_FUNCTION(1, "TDN0")
  1162. + ),
  1163. + MTK_PIN(
  1164. + PINCTRL_PIN(100, "MIPI_TDP0"),
  1165. + "AC15", "mt7623",
  1166. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1167. + MTK_FUNCTION(0, "GPIO100"),
  1168. + MTK_FUNCTION(1, "TDP0")
  1169. + ),
  1170. + MTK_PIN(
  1171. + PINCTRL_PIN(101, "GPIO101"),
  1172. + NULL, "mt7623",
  1173. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1174. + MTK_FUNCTION(0, "GPIO101")
  1175. + ),
  1176. + MTK_PIN(
  1177. + PINCTRL_PIN(102, "GPIO102"),
  1178. + NULL, "mt7623",
  1179. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1180. + MTK_FUNCTION(0, "GPIO102")
  1181. + ),
  1182. + MTK_PIN(
  1183. + PINCTRL_PIN(103, "GPIO103"),
  1184. + NULL, "mt7623",
  1185. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1186. + MTK_FUNCTION(0, "GPIO103")
  1187. + ),
  1188. + MTK_PIN(
  1189. + PINCTRL_PIN(104, "GPIO104"),
  1190. + NULL, "mt7623",
  1191. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1192. + MTK_FUNCTION(0, "GPIO104")
  1193. + ),
  1194. + MTK_PIN(
  1195. + PINCTRL_PIN(105, "MSDC1_CMD"),
  1196. + "AD2", "mt7623",
  1197. + MTK_EINT_FUNCTION(0, 78),
  1198. + MTK_FUNCTION(0, "GPIO105"),
  1199. + MTK_FUNCTION(1, "MSDC1_CMD"),
  1200. + MTK_FUNCTION(3, "SDA1"),
  1201. + MTK_FUNCTION(6, "I2SOUT_BCK")
  1202. + ),
  1203. + MTK_PIN(
  1204. + PINCTRL_PIN(106, "MSDC1_CLK"),
  1205. + "AD3", "mt7623",
  1206. + MTK_EINT_FUNCTION(0, 79),
  1207. + MTK_FUNCTION(0, "GPIO106"),
  1208. + MTK_FUNCTION(1, "MSDC1_CLK"),
  1209. + MTK_FUNCTION(3, "SCL1"),
  1210. + MTK_FUNCTION(6, "I2SOUT_LRCK")
  1211. + ),
  1212. + MTK_PIN(
  1213. + PINCTRL_PIN(107, "MSDC1_DAT0"),
  1214. + "AE2", "mt7623",
  1215. + MTK_EINT_FUNCTION(0, 80),
  1216. + MTK_FUNCTION(0, "GPIO107"),
  1217. + MTK_FUNCTION(1, "MSDC1_DAT0"),
  1218. + MTK_FUNCTION(5, "UTXD0"),
  1219. + MTK_FUNCTION(6, "I2SOUT_DATA_OUT")
  1220. + ),
  1221. + MTK_PIN(
  1222. + PINCTRL_PIN(108, "MSDC1_DAT1"),
  1223. + "AC1", "mt7623",
  1224. + MTK_EINT_FUNCTION(0, 81),
  1225. + MTK_FUNCTION(0, "GPIO108"),
  1226. + MTK_FUNCTION(1, "MSDC1_DAT1"),
  1227. + MTK_FUNCTION(3, "PWM0"),
  1228. + MTK_FUNCTION(5, "URXD0"),
  1229. + MTK_FUNCTION(6, "PWM1")
  1230. + ),
  1231. + MTK_PIN(
  1232. + PINCTRL_PIN(109, "MSDC1_DAT2"),
  1233. + "AC3", "mt7623",
  1234. + MTK_EINT_FUNCTION(0, 82),
  1235. + MTK_FUNCTION(0, "GPIO109"),
  1236. + MTK_FUNCTION(1, "MSDC1_DAT2"),
  1237. + MTK_FUNCTION(3, "SDA2"),
  1238. + MTK_FUNCTION(5, "UTXD1"),
  1239. + MTK_FUNCTION(6, "PWM2")
  1240. + ),
  1241. + MTK_PIN(
  1242. + PINCTRL_PIN(110, "MSDC1_DAT3"),
  1243. + "AC4", "mt7623",
  1244. + MTK_EINT_FUNCTION(0, 83),
  1245. + MTK_FUNCTION(0, "GPIO110"),
  1246. + MTK_FUNCTION(1, "MSDC1_DAT3"),
  1247. + MTK_FUNCTION(3, "SCL2"),
  1248. + MTK_FUNCTION(5, "URXD1"),
  1249. + MTK_FUNCTION(6, "PWM3")
  1250. + ),
  1251. + MTK_PIN(
  1252. + PINCTRL_PIN(111, "MSDC0_DAT7"),
  1253. + "A2", "mt7623",
  1254. + MTK_EINT_FUNCTION(0, 84),
  1255. + MTK_FUNCTION(0, "GPIO111"),
  1256. + MTK_FUNCTION(1, "MSDC0_DAT7"),
  1257. + MTK_FUNCTION(4, "NLD7")
  1258. + ),
  1259. + MTK_PIN(
  1260. + PINCTRL_PIN(112, "MSDC0_DAT6"),
  1261. + "B3", "mt7623",
  1262. + MTK_EINT_FUNCTION(0, 85),
  1263. + MTK_FUNCTION(0, "GPIO112"),
  1264. + MTK_FUNCTION(1, "MSDC0_DAT6"),
  1265. + MTK_FUNCTION(4, "NLD6")
  1266. + ),
  1267. + MTK_PIN(
  1268. + PINCTRL_PIN(113, "MSDC0_DAT5"),
  1269. + "C4", "mt7623",
  1270. + MTK_EINT_FUNCTION(0, 86),
  1271. + MTK_FUNCTION(0, "GPIO113"),
  1272. + MTK_FUNCTION(1, "MSDC0_DAT5"),
  1273. + MTK_FUNCTION(4, "NLD5")
  1274. + ),
  1275. + MTK_PIN(
  1276. + PINCTRL_PIN(114, "MSDC0_DAT4"),
  1277. + "A4", "mt7623",
  1278. + MTK_EINT_FUNCTION(0, 87),
  1279. + MTK_FUNCTION(0, "GPIO114"),
  1280. + MTK_FUNCTION(1, "MSDC0_DAT4"),
  1281. + MTK_FUNCTION(4, "NLD4")
  1282. + ),
  1283. + MTK_PIN(
  1284. + PINCTRL_PIN(115, "MSDC0_RSTB"),
  1285. + "C5", "mt7623",
  1286. + MTK_EINT_FUNCTION(0, 88),
  1287. + MTK_FUNCTION(0, "GPIO115"),
  1288. + MTK_FUNCTION(1, "MSDC0_RSTB"),
  1289. + MTK_FUNCTION(4, "NLD8")
  1290. + ),
  1291. + MTK_PIN(
  1292. + PINCTRL_PIN(116, "MSDC0_CMD"),
  1293. + "D5", "mt7623",
  1294. + MTK_EINT_FUNCTION(0, 89),
  1295. + MTK_FUNCTION(0, "GPIO116"),
  1296. + MTK_FUNCTION(1, "MSDC0_CMD"),
  1297. + MTK_FUNCTION(4, "NALE")
  1298. + ),
  1299. + MTK_PIN(
  1300. + PINCTRL_PIN(117, "MSDC0_CLK"),
  1301. + "B1", "mt7623",
  1302. + MTK_EINT_FUNCTION(0, 90),
  1303. + MTK_FUNCTION(0, "GPIO117"),
  1304. + MTK_FUNCTION(1, "MSDC0_CLK"),
  1305. + MTK_FUNCTION(4, "NWEB")
  1306. + ),
  1307. + MTK_PIN(
  1308. + PINCTRL_PIN(118, "MSDC0_DAT3"),
  1309. + "D6", "mt7623",
  1310. + MTK_EINT_FUNCTION(0, 91),
  1311. + MTK_FUNCTION(0, "GPIO118"),
  1312. + MTK_FUNCTION(1, "MSDC0_DAT3"),
  1313. + MTK_FUNCTION(4, "NLD3")
  1314. + ),
  1315. + MTK_PIN(
  1316. + PINCTRL_PIN(119, "MSDC0_DAT2"),
  1317. + "B2", "mt7623",
  1318. + MTK_EINT_FUNCTION(0, 92),
  1319. + MTK_FUNCTION(0, "GPIO119"),
  1320. + MTK_FUNCTION(1, "MSDC0_DAT2"),
  1321. + MTK_FUNCTION(4, "NLD2")
  1322. + ),
  1323. + MTK_PIN(
  1324. + PINCTRL_PIN(120, "MSDC0_DAT1"),
  1325. + "A3", "mt7623",
  1326. + MTK_EINT_FUNCTION(0, 93),
  1327. + MTK_FUNCTION(0, "GPIO120"),
  1328. + MTK_FUNCTION(1, "MSDC0_DAT1"),
  1329. + MTK_FUNCTION(4, "NLD1")
  1330. + ),
  1331. + MTK_PIN(
  1332. + PINCTRL_PIN(121, "MSDC0_DAT0"),
  1333. + "B4", "mt7623",
  1334. + MTK_EINT_FUNCTION(0, 94),
  1335. + MTK_FUNCTION(0, "GPIO121"),
  1336. + MTK_FUNCTION(1, "MSDC0_DAT0"),
  1337. + MTK_FUNCTION(4, "NLD0"),
  1338. + MTK_FUNCTION(5, "WATCHDOG")
  1339. + ),
  1340. + MTK_PIN(
  1341. + PINCTRL_PIN(122, "GPIO122"),
  1342. + "H17", "mt7623",
  1343. + MTK_EINT_FUNCTION(0, 95),
  1344. + MTK_FUNCTION(0, "GPIO122"),
  1345. + MTK_FUNCTION(1, "TEST"),
  1346. + MTK_FUNCTION(4, "SDA2"),
  1347. + MTK_FUNCTION(5, "URXD0")
  1348. + ),
  1349. + MTK_PIN(
  1350. + PINCTRL_PIN(123, "GPIO123"),
  1351. + "F17", "mt7623",
  1352. + MTK_EINT_FUNCTION(0, 96),
  1353. + MTK_FUNCTION(0, "GPIO123"),
  1354. + MTK_FUNCTION(1, "TEST"),
  1355. + MTK_FUNCTION(4, "SCL2"),
  1356. + MTK_FUNCTION(5, "UTXD0")
  1357. + ),
  1358. + MTK_PIN(
  1359. + PINCTRL_PIN(124, "GPIO124"),
  1360. + "H18", "mt7623",
  1361. + MTK_EINT_FUNCTION(0, 97),
  1362. + MTK_FUNCTION(0, "GPIO124"),
  1363. + MTK_FUNCTION(1, "TEST"),
  1364. + MTK_FUNCTION(4, "SDA1"),
  1365. + MTK_FUNCTION(5, "PWM3")
  1366. + ),
  1367. + MTK_PIN(
  1368. + PINCTRL_PIN(125, "GPIO125"),
  1369. + "G17", "mt7623",
  1370. + MTK_EINT_FUNCTION(0, 98),
  1371. + MTK_FUNCTION(0, "GPIO125"),
  1372. + MTK_FUNCTION(1, "TEST"),
  1373. + MTK_FUNCTION(4, "SCL1"),
  1374. + MTK_FUNCTION(5, "PWM4")
  1375. + ),
  1376. + MTK_PIN(
  1377. + PINCTRL_PIN(126, "I2S0_MCLK"),
  1378. + "AA19", "mt7623",
  1379. + MTK_EINT_FUNCTION(0, 99),
  1380. + MTK_FUNCTION(0, "GPIO126"),
  1381. + MTK_FUNCTION(1, "I2S0_MCLK"),
  1382. + MTK_FUNCTION(6, "AP_I2S_MCLK")
  1383. + ),
  1384. + MTK_PIN(
  1385. + PINCTRL_PIN(127, "GPIO127"),
  1386. + NULL, "mt7623",
  1387. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1388. + MTK_FUNCTION(0, "GPIO127")
  1389. + ),
  1390. + MTK_PIN(
  1391. + PINCTRL_PIN(128, "GPIO128"),
  1392. + NULL, "mt7623",
  1393. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1394. + MTK_FUNCTION(0, "GPIO128")
  1395. + ),
  1396. + MTK_PIN(
  1397. + PINCTRL_PIN(129, "GPIO129"),
  1398. + NULL, "mt7623",
  1399. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1400. + MTK_FUNCTION(0, "GPIO129")
  1401. + ),
  1402. + MTK_PIN(
  1403. + PINCTRL_PIN(130, "GPIO130"),
  1404. + NULL, "mt7623",
  1405. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1406. + MTK_FUNCTION(0, "GPIO130")
  1407. + ),
  1408. + MTK_PIN(
  1409. + PINCTRL_PIN(131, "GPIO131"),
  1410. + NULL, "mt7623",
  1411. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1412. + MTK_FUNCTION(0, "GPIO131")
  1413. + ),
  1414. + MTK_PIN(
  1415. + PINCTRL_PIN(132, "GPIO132"),
  1416. + NULL, "mt7623",
  1417. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1418. + MTK_FUNCTION(0, "GPIO132")
  1419. + ),
  1420. + MTK_PIN(
  1421. + PINCTRL_PIN(133, "GPIO133"),
  1422. + NULL, "mt7623",
  1423. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1424. + MTK_FUNCTION(0, "GPIO133")
  1425. + ),
  1426. + MTK_PIN(
  1427. + PINCTRL_PIN(134, "GPIO134"),
  1428. + NULL, "mt7623",
  1429. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1430. + MTK_FUNCTION(0, "GPIO134")
  1431. + ),
  1432. + MTK_PIN(
  1433. + PINCTRL_PIN(135, "GPIO135"),
  1434. + NULL, "mt7623",
  1435. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1436. + MTK_FUNCTION(0, "GPIO135")
  1437. + ),
  1438. + MTK_PIN(
  1439. + PINCTRL_PIN(136, "GPIO136"),
  1440. + NULL, "mt7623",
  1441. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1442. + MTK_FUNCTION(0, "GPIO136")
  1443. + ),
  1444. + MTK_PIN(
  1445. + PINCTRL_PIN(137, "GPIO137"),
  1446. + NULL, "mt7623",
  1447. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1448. + MTK_FUNCTION(0, "GPIO137")
  1449. + ),
  1450. + MTK_PIN(
  1451. + PINCTRL_PIN(138, "GPIO138"),
  1452. + NULL, "mt7623",
  1453. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1454. + MTK_FUNCTION(0, "GPIO138")
  1455. + ),
  1456. + MTK_PIN(
  1457. + PINCTRL_PIN(139, "GPIO139"),
  1458. + NULL, "mt7623",
  1459. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1460. + MTK_FUNCTION(0, "GPIO139")
  1461. + ),
  1462. + MTK_PIN(
  1463. + PINCTRL_PIN(140, "GPIO140"),
  1464. + NULL, "mt7623",
  1465. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1466. + MTK_FUNCTION(0, "GPIO140")
  1467. + ),
  1468. + MTK_PIN(
  1469. + PINCTRL_PIN(141, "GPIO141"),
  1470. + NULL, "mt7623",
  1471. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1472. + MTK_FUNCTION(0, "GPIO141")
  1473. + ),
  1474. + MTK_PIN(
  1475. + PINCTRL_PIN(142, "GPIO142"),
  1476. + NULL, "mt7623",
  1477. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1478. + MTK_FUNCTION(0, "GPIO142")
  1479. + ),
  1480. + MTK_PIN(
  1481. + PINCTRL_PIN(143, "GPIO143"),
  1482. + NULL, "mt7623",
  1483. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1484. + MTK_FUNCTION(0, "GPIO143")
  1485. + ),
  1486. + MTK_PIN(
  1487. + PINCTRL_PIN(144, "GPIO144"),
  1488. + NULL, "mt7623",
  1489. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1490. + MTK_FUNCTION(0, "GPIO144")
  1491. + ),
  1492. + MTK_PIN(
  1493. + PINCTRL_PIN(145, "GPIO145"),
  1494. + NULL, "mt7623",
  1495. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1496. + MTK_FUNCTION(0, "GPIO145")
  1497. + ),
  1498. + MTK_PIN(
  1499. + PINCTRL_PIN(146, "GPIO146"),
  1500. + NULL, "mt7623",
  1501. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1502. + MTK_FUNCTION(0, "GPIO146")
  1503. + ),
  1504. + MTK_PIN(
  1505. + PINCTRL_PIN(147, "GPIO147"),
  1506. + NULL, "mt7623",
  1507. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1508. + MTK_FUNCTION(0, "GPIO147")
  1509. + ),
  1510. + MTK_PIN(
  1511. + PINCTRL_PIN(148, "GPIO148"),
  1512. + NULL, "mt7623",
  1513. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1514. + MTK_FUNCTION(0, "GPIO148")
  1515. + ),
  1516. + MTK_PIN(
  1517. + PINCTRL_PIN(149, "GPIO149"),
  1518. + NULL, "mt7623",
  1519. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1520. + MTK_FUNCTION(0, "GPIO149")
  1521. + ),
  1522. + MTK_PIN(
  1523. + PINCTRL_PIN(150, "GPIO150"),
  1524. + NULL, "mt7623",
  1525. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1526. + MTK_FUNCTION(0, "GPIO150")
  1527. + ),
  1528. + MTK_PIN(
  1529. + PINCTRL_PIN(151, "GPIO151"),
  1530. + NULL, "mt7623",
  1531. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1532. + MTK_FUNCTION(0, "GPIO151")
  1533. + ),
  1534. + MTK_PIN(
  1535. + PINCTRL_PIN(152, "GPIO152"),
  1536. + NULL, "mt7623",
  1537. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1538. + MTK_FUNCTION(0, "GPIO152")
  1539. + ),
  1540. + MTK_PIN(
  1541. + PINCTRL_PIN(153, "GPIO153"),
  1542. + NULL, "mt7623",
  1543. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1544. + MTK_FUNCTION(0, "GPIO153")
  1545. + ),
  1546. + MTK_PIN(
  1547. + PINCTRL_PIN(154, "GPIO154"),
  1548. + NULL, "mt7623",
  1549. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1550. + MTK_FUNCTION(0, "GPIO154")
  1551. + ),
  1552. + MTK_PIN(
  1553. + PINCTRL_PIN(155, "GPIO155"),
  1554. + NULL, "mt7623",
  1555. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1556. + MTK_FUNCTION(0, "GPIO155")
  1557. + ),
  1558. + MTK_PIN(
  1559. + PINCTRL_PIN(156, "GPIO156"),
  1560. + NULL, "mt7623",
  1561. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1562. + MTK_FUNCTION(0, "GPIO156")
  1563. + ),
  1564. + MTK_PIN(
  1565. + PINCTRL_PIN(157, "GPIO157"),
  1566. + NULL, "mt7623",
  1567. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1568. + MTK_FUNCTION(0, "GPIO157")
  1569. + ),
  1570. + MTK_PIN(
  1571. + PINCTRL_PIN(158, "GPIO158"),
  1572. + NULL, "mt7623",
  1573. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1574. + MTK_FUNCTION(0, "GPIO158")
  1575. + ),
  1576. + MTK_PIN(
  1577. + PINCTRL_PIN(159, "GPIO159"),
  1578. + NULL, "mt7623",
  1579. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1580. + MTK_FUNCTION(0, "GPIO159")
  1581. + ),
  1582. + MTK_PIN(
  1583. + PINCTRL_PIN(160, "GPIO160"),
  1584. + NULL, "mt7623",
  1585. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1586. + MTK_FUNCTION(0, "GPIO160")
  1587. + ),
  1588. + MTK_PIN(
  1589. + PINCTRL_PIN(161, "GPIO161"),
  1590. + NULL, "mt7623",
  1591. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1592. + MTK_FUNCTION(0, "GPIO161")
  1593. + ),
  1594. + MTK_PIN(
  1595. + PINCTRL_PIN(162, "GPIO162"),
  1596. + NULL, "mt7623",
  1597. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1598. + MTK_FUNCTION(0, "GPIO162")
  1599. + ),
  1600. + MTK_PIN(
  1601. + PINCTRL_PIN(163, "GPIO163"),
  1602. + NULL, "mt7623",
  1603. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1604. + MTK_FUNCTION(0, "GPIO163")
  1605. + ),
  1606. + MTK_PIN(
  1607. + PINCTRL_PIN(164, "GPIO164"),
  1608. + NULL, "mt7623",
  1609. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1610. + MTK_FUNCTION(0, "GPIO164")
  1611. + ),
  1612. + MTK_PIN(
  1613. + PINCTRL_PIN(165, "GPIO165"),
  1614. + NULL, "mt7623",
  1615. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1616. + MTK_FUNCTION(0, "GPIO165")
  1617. + ),
  1618. + MTK_PIN(
  1619. + PINCTRL_PIN(166, "GPIO166"),
  1620. + NULL, "mt7623",
  1621. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1622. + MTK_FUNCTION(0, "GPIO166")
  1623. + ),
  1624. + MTK_PIN(
  1625. + PINCTRL_PIN(167, "GPIO167"),
  1626. + NULL, "mt7623",
  1627. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1628. + MTK_FUNCTION(0, "GPIO167")
  1629. + ),
  1630. + MTK_PIN(
  1631. + PINCTRL_PIN(168, "GPIO168"),
  1632. + NULL, "mt7623",
  1633. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1634. + MTK_FUNCTION(0, "GPIO168")
  1635. + ),
  1636. + MTK_PIN(
  1637. + PINCTRL_PIN(169, "GPIO169"),
  1638. + NULL, "mt7623",
  1639. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1640. + MTK_FUNCTION(0, "GPIO169")
  1641. + ),
  1642. + MTK_PIN(
  1643. + PINCTRL_PIN(170, "GPIO170"),
  1644. + NULL, "mt7623",
  1645. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1646. + MTK_FUNCTION(0, "GPIO170")
  1647. + ),
  1648. + MTK_PIN(
  1649. + PINCTRL_PIN(171, "GPIO171"),
  1650. + NULL, "mt7623",
  1651. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1652. + MTK_FUNCTION(0, "GPIO171")
  1653. + ),
  1654. + MTK_PIN(
  1655. + PINCTRL_PIN(172, "GPIO172"),
  1656. + NULL, "mt7623",
  1657. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1658. + MTK_FUNCTION(0, "GPIO172")
  1659. + ),
  1660. + MTK_PIN(
  1661. + PINCTRL_PIN(173, "GPIO173"),
  1662. + NULL, "mt7623",
  1663. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1664. + MTK_FUNCTION(0, "GPIO173")
  1665. + ),
  1666. + MTK_PIN(
  1667. + PINCTRL_PIN(174, "GPIO174"),
  1668. + NULL, "mt7623",
  1669. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1670. + MTK_FUNCTION(0, "GPIO174")
  1671. + ),
  1672. + MTK_PIN(
  1673. + PINCTRL_PIN(175, "GPIO175"),
  1674. + NULL, "mt7623",
  1675. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1676. + MTK_FUNCTION(0, "GPIO175")
  1677. + ),
  1678. + MTK_PIN(
  1679. + PINCTRL_PIN(176, "GPIO176"),
  1680. + NULL, "mt7623",
  1681. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1682. + MTK_FUNCTION(0, "GPIO176")
  1683. + ),
  1684. + MTK_PIN(
  1685. + PINCTRL_PIN(177, "GPIO177"),
  1686. + NULL, "mt7623",
  1687. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1688. + MTK_FUNCTION(0, "GPIO177")
  1689. + ),
  1690. + MTK_PIN(
  1691. + PINCTRL_PIN(178, "GPIO178"),
  1692. + NULL, "mt7623",
  1693. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1694. + MTK_FUNCTION(0, "GPIO178")
  1695. + ),
  1696. + MTK_PIN(
  1697. + PINCTRL_PIN(179, "GPIO179"),
  1698. + NULL, "mt7623",
  1699. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1700. + MTK_FUNCTION(0, "GPIO179")
  1701. + ),
  1702. + MTK_PIN(
  1703. + PINCTRL_PIN(180, "GPIO180"),
  1704. + NULL, "mt7623",
  1705. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1706. + MTK_FUNCTION(0, "GPIO180")
  1707. + ),
  1708. + MTK_PIN(
  1709. + PINCTRL_PIN(181, "GPIO181"),
  1710. + NULL, "mt7623",
  1711. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1712. + MTK_FUNCTION(0, "GPIO181")
  1713. + ),
  1714. + MTK_PIN(
  1715. + PINCTRL_PIN(182, "GPIO182"),
  1716. + NULL, "mt7623",
  1717. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1718. + MTK_FUNCTION(0, "GPIO182")
  1719. + ),
  1720. + MTK_PIN(
  1721. + PINCTRL_PIN(183, "GPIO183"),
  1722. + NULL, "mt7623",
  1723. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1724. + MTK_FUNCTION(0, "GPIO183")
  1725. + ),
  1726. + MTK_PIN(
  1727. + PINCTRL_PIN(184, "GPIO184"),
  1728. + NULL, "mt7623",
  1729. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1730. + MTK_FUNCTION(0, "GPIO184")
  1731. + ),
  1732. + MTK_PIN(
  1733. + PINCTRL_PIN(185, "GPIO185"),
  1734. + NULL, "mt7623",
  1735. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1736. + MTK_FUNCTION(0, "GPIO185")
  1737. + ),
  1738. + MTK_PIN(
  1739. + PINCTRL_PIN(186, "GPIO186"),
  1740. + NULL, "mt7623",
  1741. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1742. + MTK_FUNCTION(0, "GPIO186")
  1743. + ),
  1744. + MTK_PIN(
  1745. + PINCTRL_PIN(187, "GPIO187"),
  1746. + NULL, "mt7623",
  1747. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1748. + MTK_FUNCTION(0, "GPIO187")
  1749. + ),
  1750. + MTK_PIN(
  1751. + PINCTRL_PIN(188, "GPIO188"),
  1752. + NULL, "mt7623",
  1753. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1754. + MTK_FUNCTION(0, "GPIO188")
  1755. + ),
  1756. + MTK_PIN(
  1757. + PINCTRL_PIN(189, "GPIO189"),
  1758. + NULL, "mt7623",
  1759. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1760. + MTK_FUNCTION(0, "GPIO189")
  1761. + ),
  1762. + MTK_PIN(
  1763. + PINCTRL_PIN(190, "GPIO190"),
  1764. + NULL, "mt7623",
  1765. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1766. + MTK_FUNCTION(0, "GPIO190")
  1767. + ),
  1768. + MTK_PIN(
  1769. + PINCTRL_PIN(191, "GPIO191"),
  1770. + NULL, "mt7623",
  1771. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1772. + MTK_FUNCTION(0, "GPIO191")
  1773. + ),
  1774. + MTK_PIN(
  1775. + PINCTRL_PIN(192, "GPIO192"),
  1776. + NULL, "mt7623",
  1777. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1778. + MTK_FUNCTION(0, "GPIO192")
  1779. + ),
  1780. + MTK_PIN(
  1781. + PINCTRL_PIN(193, "GPIO193"),
  1782. + NULL, "mt7623",
  1783. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1784. + MTK_FUNCTION(0, "GPIO193")
  1785. + ),
  1786. + MTK_PIN(
  1787. + PINCTRL_PIN(194, "GPIO194"),
  1788. + NULL, "mt7623",
  1789. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1790. + MTK_FUNCTION(0, "GPIO194")
  1791. + ),
  1792. + MTK_PIN(
  1793. + PINCTRL_PIN(195, "GPIO195"),
  1794. + NULL, "mt7623",
  1795. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1796. + MTK_FUNCTION(0, "GPIO195")
  1797. + ),
  1798. + MTK_PIN(
  1799. + PINCTRL_PIN(196, "GPIO196"),
  1800. + NULL, "mt7623",
  1801. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1802. + MTK_FUNCTION(0, "GPIO196")
  1803. + ),
  1804. + MTK_PIN(
  1805. + PINCTRL_PIN(197, "GPIO197"),
  1806. + NULL, "mt7623",
  1807. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1808. + MTK_FUNCTION(0, "GPIO197")
  1809. + ),
  1810. + MTK_PIN(
  1811. + PINCTRL_PIN(198, "GPIO198"),
  1812. + NULL, "mt7623",
  1813. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1814. + MTK_FUNCTION(0, "GPIO198")
  1815. + ),
  1816. + MTK_PIN(
  1817. + PINCTRL_PIN(199, "SPI1_CK"),
  1818. + "E19", "mt7623",
  1819. + MTK_EINT_FUNCTION(0, 111),
  1820. + MTK_FUNCTION(0, "GPIO199"),
  1821. + MTK_FUNCTION(1, "SPI1_CK")
  1822. + ),
  1823. + MTK_PIN(
  1824. + PINCTRL_PIN(200, "URXD2"),
  1825. + "K18", "mt7623",
  1826. + MTK_EINT_FUNCTION(0, 112),
  1827. + MTK_FUNCTION(0, "GPIO200"),
  1828. + MTK_FUNCTION(6, "URXD2")
  1829. + ),
  1830. + MTK_PIN(
  1831. + PINCTRL_PIN(201, "UTXD2"),
  1832. + "L18", "mt7623",
  1833. + MTK_EINT_FUNCTION(0, 113),
  1834. + MTK_FUNCTION(0, "GPIO201"),
  1835. + MTK_FUNCTION(6, "UTXD2")
  1836. + ),
  1837. + MTK_PIN(
  1838. + PINCTRL_PIN(202, "GPIO202"),
  1839. + NULL, "mt7623",
  1840. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1841. + MTK_FUNCTION(0, "GPIO202")
  1842. + ),
  1843. + MTK_PIN(
  1844. + PINCTRL_PIN(203, "PWM0"),
  1845. + "AA16", "mt7623",
  1846. + MTK_EINT_FUNCTION(0, 115),
  1847. + MTK_FUNCTION(0, "GPIO203"),
  1848. + MTK_FUNCTION(1, "PWM0"),
  1849. + MTK_FUNCTION(2, "DISP_PWM")
  1850. + ),
  1851. + MTK_PIN(
  1852. + PINCTRL_PIN(204, "PWM1"),
  1853. + "Y16", "mt7623",
  1854. + MTK_EINT_FUNCTION(0, 116),
  1855. + MTK_FUNCTION(0, "GPIO204"),
  1856. + MTK_FUNCTION(1, "PWM1")
  1857. + ),
  1858. + MTK_PIN(
  1859. + PINCTRL_PIN(205, "PWM2"),
  1860. + "AA15", "mt7623",
  1861. + MTK_EINT_FUNCTION(0, 117),
  1862. + MTK_FUNCTION(0, "GPIO205"),
  1863. + MTK_FUNCTION(1, "PWM2")
  1864. + ),
  1865. + MTK_PIN(
  1866. + PINCTRL_PIN(206, "PWM3"),
  1867. + "AA17", "mt7623",
  1868. + MTK_EINT_FUNCTION(0, 118),
  1869. + MTK_FUNCTION(0, "GPIO206"),
  1870. + MTK_FUNCTION(1, "PWM3")
  1871. + ),
  1872. + MTK_PIN(
  1873. + PINCTRL_PIN(207, "PWM4"),
  1874. + "Y15", "mt7623",
  1875. + MTK_EINT_FUNCTION(0, 119),
  1876. + MTK_FUNCTION(0, "GPIO207"),
  1877. + MTK_FUNCTION(1, "PWM4")
  1878. + ),
  1879. + MTK_PIN(
  1880. + PINCTRL_PIN(208, "AUD_EXT_CK1"),
  1881. + "W14", "mt7623",
  1882. + MTK_EINT_FUNCTION(0, 120),
  1883. + MTK_FUNCTION(0, "GPIO208"),
  1884. + MTK_FUNCTION(1, "AUD_EXT_CK1"),
  1885. + MTK_FUNCTION(2, "PWM0"),
  1886. + MTK_FUNCTION(3, "PCIE0_PERST_N"),
  1887. + MTK_FUNCTION(5, "DISP_PWM")
  1888. + ),
  1889. + MTK_PIN(
  1890. + PINCTRL_PIN(209, "AUD_EXT_CK2"),
  1891. + "V15", "mt7623",
  1892. + MTK_EINT_FUNCTION(0, 121),
  1893. + MTK_FUNCTION(0, "GPIO209"),
  1894. + MTK_FUNCTION(1, "AUD_EXT_CK2"),
  1895. + MTK_FUNCTION(2, "MSDC1_WP"),
  1896. + MTK_FUNCTION(3, "PCIE1_PERST_N"),
  1897. + MTK_FUNCTION(5, "PWM1")
  1898. + ),
  1899. + MTK_PIN(
  1900. + PINCTRL_PIN(210, "GPIO210"),
  1901. + NULL, "mt7623",
  1902. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1903. + MTK_FUNCTION(0, "GPIO210")
  1904. + ),
  1905. + MTK_PIN(
  1906. + PINCTRL_PIN(211, "GPIO211"),
  1907. + NULL, "mt7623",
  1908. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1909. + MTK_FUNCTION(0, "GPIO211")
  1910. + ),
  1911. + MTK_PIN(
  1912. + PINCTRL_PIN(212, "GPIO212"),
  1913. + NULL, "mt7623",
  1914. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1915. + MTK_FUNCTION(0, "GPIO212")
  1916. + ),
  1917. + MTK_PIN(
  1918. + PINCTRL_PIN(213, "GPIO213"),
  1919. + NULL, "mt7623",
  1920. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1921. + MTK_FUNCTION(0, "GPIO213")
  1922. + ),
  1923. + MTK_PIN(
  1924. + PINCTRL_PIN(214, "GPIO214"),
  1925. + NULL, "mt7623",
  1926. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1927. + MTK_FUNCTION(0, "GPIO214")
  1928. + ),
  1929. + MTK_PIN(
  1930. + PINCTRL_PIN(215, "GPIO215"),
  1931. + NULL, "mt7623",
  1932. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1933. + MTK_FUNCTION(0, "GPIO215")
  1934. + ),
  1935. + MTK_PIN(
  1936. + PINCTRL_PIN(216, "GPIO216"),
  1937. + NULL, "mt7623",
  1938. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1939. + MTK_FUNCTION(0, "GPIO216")
  1940. + ),
  1941. + MTK_PIN(
  1942. + PINCTRL_PIN(217, "GPIO217"),
  1943. + NULL, "mt7623",
  1944. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1945. + MTK_FUNCTION(0, "GPIO217")
  1946. + ),
  1947. + MTK_PIN(
  1948. + PINCTRL_PIN(218, "GPIO218"),
  1949. + NULL, "mt7623",
  1950. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1951. + MTK_FUNCTION(0, "GPIO218")
  1952. + ),
  1953. + MTK_PIN(
  1954. + PINCTRL_PIN(219, "GPIO219"),
  1955. + NULL, "mt7623",
  1956. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1957. + MTK_FUNCTION(0, "GPIO219")
  1958. + ),
  1959. + MTK_PIN(
  1960. + PINCTRL_PIN(220, "GPIO220"),
  1961. + NULL, "mt7623",
  1962. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1963. + MTK_FUNCTION(0, "GPIO220")
  1964. + ),
  1965. + MTK_PIN(
  1966. + PINCTRL_PIN(221, "GPIO221"),
  1967. + NULL, "mt7623",
  1968. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1969. + MTK_FUNCTION(0, "GPIO221")
  1970. + ),
  1971. + MTK_PIN(
  1972. + PINCTRL_PIN(222, "GPIO222"),
  1973. + NULL, "mt7623",
  1974. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1975. + MTK_FUNCTION(0, "GPIO222")
  1976. + ),
  1977. + MTK_PIN(
  1978. + PINCTRL_PIN(223, "GPIO223"),
  1979. + NULL, "mt7623",
  1980. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1981. + MTK_FUNCTION(0, "GPIO223")
  1982. + ),
  1983. + MTK_PIN(
  1984. + PINCTRL_PIN(224, "GPIO224"),
  1985. + NULL, "mt7623",
  1986. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1987. + MTK_FUNCTION(0, "GPIO224")
  1988. + ),
  1989. + MTK_PIN(
  1990. + PINCTRL_PIN(225, "GPIO225"),
  1991. + NULL, "mt7623",
  1992. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1993. + MTK_FUNCTION(0, "GPIO225")
  1994. + ),
  1995. + MTK_PIN(
  1996. + PINCTRL_PIN(226, "GPIO226"),
  1997. + NULL, "mt7623",
  1998. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  1999. + MTK_FUNCTION(0, "GPIO226")
  2000. + ),
  2001. + MTK_PIN(
  2002. + PINCTRL_PIN(227, "GPIO227"),
  2003. + NULL, "mt7623",
  2004. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2005. + MTK_FUNCTION(0, "GPIO227")
  2006. + ),
  2007. + MTK_PIN(
  2008. + PINCTRL_PIN(228, "GPIO228"),
  2009. + NULL, "mt7623",
  2010. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2011. + MTK_FUNCTION(0, "GPIO228")
  2012. + ),
  2013. + MTK_PIN(
  2014. + PINCTRL_PIN(229, "GPIO229"),
  2015. + NULL, "mt7623",
  2016. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2017. + MTK_FUNCTION(0, "GPIO229")
  2018. + ),
  2019. + MTK_PIN(
  2020. + PINCTRL_PIN(230, "GPIO230"),
  2021. + NULL, "mt7623",
  2022. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2023. + MTK_FUNCTION(0, "GPIO230")
  2024. + ),
  2025. + MTK_PIN(
  2026. + PINCTRL_PIN(231, "GPIO231"),
  2027. + NULL, "mt7623",
  2028. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2029. + MTK_FUNCTION(0, "GPIO231")
  2030. + ),
  2031. + MTK_PIN(
  2032. + PINCTRL_PIN(232, "GPIO232"),
  2033. + NULL, "mt7623",
  2034. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2035. + MTK_FUNCTION(0, "GPIO232")
  2036. + ),
  2037. + MTK_PIN(
  2038. + PINCTRL_PIN(233, "GPIO233"),
  2039. + NULL, "mt7623",
  2040. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2041. + MTK_FUNCTION(0, "GPIO233")
  2042. + ),
  2043. + MTK_PIN(
  2044. + PINCTRL_PIN(234, "GPIO234"),
  2045. + NULL, "mt7623",
  2046. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2047. + MTK_FUNCTION(0, "GPIO234")
  2048. + ),
  2049. + MTK_PIN(
  2050. + PINCTRL_PIN(235, "GPIO235"),
  2051. + NULL, "mt7623",
  2052. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2053. + MTK_FUNCTION(0, "GPIO235")
  2054. + ),
  2055. + MTK_PIN(
  2056. + PINCTRL_PIN(236, "EXT_SDIO3"),
  2057. + "A8", "mt7623",
  2058. + MTK_EINT_FUNCTION(0, 122),
  2059. + MTK_FUNCTION(0, "GPIO236"),
  2060. + MTK_FUNCTION(1, "EXT_SDIO3"),
  2061. + MTK_FUNCTION(2, "IDDIG")
  2062. + ),
  2063. + MTK_PIN(
  2064. + PINCTRL_PIN(237, "EXT_SDIO2"),
  2065. + "D8", "mt7623",
  2066. + MTK_EINT_FUNCTION(0, 123),
  2067. + MTK_FUNCTION(0, "GPIO237"),
  2068. + MTK_FUNCTION(1, "EXT_SDIO2"),
  2069. + MTK_FUNCTION(2, "DRV_VBUS")
  2070. + ),
  2071. + MTK_PIN(
  2072. + PINCTRL_PIN(238, "EXT_SDIO1"),
  2073. + "D9", "mt7623",
  2074. + MTK_EINT_FUNCTION(0, 124),
  2075. + MTK_FUNCTION(0, "GPIO238"),
  2076. + MTK_FUNCTION(1, "EXT_SDIO1")
  2077. + ),
  2078. + MTK_PIN(
  2079. + PINCTRL_PIN(239, "EXT_SDIO0"),
  2080. + "B8", "mt7623",
  2081. + MTK_EINT_FUNCTION(0, 125),
  2082. + MTK_FUNCTION(0, "GPIO239"),
  2083. + MTK_FUNCTION(1, "EXT_SDIO0")
  2084. + ),
  2085. + MTK_PIN(
  2086. + PINCTRL_PIN(240, "EXT_XCS"),
  2087. + "C9", "mt7623",
  2088. + MTK_EINT_FUNCTION(0, 126),
  2089. + MTK_FUNCTION(0, "GPIO240"),
  2090. + MTK_FUNCTION(1, "EXT_XCS")
  2091. + ),
  2092. + MTK_PIN(
  2093. + PINCTRL_PIN(241, "EXT_SCK"),
  2094. + "C8", "mt7623",
  2095. + MTK_EINT_FUNCTION(0, 127),
  2096. + MTK_FUNCTION(0, "GPIO241"),
  2097. + MTK_FUNCTION(1, "EXT_SCK")
  2098. + ),
  2099. + MTK_PIN(
  2100. + PINCTRL_PIN(242, "URTS2"),
  2101. + "G18", "mt7623",
  2102. + MTK_EINT_FUNCTION(0, 128),
  2103. + MTK_FUNCTION(0, "GPIO242"),
  2104. + MTK_FUNCTION(1, "URTS2"),
  2105. + MTK_FUNCTION(2, "UTXD3"),
  2106. + MTK_FUNCTION(3, "URXD3"),
  2107. + MTK_FUNCTION(4, "SCL1")
  2108. + ),
  2109. + MTK_PIN(
  2110. + PINCTRL_PIN(243, "UCTS2"),
  2111. + "H19", "mt7623",
  2112. + MTK_EINT_FUNCTION(0, 129),
  2113. + MTK_FUNCTION(0, "GPIO243"),
  2114. + MTK_FUNCTION(1, "UCTS2"),
  2115. + MTK_FUNCTION(2, "URXD3"),
  2116. + MTK_FUNCTION(3, "UTXD3"),
  2117. + MTK_FUNCTION(4, "SDA1")
  2118. + ),
  2119. + MTK_PIN(
  2120. + PINCTRL_PIN(244, "GPIO244"),
  2121. + NULL, "mt7623",
  2122. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2123. + MTK_FUNCTION(0, "GPIO244")
  2124. + ),
  2125. + MTK_PIN(
  2126. + PINCTRL_PIN(245, "GPIO245"),
  2127. + NULL, "mt7623",
  2128. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2129. + MTK_FUNCTION(0, "GPIO245")
  2130. + ),
  2131. + MTK_PIN(
  2132. + PINCTRL_PIN(246, "GPIO246"),
  2133. + NULL, "mt7623",
  2134. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2135. + MTK_FUNCTION(0, "GPIO246")
  2136. + ),
  2137. + MTK_PIN(
  2138. + PINCTRL_PIN(247, "GPIO247"),
  2139. + NULL, "mt7623",
  2140. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2141. + MTK_FUNCTION(0, "GPIO247")
  2142. + ),
  2143. + MTK_PIN(
  2144. + PINCTRL_PIN(248, "GPIO248"),
  2145. + NULL, "mt7623",
  2146. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2147. + MTK_FUNCTION(0, "GPIO248")
  2148. + ),
  2149. + MTK_PIN(
  2150. + PINCTRL_PIN(249, "GPIO249"),
  2151. + NULL, "mt7623",
  2152. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2153. + MTK_FUNCTION(0, "GPIO249")
  2154. + ),
  2155. + MTK_PIN(
  2156. + PINCTRL_PIN(250, "GPIO250"),
  2157. + "A15", "mt7623",
  2158. + MTK_EINT_FUNCTION(0, 135),
  2159. + MTK_FUNCTION(0, "GPIO250"),
  2160. + MTK_FUNCTION(1, "TEST_MD7"),
  2161. + MTK_FUNCTION(6, "PCIE0_CLKREQ_N")
  2162. + ),
  2163. + MTK_PIN(
  2164. + PINCTRL_PIN(251, "GPIO251"),
  2165. + "B15", "mt7623",
  2166. + MTK_EINT_FUNCTION(0, 136),
  2167. + MTK_FUNCTION(0, "GPIO251"),
  2168. + MTK_FUNCTION(1, "TEST_MD6"),
  2169. + MTK_FUNCTION(6, "PCIE0_WAKE_N")
  2170. + ),
  2171. + MTK_PIN(
  2172. + PINCTRL_PIN(252, "GPIO252"),
  2173. + "C16", "mt7623",
  2174. + MTK_EINT_FUNCTION(0, 137),
  2175. + MTK_FUNCTION(0, "GPIO252"),
  2176. + MTK_FUNCTION(1, "TEST_MD5"),
  2177. + MTK_FUNCTION(6, "PCIE1_CLKREQ_N")
  2178. + ),
  2179. + MTK_PIN(
  2180. + PINCTRL_PIN(253, "GPIO253"),
  2181. + "D17", "mt7623",
  2182. + MTK_EINT_FUNCTION(0, 138),
  2183. + MTK_FUNCTION(0, "GPIO253"),
  2184. + MTK_FUNCTION(1, "TEST_MD4"),
  2185. + MTK_FUNCTION(6, "PCIE1_WAKE_N")
  2186. + ),
  2187. + MTK_PIN(
  2188. + PINCTRL_PIN(254, "GPIO254"),
  2189. + "D16", "mt7623",
  2190. + MTK_EINT_FUNCTION(0, 139),
  2191. + MTK_FUNCTION(0, "GPIO254"),
  2192. + MTK_FUNCTION(1, "TEST_MD3"),
  2193. + MTK_FUNCTION(6, "PCIE2_CLKREQ_N")
  2194. + ),
  2195. + MTK_PIN(
  2196. + PINCTRL_PIN(255, "GPIO255"),
  2197. + "C17", "mt7623",
  2198. + MTK_EINT_FUNCTION(0, 140),
  2199. + MTK_FUNCTION(0, "GPIO255"),
  2200. + MTK_FUNCTION(1, "TEST_MD2"),
  2201. + MTK_FUNCTION(6, "PCIE2_WAKE_N")
  2202. + ),
  2203. + MTK_PIN(
  2204. + PINCTRL_PIN(256, "GPIO256"),
  2205. + "B17", "mt7623",
  2206. + MTK_EINT_FUNCTION(0, 141),
  2207. + MTK_FUNCTION(0, "GPIO256"),
  2208. + MTK_FUNCTION(1, "TEST_MD1")
  2209. + ),
  2210. + MTK_PIN(
  2211. + PINCTRL_PIN(257, "GPIO257"),
  2212. + "C15", "mt7623",
  2213. + MTK_EINT_FUNCTION(0, 142),
  2214. + MTK_FUNCTION(0, "GPIO257"),
  2215. + MTK_FUNCTION(1, "TEST_MD0")
  2216. + ),
  2217. + MTK_PIN(
  2218. + PINCTRL_PIN(258, "GPIO258"),
  2219. + NULL, "mt7623",
  2220. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2221. + MTK_FUNCTION(0, "GPIO258")
  2222. + ),
  2223. + MTK_PIN(
  2224. + PINCTRL_PIN(259, "GPIO259"),
  2225. + NULL, "mt7623",
  2226. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2227. + MTK_FUNCTION(0, "GPIO259")
  2228. + ),
  2229. + MTK_PIN(
  2230. + PINCTRL_PIN(260, "GPIO260"),
  2231. + NULL, "mt7623",
  2232. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2233. + MTK_FUNCTION(0, "GPIO260")
  2234. + ),
  2235. + MTK_PIN(
  2236. + PINCTRL_PIN(261, "MSDC1_INS"),
  2237. + "AD1", "mt7623",
  2238. + MTK_EINT_FUNCTION(0, 146),
  2239. + MTK_FUNCTION(0, "GPIO261"),
  2240. + MTK_FUNCTION(1, "MSDC1_INS")
  2241. + ),
  2242. + MTK_PIN(
  2243. + PINCTRL_PIN(262, "G2_TXEN"),
  2244. + "A23", "mt7623",
  2245. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2246. + MTK_FUNCTION(0, "GPIO262"),
  2247. + MTK_FUNCTION(1, "G2_TXEN")
  2248. + ),
  2249. + MTK_PIN(
  2250. + PINCTRL_PIN(263, "G2_TXD3"),
  2251. + NULL, "mt7623",
  2252. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2253. + MTK_FUNCTION(0, "GPIO263"),
  2254. + MTK_FUNCTION(1, "G2_TXD3")
  2255. + ),
  2256. + MTK_PIN(
  2257. + PINCTRL_PIN(264, "G2_TXD2"),
  2258. + "C24", "mt7623",
  2259. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2260. + MTK_FUNCTION(0, "GPIO264"),
  2261. + MTK_FUNCTION(1, "G2_TXD2")
  2262. + ),
  2263. + MTK_PIN(
  2264. + PINCTRL_PIN(265, "G2_TXD1"),
  2265. + "B25", "mt7623",
  2266. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2267. + MTK_FUNCTION(0, "GPIO265"),
  2268. + MTK_FUNCTION(1, "G2_TXD1")
  2269. + ),
  2270. + MTK_PIN(
  2271. + PINCTRL_PIN(266, "G2_TXD0"),
  2272. + "A24", "mt7623",
  2273. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2274. + MTK_FUNCTION(0, "GPIO266"),
  2275. + MTK_FUNCTION(1, "G2_TXD0")
  2276. + ),
  2277. + MTK_PIN(
  2278. + PINCTRL_PIN(267, "G2_TXCLK"),
  2279. + "C23", "mt7623",
  2280. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2281. + MTK_FUNCTION(0, "GPIO267"),
  2282. + MTK_FUNCTION(1, "G2_TXC")
  2283. + ),
  2284. + MTK_PIN(
  2285. + PINCTRL_PIN(268, "G2_RXCLK"),
  2286. + "B23", "mt7623",
  2287. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2288. + MTK_FUNCTION(0, "GPIO268"),
  2289. + MTK_FUNCTION(1, "G2_RXC")
  2290. + ),
  2291. + MTK_PIN(
  2292. + PINCTRL_PIN(269, "G2_RXD0"),
  2293. + "D21", "mt7623",
  2294. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2295. + MTK_FUNCTION(0, "GPIO269"),
  2296. + MTK_FUNCTION(1, "G2_RXD0")
  2297. + ),
  2298. + MTK_PIN(
  2299. + PINCTRL_PIN(270, "G2_RXD1"),
  2300. + "B22", "mt7623",
  2301. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2302. + MTK_FUNCTION(0, "GPIO270"),
  2303. + MTK_FUNCTION(1, "G2_RXD1")
  2304. + ),
  2305. + MTK_PIN(
  2306. + PINCTRL_PIN(271, "G2_RXD2"),
  2307. + "A22", "mt7623",
  2308. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2309. + MTK_FUNCTION(0, "GPIO271"),
  2310. + MTK_FUNCTION(1, "G2_RXD2")
  2311. + ),
  2312. + MTK_PIN(
  2313. + PINCTRL_PIN(272, "G2_RXD3"),
  2314. + "C22", "mt7623",
  2315. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2316. + MTK_FUNCTION(0, "GPIO272"),
  2317. + MTK_FUNCTION(1, "G2_RXD3")
  2318. + ),
  2319. + MTK_PIN(
  2320. + PINCTRL_PIN(273, "GPIO273"),
  2321. + NULL, "mt7623",
  2322. + MTK_EINT_FUNCTION(0, 168),
  2323. + MTK_FUNCTION(0, "GPIO273"),
  2324. + MTK_FUNCTION(1, "ESW_INT")
  2325. + ),
  2326. + MTK_PIN(
  2327. + PINCTRL_PIN(274, "G2_RXDV"),
  2328. + "C21", "mt7623",
  2329. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2330. + MTK_FUNCTION(0, "GPIO274"),
  2331. + MTK_FUNCTION(1, "G2_RXDV")
  2332. + ),
  2333. + MTK_PIN(
  2334. + PINCTRL_PIN(275, "G2_MDC"),
  2335. + NULL, "mt7623",
  2336. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2337. + MTK_FUNCTION(0, "GPIO275"),
  2338. + MTK_FUNCTION(1, "MDC")
  2339. + ),
  2340. + MTK_PIN(
  2341. + PINCTRL_PIN(276, "G2_MDIO"),
  2342. + NULL, "mt7623",
  2343. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2344. + MTK_FUNCTION(0, "GPIO276"),
  2345. + MTK_FUNCTION(1, "MDIO")
  2346. + ),
  2347. + MTK_PIN(
  2348. + PINCTRL_PIN(277, "GPIO277"),
  2349. + NULL, "mt7623",
  2350. + MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
  2351. + MTK_FUNCTION(0, "GPIO277")
  2352. + ),
  2353. + MTK_PIN(
  2354. + PINCTRL_PIN(278, "JTAG_RESET"),
  2355. + "H20", "mt7623",
  2356. + MTK_EINT_FUNCTION(0, 147),
  2357. + MTK_FUNCTION(0, "GPIO278"),
  2358. + MTK_FUNCTION(1, "JTAG_RESET")
  2359. + ),
  2360. +};
  2361. +
  2362. +#endif /* __PINCTRL_MTK_MT7623_H */
  2363. --- a/include/dt-bindings/pinctrl/mt7623-pinfunc.h
  2364. +++ b/include/dt-bindings/pinctrl/mt7623-pinfunc.h
  2365. @@ -505,6 +505,9 @@
  2366. #define MT7623_PIN_272_G2_RXD3_FUNC_GPIO272 (MTK_PIN_NO(272) | 0)
  2367. #define MT7623_PIN_272_G2_RXD3_FUNC_G2_RXD3 (MTK_PIN_NO(272) | 1)
  2368. +#define MT7623_PIN_273_ESW_INT_FUNC_GPIO273 (MTK_PIN_NO(273) | 0)
  2369. +#define MT7623_PIN_273_ESW_INT_FUNC_ESW_INT (MTK_PIN_NO(273) | 1)
  2370. +
  2371. #define MT7623_PIN_274_G2_RXDV_FUNC_GPIO274 (MTK_PIN_NO(274) | 0)
  2372. #define MT7623_PIN_274_G2_RXDV_FUNC_G2_RXDV (MTK_PIN_NO(274) | 1)