pinctrl-tegra30.c 86 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511
  1. /*
  2. * Pinctrl data for the NVIDIA Tegra30 pinmux
  3. *
  4. * Author: Stephen Warren <swarren@nvidia.com>
  5. *
  6. * Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved.
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms and conditions of the GNU General Public License,
  10. * version 2, as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope it will be useful, but WITHOUT
  13. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  15. * more details.
  16. */
  17. #include <linux/init.h>
  18. #include <linux/of.h>
  19. #include <linux/platform_device.h>
  20. #include <linux/pinctrl/pinctrl.h>
  21. #include <linux/pinctrl/pinmux.h>
  22. #include "pinctrl-tegra.h"
  23. /*
  24. * Most pins affected by the pinmux can also be GPIOs. Define these first.
  25. * These must match how the GPIO driver names/numbers its pins.
  26. */
  27. #define _GPIO(offset) (offset)
  28. #define TEGRA_PIN_CLK_32K_OUT_PA0 _GPIO(0)
  29. #define TEGRA_PIN_UART3_CTS_N_PA1 _GPIO(1)
  30. #define TEGRA_PIN_DAP2_FS_PA2 _GPIO(2)
  31. #define TEGRA_PIN_DAP2_SCLK_PA3 _GPIO(3)
  32. #define TEGRA_PIN_DAP2_DIN_PA4 _GPIO(4)
  33. #define TEGRA_PIN_DAP2_DOUT_PA5 _GPIO(5)
  34. #define TEGRA_PIN_SDMMC3_CLK_PA6 _GPIO(6)
  35. #define TEGRA_PIN_SDMMC3_CMD_PA7 _GPIO(7)
  36. #define TEGRA_PIN_GMI_A17_PB0 _GPIO(8)
  37. #define TEGRA_PIN_GMI_A18_PB1 _GPIO(9)
  38. #define TEGRA_PIN_LCD_PWR0_PB2 _GPIO(10)
  39. #define TEGRA_PIN_LCD_PCLK_PB3 _GPIO(11)
  40. #define TEGRA_PIN_SDMMC3_DAT3_PB4 _GPIO(12)
  41. #define TEGRA_PIN_SDMMC3_DAT2_PB5 _GPIO(13)
  42. #define TEGRA_PIN_SDMMC3_DAT1_PB6 _GPIO(14)
  43. #define TEGRA_PIN_SDMMC3_DAT0_PB7 _GPIO(15)
  44. #define TEGRA_PIN_UART3_RTS_N_PC0 _GPIO(16)
  45. #define TEGRA_PIN_LCD_PWR1_PC1 _GPIO(17)
  46. #define TEGRA_PIN_UART2_TXD_PC2 _GPIO(18)
  47. #define TEGRA_PIN_UART2_RXD_PC3 _GPIO(19)
  48. #define TEGRA_PIN_GEN1_I2C_SCL_PC4 _GPIO(20)
  49. #define TEGRA_PIN_GEN1_I2C_SDA_PC5 _GPIO(21)
  50. #define TEGRA_PIN_LCD_PWR2_PC6 _GPIO(22)
  51. #define TEGRA_PIN_GMI_WP_N_PC7 _GPIO(23)
  52. #define TEGRA_PIN_SDMMC3_DAT5_PD0 _GPIO(24)
  53. #define TEGRA_PIN_SDMMC3_DAT4_PD1 _GPIO(25)
  54. #define TEGRA_PIN_LCD_DC1_PD2 _GPIO(26)
  55. #define TEGRA_PIN_SDMMC3_DAT6_PD3 _GPIO(27)
  56. #define TEGRA_PIN_SDMMC3_DAT7_PD4 _GPIO(28)
  57. #define TEGRA_PIN_VI_D1_PD5 _GPIO(29)
  58. #define TEGRA_PIN_VI_VSYNC_PD6 _GPIO(30)
  59. #define TEGRA_PIN_VI_HSYNC_PD7 _GPIO(31)
  60. #define TEGRA_PIN_LCD_D0_PE0 _GPIO(32)
  61. #define TEGRA_PIN_LCD_D1_PE1 _GPIO(33)
  62. #define TEGRA_PIN_LCD_D2_PE2 _GPIO(34)
  63. #define TEGRA_PIN_LCD_D3_PE3 _GPIO(35)
  64. #define TEGRA_PIN_LCD_D4_PE4 _GPIO(36)
  65. #define TEGRA_PIN_LCD_D5_PE5 _GPIO(37)
  66. #define TEGRA_PIN_LCD_D6_PE6 _GPIO(38)
  67. #define TEGRA_PIN_LCD_D7_PE7 _GPIO(39)
  68. #define TEGRA_PIN_LCD_D8_PF0 _GPIO(40)
  69. #define TEGRA_PIN_LCD_D9_PF1 _GPIO(41)
  70. #define TEGRA_PIN_LCD_D10_PF2 _GPIO(42)
  71. #define TEGRA_PIN_LCD_D11_PF3 _GPIO(43)
  72. #define TEGRA_PIN_LCD_D12_PF4 _GPIO(44)
  73. #define TEGRA_PIN_LCD_D13_PF5 _GPIO(45)
  74. #define TEGRA_PIN_LCD_D14_PF6 _GPIO(46)
  75. #define TEGRA_PIN_LCD_D15_PF7 _GPIO(47)
  76. #define TEGRA_PIN_GMI_AD0_PG0 _GPIO(48)
  77. #define TEGRA_PIN_GMI_AD1_PG1 _GPIO(49)
  78. #define TEGRA_PIN_GMI_AD2_PG2 _GPIO(50)
  79. #define TEGRA_PIN_GMI_AD3_PG3 _GPIO(51)
  80. #define TEGRA_PIN_GMI_AD4_PG4 _GPIO(52)
  81. #define TEGRA_PIN_GMI_AD5_PG5 _GPIO(53)
  82. #define TEGRA_PIN_GMI_AD6_PG6 _GPIO(54)
  83. #define TEGRA_PIN_GMI_AD7_PG7 _GPIO(55)
  84. #define TEGRA_PIN_GMI_AD8_PH0 _GPIO(56)
  85. #define TEGRA_PIN_GMI_AD9_PH1 _GPIO(57)
  86. #define TEGRA_PIN_GMI_AD10_PH2 _GPIO(58)
  87. #define TEGRA_PIN_GMI_AD11_PH3 _GPIO(59)
  88. #define TEGRA_PIN_GMI_AD12_PH4 _GPIO(60)
  89. #define TEGRA_PIN_GMI_AD13_PH5 _GPIO(61)
  90. #define TEGRA_PIN_GMI_AD14_PH6 _GPIO(62)
  91. #define TEGRA_PIN_GMI_AD15_PH7 _GPIO(63)
  92. #define TEGRA_PIN_GMI_WR_N_PI0 _GPIO(64)
  93. #define TEGRA_PIN_GMI_OE_N_PI1 _GPIO(65)
  94. #define TEGRA_PIN_GMI_DQS_PI2 _GPIO(66)
  95. #define TEGRA_PIN_GMI_CS6_N_PI3 _GPIO(67)
  96. #define TEGRA_PIN_GMI_RST_N_PI4 _GPIO(68)
  97. #define TEGRA_PIN_GMI_IORDY_PI5 _GPIO(69)
  98. #define TEGRA_PIN_GMI_CS7_N_PI6 _GPIO(70)
  99. #define TEGRA_PIN_GMI_WAIT_PI7 _GPIO(71)
  100. #define TEGRA_PIN_GMI_CS0_N_PJ0 _GPIO(72)
  101. #define TEGRA_PIN_LCD_DE_PJ1 _GPIO(73)
  102. #define TEGRA_PIN_GMI_CS1_N_PJ2 _GPIO(74)
  103. #define TEGRA_PIN_LCD_HSYNC_PJ3 _GPIO(75)
  104. #define TEGRA_PIN_LCD_VSYNC_PJ4 _GPIO(76)
  105. #define TEGRA_PIN_UART2_CTS_N_PJ5 _GPIO(77)
  106. #define TEGRA_PIN_UART2_RTS_N_PJ6 _GPIO(78)
  107. #define TEGRA_PIN_GMI_A16_PJ7 _GPIO(79)
  108. #define TEGRA_PIN_GMI_ADV_N_PK0 _GPIO(80)
  109. #define TEGRA_PIN_GMI_CLK_PK1 _GPIO(81)
  110. #define TEGRA_PIN_GMI_CS4_N_PK2 _GPIO(82)
  111. #define TEGRA_PIN_GMI_CS2_N_PK3 _GPIO(83)
  112. #define TEGRA_PIN_GMI_CS3_N_PK4 _GPIO(84)
  113. #define TEGRA_PIN_SPDIF_OUT_PK5 _GPIO(85)
  114. #define TEGRA_PIN_SPDIF_IN_PK6 _GPIO(86)
  115. #define TEGRA_PIN_GMI_A19_PK7 _GPIO(87)
  116. #define TEGRA_PIN_VI_D2_PL0 _GPIO(88)
  117. #define TEGRA_PIN_VI_D3_PL1 _GPIO(89)
  118. #define TEGRA_PIN_VI_D4_PL2 _GPIO(90)
  119. #define TEGRA_PIN_VI_D5_PL3 _GPIO(91)
  120. #define TEGRA_PIN_VI_D6_PL4 _GPIO(92)
  121. #define TEGRA_PIN_VI_D7_PL5 _GPIO(93)
  122. #define TEGRA_PIN_VI_D8_PL6 _GPIO(94)
  123. #define TEGRA_PIN_VI_D9_PL7 _GPIO(95)
  124. #define TEGRA_PIN_LCD_D16_PM0 _GPIO(96)
  125. #define TEGRA_PIN_LCD_D17_PM1 _GPIO(97)
  126. #define TEGRA_PIN_LCD_D18_PM2 _GPIO(98)
  127. #define TEGRA_PIN_LCD_D19_PM3 _GPIO(99)
  128. #define TEGRA_PIN_LCD_D20_PM4 _GPIO(100)
  129. #define TEGRA_PIN_LCD_D21_PM5 _GPIO(101)
  130. #define TEGRA_PIN_LCD_D22_PM6 _GPIO(102)
  131. #define TEGRA_PIN_LCD_D23_PM7 _GPIO(103)
  132. #define TEGRA_PIN_DAP1_FS_PN0 _GPIO(104)
  133. #define TEGRA_PIN_DAP1_DIN_PN1 _GPIO(105)
  134. #define TEGRA_PIN_DAP1_DOUT_PN2 _GPIO(106)
  135. #define TEGRA_PIN_DAP1_SCLK_PN3 _GPIO(107)
  136. #define TEGRA_PIN_LCD_CS0_N_PN4 _GPIO(108)
  137. #define TEGRA_PIN_LCD_SDOUT_PN5 _GPIO(109)
  138. #define TEGRA_PIN_LCD_DC0_PN6 _GPIO(110)
  139. #define TEGRA_PIN_HDMI_INT_PN7 _GPIO(111)
  140. #define TEGRA_PIN_ULPI_DATA7_PO0 _GPIO(112)
  141. #define TEGRA_PIN_ULPI_DATA0_PO1 _GPIO(113)
  142. #define TEGRA_PIN_ULPI_DATA1_PO2 _GPIO(114)
  143. #define TEGRA_PIN_ULPI_DATA2_PO3 _GPIO(115)
  144. #define TEGRA_PIN_ULPI_DATA3_PO4 _GPIO(116)
  145. #define TEGRA_PIN_ULPI_DATA4_PO5 _GPIO(117)
  146. #define TEGRA_PIN_ULPI_DATA5_PO6 _GPIO(118)
  147. #define TEGRA_PIN_ULPI_DATA6_PO7 _GPIO(119)
  148. #define TEGRA_PIN_DAP3_FS_PP0 _GPIO(120)
  149. #define TEGRA_PIN_DAP3_DIN_PP1 _GPIO(121)
  150. #define TEGRA_PIN_DAP3_DOUT_PP2 _GPIO(122)
  151. #define TEGRA_PIN_DAP3_SCLK_PP3 _GPIO(123)
  152. #define TEGRA_PIN_DAP4_FS_PP4 _GPIO(124)
  153. #define TEGRA_PIN_DAP4_DIN_PP5 _GPIO(125)
  154. #define TEGRA_PIN_DAP4_DOUT_PP6 _GPIO(126)
  155. #define TEGRA_PIN_DAP4_SCLK_PP7 _GPIO(127)
  156. #define TEGRA_PIN_KB_COL0_PQ0 _GPIO(128)
  157. #define TEGRA_PIN_KB_COL1_PQ1 _GPIO(129)
  158. #define TEGRA_PIN_KB_COL2_PQ2 _GPIO(130)
  159. #define TEGRA_PIN_KB_COL3_PQ3 _GPIO(131)
  160. #define TEGRA_PIN_KB_COL4_PQ4 _GPIO(132)
  161. #define TEGRA_PIN_KB_COL5_PQ5 _GPIO(133)
  162. #define TEGRA_PIN_KB_COL6_PQ6 _GPIO(134)
  163. #define TEGRA_PIN_KB_COL7_PQ7 _GPIO(135)
  164. #define TEGRA_PIN_KB_ROW0_PR0 _GPIO(136)
  165. #define TEGRA_PIN_KB_ROW1_PR1 _GPIO(137)
  166. #define TEGRA_PIN_KB_ROW2_PR2 _GPIO(138)
  167. #define TEGRA_PIN_KB_ROW3_PR3 _GPIO(139)
  168. #define TEGRA_PIN_KB_ROW4_PR4 _GPIO(140)
  169. #define TEGRA_PIN_KB_ROW5_PR5 _GPIO(141)
  170. #define TEGRA_PIN_KB_ROW6_PR6 _GPIO(142)
  171. #define TEGRA_PIN_KB_ROW7_PR7 _GPIO(143)
  172. #define TEGRA_PIN_KB_ROW8_PS0 _GPIO(144)
  173. #define TEGRA_PIN_KB_ROW9_PS1 _GPIO(145)
  174. #define TEGRA_PIN_KB_ROW10_PS2 _GPIO(146)
  175. #define TEGRA_PIN_KB_ROW11_PS3 _GPIO(147)
  176. #define TEGRA_PIN_KB_ROW12_PS4 _GPIO(148)
  177. #define TEGRA_PIN_KB_ROW13_PS5 _GPIO(149)
  178. #define TEGRA_PIN_KB_ROW14_PS6 _GPIO(150)
  179. #define TEGRA_PIN_KB_ROW15_PS7 _GPIO(151)
  180. #define TEGRA_PIN_VI_PCLK_PT0 _GPIO(152)
  181. #define TEGRA_PIN_VI_MCLK_PT1 _GPIO(153)
  182. #define TEGRA_PIN_VI_D10_PT2 _GPIO(154)
  183. #define TEGRA_PIN_VI_D11_PT3 _GPIO(155)
  184. #define TEGRA_PIN_VI_D0_PT4 _GPIO(156)
  185. #define TEGRA_PIN_GEN2_I2C_SCL_PT5 _GPIO(157)
  186. #define TEGRA_PIN_GEN2_I2C_SDA_PT6 _GPIO(158)
  187. #define TEGRA_PIN_SDMMC4_CMD_PT7 _GPIO(159)
  188. #define TEGRA_PIN_PU0 _GPIO(160)
  189. #define TEGRA_PIN_PU1 _GPIO(161)
  190. #define TEGRA_PIN_PU2 _GPIO(162)
  191. #define TEGRA_PIN_PU3 _GPIO(163)
  192. #define TEGRA_PIN_PU4 _GPIO(164)
  193. #define TEGRA_PIN_PU5 _GPIO(165)
  194. #define TEGRA_PIN_PU6 _GPIO(166)
  195. #define TEGRA_PIN_JTAG_RTCK_PU7 _GPIO(167)
  196. #define TEGRA_PIN_PV0 _GPIO(168)
  197. #define TEGRA_PIN_PV1 _GPIO(169)
  198. #define TEGRA_PIN_PV2 _GPIO(170)
  199. #define TEGRA_PIN_PV3 _GPIO(171)
  200. #define TEGRA_PIN_DDC_SCL_PV4 _GPIO(172)
  201. #define TEGRA_PIN_DDC_SDA_PV5 _GPIO(173)
  202. #define TEGRA_PIN_CRT_HSYNC_PV6 _GPIO(174)
  203. #define TEGRA_PIN_CRT_VSYNC_PV7 _GPIO(175)
  204. #define TEGRA_PIN_LCD_CS1_N_PW0 _GPIO(176)
  205. #define TEGRA_PIN_LCD_M1_PW1 _GPIO(177)
  206. #define TEGRA_PIN_SPI2_CS1_N_PW2 _GPIO(178)
  207. #define TEGRA_PIN_SPI2_CS2_N_PW3 _GPIO(179)
  208. #define TEGRA_PIN_CLK1_OUT_PW4 _GPIO(180)
  209. #define TEGRA_PIN_CLK2_OUT_PW5 _GPIO(181)
  210. #define TEGRA_PIN_UART3_TXD_PW6 _GPIO(182)
  211. #define TEGRA_PIN_UART3_RXD_PW7 _GPIO(183)
  212. #define TEGRA_PIN_SPI2_MOSI_PX0 _GPIO(184)
  213. #define TEGRA_PIN_SPI2_MISO_PX1 _GPIO(185)
  214. #define TEGRA_PIN_SPI2_SCK_PX2 _GPIO(186)
  215. #define TEGRA_PIN_SPI2_CS0_N_PX3 _GPIO(187)
  216. #define TEGRA_PIN_SPI1_MOSI_PX4 _GPIO(188)
  217. #define TEGRA_PIN_SPI1_SCK_PX5 _GPIO(189)
  218. #define TEGRA_PIN_SPI1_CS0_N_PX6 _GPIO(190)
  219. #define TEGRA_PIN_SPI1_MISO_PX7 _GPIO(191)
  220. #define TEGRA_PIN_ULPI_CLK_PY0 _GPIO(192)
  221. #define TEGRA_PIN_ULPI_DIR_PY1 _GPIO(193)
  222. #define TEGRA_PIN_ULPI_NXT_PY2 _GPIO(194)
  223. #define TEGRA_PIN_ULPI_STP_PY3 _GPIO(195)
  224. #define TEGRA_PIN_SDMMC1_DAT3_PY4 _GPIO(196)
  225. #define TEGRA_PIN_SDMMC1_DAT2_PY5 _GPIO(197)
  226. #define TEGRA_PIN_SDMMC1_DAT1_PY6 _GPIO(198)
  227. #define TEGRA_PIN_SDMMC1_DAT0_PY7 _GPIO(199)
  228. #define TEGRA_PIN_SDMMC1_CLK_PZ0 _GPIO(200)
  229. #define TEGRA_PIN_SDMMC1_CMD_PZ1 _GPIO(201)
  230. #define TEGRA_PIN_LCD_SDIN_PZ2 _GPIO(202)
  231. #define TEGRA_PIN_LCD_WR_N_PZ3 _GPIO(203)
  232. #define TEGRA_PIN_LCD_SCK_PZ4 _GPIO(204)
  233. #define TEGRA_PIN_SYS_CLK_REQ_PZ5 _GPIO(205)
  234. #define TEGRA_PIN_PWR_I2C_SCL_PZ6 _GPIO(206)
  235. #define TEGRA_PIN_PWR_I2C_SDA_PZ7 _GPIO(207)
  236. #define TEGRA_PIN_SDMMC4_DAT0_PAA0 _GPIO(208)
  237. #define TEGRA_PIN_SDMMC4_DAT1_PAA1 _GPIO(209)
  238. #define TEGRA_PIN_SDMMC4_DAT2_PAA2 _GPIO(210)
  239. #define TEGRA_PIN_SDMMC4_DAT3_PAA3 _GPIO(211)
  240. #define TEGRA_PIN_SDMMC4_DAT4_PAA4 _GPIO(212)
  241. #define TEGRA_PIN_SDMMC4_DAT5_PAA5 _GPIO(213)
  242. #define TEGRA_PIN_SDMMC4_DAT6_PAA6 _GPIO(214)
  243. #define TEGRA_PIN_SDMMC4_DAT7_PAA7 _GPIO(215)
  244. #define TEGRA_PIN_PBB0 _GPIO(216)
  245. #define TEGRA_PIN_CAM_I2C_SCL_PBB1 _GPIO(217)
  246. #define TEGRA_PIN_CAM_I2C_SDA_PBB2 _GPIO(218)
  247. #define TEGRA_PIN_PBB3 _GPIO(219)
  248. #define TEGRA_PIN_PBB4 _GPIO(220)
  249. #define TEGRA_PIN_PBB5 _GPIO(221)
  250. #define TEGRA_PIN_PBB6 _GPIO(222)
  251. #define TEGRA_PIN_PBB7 _GPIO(223)
  252. #define TEGRA_PIN_CAM_MCLK_PCC0 _GPIO(224)
  253. #define TEGRA_PIN_PCC1 _GPIO(225)
  254. #define TEGRA_PIN_PCC2 _GPIO(226)
  255. #define TEGRA_PIN_SDMMC4_RST_N_PCC3 _GPIO(227)
  256. #define TEGRA_PIN_SDMMC4_CLK_PCC4 _GPIO(228)
  257. #define TEGRA_PIN_CLK2_REQ_PCC5 _GPIO(229)
  258. #define TEGRA_PIN_PEX_L2_RST_N_PCC6 _GPIO(230)
  259. #define TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7 _GPIO(231)
  260. #define TEGRA_PIN_PEX_L0_PRSNT_N_PDD0 _GPIO(232)
  261. #define TEGRA_PIN_PEX_L0_RST_N_PDD1 _GPIO(233)
  262. #define TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2 _GPIO(234)
  263. #define TEGRA_PIN_PEX_WAKE_N_PDD3 _GPIO(235)
  264. #define TEGRA_PIN_PEX_L1_PRSNT_N_PDD4 _GPIO(236)
  265. #define TEGRA_PIN_PEX_L1_RST_N_PDD5 _GPIO(237)
  266. #define TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6 _GPIO(238)
  267. #define TEGRA_PIN_PEX_L2_PRSNT_N_PDD7 _GPIO(239)
  268. #define TEGRA_PIN_CLK3_OUT_PEE0 _GPIO(240)
  269. #define TEGRA_PIN_CLK3_REQ_PEE1 _GPIO(241)
  270. #define TEGRA_PIN_CLK1_REQ_PEE2 _GPIO(242)
  271. #define TEGRA_PIN_HDMI_CEC_PEE3 _GPIO(243)
  272. #define TEGRA_PIN_PEE4 _GPIO(244)
  273. #define TEGRA_PIN_PEE5 _GPIO(245)
  274. #define TEGRA_PIN_PEE6 _GPIO(246)
  275. #define TEGRA_PIN_PEE7 _GPIO(247)
  276. /* All non-GPIO pins follow */
  277. #define NUM_GPIOS (TEGRA_PIN_PEE7 + 1)
  278. #define _PIN(offset) (NUM_GPIOS + (offset))
  279. /* Non-GPIO pins */
  280. #define TEGRA_PIN_CLK_32K_IN _PIN(0)
  281. #define TEGRA_PIN_CORE_PWR_REQ _PIN(1)
  282. #define TEGRA_PIN_CPU_PWR_REQ _PIN(2)
  283. #define TEGRA_PIN_JTAG_TCK _PIN(3)
  284. #define TEGRA_PIN_JTAG_TDI _PIN(4)
  285. #define TEGRA_PIN_JTAG_TDO _PIN(5)
  286. #define TEGRA_PIN_JTAG_TMS _PIN(6)
  287. #define TEGRA_PIN_JTAG_TRST_N _PIN(7)
  288. #define TEGRA_PIN_OWR _PIN(8)
  289. #define TEGRA_PIN_PWR_INT_N _PIN(9)
  290. #define TEGRA_PIN_SYS_RESET_N _PIN(10)
  291. #define TEGRA_PIN_TEST_MODE_EN _PIN(11)
  292. static const struct pinctrl_pin_desc tegra30_pins[] = {
  293. PINCTRL_PIN(TEGRA_PIN_CLK_32K_OUT_PA0, "CLK_32K_OUT PA0"),
  294. PINCTRL_PIN(TEGRA_PIN_UART3_CTS_N_PA1, "UART3_CTS_N PA1"),
  295. PINCTRL_PIN(TEGRA_PIN_DAP2_FS_PA2, "DAP2_FS PA2"),
  296. PINCTRL_PIN(TEGRA_PIN_DAP2_SCLK_PA3, "DAP2_SCLK PA3"),
  297. PINCTRL_PIN(TEGRA_PIN_DAP2_DIN_PA4, "DAP2_DIN PA4"),
  298. PINCTRL_PIN(TEGRA_PIN_DAP2_DOUT_PA5, "DAP2_DOUT PA5"),
  299. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_PA6, "SDMMC3_CLK PA6"),
  300. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CMD_PA7, "SDMMC3_CMD PA7"),
  301. PINCTRL_PIN(TEGRA_PIN_GMI_A17_PB0, "GMI_A17 PB0"),
  302. PINCTRL_PIN(TEGRA_PIN_GMI_A18_PB1, "GMI_A18 PB1"),
  303. PINCTRL_PIN(TEGRA_PIN_LCD_PWR0_PB2, "LCD_PWR0 PB2"),
  304. PINCTRL_PIN(TEGRA_PIN_LCD_PCLK_PB3, "LCD_PCLK PB3"),
  305. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT3_PB4, "SDMMC3_DAT3 PB4"),
  306. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT2_PB5, "SDMMC3_DAT2 PB5"),
  307. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT1_PB6, "SDMMC3_DAT1 PB6"),
  308. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT0_PB7, "SDMMC3_DAT0 PB7"),
  309. PINCTRL_PIN(TEGRA_PIN_UART3_RTS_N_PC0, "UART3_RTS_N PC0"),
  310. PINCTRL_PIN(TEGRA_PIN_LCD_PWR1_PC1, "LCD_PWR1 PC1"),
  311. PINCTRL_PIN(TEGRA_PIN_UART2_TXD_PC2, "UART2_TXD PC2"),
  312. PINCTRL_PIN(TEGRA_PIN_UART2_RXD_PC3, "UART2_RXD PC3"),
  313. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PC4, "GEN1_I2C_SCL PC4"),
  314. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PC5, "GEN1_I2C_SDA PC5"),
  315. PINCTRL_PIN(TEGRA_PIN_LCD_PWR2_PC6, "LCD_PWR2 PC6"),
  316. PINCTRL_PIN(TEGRA_PIN_GMI_WP_N_PC7, "GMI_WP_N PC7"),
  317. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT5_PD0, "SDMMC3_DAT5 PD0"),
  318. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT4_PD1, "SDMMC3_DAT4 PD1"),
  319. PINCTRL_PIN(TEGRA_PIN_LCD_DC1_PD2, "LCD_DC1 PD2"),
  320. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT6_PD3, "SDMMC3_DAT6 PD3"),
  321. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT7_PD4, "SDMMC3_DAT7 PD4"),
  322. PINCTRL_PIN(TEGRA_PIN_VI_D1_PD5, "VI_D1 PD5"),
  323. PINCTRL_PIN(TEGRA_PIN_VI_VSYNC_PD6, "VI_VSYNC PD6"),
  324. PINCTRL_PIN(TEGRA_PIN_VI_HSYNC_PD7, "VI_HSYNC PD7"),
  325. PINCTRL_PIN(TEGRA_PIN_LCD_D0_PE0, "LCD_D0 PE0"),
  326. PINCTRL_PIN(TEGRA_PIN_LCD_D1_PE1, "LCD_D1 PE1"),
  327. PINCTRL_PIN(TEGRA_PIN_LCD_D2_PE2, "LCD_D2 PE2"),
  328. PINCTRL_PIN(TEGRA_PIN_LCD_D3_PE3, "LCD_D3 PE3"),
  329. PINCTRL_PIN(TEGRA_PIN_LCD_D4_PE4, "LCD_D4 PE4"),
  330. PINCTRL_PIN(TEGRA_PIN_LCD_D5_PE5, "LCD_D5 PE5"),
  331. PINCTRL_PIN(TEGRA_PIN_LCD_D6_PE6, "LCD_D6 PE6"),
  332. PINCTRL_PIN(TEGRA_PIN_LCD_D7_PE7, "LCD_D7 PE7"),
  333. PINCTRL_PIN(TEGRA_PIN_LCD_D8_PF0, "LCD_D8 PF0"),
  334. PINCTRL_PIN(TEGRA_PIN_LCD_D9_PF1, "LCD_D9 PF1"),
  335. PINCTRL_PIN(TEGRA_PIN_LCD_D10_PF2, "LCD_D10 PF2"),
  336. PINCTRL_PIN(TEGRA_PIN_LCD_D11_PF3, "LCD_D11 PF3"),
  337. PINCTRL_PIN(TEGRA_PIN_LCD_D12_PF4, "LCD_D12 PF4"),
  338. PINCTRL_PIN(TEGRA_PIN_LCD_D13_PF5, "LCD_D13 PF5"),
  339. PINCTRL_PIN(TEGRA_PIN_LCD_D14_PF6, "LCD_D14 PF6"),
  340. PINCTRL_PIN(TEGRA_PIN_LCD_D15_PF7, "LCD_D15 PF7"),
  341. PINCTRL_PIN(TEGRA_PIN_GMI_AD0_PG0, "GMI_AD0 PG0"),
  342. PINCTRL_PIN(TEGRA_PIN_GMI_AD1_PG1, "GMI_AD1 PG1"),
  343. PINCTRL_PIN(TEGRA_PIN_GMI_AD2_PG2, "GMI_AD2 PG2"),
  344. PINCTRL_PIN(TEGRA_PIN_GMI_AD3_PG3, "GMI_AD3 PG3"),
  345. PINCTRL_PIN(TEGRA_PIN_GMI_AD4_PG4, "GMI_AD4 PG4"),
  346. PINCTRL_PIN(TEGRA_PIN_GMI_AD5_PG5, "GMI_AD5 PG5"),
  347. PINCTRL_PIN(TEGRA_PIN_GMI_AD6_PG6, "GMI_AD6 PG6"),
  348. PINCTRL_PIN(TEGRA_PIN_GMI_AD7_PG7, "GMI_AD7 PG7"),
  349. PINCTRL_PIN(TEGRA_PIN_GMI_AD8_PH0, "GMI_AD8 PH0"),
  350. PINCTRL_PIN(TEGRA_PIN_GMI_AD9_PH1, "GMI_AD9 PH1"),
  351. PINCTRL_PIN(TEGRA_PIN_GMI_AD10_PH2, "GMI_AD10 PH2"),
  352. PINCTRL_PIN(TEGRA_PIN_GMI_AD11_PH3, "GMI_AD11 PH3"),
  353. PINCTRL_PIN(TEGRA_PIN_GMI_AD12_PH4, "GMI_AD12 PH4"),
  354. PINCTRL_PIN(TEGRA_PIN_GMI_AD13_PH5, "GMI_AD13 PH5"),
  355. PINCTRL_PIN(TEGRA_PIN_GMI_AD14_PH6, "GMI_AD14 PH6"),
  356. PINCTRL_PIN(TEGRA_PIN_GMI_AD15_PH7, "GMI_AD15 PH7"),
  357. PINCTRL_PIN(TEGRA_PIN_GMI_WR_N_PI0, "GMI_WR_N PI0"),
  358. PINCTRL_PIN(TEGRA_PIN_GMI_OE_N_PI1, "GMI_OE_N PI1"),
  359. PINCTRL_PIN(TEGRA_PIN_GMI_DQS_PI2, "GMI_DQS PI2"),
  360. PINCTRL_PIN(TEGRA_PIN_GMI_CS6_N_PI3, "GMI_CS6_N PI3"),
  361. PINCTRL_PIN(TEGRA_PIN_GMI_RST_N_PI4, "GMI_RST_N PI4"),
  362. PINCTRL_PIN(TEGRA_PIN_GMI_IORDY_PI5, "GMI_IORDY PI5"),
  363. PINCTRL_PIN(TEGRA_PIN_GMI_CS7_N_PI6, "GMI_CS7_N PI6"),
  364. PINCTRL_PIN(TEGRA_PIN_GMI_WAIT_PI7, "GMI_WAIT PI7"),
  365. PINCTRL_PIN(TEGRA_PIN_GMI_CS0_N_PJ0, "GMI_CS0_N PJ0"),
  366. PINCTRL_PIN(TEGRA_PIN_LCD_DE_PJ1, "LCD_DE PJ1"),
  367. PINCTRL_PIN(TEGRA_PIN_GMI_CS1_N_PJ2, "GMI_CS1_N PJ2"),
  368. PINCTRL_PIN(TEGRA_PIN_LCD_HSYNC_PJ3, "LCD_HSYNC PJ3"),
  369. PINCTRL_PIN(TEGRA_PIN_LCD_VSYNC_PJ4, "LCD_VSYNC PJ4"),
  370. PINCTRL_PIN(TEGRA_PIN_UART2_CTS_N_PJ5, "UART2_CTS_N PJ5"),
  371. PINCTRL_PIN(TEGRA_PIN_UART2_RTS_N_PJ6, "UART2_RTS_N PJ6"),
  372. PINCTRL_PIN(TEGRA_PIN_GMI_A16_PJ7, "GMI_A16 PJ7"),
  373. PINCTRL_PIN(TEGRA_PIN_GMI_ADV_N_PK0, "GMI_ADV_N PK0"),
  374. PINCTRL_PIN(TEGRA_PIN_GMI_CLK_PK1, "GMI_CLK PK1"),
  375. PINCTRL_PIN(TEGRA_PIN_GMI_CS4_N_PK2, "GMI_CS4_N PK2"),
  376. PINCTRL_PIN(TEGRA_PIN_GMI_CS2_N_PK3, "GMI_CS2_N PK3"),
  377. PINCTRL_PIN(TEGRA_PIN_GMI_CS3_N_PK4, "GMI_CS3_N PK4"),
  378. PINCTRL_PIN(TEGRA_PIN_SPDIF_OUT_PK5, "SPDIF_OUT PK5"),
  379. PINCTRL_PIN(TEGRA_PIN_SPDIF_IN_PK6, "SPDIF_IN PK6"),
  380. PINCTRL_PIN(TEGRA_PIN_GMI_A19_PK7, "GMI_A19 PK7"),
  381. PINCTRL_PIN(TEGRA_PIN_VI_D2_PL0, "VI_D2 PL0"),
  382. PINCTRL_PIN(TEGRA_PIN_VI_D3_PL1, "VI_D3 PL1"),
  383. PINCTRL_PIN(TEGRA_PIN_VI_D4_PL2, "VI_D4 PL2"),
  384. PINCTRL_PIN(TEGRA_PIN_VI_D5_PL3, "VI_D5 PL3"),
  385. PINCTRL_PIN(TEGRA_PIN_VI_D6_PL4, "VI_D6 PL4"),
  386. PINCTRL_PIN(TEGRA_PIN_VI_D7_PL5, "VI_D7 PL5"),
  387. PINCTRL_PIN(TEGRA_PIN_VI_D8_PL6, "VI_D8 PL6"),
  388. PINCTRL_PIN(TEGRA_PIN_VI_D9_PL7, "VI_D9 PL7"),
  389. PINCTRL_PIN(TEGRA_PIN_LCD_D16_PM0, "LCD_D16 PM0"),
  390. PINCTRL_PIN(TEGRA_PIN_LCD_D17_PM1, "LCD_D17 PM1"),
  391. PINCTRL_PIN(TEGRA_PIN_LCD_D18_PM2, "LCD_D18 PM2"),
  392. PINCTRL_PIN(TEGRA_PIN_LCD_D19_PM3, "LCD_D19 PM3"),
  393. PINCTRL_PIN(TEGRA_PIN_LCD_D20_PM4, "LCD_D20 PM4"),
  394. PINCTRL_PIN(TEGRA_PIN_LCD_D21_PM5, "LCD_D21 PM5"),
  395. PINCTRL_PIN(TEGRA_PIN_LCD_D22_PM6, "LCD_D22 PM6"),
  396. PINCTRL_PIN(TEGRA_PIN_LCD_D23_PM7, "LCD_D23 PM7"),
  397. PINCTRL_PIN(TEGRA_PIN_DAP1_FS_PN0, "DAP1_FS PN0"),
  398. PINCTRL_PIN(TEGRA_PIN_DAP1_DIN_PN1, "DAP1_DIN PN1"),
  399. PINCTRL_PIN(TEGRA_PIN_DAP1_DOUT_PN2, "DAP1_DOUT PN2"),
  400. PINCTRL_PIN(TEGRA_PIN_DAP1_SCLK_PN3, "DAP1_SCLK PN3"),
  401. PINCTRL_PIN(TEGRA_PIN_LCD_CS0_N_PN4, "LCD_CS0_N PN4"),
  402. PINCTRL_PIN(TEGRA_PIN_LCD_SDOUT_PN5, "LCD_SDOUT PN5"),
  403. PINCTRL_PIN(TEGRA_PIN_LCD_DC0_PN6, "LCD_DC0 PN6"),
  404. PINCTRL_PIN(TEGRA_PIN_HDMI_INT_PN7, "HDMI_INT PN7"),
  405. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA7_PO0, "ULPI_DATA7 PO0"),
  406. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA0_PO1, "ULPI_DATA0 PO1"),
  407. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA1_PO2, "ULPI_DATA1 PO2"),
  408. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA2_PO3, "ULPI_DATA2 PO3"),
  409. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA3_PO4, "ULPI_DATA3 PO4"),
  410. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA4_PO5, "ULPI_DATA4 PO5"),
  411. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA5_PO6, "ULPI_DATA5 PO6"),
  412. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA6_PO7, "ULPI_DATA6 PO7"),
  413. PINCTRL_PIN(TEGRA_PIN_DAP3_FS_PP0, "DAP3_FS PP0"),
  414. PINCTRL_PIN(TEGRA_PIN_DAP3_DIN_PP1, "DAP3_DIN PP1"),
  415. PINCTRL_PIN(TEGRA_PIN_DAP3_DOUT_PP2, "DAP3_DOUT PP2"),
  416. PINCTRL_PIN(TEGRA_PIN_DAP3_SCLK_PP3, "DAP3_SCLK PP3"),
  417. PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PP4, "DAP4_FS PP4"),
  418. PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PP5, "DAP4_DIN PP5"),
  419. PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PP6, "DAP4_DOUT PP6"),
  420. PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PP7, "DAP4_SCLK PP7"),
  421. PINCTRL_PIN(TEGRA_PIN_KB_COL0_PQ0, "KB_COL0 PQ0"),
  422. PINCTRL_PIN(TEGRA_PIN_KB_COL1_PQ1, "KB_COL1 PQ1"),
  423. PINCTRL_PIN(TEGRA_PIN_KB_COL2_PQ2, "KB_COL2 PQ2"),
  424. PINCTRL_PIN(TEGRA_PIN_KB_COL3_PQ3, "KB_COL3 PQ3"),
  425. PINCTRL_PIN(TEGRA_PIN_KB_COL4_PQ4, "KB_COL4 PQ4"),
  426. PINCTRL_PIN(TEGRA_PIN_KB_COL5_PQ5, "KB_COL5 PQ5"),
  427. PINCTRL_PIN(TEGRA_PIN_KB_COL6_PQ6, "KB_COL6 PQ6"),
  428. PINCTRL_PIN(TEGRA_PIN_KB_COL7_PQ7, "KB_COL7 PQ7"),
  429. PINCTRL_PIN(TEGRA_PIN_KB_ROW0_PR0, "KB_ROW0 PR0"),
  430. PINCTRL_PIN(TEGRA_PIN_KB_ROW1_PR1, "KB_ROW1 PR1"),
  431. PINCTRL_PIN(TEGRA_PIN_KB_ROW2_PR2, "KB_ROW2 PR2"),
  432. PINCTRL_PIN(TEGRA_PIN_KB_ROW3_PR3, "KB_ROW3 PR3"),
  433. PINCTRL_PIN(TEGRA_PIN_KB_ROW4_PR4, "KB_ROW4 PR4"),
  434. PINCTRL_PIN(TEGRA_PIN_KB_ROW5_PR5, "KB_ROW5 PR5"),
  435. PINCTRL_PIN(TEGRA_PIN_KB_ROW6_PR6, "KB_ROW6 PR6"),
  436. PINCTRL_PIN(TEGRA_PIN_KB_ROW7_PR7, "KB_ROW7 PR7"),
  437. PINCTRL_PIN(TEGRA_PIN_KB_ROW8_PS0, "KB_ROW8 PS0"),
  438. PINCTRL_PIN(TEGRA_PIN_KB_ROW9_PS1, "KB_ROW9 PS1"),
  439. PINCTRL_PIN(TEGRA_PIN_KB_ROW10_PS2, "KB_ROW10 PS2"),
  440. PINCTRL_PIN(TEGRA_PIN_KB_ROW11_PS3, "KB_ROW11 PS3"),
  441. PINCTRL_PIN(TEGRA_PIN_KB_ROW12_PS4, "KB_ROW12 PS4"),
  442. PINCTRL_PIN(TEGRA_PIN_KB_ROW13_PS5, "KB_ROW13 PS5"),
  443. PINCTRL_PIN(TEGRA_PIN_KB_ROW14_PS6, "KB_ROW14 PS6"),
  444. PINCTRL_PIN(TEGRA_PIN_KB_ROW15_PS7, "KB_ROW15 PS7"),
  445. PINCTRL_PIN(TEGRA_PIN_VI_PCLK_PT0, "VI_PCLK PT0"),
  446. PINCTRL_PIN(TEGRA_PIN_VI_MCLK_PT1, "VI_MCLK PT1"),
  447. PINCTRL_PIN(TEGRA_PIN_VI_D10_PT2, "VI_D10 PT2"),
  448. PINCTRL_PIN(TEGRA_PIN_VI_D11_PT3, "VI_D11 PT3"),
  449. PINCTRL_PIN(TEGRA_PIN_VI_D0_PT4, "VI_D0 PT4"),
  450. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PT5, "GEN2_I2C_SCL PT5"),
  451. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PT6, "GEN2_I2C_SDA PT6"),
  452. PINCTRL_PIN(TEGRA_PIN_SDMMC4_CMD_PT7, "SDMMC4_CMD PT7"),
  453. PINCTRL_PIN(TEGRA_PIN_PU0, "PU0"),
  454. PINCTRL_PIN(TEGRA_PIN_PU1, "PU1"),
  455. PINCTRL_PIN(TEGRA_PIN_PU2, "PU2"),
  456. PINCTRL_PIN(TEGRA_PIN_PU3, "PU3"),
  457. PINCTRL_PIN(TEGRA_PIN_PU4, "PU4"),
  458. PINCTRL_PIN(TEGRA_PIN_PU5, "PU5"),
  459. PINCTRL_PIN(TEGRA_PIN_PU6, "PU6"),
  460. PINCTRL_PIN(TEGRA_PIN_JTAG_RTCK_PU7, "JTAG_RTCK PU7"),
  461. PINCTRL_PIN(TEGRA_PIN_PV0, "PV0"),
  462. PINCTRL_PIN(TEGRA_PIN_PV1, "PV1"),
  463. PINCTRL_PIN(TEGRA_PIN_PV2, "PV2"),
  464. PINCTRL_PIN(TEGRA_PIN_PV3, "PV3"),
  465. PINCTRL_PIN(TEGRA_PIN_DDC_SCL_PV4, "DDC_SCL PV4"),
  466. PINCTRL_PIN(TEGRA_PIN_DDC_SDA_PV5, "DDC_SDA PV5"),
  467. PINCTRL_PIN(TEGRA_PIN_CRT_HSYNC_PV6, "CRT_HSYNC PV6"),
  468. PINCTRL_PIN(TEGRA_PIN_CRT_VSYNC_PV7, "CRT_VSYNC PV7"),
  469. PINCTRL_PIN(TEGRA_PIN_LCD_CS1_N_PW0, "LCD_CS1_N PW0"),
  470. PINCTRL_PIN(TEGRA_PIN_LCD_M1_PW1, "LCD_M1 PW1"),
  471. PINCTRL_PIN(TEGRA_PIN_SPI2_CS1_N_PW2, "SPI2_CS1_N PW2"),
  472. PINCTRL_PIN(TEGRA_PIN_SPI2_CS2_N_PW3, "SPI2_CS2_N PW3"),
  473. PINCTRL_PIN(TEGRA_PIN_CLK1_OUT_PW4, "CLK1_OUT PW4"),
  474. PINCTRL_PIN(TEGRA_PIN_CLK2_OUT_PW5, "CLK2_OUT PW5"),
  475. PINCTRL_PIN(TEGRA_PIN_UART3_TXD_PW6, "UART3_TXD PW6"),
  476. PINCTRL_PIN(TEGRA_PIN_UART3_RXD_PW7, "UART3_RXD PW7"),
  477. PINCTRL_PIN(TEGRA_PIN_SPI2_MOSI_PX0, "SPI2_MOSI PX0"),
  478. PINCTRL_PIN(TEGRA_PIN_SPI2_MISO_PX1, "SPI2_MISO PX1"),
  479. PINCTRL_PIN(TEGRA_PIN_SPI2_SCK_PX2, "SPI2_SCK PX2"),
  480. PINCTRL_PIN(TEGRA_PIN_SPI2_CS0_N_PX3, "SPI2_CS0_N PX3"),
  481. PINCTRL_PIN(TEGRA_PIN_SPI1_MOSI_PX4, "SPI1_MOSI PX4"),
  482. PINCTRL_PIN(TEGRA_PIN_SPI1_SCK_PX5, "SPI1_SCK PX5"),
  483. PINCTRL_PIN(TEGRA_PIN_SPI1_CS0_N_PX6, "SPI1_CS0_N PX6"),
  484. PINCTRL_PIN(TEGRA_PIN_SPI1_MISO_PX7, "SPI1_MISO PX7"),
  485. PINCTRL_PIN(TEGRA_PIN_ULPI_CLK_PY0, "ULPI_CLK PY0"),
  486. PINCTRL_PIN(TEGRA_PIN_ULPI_DIR_PY1, "ULPI_DIR PY1"),
  487. PINCTRL_PIN(TEGRA_PIN_ULPI_NXT_PY2, "ULPI_NXT PY2"),
  488. PINCTRL_PIN(TEGRA_PIN_ULPI_STP_PY3, "ULPI_STP PY3"),
  489. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT3_PY4, "SDMMC1_DAT3 PY4"),
  490. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT2_PY5, "SDMMC1_DAT2 PY5"),
  491. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT1_PY6, "SDMMC1_DAT1 PY6"),
  492. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT0_PY7, "SDMMC1_DAT0 PY7"),
  493. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CLK_PZ0, "SDMMC1_CLK PZ0"),
  494. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CMD_PZ1, "SDMMC1_CMD PZ1"),
  495. PINCTRL_PIN(TEGRA_PIN_LCD_SDIN_PZ2, "LCD_SDIN PZ2"),
  496. PINCTRL_PIN(TEGRA_PIN_LCD_WR_N_PZ3, "LCD_WR_N PZ3"),
  497. PINCTRL_PIN(TEGRA_PIN_LCD_SCK_PZ4, "LCD_SCK PZ4"),
  498. PINCTRL_PIN(TEGRA_PIN_SYS_CLK_REQ_PZ5, "SYS_CLK_REQ PZ5"),
  499. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PZ6, "PWR_I2C_SCL PZ6"),
  500. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PZ7, "PWR_I2C_SDA PZ7"),
  501. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT0_PAA0, "SDMMC4_DAT0 PAA0"),
  502. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT1_PAA1, "SDMMC4_DAT1 PAA1"),
  503. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT2_PAA2, "SDMMC4_DAT2 PAA2"),
  504. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT3_PAA3, "SDMMC4_DAT3 PAA3"),
  505. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT4_PAA4, "SDMMC4_DAT4 PAA4"),
  506. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT5_PAA5, "SDMMC4_DAT5 PAA5"),
  507. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT6_PAA6, "SDMMC4_DAT6 PAA6"),
  508. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT7_PAA7, "SDMMC4_DAT7 PAA7"),
  509. PINCTRL_PIN(TEGRA_PIN_PBB0, "PBB0"),
  510. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PBB1, "CAM_I2C_SCL PBB1"),
  511. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PBB2, "CAM_I2C_SDA PBB2"),
  512. PINCTRL_PIN(TEGRA_PIN_PBB3, "PBB3"),
  513. PINCTRL_PIN(TEGRA_PIN_PBB4, "PBB4"),
  514. PINCTRL_PIN(TEGRA_PIN_PBB5, "PBB5"),
  515. PINCTRL_PIN(TEGRA_PIN_PBB6, "PBB6"),
  516. PINCTRL_PIN(TEGRA_PIN_PBB7, "PBB7"),
  517. PINCTRL_PIN(TEGRA_PIN_CAM_MCLK_PCC0, "CAM_MCLK PCC0"),
  518. PINCTRL_PIN(TEGRA_PIN_PCC1, "PCC1"),
  519. PINCTRL_PIN(TEGRA_PIN_PCC2, "PCC2"),
  520. PINCTRL_PIN(TEGRA_PIN_SDMMC4_RST_N_PCC3, "SDMMC4_RST_N PCC3"),
  521. PINCTRL_PIN(TEGRA_PIN_SDMMC4_CLK_PCC4, "SDMMC4_CLK PCC4"),
  522. PINCTRL_PIN(TEGRA_PIN_CLK2_REQ_PCC5, "CLK2_REQ PCC5"),
  523. PINCTRL_PIN(TEGRA_PIN_PEX_L2_RST_N_PCC6, "PEX_L2_RST_N PCC6"),
  524. PINCTRL_PIN(TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7, "PEX_L2_CLKREQ_N PCC7"),
  525. PINCTRL_PIN(TEGRA_PIN_PEX_L0_PRSNT_N_PDD0, "PEX_L0_PRSNT_N PDD0"),
  526. PINCTRL_PIN(TEGRA_PIN_PEX_L0_RST_N_PDD1, "PEX_L0_RST_N PDD1"),
  527. PINCTRL_PIN(TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2, "PEX_L0_CLKREQ_N PDD2"),
  528. PINCTRL_PIN(TEGRA_PIN_PEX_WAKE_N_PDD3, "PEX_WAKE_N PDD3"),
  529. PINCTRL_PIN(TEGRA_PIN_PEX_L1_PRSNT_N_PDD4, "PEX_L1_PRSNT_N PDD4"),
  530. PINCTRL_PIN(TEGRA_PIN_PEX_L1_RST_N_PDD5, "PEX_L1_RST_N PDD5"),
  531. PINCTRL_PIN(TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6, "PEX_L1_CLKREQ_N PDD6"),
  532. PINCTRL_PIN(TEGRA_PIN_PEX_L2_PRSNT_N_PDD7, "PEX_L2_PRSNT_N PDD7"),
  533. PINCTRL_PIN(TEGRA_PIN_CLK3_OUT_PEE0, "CLK3_OUT PEE0"),
  534. PINCTRL_PIN(TEGRA_PIN_CLK3_REQ_PEE1, "CLK3_REQ PEE1"),
  535. PINCTRL_PIN(TEGRA_PIN_CLK1_REQ_PEE2, "CLK1_REQ PEE2"),
  536. PINCTRL_PIN(TEGRA_PIN_HDMI_CEC_PEE3, "HDMI_CEC PEE3"),
  537. PINCTRL_PIN(TEGRA_PIN_PEE4, "PEE4"),
  538. PINCTRL_PIN(TEGRA_PIN_PEE5, "PEE5"),
  539. PINCTRL_PIN(TEGRA_PIN_PEE6, "PEE6"),
  540. PINCTRL_PIN(TEGRA_PIN_PEE7, "PEE7"),
  541. PINCTRL_PIN(TEGRA_PIN_CLK_32K_IN, "CLK_32K_IN"),
  542. PINCTRL_PIN(TEGRA_PIN_CORE_PWR_REQ, "CORE_PWR_REQ"),
  543. PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ, "CPU_PWR_REQ"),
  544. PINCTRL_PIN(TEGRA_PIN_JTAG_TCK, "JTAG_TCK"),
  545. PINCTRL_PIN(TEGRA_PIN_JTAG_TDI, "JTAG_TDI"),
  546. PINCTRL_PIN(TEGRA_PIN_JTAG_TDO, "JTAG_TDO"),
  547. PINCTRL_PIN(TEGRA_PIN_JTAG_TMS, "JTAG_TMS"),
  548. PINCTRL_PIN(TEGRA_PIN_JTAG_TRST_N, "JTAG_TRST_N"),
  549. PINCTRL_PIN(TEGRA_PIN_OWR, "OWR"),
  550. PINCTRL_PIN(TEGRA_PIN_PWR_INT_N, "PWR_INT_N"),
  551. PINCTRL_PIN(TEGRA_PIN_SYS_RESET_N, "SYS_RESET_N"),
  552. PINCTRL_PIN(TEGRA_PIN_TEST_MODE_EN, "TEST_MODE_EN"),
  553. };
  554. static const unsigned clk_32k_out_pa0_pins[] = {
  555. TEGRA_PIN_CLK_32K_OUT_PA0,
  556. };
  557. static const unsigned uart3_cts_n_pa1_pins[] = {
  558. TEGRA_PIN_UART3_CTS_N_PA1,
  559. };
  560. static const unsigned dap2_fs_pa2_pins[] = {
  561. TEGRA_PIN_DAP2_FS_PA2,
  562. };
  563. static const unsigned dap2_sclk_pa3_pins[] = {
  564. TEGRA_PIN_DAP2_SCLK_PA3,
  565. };
  566. static const unsigned dap2_din_pa4_pins[] = {
  567. TEGRA_PIN_DAP2_DIN_PA4,
  568. };
  569. static const unsigned dap2_dout_pa5_pins[] = {
  570. TEGRA_PIN_DAP2_DOUT_PA5,
  571. };
  572. static const unsigned sdmmc3_clk_pa6_pins[] = {
  573. TEGRA_PIN_SDMMC3_CLK_PA6,
  574. };
  575. static const unsigned sdmmc3_cmd_pa7_pins[] = {
  576. TEGRA_PIN_SDMMC3_CMD_PA7,
  577. };
  578. static const unsigned gmi_a17_pb0_pins[] = {
  579. TEGRA_PIN_GMI_A17_PB0,
  580. };
  581. static const unsigned gmi_a18_pb1_pins[] = {
  582. TEGRA_PIN_GMI_A18_PB1,
  583. };
  584. static const unsigned lcd_pwr0_pb2_pins[] = {
  585. TEGRA_PIN_LCD_PWR0_PB2,
  586. };
  587. static const unsigned lcd_pclk_pb3_pins[] = {
  588. TEGRA_PIN_LCD_PCLK_PB3,
  589. };
  590. static const unsigned sdmmc3_dat3_pb4_pins[] = {
  591. TEGRA_PIN_SDMMC3_DAT3_PB4,
  592. };
  593. static const unsigned sdmmc3_dat2_pb5_pins[] = {
  594. TEGRA_PIN_SDMMC3_DAT2_PB5,
  595. };
  596. static const unsigned sdmmc3_dat1_pb6_pins[] = {
  597. TEGRA_PIN_SDMMC3_DAT1_PB6,
  598. };
  599. static const unsigned sdmmc3_dat0_pb7_pins[] = {
  600. TEGRA_PIN_SDMMC3_DAT0_PB7,
  601. };
  602. static const unsigned uart3_rts_n_pc0_pins[] = {
  603. TEGRA_PIN_UART3_RTS_N_PC0,
  604. };
  605. static const unsigned lcd_pwr1_pc1_pins[] = {
  606. TEGRA_PIN_LCD_PWR1_PC1,
  607. };
  608. static const unsigned uart2_txd_pc2_pins[] = {
  609. TEGRA_PIN_UART2_TXD_PC2,
  610. };
  611. static const unsigned uart2_rxd_pc3_pins[] = {
  612. TEGRA_PIN_UART2_RXD_PC3,
  613. };
  614. static const unsigned gen1_i2c_scl_pc4_pins[] = {
  615. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  616. };
  617. static const unsigned gen1_i2c_sda_pc5_pins[] = {
  618. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  619. };
  620. static const unsigned lcd_pwr2_pc6_pins[] = {
  621. TEGRA_PIN_LCD_PWR2_PC6,
  622. };
  623. static const unsigned gmi_wp_n_pc7_pins[] = {
  624. TEGRA_PIN_GMI_WP_N_PC7,
  625. };
  626. static const unsigned sdmmc3_dat5_pd0_pins[] = {
  627. TEGRA_PIN_SDMMC3_DAT5_PD0,
  628. };
  629. static const unsigned sdmmc3_dat4_pd1_pins[] = {
  630. TEGRA_PIN_SDMMC3_DAT4_PD1,
  631. };
  632. static const unsigned lcd_dc1_pd2_pins[] = {
  633. TEGRA_PIN_LCD_DC1_PD2,
  634. };
  635. static const unsigned sdmmc3_dat6_pd3_pins[] = {
  636. TEGRA_PIN_SDMMC3_DAT6_PD3,
  637. };
  638. static const unsigned sdmmc3_dat7_pd4_pins[] = {
  639. TEGRA_PIN_SDMMC3_DAT7_PD4,
  640. };
  641. static const unsigned vi_d1_pd5_pins[] = {
  642. TEGRA_PIN_VI_D1_PD5,
  643. };
  644. static const unsigned vi_vsync_pd6_pins[] = {
  645. TEGRA_PIN_VI_VSYNC_PD6,
  646. };
  647. static const unsigned vi_hsync_pd7_pins[] = {
  648. TEGRA_PIN_VI_HSYNC_PD7,
  649. };
  650. static const unsigned lcd_d0_pe0_pins[] = {
  651. TEGRA_PIN_LCD_D0_PE0,
  652. };
  653. static const unsigned lcd_d1_pe1_pins[] = {
  654. TEGRA_PIN_LCD_D1_PE1,
  655. };
  656. static const unsigned lcd_d2_pe2_pins[] = {
  657. TEGRA_PIN_LCD_D2_PE2,
  658. };
  659. static const unsigned lcd_d3_pe3_pins[] = {
  660. TEGRA_PIN_LCD_D3_PE3,
  661. };
  662. static const unsigned lcd_d4_pe4_pins[] = {
  663. TEGRA_PIN_LCD_D4_PE4,
  664. };
  665. static const unsigned lcd_d5_pe5_pins[] = {
  666. TEGRA_PIN_LCD_D5_PE5,
  667. };
  668. static const unsigned lcd_d6_pe6_pins[] = {
  669. TEGRA_PIN_LCD_D6_PE6,
  670. };
  671. static const unsigned lcd_d7_pe7_pins[] = {
  672. TEGRA_PIN_LCD_D7_PE7,
  673. };
  674. static const unsigned lcd_d8_pf0_pins[] = {
  675. TEGRA_PIN_LCD_D8_PF0,
  676. };
  677. static const unsigned lcd_d9_pf1_pins[] = {
  678. TEGRA_PIN_LCD_D9_PF1,
  679. };
  680. static const unsigned lcd_d10_pf2_pins[] = {
  681. TEGRA_PIN_LCD_D10_PF2,
  682. };
  683. static const unsigned lcd_d11_pf3_pins[] = {
  684. TEGRA_PIN_LCD_D11_PF3,
  685. };
  686. static const unsigned lcd_d12_pf4_pins[] = {
  687. TEGRA_PIN_LCD_D12_PF4,
  688. };
  689. static const unsigned lcd_d13_pf5_pins[] = {
  690. TEGRA_PIN_LCD_D13_PF5,
  691. };
  692. static const unsigned lcd_d14_pf6_pins[] = {
  693. TEGRA_PIN_LCD_D14_PF6,
  694. };
  695. static const unsigned lcd_d15_pf7_pins[] = {
  696. TEGRA_PIN_LCD_D15_PF7,
  697. };
  698. static const unsigned gmi_ad0_pg0_pins[] = {
  699. TEGRA_PIN_GMI_AD0_PG0,
  700. };
  701. static const unsigned gmi_ad1_pg1_pins[] = {
  702. TEGRA_PIN_GMI_AD1_PG1,
  703. };
  704. static const unsigned gmi_ad2_pg2_pins[] = {
  705. TEGRA_PIN_GMI_AD2_PG2,
  706. };
  707. static const unsigned gmi_ad3_pg3_pins[] = {
  708. TEGRA_PIN_GMI_AD3_PG3,
  709. };
  710. static const unsigned gmi_ad4_pg4_pins[] = {
  711. TEGRA_PIN_GMI_AD4_PG4,
  712. };
  713. static const unsigned gmi_ad5_pg5_pins[] = {
  714. TEGRA_PIN_GMI_AD5_PG5,
  715. };
  716. static const unsigned gmi_ad6_pg6_pins[] = {
  717. TEGRA_PIN_GMI_AD6_PG6,
  718. };
  719. static const unsigned gmi_ad7_pg7_pins[] = {
  720. TEGRA_PIN_GMI_AD7_PG7,
  721. };
  722. static const unsigned gmi_ad8_ph0_pins[] = {
  723. TEGRA_PIN_GMI_AD8_PH0,
  724. };
  725. static const unsigned gmi_ad9_ph1_pins[] = {
  726. TEGRA_PIN_GMI_AD9_PH1,
  727. };
  728. static const unsigned gmi_ad10_ph2_pins[] = {
  729. TEGRA_PIN_GMI_AD10_PH2,
  730. };
  731. static const unsigned gmi_ad11_ph3_pins[] = {
  732. TEGRA_PIN_GMI_AD11_PH3,
  733. };
  734. static const unsigned gmi_ad12_ph4_pins[] = {
  735. TEGRA_PIN_GMI_AD12_PH4,
  736. };
  737. static const unsigned gmi_ad13_ph5_pins[] = {
  738. TEGRA_PIN_GMI_AD13_PH5,
  739. };
  740. static const unsigned gmi_ad14_ph6_pins[] = {
  741. TEGRA_PIN_GMI_AD14_PH6,
  742. };
  743. static const unsigned gmi_ad15_ph7_pins[] = {
  744. TEGRA_PIN_GMI_AD15_PH7,
  745. };
  746. static const unsigned gmi_wr_n_pi0_pins[] = {
  747. TEGRA_PIN_GMI_WR_N_PI0,
  748. };
  749. static const unsigned gmi_oe_n_pi1_pins[] = {
  750. TEGRA_PIN_GMI_OE_N_PI1,
  751. };
  752. static const unsigned gmi_dqs_pi2_pins[] = {
  753. TEGRA_PIN_GMI_DQS_PI2,
  754. };
  755. static const unsigned gmi_cs6_n_pi3_pins[] = {
  756. TEGRA_PIN_GMI_CS6_N_PI3,
  757. };
  758. static const unsigned gmi_rst_n_pi4_pins[] = {
  759. TEGRA_PIN_GMI_RST_N_PI4,
  760. };
  761. static const unsigned gmi_iordy_pi5_pins[] = {
  762. TEGRA_PIN_GMI_IORDY_PI5,
  763. };
  764. static const unsigned gmi_cs7_n_pi6_pins[] = {
  765. TEGRA_PIN_GMI_CS7_N_PI6,
  766. };
  767. static const unsigned gmi_wait_pi7_pins[] = {
  768. TEGRA_PIN_GMI_WAIT_PI7,
  769. };
  770. static const unsigned gmi_cs0_n_pj0_pins[] = {
  771. TEGRA_PIN_GMI_CS0_N_PJ0,
  772. };
  773. static const unsigned lcd_de_pj1_pins[] = {
  774. TEGRA_PIN_LCD_DE_PJ1,
  775. };
  776. static const unsigned gmi_cs1_n_pj2_pins[] = {
  777. TEGRA_PIN_GMI_CS1_N_PJ2,
  778. };
  779. static const unsigned lcd_hsync_pj3_pins[] = {
  780. TEGRA_PIN_LCD_HSYNC_PJ3,
  781. };
  782. static const unsigned lcd_vsync_pj4_pins[] = {
  783. TEGRA_PIN_LCD_VSYNC_PJ4,
  784. };
  785. static const unsigned uart2_cts_n_pj5_pins[] = {
  786. TEGRA_PIN_UART2_CTS_N_PJ5,
  787. };
  788. static const unsigned uart2_rts_n_pj6_pins[] = {
  789. TEGRA_PIN_UART2_RTS_N_PJ6,
  790. };
  791. static const unsigned gmi_a16_pj7_pins[] = {
  792. TEGRA_PIN_GMI_A16_PJ7,
  793. };
  794. static const unsigned gmi_adv_n_pk0_pins[] = {
  795. TEGRA_PIN_GMI_ADV_N_PK0,
  796. };
  797. static const unsigned gmi_clk_pk1_pins[] = {
  798. TEGRA_PIN_GMI_CLK_PK1,
  799. };
  800. static const unsigned gmi_cs4_n_pk2_pins[] = {
  801. TEGRA_PIN_GMI_CS4_N_PK2,
  802. };
  803. static const unsigned gmi_cs2_n_pk3_pins[] = {
  804. TEGRA_PIN_GMI_CS2_N_PK3,
  805. };
  806. static const unsigned gmi_cs3_n_pk4_pins[] = {
  807. TEGRA_PIN_GMI_CS3_N_PK4,
  808. };
  809. static const unsigned spdif_out_pk5_pins[] = {
  810. TEGRA_PIN_SPDIF_OUT_PK5,
  811. };
  812. static const unsigned spdif_in_pk6_pins[] = {
  813. TEGRA_PIN_SPDIF_IN_PK6,
  814. };
  815. static const unsigned gmi_a19_pk7_pins[] = {
  816. TEGRA_PIN_GMI_A19_PK7,
  817. };
  818. static const unsigned vi_d2_pl0_pins[] = {
  819. TEGRA_PIN_VI_D2_PL0,
  820. };
  821. static const unsigned vi_d3_pl1_pins[] = {
  822. TEGRA_PIN_VI_D3_PL1,
  823. };
  824. static const unsigned vi_d4_pl2_pins[] = {
  825. TEGRA_PIN_VI_D4_PL2,
  826. };
  827. static const unsigned vi_d5_pl3_pins[] = {
  828. TEGRA_PIN_VI_D5_PL3,
  829. };
  830. static const unsigned vi_d6_pl4_pins[] = {
  831. TEGRA_PIN_VI_D6_PL4,
  832. };
  833. static const unsigned vi_d7_pl5_pins[] = {
  834. TEGRA_PIN_VI_D7_PL5,
  835. };
  836. static const unsigned vi_d8_pl6_pins[] = {
  837. TEGRA_PIN_VI_D8_PL6,
  838. };
  839. static const unsigned vi_d9_pl7_pins[] = {
  840. TEGRA_PIN_VI_D9_PL7,
  841. };
  842. static const unsigned lcd_d16_pm0_pins[] = {
  843. TEGRA_PIN_LCD_D16_PM0,
  844. };
  845. static const unsigned lcd_d17_pm1_pins[] = {
  846. TEGRA_PIN_LCD_D17_PM1,
  847. };
  848. static const unsigned lcd_d18_pm2_pins[] = {
  849. TEGRA_PIN_LCD_D18_PM2,
  850. };
  851. static const unsigned lcd_d19_pm3_pins[] = {
  852. TEGRA_PIN_LCD_D19_PM3,
  853. };
  854. static const unsigned lcd_d20_pm4_pins[] = {
  855. TEGRA_PIN_LCD_D20_PM4,
  856. };
  857. static const unsigned lcd_d21_pm5_pins[] = {
  858. TEGRA_PIN_LCD_D21_PM5,
  859. };
  860. static const unsigned lcd_d22_pm6_pins[] = {
  861. TEGRA_PIN_LCD_D22_PM6,
  862. };
  863. static const unsigned lcd_d23_pm7_pins[] = {
  864. TEGRA_PIN_LCD_D23_PM7,
  865. };
  866. static const unsigned dap1_fs_pn0_pins[] = {
  867. TEGRA_PIN_DAP1_FS_PN0,
  868. };
  869. static const unsigned dap1_din_pn1_pins[] = {
  870. TEGRA_PIN_DAP1_DIN_PN1,
  871. };
  872. static const unsigned dap1_dout_pn2_pins[] = {
  873. TEGRA_PIN_DAP1_DOUT_PN2,
  874. };
  875. static const unsigned dap1_sclk_pn3_pins[] = {
  876. TEGRA_PIN_DAP1_SCLK_PN3,
  877. };
  878. static const unsigned lcd_cs0_n_pn4_pins[] = {
  879. TEGRA_PIN_LCD_CS0_N_PN4,
  880. };
  881. static const unsigned lcd_sdout_pn5_pins[] = {
  882. TEGRA_PIN_LCD_SDOUT_PN5,
  883. };
  884. static const unsigned lcd_dc0_pn6_pins[] = {
  885. TEGRA_PIN_LCD_DC0_PN6,
  886. };
  887. static const unsigned hdmi_int_pn7_pins[] = {
  888. TEGRA_PIN_HDMI_INT_PN7,
  889. };
  890. static const unsigned ulpi_data7_po0_pins[] = {
  891. TEGRA_PIN_ULPI_DATA7_PO0,
  892. };
  893. static const unsigned ulpi_data0_po1_pins[] = {
  894. TEGRA_PIN_ULPI_DATA0_PO1,
  895. };
  896. static const unsigned ulpi_data1_po2_pins[] = {
  897. TEGRA_PIN_ULPI_DATA1_PO2,
  898. };
  899. static const unsigned ulpi_data2_po3_pins[] = {
  900. TEGRA_PIN_ULPI_DATA2_PO3,
  901. };
  902. static const unsigned ulpi_data3_po4_pins[] = {
  903. TEGRA_PIN_ULPI_DATA3_PO4,
  904. };
  905. static const unsigned ulpi_data4_po5_pins[] = {
  906. TEGRA_PIN_ULPI_DATA4_PO5,
  907. };
  908. static const unsigned ulpi_data5_po6_pins[] = {
  909. TEGRA_PIN_ULPI_DATA5_PO6,
  910. };
  911. static const unsigned ulpi_data6_po7_pins[] = {
  912. TEGRA_PIN_ULPI_DATA6_PO7,
  913. };
  914. static const unsigned dap3_fs_pp0_pins[] = {
  915. TEGRA_PIN_DAP3_FS_PP0,
  916. };
  917. static const unsigned dap3_din_pp1_pins[] = {
  918. TEGRA_PIN_DAP3_DIN_PP1,
  919. };
  920. static const unsigned dap3_dout_pp2_pins[] = {
  921. TEGRA_PIN_DAP3_DOUT_PP2,
  922. };
  923. static const unsigned dap3_sclk_pp3_pins[] = {
  924. TEGRA_PIN_DAP3_SCLK_PP3,
  925. };
  926. static const unsigned dap4_fs_pp4_pins[] = {
  927. TEGRA_PIN_DAP4_FS_PP4,
  928. };
  929. static const unsigned dap4_din_pp5_pins[] = {
  930. TEGRA_PIN_DAP4_DIN_PP5,
  931. };
  932. static const unsigned dap4_dout_pp6_pins[] = {
  933. TEGRA_PIN_DAP4_DOUT_PP6,
  934. };
  935. static const unsigned dap4_sclk_pp7_pins[] = {
  936. TEGRA_PIN_DAP4_SCLK_PP7,
  937. };
  938. static const unsigned kb_col0_pq0_pins[] = {
  939. TEGRA_PIN_KB_COL0_PQ0,
  940. };
  941. static const unsigned kb_col1_pq1_pins[] = {
  942. TEGRA_PIN_KB_COL1_PQ1,
  943. };
  944. static const unsigned kb_col2_pq2_pins[] = {
  945. TEGRA_PIN_KB_COL2_PQ2,
  946. };
  947. static const unsigned kb_col3_pq3_pins[] = {
  948. TEGRA_PIN_KB_COL3_PQ3,
  949. };
  950. static const unsigned kb_col4_pq4_pins[] = {
  951. TEGRA_PIN_KB_COL4_PQ4,
  952. };
  953. static const unsigned kb_col5_pq5_pins[] = {
  954. TEGRA_PIN_KB_COL5_PQ5,
  955. };
  956. static const unsigned kb_col6_pq6_pins[] = {
  957. TEGRA_PIN_KB_COL6_PQ6,
  958. };
  959. static const unsigned kb_col7_pq7_pins[] = {
  960. TEGRA_PIN_KB_COL7_PQ7,
  961. };
  962. static const unsigned kb_row0_pr0_pins[] = {
  963. TEGRA_PIN_KB_ROW0_PR0,
  964. };
  965. static const unsigned kb_row1_pr1_pins[] = {
  966. TEGRA_PIN_KB_ROW1_PR1,
  967. };
  968. static const unsigned kb_row2_pr2_pins[] = {
  969. TEGRA_PIN_KB_ROW2_PR2,
  970. };
  971. static const unsigned kb_row3_pr3_pins[] = {
  972. TEGRA_PIN_KB_ROW3_PR3,
  973. };
  974. static const unsigned kb_row4_pr4_pins[] = {
  975. TEGRA_PIN_KB_ROW4_PR4,
  976. };
  977. static const unsigned kb_row5_pr5_pins[] = {
  978. TEGRA_PIN_KB_ROW5_PR5,
  979. };
  980. static const unsigned kb_row6_pr6_pins[] = {
  981. TEGRA_PIN_KB_ROW6_PR6,
  982. };
  983. static const unsigned kb_row7_pr7_pins[] = {
  984. TEGRA_PIN_KB_ROW7_PR7,
  985. };
  986. static const unsigned kb_row8_ps0_pins[] = {
  987. TEGRA_PIN_KB_ROW8_PS0,
  988. };
  989. static const unsigned kb_row9_ps1_pins[] = {
  990. TEGRA_PIN_KB_ROW9_PS1,
  991. };
  992. static const unsigned kb_row10_ps2_pins[] = {
  993. TEGRA_PIN_KB_ROW10_PS2,
  994. };
  995. static const unsigned kb_row11_ps3_pins[] = {
  996. TEGRA_PIN_KB_ROW11_PS3,
  997. };
  998. static const unsigned kb_row12_ps4_pins[] = {
  999. TEGRA_PIN_KB_ROW12_PS4,
  1000. };
  1001. static const unsigned kb_row13_ps5_pins[] = {
  1002. TEGRA_PIN_KB_ROW13_PS5,
  1003. };
  1004. static const unsigned kb_row14_ps6_pins[] = {
  1005. TEGRA_PIN_KB_ROW14_PS6,
  1006. };
  1007. static const unsigned kb_row15_ps7_pins[] = {
  1008. TEGRA_PIN_KB_ROW15_PS7,
  1009. };
  1010. static const unsigned vi_pclk_pt0_pins[] = {
  1011. TEGRA_PIN_VI_PCLK_PT0,
  1012. };
  1013. static const unsigned vi_mclk_pt1_pins[] = {
  1014. TEGRA_PIN_VI_MCLK_PT1,
  1015. };
  1016. static const unsigned vi_d10_pt2_pins[] = {
  1017. TEGRA_PIN_VI_D10_PT2,
  1018. };
  1019. static const unsigned vi_d11_pt3_pins[] = {
  1020. TEGRA_PIN_VI_D11_PT3,
  1021. };
  1022. static const unsigned vi_d0_pt4_pins[] = {
  1023. TEGRA_PIN_VI_D0_PT4,
  1024. };
  1025. static const unsigned gen2_i2c_scl_pt5_pins[] = {
  1026. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  1027. };
  1028. static const unsigned gen2_i2c_sda_pt6_pins[] = {
  1029. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  1030. };
  1031. static const unsigned sdmmc4_cmd_pt7_pins[] = {
  1032. TEGRA_PIN_SDMMC4_CMD_PT7,
  1033. };
  1034. static const unsigned pu0_pins[] = {
  1035. TEGRA_PIN_PU0,
  1036. };
  1037. static const unsigned pu1_pins[] = {
  1038. TEGRA_PIN_PU1,
  1039. };
  1040. static const unsigned pu2_pins[] = {
  1041. TEGRA_PIN_PU2,
  1042. };
  1043. static const unsigned pu3_pins[] = {
  1044. TEGRA_PIN_PU3,
  1045. };
  1046. static const unsigned pu4_pins[] = {
  1047. TEGRA_PIN_PU4,
  1048. };
  1049. static const unsigned pu5_pins[] = {
  1050. TEGRA_PIN_PU5,
  1051. };
  1052. static const unsigned pu6_pins[] = {
  1053. TEGRA_PIN_PU6,
  1054. };
  1055. static const unsigned jtag_rtck_pu7_pins[] = {
  1056. TEGRA_PIN_JTAG_RTCK_PU7,
  1057. };
  1058. static const unsigned pv0_pins[] = {
  1059. TEGRA_PIN_PV0,
  1060. };
  1061. static const unsigned pv1_pins[] = {
  1062. TEGRA_PIN_PV1,
  1063. };
  1064. static const unsigned pv2_pins[] = {
  1065. TEGRA_PIN_PV2,
  1066. };
  1067. static const unsigned pv3_pins[] = {
  1068. TEGRA_PIN_PV3,
  1069. };
  1070. static const unsigned ddc_scl_pv4_pins[] = {
  1071. TEGRA_PIN_DDC_SCL_PV4,
  1072. };
  1073. static const unsigned ddc_sda_pv5_pins[] = {
  1074. TEGRA_PIN_DDC_SDA_PV5,
  1075. };
  1076. static const unsigned crt_hsync_pv6_pins[] = {
  1077. TEGRA_PIN_CRT_HSYNC_PV6,
  1078. };
  1079. static const unsigned crt_vsync_pv7_pins[] = {
  1080. TEGRA_PIN_CRT_VSYNC_PV7,
  1081. };
  1082. static const unsigned lcd_cs1_n_pw0_pins[] = {
  1083. TEGRA_PIN_LCD_CS1_N_PW0,
  1084. };
  1085. static const unsigned lcd_m1_pw1_pins[] = {
  1086. TEGRA_PIN_LCD_M1_PW1,
  1087. };
  1088. static const unsigned spi2_cs1_n_pw2_pins[] = {
  1089. TEGRA_PIN_SPI2_CS1_N_PW2,
  1090. };
  1091. static const unsigned spi2_cs2_n_pw3_pins[] = {
  1092. TEGRA_PIN_SPI2_CS2_N_PW3,
  1093. };
  1094. static const unsigned clk1_out_pw4_pins[] = {
  1095. TEGRA_PIN_CLK1_OUT_PW4,
  1096. };
  1097. static const unsigned clk2_out_pw5_pins[] = {
  1098. TEGRA_PIN_CLK2_OUT_PW5,
  1099. };
  1100. static const unsigned uart3_txd_pw6_pins[] = {
  1101. TEGRA_PIN_UART3_TXD_PW6,
  1102. };
  1103. static const unsigned uart3_rxd_pw7_pins[] = {
  1104. TEGRA_PIN_UART3_RXD_PW7,
  1105. };
  1106. static const unsigned spi2_mosi_px0_pins[] = {
  1107. TEGRA_PIN_SPI2_MOSI_PX0,
  1108. };
  1109. static const unsigned spi2_miso_px1_pins[] = {
  1110. TEGRA_PIN_SPI2_MISO_PX1,
  1111. };
  1112. static const unsigned spi2_sck_px2_pins[] = {
  1113. TEGRA_PIN_SPI2_SCK_PX2,
  1114. };
  1115. static const unsigned spi2_cs0_n_px3_pins[] = {
  1116. TEGRA_PIN_SPI2_CS0_N_PX3,
  1117. };
  1118. static const unsigned spi1_mosi_px4_pins[] = {
  1119. TEGRA_PIN_SPI1_MOSI_PX4,
  1120. };
  1121. static const unsigned spi1_sck_px5_pins[] = {
  1122. TEGRA_PIN_SPI1_SCK_PX5,
  1123. };
  1124. static const unsigned spi1_cs0_n_px6_pins[] = {
  1125. TEGRA_PIN_SPI1_CS0_N_PX6,
  1126. };
  1127. static const unsigned spi1_miso_px7_pins[] = {
  1128. TEGRA_PIN_SPI1_MISO_PX7,
  1129. };
  1130. static const unsigned ulpi_clk_py0_pins[] = {
  1131. TEGRA_PIN_ULPI_CLK_PY0,
  1132. };
  1133. static const unsigned ulpi_dir_py1_pins[] = {
  1134. TEGRA_PIN_ULPI_DIR_PY1,
  1135. };
  1136. static const unsigned ulpi_nxt_py2_pins[] = {
  1137. TEGRA_PIN_ULPI_NXT_PY2,
  1138. };
  1139. static const unsigned ulpi_stp_py3_pins[] = {
  1140. TEGRA_PIN_ULPI_STP_PY3,
  1141. };
  1142. static const unsigned sdmmc1_dat3_py4_pins[] = {
  1143. TEGRA_PIN_SDMMC1_DAT3_PY4,
  1144. };
  1145. static const unsigned sdmmc1_dat2_py5_pins[] = {
  1146. TEGRA_PIN_SDMMC1_DAT2_PY5,
  1147. };
  1148. static const unsigned sdmmc1_dat1_py6_pins[] = {
  1149. TEGRA_PIN_SDMMC1_DAT1_PY6,
  1150. };
  1151. static const unsigned sdmmc1_dat0_py7_pins[] = {
  1152. TEGRA_PIN_SDMMC1_DAT0_PY7,
  1153. };
  1154. static const unsigned sdmmc1_clk_pz0_pins[] = {
  1155. TEGRA_PIN_SDMMC1_CLK_PZ0,
  1156. };
  1157. static const unsigned sdmmc1_cmd_pz1_pins[] = {
  1158. TEGRA_PIN_SDMMC1_CMD_PZ1,
  1159. };
  1160. static const unsigned lcd_sdin_pz2_pins[] = {
  1161. TEGRA_PIN_LCD_SDIN_PZ2,
  1162. };
  1163. static const unsigned lcd_wr_n_pz3_pins[] = {
  1164. TEGRA_PIN_LCD_WR_N_PZ3,
  1165. };
  1166. static const unsigned lcd_sck_pz4_pins[] = {
  1167. TEGRA_PIN_LCD_SCK_PZ4,
  1168. };
  1169. static const unsigned sys_clk_req_pz5_pins[] = {
  1170. TEGRA_PIN_SYS_CLK_REQ_PZ5,
  1171. };
  1172. static const unsigned pwr_i2c_scl_pz6_pins[] = {
  1173. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  1174. };
  1175. static const unsigned pwr_i2c_sda_pz7_pins[] = {
  1176. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  1177. };
  1178. static const unsigned sdmmc4_dat0_paa0_pins[] = {
  1179. TEGRA_PIN_SDMMC4_DAT0_PAA0,
  1180. };
  1181. static const unsigned sdmmc4_dat1_paa1_pins[] = {
  1182. TEGRA_PIN_SDMMC4_DAT1_PAA1,
  1183. };
  1184. static const unsigned sdmmc4_dat2_paa2_pins[] = {
  1185. TEGRA_PIN_SDMMC4_DAT2_PAA2,
  1186. };
  1187. static const unsigned sdmmc4_dat3_paa3_pins[] = {
  1188. TEGRA_PIN_SDMMC4_DAT3_PAA3,
  1189. };
  1190. static const unsigned sdmmc4_dat4_paa4_pins[] = {
  1191. TEGRA_PIN_SDMMC4_DAT4_PAA4,
  1192. };
  1193. static const unsigned sdmmc4_dat5_paa5_pins[] = {
  1194. TEGRA_PIN_SDMMC4_DAT5_PAA5,
  1195. };
  1196. static const unsigned sdmmc4_dat6_paa6_pins[] = {
  1197. TEGRA_PIN_SDMMC4_DAT6_PAA6,
  1198. };
  1199. static const unsigned sdmmc4_dat7_paa7_pins[] = {
  1200. TEGRA_PIN_SDMMC4_DAT7_PAA7,
  1201. };
  1202. static const unsigned pbb0_pins[] = {
  1203. TEGRA_PIN_PBB0,
  1204. };
  1205. static const unsigned cam_i2c_scl_pbb1_pins[] = {
  1206. TEGRA_PIN_CAM_I2C_SCL_PBB1,
  1207. };
  1208. static const unsigned cam_i2c_sda_pbb2_pins[] = {
  1209. TEGRA_PIN_CAM_I2C_SDA_PBB2,
  1210. };
  1211. static const unsigned pbb3_pins[] = {
  1212. TEGRA_PIN_PBB3,
  1213. };
  1214. static const unsigned pbb4_pins[] = {
  1215. TEGRA_PIN_PBB4,
  1216. };
  1217. static const unsigned pbb5_pins[] = {
  1218. TEGRA_PIN_PBB5,
  1219. };
  1220. static const unsigned pbb6_pins[] = {
  1221. TEGRA_PIN_PBB6,
  1222. };
  1223. static const unsigned pbb7_pins[] = {
  1224. TEGRA_PIN_PBB7,
  1225. };
  1226. static const unsigned cam_mclk_pcc0_pins[] = {
  1227. TEGRA_PIN_CAM_MCLK_PCC0,
  1228. };
  1229. static const unsigned pcc1_pins[] = {
  1230. TEGRA_PIN_PCC1,
  1231. };
  1232. static const unsigned pcc2_pins[] = {
  1233. TEGRA_PIN_PCC2,
  1234. };
  1235. static const unsigned sdmmc4_rst_n_pcc3_pins[] = {
  1236. TEGRA_PIN_SDMMC4_RST_N_PCC3,
  1237. };
  1238. static const unsigned sdmmc4_clk_pcc4_pins[] = {
  1239. TEGRA_PIN_SDMMC4_CLK_PCC4,
  1240. };
  1241. static const unsigned clk2_req_pcc5_pins[] = {
  1242. TEGRA_PIN_CLK2_REQ_PCC5,
  1243. };
  1244. static const unsigned pex_l2_rst_n_pcc6_pins[] = {
  1245. TEGRA_PIN_PEX_L2_RST_N_PCC6,
  1246. };
  1247. static const unsigned pex_l2_clkreq_n_pcc7_pins[] = {
  1248. TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7,
  1249. };
  1250. static const unsigned pex_l0_prsnt_n_pdd0_pins[] = {
  1251. TEGRA_PIN_PEX_L0_PRSNT_N_PDD0,
  1252. };
  1253. static const unsigned pex_l0_rst_n_pdd1_pins[] = {
  1254. TEGRA_PIN_PEX_L0_RST_N_PDD1,
  1255. };
  1256. static const unsigned pex_l0_clkreq_n_pdd2_pins[] = {
  1257. TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2,
  1258. };
  1259. static const unsigned pex_wake_n_pdd3_pins[] = {
  1260. TEGRA_PIN_PEX_WAKE_N_PDD3,
  1261. };
  1262. static const unsigned pex_l1_prsnt_n_pdd4_pins[] = {
  1263. TEGRA_PIN_PEX_L1_PRSNT_N_PDD4,
  1264. };
  1265. static const unsigned pex_l1_rst_n_pdd5_pins[] = {
  1266. TEGRA_PIN_PEX_L1_RST_N_PDD5,
  1267. };
  1268. static const unsigned pex_l1_clkreq_n_pdd6_pins[] = {
  1269. TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6,
  1270. };
  1271. static const unsigned pex_l2_prsnt_n_pdd7_pins[] = {
  1272. TEGRA_PIN_PEX_L2_PRSNT_N_PDD7,
  1273. };
  1274. static const unsigned clk3_out_pee0_pins[] = {
  1275. TEGRA_PIN_CLK3_OUT_PEE0,
  1276. };
  1277. static const unsigned clk3_req_pee1_pins[] = {
  1278. TEGRA_PIN_CLK3_REQ_PEE1,
  1279. };
  1280. static const unsigned clk1_req_pee2_pins[] = {
  1281. TEGRA_PIN_CLK1_REQ_PEE2,
  1282. };
  1283. static const unsigned hdmi_cec_pee3_pins[] = {
  1284. TEGRA_PIN_HDMI_CEC_PEE3,
  1285. };
  1286. static const unsigned clk_32k_in_pins[] = {
  1287. TEGRA_PIN_CLK_32K_IN,
  1288. };
  1289. static const unsigned core_pwr_req_pins[] = {
  1290. TEGRA_PIN_CORE_PWR_REQ,
  1291. };
  1292. static const unsigned cpu_pwr_req_pins[] = {
  1293. TEGRA_PIN_CPU_PWR_REQ,
  1294. };
  1295. static const unsigned owr_pins[] = {
  1296. TEGRA_PIN_OWR,
  1297. };
  1298. static const unsigned pwr_int_n_pins[] = {
  1299. TEGRA_PIN_PWR_INT_N,
  1300. };
  1301. static const unsigned drive_ao1_pins[] = {
  1302. TEGRA_PIN_KB_ROW0_PR0,
  1303. TEGRA_PIN_KB_ROW1_PR1,
  1304. TEGRA_PIN_KB_ROW2_PR2,
  1305. TEGRA_PIN_KB_ROW3_PR3,
  1306. TEGRA_PIN_KB_ROW4_PR4,
  1307. TEGRA_PIN_KB_ROW5_PR5,
  1308. TEGRA_PIN_KB_ROW6_PR6,
  1309. TEGRA_PIN_KB_ROW7_PR7,
  1310. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  1311. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  1312. TEGRA_PIN_SYS_RESET_N,
  1313. };
  1314. static const unsigned drive_ao2_pins[] = {
  1315. TEGRA_PIN_CLK_32K_OUT_PA0,
  1316. TEGRA_PIN_KB_COL0_PQ0,
  1317. TEGRA_PIN_KB_COL1_PQ1,
  1318. TEGRA_PIN_KB_COL2_PQ2,
  1319. TEGRA_PIN_KB_COL3_PQ3,
  1320. TEGRA_PIN_KB_COL4_PQ4,
  1321. TEGRA_PIN_KB_COL5_PQ5,
  1322. TEGRA_PIN_KB_COL6_PQ6,
  1323. TEGRA_PIN_KB_COL7_PQ7,
  1324. TEGRA_PIN_KB_ROW8_PS0,
  1325. TEGRA_PIN_KB_ROW9_PS1,
  1326. TEGRA_PIN_KB_ROW10_PS2,
  1327. TEGRA_PIN_KB_ROW11_PS3,
  1328. TEGRA_PIN_KB_ROW12_PS4,
  1329. TEGRA_PIN_KB_ROW13_PS5,
  1330. TEGRA_PIN_KB_ROW14_PS6,
  1331. TEGRA_PIN_KB_ROW15_PS7,
  1332. TEGRA_PIN_SYS_CLK_REQ_PZ5,
  1333. TEGRA_PIN_CLK_32K_IN,
  1334. TEGRA_PIN_CORE_PWR_REQ,
  1335. TEGRA_PIN_CPU_PWR_REQ,
  1336. TEGRA_PIN_PWR_INT_N,
  1337. };
  1338. static const unsigned drive_at1_pins[] = {
  1339. TEGRA_PIN_GMI_AD8_PH0,
  1340. TEGRA_PIN_GMI_AD9_PH1,
  1341. TEGRA_PIN_GMI_AD10_PH2,
  1342. TEGRA_PIN_GMI_AD11_PH3,
  1343. TEGRA_PIN_GMI_AD12_PH4,
  1344. TEGRA_PIN_GMI_AD13_PH5,
  1345. TEGRA_PIN_GMI_AD14_PH6,
  1346. TEGRA_PIN_GMI_AD15_PH7,
  1347. TEGRA_PIN_GMI_IORDY_PI5,
  1348. TEGRA_PIN_GMI_CS7_N_PI6,
  1349. };
  1350. static const unsigned drive_at2_pins[] = {
  1351. TEGRA_PIN_GMI_AD0_PG0,
  1352. TEGRA_PIN_GMI_AD1_PG1,
  1353. TEGRA_PIN_GMI_AD2_PG2,
  1354. TEGRA_PIN_GMI_AD3_PG3,
  1355. TEGRA_PIN_GMI_AD4_PG4,
  1356. TEGRA_PIN_GMI_AD5_PG5,
  1357. TEGRA_PIN_GMI_AD6_PG6,
  1358. TEGRA_PIN_GMI_AD7_PG7,
  1359. TEGRA_PIN_GMI_WR_N_PI0,
  1360. TEGRA_PIN_GMI_OE_N_PI1,
  1361. TEGRA_PIN_GMI_DQS_PI2,
  1362. TEGRA_PIN_GMI_CS6_N_PI3,
  1363. TEGRA_PIN_GMI_RST_N_PI4,
  1364. TEGRA_PIN_GMI_WAIT_PI7,
  1365. TEGRA_PIN_GMI_ADV_N_PK0,
  1366. TEGRA_PIN_GMI_CLK_PK1,
  1367. TEGRA_PIN_GMI_CS4_N_PK2,
  1368. TEGRA_PIN_GMI_CS2_N_PK3,
  1369. TEGRA_PIN_GMI_CS3_N_PK4,
  1370. };
  1371. static const unsigned drive_at3_pins[] = {
  1372. TEGRA_PIN_GMI_WP_N_PC7,
  1373. TEGRA_PIN_GMI_CS0_N_PJ0,
  1374. };
  1375. static const unsigned drive_at4_pins[] = {
  1376. TEGRA_PIN_GMI_A17_PB0,
  1377. TEGRA_PIN_GMI_A18_PB1,
  1378. TEGRA_PIN_GMI_CS1_N_PJ2,
  1379. TEGRA_PIN_GMI_A16_PJ7,
  1380. TEGRA_PIN_GMI_A19_PK7,
  1381. };
  1382. static const unsigned drive_at5_pins[] = {
  1383. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  1384. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  1385. };
  1386. static const unsigned drive_cdev1_pins[] = {
  1387. TEGRA_PIN_CLK1_OUT_PW4,
  1388. TEGRA_PIN_CLK1_REQ_PEE2,
  1389. };
  1390. static const unsigned drive_cdev2_pins[] = {
  1391. TEGRA_PIN_CLK2_OUT_PW5,
  1392. TEGRA_PIN_CLK2_REQ_PCC5,
  1393. };
  1394. static const unsigned drive_cec_pins[] = {
  1395. TEGRA_PIN_HDMI_CEC_PEE3,
  1396. };
  1397. static const unsigned drive_crt_pins[] = {
  1398. TEGRA_PIN_CRT_HSYNC_PV6,
  1399. TEGRA_PIN_CRT_VSYNC_PV7,
  1400. };
  1401. static const unsigned drive_csus_pins[] = {
  1402. TEGRA_PIN_VI_MCLK_PT1,
  1403. };
  1404. static const unsigned drive_dap1_pins[] = {
  1405. TEGRA_PIN_SPDIF_OUT_PK5,
  1406. TEGRA_PIN_SPDIF_IN_PK6,
  1407. TEGRA_PIN_DAP1_FS_PN0,
  1408. TEGRA_PIN_DAP1_DIN_PN1,
  1409. TEGRA_PIN_DAP1_DOUT_PN2,
  1410. TEGRA_PIN_DAP1_SCLK_PN3,
  1411. };
  1412. static const unsigned drive_dap2_pins[] = {
  1413. TEGRA_PIN_DAP2_FS_PA2,
  1414. TEGRA_PIN_DAP2_SCLK_PA3,
  1415. TEGRA_PIN_DAP2_DIN_PA4,
  1416. TEGRA_PIN_DAP2_DOUT_PA5,
  1417. };
  1418. static const unsigned drive_dap3_pins[] = {
  1419. TEGRA_PIN_DAP3_FS_PP0,
  1420. TEGRA_PIN_DAP3_DIN_PP1,
  1421. TEGRA_PIN_DAP3_DOUT_PP2,
  1422. TEGRA_PIN_DAP3_SCLK_PP3,
  1423. };
  1424. static const unsigned drive_dap4_pins[] = {
  1425. TEGRA_PIN_DAP4_FS_PP4,
  1426. TEGRA_PIN_DAP4_DIN_PP5,
  1427. TEGRA_PIN_DAP4_DOUT_PP6,
  1428. TEGRA_PIN_DAP4_SCLK_PP7,
  1429. };
  1430. static const unsigned drive_dbg_pins[] = {
  1431. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  1432. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  1433. TEGRA_PIN_PU0,
  1434. TEGRA_PIN_PU1,
  1435. TEGRA_PIN_PU2,
  1436. TEGRA_PIN_PU3,
  1437. TEGRA_PIN_PU4,
  1438. TEGRA_PIN_PU5,
  1439. TEGRA_PIN_PU6,
  1440. TEGRA_PIN_JTAG_RTCK_PU7,
  1441. TEGRA_PIN_JTAG_TCK,
  1442. TEGRA_PIN_JTAG_TDI,
  1443. TEGRA_PIN_JTAG_TDO,
  1444. TEGRA_PIN_JTAG_TMS,
  1445. TEGRA_PIN_JTAG_TRST_N,
  1446. TEGRA_PIN_TEST_MODE_EN,
  1447. };
  1448. static const unsigned drive_ddc_pins[] = {
  1449. TEGRA_PIN_DDC_SCL_PV4,
  1450. TEGRA_PIN_DDC_SDA_PV5,
  1451. };
  1452. static const unsigned drive_dev3_pins[] = {
  1453. TEGRA_PIN_CLK3_OUT_PEE0,
  1454. TEGRA_PIN_CLK3_REQ_PEE1,
  1455. };
  1456. static const unsigned drive_gma_pins[] = {
  1457. TEGRA_PIN_SDMMC4_DAT0_PAA0,
  1458. TEGRA_PIN_SDMMC4_DAT1_PAA1,
  1459. TEGRA_PIN_SDMMC4_DAT2_PAA2,
  1460. TEGRA_PIN_SDMMC4_DAT3_PAA3,
  1461. TEGRA_PIN_SDMMC4_RST_N_PCC3,
  1462. };
  1463. static const unsigned drive_gmb_pins[] = {
  1464. TEGRA_PIN_SDMMC4_DAT4_PAA4,
  1465. TEGRA_PIN_SDMMC4_DAT5_PAA5,
  1466. TEGRA_PIN_SDMMC4_DAT6_PAA6,
  1467. TEGRA_PIN_SDMMC4_DAT7_PAA7,
  1468. };
  1469. static const unsigned drive_gmc_pins[] = {
  1470. TEGRA_PIN_SDMMC4_CLK_PCC4,
  1471. };
  1472. static const unsigned drive_gmd_pins[] = {
  1473. TEGRA_PIN_SDMMC4_CMD_PT7,
  1474. };
  1475. static const unsigned drive_gme_pins[] = {
  1476. TEGRA_PIN_PBB0,
  1477. TEGRA_PIN_CAM_I2C_SCL_PBB1,
  1478. TEGRA_PIN_CAM_I2C_SDA_PBB2,
  1479. TEGRA_PIN_PBB3,
  1480. TEGRA_PIN_PCC2,
  1481. };
  1482. static const unsigned drive_gmf_pins[] = {
  1483. TEGRA_PIN_PBB4,
  1484. TEGRA_PIN_PBB5,
  1485. TEGRA_PIN_PBB6,
  1486. TEGRA_PIN_PBB7,
  1487. };
  1488. static const unsigned drive_gmg_pins[] = {
  1489. TEGRA_PIN_CAM_MCLK_PCC0,
  1490. };
  1491. static const unsigned drive_gmh_pins[] = {
  1492. TEGRA_PIN_PCC1,
  1493. };
  1494. static const unsigned drive_gpv_pins[] = {
  1495. TEGRA_PIN_PEX_L2_RST_N_PCC6,
  1496. TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7,
  1497. TEGRA_PIN_PEX_L0_PRSNT_N_PDD0,
  1498. TEGRA_PIN_PEX_L0_RST_N_PDD1,
  1499. TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2,
  1500. TEGRA_PIN_PEX_WAKE_N_PDD3,
  1501. TEGRA_PIN_PEX_L1_PRSNT_N_PDD4,
  1502. TEGRA_PIN_PEX_L1_RST_N_PDD5,
  1503. TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6,
  1504. TEGRA_PIN_PEX_L2_PRSNT_N_PDD7,
  1505. };
  1506. static const unsigned drive_lcd1_pins[] = {
  1507. TEGRA_PIN_LCD_PWR1_PC1,
  1508. TEGRA_PIN_LCD_PWR2_PC6,
  1509. TEGRA_PIN_LCD_CS0_N_PN4,
  1510. TEGRA_PIN_LCD_SDOUT_PN5,
  1511. TEGRA_PIN_LCD_DC0_PN6,
  1512. TEGRA_PIN_LCD_SDIN_PZ2,
  1513. TEGRA_PIN_LCD_WR_N_PZ3,
  1514. TEGRA_PIN_LCD_SCK_PZ4,
  1515. };
  1516. static const unsigned drive_lcd2_pins[] = {
  1517. TEGRA_PIN_LCD_PWR0_PB2,
  1518. TEGRA_PIN_LCD_PCLK_PB3,
  1519. TEGRA_PIN_LCD_DC1_PD2,
  1520. TEGRA_PIN_LCD_D0_PE0,
  1521. TEGRA_PIN_LCD_D1_PE1,
  1522. TEGRA_PIN_LCD_D2_PE2,
  1523. TEGRA_PIN_LCD_D3_PE3,
  1524. TEGRA_PIN_LCD_D4_PE4,
  1525. TEGRA_PIN_LCD_D5_PE5,
  1526. TEGRA_PIN_LCD_D6_PE6,
  1527. TEGRA_PIN_LCD_D7_PE7,
  1528. TEGRA_PIN_LCD_D8_PF0,
  1529. TEGRA_PIN_LCD_D9_PF1,
  1530. TEGRA_PIN_LCD_D10_PF2,
  1531. TEGRA_PIN_LCD_D11_PF3,
  1532. TEGRA_PIN_LCD_D12_PF4,
  1533. TEGRA_PIN_LCD_D13_PF5,
  1534. TEGRA_PIN_LCD_D14_PF6,
  1535. TEGRA_PIN_LCD_D15_PF7,
  1536. TEGRA_PIN_LCD_DE_PJ1,
  1537. TEGRA_PIN_LCD_HSYNC_PJ3,
  1538. TEGRA_PIN_LCD_VSYNC_PJ4,
  1539. TEGRA_PIN_LCD_D16_PM0,
  1540. TEGRA_PIN_LCD_D17_PM1,
  1541. TEGRA_PIN_LCD_D18_PM2,
  1542. TEGRA_PIN_LCD_D19_PM3,
  1543. TEGRA_PIN_LCD_D20_PM4,
  1544. TEGRA_PIN_LCD_D21_PM5,
  1545. TEGRA_PIN_LCD_D22_PM6,
  1546. TEGRA_PIN_LCD_D23_PM7,
  1547. TEGRA_PIN_HDMI_INT_PN7,
  1548. TEGRA_PIN_LCD_CS1_N_PW0,
  1549. TEGRA_PIN_LCD_M1_PW1,
  1550. };
  1551. static const unsigned drive_owr_pins[] = {
  1552. TEGRA_PIN_OWR,
  1553. };
  1554. static const unsigned drive_sdio1_pins[] = {
  1555. TEGRA_PIN_SDMMC1_DAT3_PY4,
  1556. TEGRA_PIN_SDMMC1_DAT2_PY5,
  1557. TEGRA_PIN_SDMMC1_DAT1_PY6,
  1558. TEGRA_PIN_SDMMC1_DAT0_PY7,
  1559. TEGRA_PIN_SDMMC1_CLK_PZ0,
  1560. TEGRA_PIN_SDMMC1_CMD_PZ1,
  1561. };
  1562. static const unsigned drive_sdio2_pins[] = {
  1563. TEGRA_PIN_SDMMC3_DAT5_PD0,
  1564. TEGRA_PIN_SDMMC3_DAT4_PD1,
  1565. TEGRA_PIN_SDMMC3_DAT6_PD3,
  1566. TEGRA_PIN_SDMMC3_DAT7_PD4,
  1567. };
  1568. static const unsigned drive_sdio3_pins[] = {
  1569. TEGRA_PIN_SDMMC3_CLK_PA6,
  1570. TEGRA_PIN_SDMMC3_CMD_PA7,
  1571. TEGRA_PIN_SDMMC3_DAT3_PB4,
  1572. TEGRA_PIN_SDMMC3_DAT2_PB5,
  1573. TEGRA_PIN_SDMMC3_DAT1_PB6,
  1574. TEGRA_PIN_SDMMC3_DAT0_PB7,
  1575. };
  1576. static const unsigned drive_spi_pins[] = {
  1577. TEGRA_PIN_SPI2_CS1_N_PW2,
  1578. TEGRA_PIN_SPI2_CS2_N_PW3,
  1579. TEGRA_PIN_SPI2_MOSI_PX0,
  1580. TEGRA_PIN_SPI2_MISO_PX1,
  1581. TEGRA_PIN_SPI2_SCK_PX2,
  1582. TEGRA_PIN_SPI2_CS0_N_PX3,
  1583. TEGRA_PIN_SPI1_MOSI_PX4,
  1584. TEGRA_PIN_SPI1_SCK_PX5,
  1585. TEGRA_PIN_SPI1_CS0_N_PX6,
  1586. TEGRA_PIN_SPI1_MISO_PX7,
  1587. };
  1588. static const unsigned drive_uaa_pins[] = {
  1589. TEGRA_PIN_ULPI_DATA0_PO1,
  1590. TEGRA_PIN_ULPI_DATA1_PO2,
  1591. TEGRA_PIN_ULPI_DATA2_PO3,
  1592. TEGRA_PIN_ULPI_DATA3_PO4,
  1593. };
  1594. static const unsigned drive_uab_pins[] = {
  1595. TEGRA_PIN_ULPI_DATA7_PO0,
  1596. TEGRA_PIN_ULPI_DATA4_PO5,
  1597. TEGRA_PIN_ULPI_DATA5_PO6,
  1598. TEGRA_PIN_ULPI_DATA6_PO7,
  1599. TEGRA_PIN_PV0,
  1600. TEGRA_PIN_PV1,
  1601. TEGRA_PIN_PV2,
  1602. TEGRA_PIN_PV3,
  1603. };
  1604. static const unsigned drive_uart2_pins[] = {
  1605. TEGRA_PIN_UART2_TXD_PC2,
  1606. TEGRA_PIN_UART2_RXD_PC3,
  1607. TEGRA_PIN_UART2_CTS_N_PJ5,
  1608. TEGRA_PIN_UART2_RTS_N_PJ6,
  1609. };
  1610. static const unsigned drive_uart3_pins[] = {
  1611. TEGRA_PIN_UART3_CTS_N_PA1,
  1612. TEGRA_PIN_UART3_RTS_N_PC0,
  1613. TEGRA_PIN_UART3_TXD_PW6,
  1614. TEGRA_PIN_UART3_RXD_PW7,
  1615. };
  1616. static const unsigned drive_uda_pins[] = {
  1617. TEGRA_PIN_ULPI_CLK_PY0,
  1618. TEGRA_PIN_ULPI_DIR_PY1,
  1619. TEGRA_PIN_ULPI_NXT_PY2,
  1620. TEGRA_PIN_ULPI_STP_PY3,
  1621. };
  1622. static const unsigned drive_vi1_pins[] = {
  1623. TEGRA_PIN_VI_D1_PD5,
  1624. TEGRA_PIN_VI_VSYNC_PD6,
  1625. TEGRA_PIN_VI_HSYNC_PD7,
  1626. TEGRA_PIN_VI_D2_PL0,
  1627. TEGRA_PIN_VI_D3_PL1,
  1628. TEGRA_PIN_VI_D4_PL2,
  1629. TEGRA_PIN_VI_D5_PL3,
  1630. TEGRA_PIN_VI_D6_PL4,
  1631. TEGRA_PIN_VI_D7_PL5,
  1632. TEGRA_PIN_VI_D8_PL6,
  1633. TEGRA_PIN_VI_D9_PL7,
  1634. TEGRA_PIN_VI_PCLK_PT0,
  1635. TEGRA_PIN_VI_D10_PT2,
  1636. TEGRA_PIN_VI_D11_PT3,
  1637. TEGRA_PIN_VI_D0_PT4,
  1638. };
  1639. enum tegra_mux {
  1640. TEGRA_MUX_BLINK,
  1641. TEGRA_MUX_CEC,
  1642. TEGRA_MUX_CLK_12M_OUT,
  1643. TEGRA_MUX_CLK_32K_IN,
  1644. TEGRA_MUX_CORE_PWR_REQ,
  1645. TEGRA_MUX_CPU_PWR_REQ,
  1646. TEGRA_MUX_CRT,
  1647. TEGRA_MUX_DAP,
  1648. TEGRA_MUX_DDR,
  1649. TEGRA_MUX_DEV3,
  1650. TEGRA_MUX_DISPLAYA,
  1651. TEGRA_MUX_DISPLAYB,
  1652. TEGRA_MUX_DTV,
  1653. TEGRA_MUX_EXTPERIPH1,
  1654. TEGRA_MUX_EXTPERIPH2,
  1655. TEGRA_MUX_EXTPERIPH3,
  1656. TEGRA_MUX_GMI,
  1657. TEGRA_MUX_GMI_ALT,
  1658. TEGRA_MUX_HDA,
  1659. TEGRA_MUX_HDCP,
  1660. TEGRA_MUX_HDMI,
  1661. TEGRA_MUX_HSI,
  1662. TEGRA_MUX_I2C1,
  1663. TEGRA_MUX_I2C2,
  1664. TEGRA_MUX_I2C3,
  1665. TEGRA_MUX_I2C4,
  1666. TEGRA_MUX_I2CPWR,
  1667. TEGRA_MUX_I2S0,
  1668. TEGRA_MUX_I2S1,
  1669. TEGRA_MUX_I2S2,
  1670. TEGRA_MUX_I2S3,
  1671. TEGRA_MUX_I2S4,
  1672. TEGRA_MUX_INVALID,
  1673. TEGRA_MUX_KBC,
  1674. TEGRA_MUX_MIO,
  1675. TEGRA_MUX_NAND,
  1676. TEGRA_MUX_NAND_ALT,
  1677. TEGRA_MUX_OWR,
  1678. TEGRA_MUX_PCIE,
  1679. TEGRA_MUX_PWM0,
  1680. TEGRA_MUX_PWM1,
  1681. TEGRA_MUX_PWM2,
  1682. TEGRA_MUX_PWM3,
  1683. TEGRA_MUX_PWR_INT_N,
  1684. TEGRA_MUX_RSVD1,
  1685. TEGRA_MUX_RSVD2,
  1686. TEGRA_MUX_RSVD3,
  1687. TEGRA_MUX_RSVD4,
  1688. TEGRA_MUX_RTCK,
  1689. TEGRA_MUX_SATA,
  1690. TEGRA_MUX_SDMMC1,
  1691. TEGRA_MUX_SDMMC2,
  1692. TEGRA_MUX_SDMMC3,
  1693. TEGRA_MUX_SDMMC4,
  1694. TEGRA_MUX_SPDIF,
  1695. TEGRA_MUX_SPI1,
  1696. TEGRA_MUX_SPI2,
  1697. TEGRA_MUX_SPI2_ALT,
  1698. TEGRA_MUX_SPI3,
  1699. TEGRA_MUX_SPI4,
  1700. TEGRA_MUX_SPI5,
  1701. TEGRA_MUX_SPI6,
  1702. TEGRA_MUX_SYSCLK,
  1703. TEGRA_MUX_TEST,
  1704. TEGRA_MUX_TRACE,
  1705. TEGRA_MUX_UARTA,
  1706. TEGRA_MUX_UARTB,
  1707. TEGRA_MUX_UARTC,
  1708. TEGRA_MUX_UARTD,
  1709. TEGRA_MUX_UARTE,
  1710. TEGRA_MUX_ULPI,
  1711. TEGRA_MUX_VGP1,
  1712. TEGRA_MUX_VGP2,
  1713. TEGRA_MUX_VGP3,
  1714. TEGRA_MUX_VGP4,
  1715. TEGRA_MUX_VGP5,
  1716. TEGRA_MUX_VGP6,
  1717. TEGRA_MUX_VI,
  1718. TEGRA_MUX_VI_ALT1,
  1719. TEGRA_MUX_VI_ALT2,
  1720. TEGRA_MUX_VI_ALT3,
  1721. };
  1722. #define FUNCTION(fname) \
  1723. { \
  1724. .name = #fname, \
  1725. }
  1726. static struct tegra_function tegra30_functions[] = {
  1727. FUNCTION(blink),
  1728. FUNCTION(cec),
  1729. FUNCTION(clk_12m_out),
  1730. FUNCTION(clk_32k_in),
  1731. FUNCTION(core_pwr_req),
  1732. FUNCTION(cpu_pwr_req),
  1733. FUNCTION(crt),
  1734. FUNCTION(dap),
  1735. FUNCTION(ddr),
  1736. FUNCTION(dev3),
  1737. FUNCTION(displaya),
  1738. FUNCTION(displayb),
  1739. FUNCTION(dtv),
  1740. FUNCTION(extperiph1),
  1741. FUNCTION(extperiph2),
  1742. FUNCTION(extperiph3),
  1743. FUNCTION(gmi),
  1744. FUNCTION(gmi_alt),
  1745. FUNCTION(hda),
  1746. FUNCTION(hdcp),
  1747. FUNCTION(hdmi),
  1748. FUNCTION(hsi),
  1749. FUNCTION(i2c1),
  1750. FUNCTION(i2c2),
  1751. FUNCTION(i2c3),
  1752. FUNCTION(i2c4),
  1753. FUNCTION(i2cpwr),
  1754. FUNCTION(i2s0),
  1755. FUNCTION(i2s1),
  1756. FUNCTION(i2s2),
  1757. FUNCTION(i2s3),
  1758. FUNCTION(i2s4),
  1759. FUNCTION(invalid),
  1760. FUNCTION(kbc),
  1761. FUNCTION(mio),
  1762. FUNCTION(nand),
  1763. FUNCTION(nand_alt),
  1764. FUNCTION(owr),
  1765. FUNCTION(pcie),
  1766. FUNCTION(pwm0),
  1767. FUNCTION(pwm1),
  1768. FUNCTION(pwm2),
  1769. FUNCTION(pwm3),
  1770. FUNCTION(pwr_int_n),
  1771. FUNCTION(rsvd1),
  1772. FUNCTION(rsvd2),
  1773. FUNCTION(rsvd3),
  1774. FUNCTION(rsvd4),
  1775. FUNCTION(rtck),
  1776. FUNCTION(sata),
  1777. FUNCTION(sdmmc1),
  1778. FUNCTION(sdmmc2),
  1779. FUNCTION(sdmmc3),
  1780. FUNCTION(sdmmc4),
  1781. FUNCTION(spdif),
  1782. FUNCTION(spi1),
  1783. FUNCTION(spi2),
  1784. FUNCTION(spi2_alt),
  1785. FUNCTION(spi3),
  1786. FUNCTION(spi4),
  1787. FUNCTION(spi5),
  1788. FUNCTION(spi6),
  1789. FUNCTION(sysclk),
  1790. FUNCTION(test),
  1791. FUNCTION(trace),
  1792. FUNCTION(uarta),
  1793. FUNCTION(uartb),
  1794. FUNCTION(uartc),
  1795. FUNCTION(uartd),
  1796. FUNCTION(uarte),
  1797. FUNCTION(ulpi),
  1798. FUNCTION(vgp1),
  1799. FUNCTION(vgp2),
  1800. FUNCTION(vgp3),
  1801. FUNCTION(vgp4),
  1802. FUNCTION(vgp5),
  1803. FUNCTION(vgp6),
  1804. FUNCTION(vi),
  1805. FUNCTION(vi_alt1),
  1806. FUNCTION(vi_alt2),
  1807. FUNCTION(vi_alt3),
  1808. };
  1809. #define DRV_PINGROUP_REG_A 0x868 /* bank 0 */
  1810. #define PINGROUP_REG_A 0x3000 /* bank 1 */
  1811. #define DRV_PINGROUP_REG(r) ((r) - DRV_PINGROUP_REG_A)
  1812. #define PINGROUP_REG(r) ((r) - PINGROUP_REG_A)
  1813. #define PINGROUP_BIT_Y(b) (b)
  1814. #define PINGROUP_BIT_N(b) (-1)
  1815. #define PINGROUP(pg_name, f0, f1, f2, f3, r, od, ior) \
  1816. { \
  1817. .name = #pg_name, \
  1818. .pins = pg_name##_pins, \
  1819. .npins = ARRAY_SIZE(pg_name##_pins), \
  1820. .funcs = { \
  1821. TEGRA_MUX_##f0, \
  1822. TEGRA_MUX_##f1, \
  1823. TEGRA_MUX_##f2, \
  1824. TEGRA_MUX_##f3, \
  1825. }, \
  1826. .mux_reg = PINGROUP_REG(r), \
  1827. .mux_bank = 1, \
  1828. .mux_bit = 0, \
  1829. .pupd_reg = PINGROUP_REG(r), \
  1830. .pupd_bank = 1, \
  1831. .pupd_bit = 2, \
  1832. .tri_reg = PINGROUP_REG(r), \
  1833. .tri_bank = 1, \
  1834. .tri_bit = 4, \
  1835. .einput_bit = 5, \
  1836. .odrain_bit = PINGROUP_BIT_##od(6), \
  1837. .lock_bit = 7, \
  1838. .ioreset_bit = PINGROUP_BIT_##ior(8), \
  1839. .rcv_sel_bit = -1, \
  1840. .parked_bit = -1, \
  1841. .drv_reg = -1, \
  1842. }
  1843. #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, \
  1844. drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, \
  1845. slwf_b, slwf_w) \
  1846. { \
  1847. .name = "drive_" #pg_name, \
  1848. .pins = drive_##pg_name##_pins, \
  1849. .npins = ARRAY_SIZE(drive_##pg_name##_pins), \
  1850. .mux_reg = -1, \
  1851. .pupd_reg = -1, \
  1852. .tri_reg = -1, \
  1853. .einput_bit = -1, \
  1854. .odrain_bit = -1, \
  1855. .lock_bit = -1, \
  1856. .ioreset_bit = -1, \
  1857. .rcv_sel_bit = -1, \
  1858. .drv_reg = DRV_PINGROUP_REG(r), \
  1859. .drv_bank = 0, \
  1860. .parked_bit = -1, \
  1861. .hsm_bit = hsm_b, \
  1862. .schmitt_bit = schmitt_b, \
  1863. .lpmd_bit = lpmd_b, \
  1864. .drvdn_bit = drvdn_b, \
  1865. .drvdn_width = drvdn_w, \
  1866. .drvup_bit = drvup_b, \
  1867. .drvup_width = drvup_w, \
  1868. .slwr_bit = slwr_b, \
  1869. .slwr_width = slwr_w, \
  1870. .slwf_bit = slwf_b, \
  1871. .slwf_width = slwf_w, \
  1872. .drvtype_bit = -1, \
  1873. }
  1874. static const struct tegra_pingroup tegra30_groups[] = {
  1875. /* pg_name, f0, f1, f2, f3, r, od, ior */
  1876. PINGROUP(clk_32k_out_pa0, BLINK, RSVD2, RSVD3, RSVD4, 0x331c, N, N),
  1877. PINGROUP(uart3_cts_n_pa1, UARTC, RSVD2, GMI, RSVD4, 0x317c, N, N),
  1878. PINGROUP(dap2_fs_pa2, I2S1, HDA, RSVD3, GMI, 0x3358, N, N),
  1879. PINGROUP(dap2_sclk_pa3, I2S1, HDA, RSVD3, GMI, 0x3364, N, N),
  1880. PINGROUP(dap2_din_pa4, I2S1, HDA, RSVD3, GMI, 0x335c, N, N),
  1881. PINGROUP(dap2_dout_pa5, I2S1, HDA, RSVD3, GMI, 0x3360, N, N),
  1882. PINGROUP(sdmmc3_clk_pa6, UARTA, PWM2, SDMMC3, SPI3, 0x3390, N, N),
  1883. PINGROUP(sdmmc3_cmd_pa7, UARTA, PWM3, SDMMC3, SPI2, 0x3394, N, N),
  1884. PINGROUP(gmi_a17_pb0, UARTD, SPI4, GMI, DTV, 0x3234, N, N),
  1885. PINGROUP(gmi_a18_pb1, UARTD, SPI4, GMI, DTV, 0x3238, N, N),
  1886. PINGROUP(lcd_pwr0_pb2, DISPLAYA, DISPLAYB, SPI5, HDCP, 0x3090, N, N),
  1887. PINGROUP(lcd_pclk_pb3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x3094, N, N),
  1888. PINGROUP(sdmmc3_dat3_pb4, RSVD1, PWM0, SDMMC3, SPI3, 0x33a4, N, N),
  1889. PINGROUP(sdmmc3_dat2_pb5, RSVD1, PWM1, SDMMC3, SPI3, 0x33a0, N, N),
  1890. PINGROUP(sdmmc3_dat1_pb6, RSVD1, RSVD2, SDMMC3, SPI3, 0x339c, N, N),
  1891. PINGROUP(sdmmc3_dat0_pb7, RSVD1, RSVD2, SDMMC3, SPI3, 0x3398, N, N),
  1892. PINGROUP(uart3_rts_n_pc0, UARTC, PWM0, GMI, RSVD4, 0x3180, N, N),
  1893. PINGROUP(lcd_pwr1_pc1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x3070, N, N),
  1894. PINGROUP(uart2_txd_pc2, UARTB, SPDIF, UARTA, SPI4, 0x3168, N, N),
  1895. PINGROUP(uart2_rxd_pc3, UARTB, SPDIF, UARTA, SPI4, 0x3164, N, N),
  1896. PINGROUP(gen1_i2c_scl_pc4, I2C1, RSVD2, RSVD3, RSVD4, 0x31a4, Y, N),
  1897. PINGROUP(gen1_i2c_sda_pc5, I2C1, RSVD2, RSVD3, RSVD4, 0x31a0, Y, N),
  1898. PINGROUP(lcd_pwr2_pc6, DISPLAYA, DISPLAYB, SPI5, HDCP, 0x3074, N, N),
  1899. PINGROUP(gmi_wp_n_pc7, RSVD1, NAND, GMI, GMI_ALT, 0x31c0, N, N),
  1900. PINGROUP(sdmmc3_dat5_pd0, PWM0, SPI4, SDMMC3, SPI2, 0x33ac, N, N),
  1901. PINGROUP(sdmmc3_dat4_pd1, PWM1, SPI4, SDMMC3, SPI2, 0x33a8, N, N),
  1902. PINGROUP(lcd_dc1_pd2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x310c, N, N),
  1903. PINGROUP(sdmmc3_dat6_pd3, SPDIF, SPI4, SDMMC3, SPI2, 0x33b0, N, N),
  1904. PINGROUP(sdmmc3_dat7_pd4, SPDIF, SPI4, SDMMC3, SPI2, 0x33b4, N, N),
  1905. PINGROUP(vi_d1_pd5, DDR, SDMMC2, VI, RSVD4, 0x3128, N, Y),
  1906. PINGROUP(vi_vsync_pd6, DDR, RSVD2, VI, RSVD4, 0x315c, N, Y),
  1907. PINGROUP(vi_hsync_pd7, DDR, RSVD2, VI, RSVD4, 0x3160, N, Y),
  1908. PINGROUP(lcd_d0_pe0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30a4, N, N),
  1909. PINGROUP(lcd_d1_pe1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30a8, N, N),
  1910. PINGROUP(lcd_d2_pe2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30ac, N, N),
  1911. PINGROUP(lcd_d3_pe3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30b0, N, N),
  1912. PINGROUP(lcd_d4_pe4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30b4, N, N),
  1913. PINGROUP(lcd_d5_pe5, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30b8, N, N),
  1914. PINGROUP(lcd_d6_pe6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30bc, N, N),
  1915. PINGROUP(lcd_d7_pe7, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30c0, N, N),
  1916. PINGROUP(lcd_d8_pf0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30c4, N, N),
  1917. PINGROUP(lcd_d9_pf1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30c8, N, N),
  1918. PINGROUP(lcd_d10_pf2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30cc, N, N),
  1919. PINGROUP(lcd_d11_pf3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30d0, N, N),
  1920. PINGROUP(lcd_d12_pf4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30d4, N, N),
  1921. PINGROUP(lcd_d13_pf5, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30d8, N, N),
  1922. PINGROUP(lcd_d14_pf6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30dc, N, N),
  1923. PINGROUP(lcd_d15_pf7, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30e0, N, N),
  1924. PINGROUP(gmi_ad0_pg0, RSVD1, NAND, GMI, RSVD4, 0x31f0, N, N),
  1925. PINGROUP(gmi_ad1_pg1, RSVD1, NAND, GMI, RSVD4, 0x31f4, N, N),
  1926. PINGROUP(gmi_ad2_pg2, RSVD1, NAND, GMI, RSVD4, 0x31f8, N, N),
  1927. PINGROUP(gmi_ad3_pg3, RSVD1, NAND, GMI, RSVD4, 0x31fc, N, N),
  1928. PINGROUP(gmi_ad4_pg4, RSVD1, NAND, GMI, RSVD4, 0x3200, N, N),
  1929. PINGROUP(gmi_ad5_pg5, RSVD1, NAND, GMI, RSVD4, 0x3204, N, N),
  1930. PINGROUP(gmi_ad6_pg6, RSVD1, NAND, GMI, RSVD4, 0x3208, N, N),
  1931. PINGROUP(gmi_ad7_pg7, RSVD1, NAND, GMI, RSVD4, 0x320c, N, N),
  1932. PINGROUP(gmi_ad8_ph0, PWM0, NAND, GMI, RSVD4, 0x3210, N, N),
  1933. PINGROUP(gmi_ad9_ph1, PWM1, NAND, GMI, RSVD4, 0x3214, N, N),
  1934. PINGROUP(gmi_ad10_ph2, PWM2, NAND, GMI, RSVD4, 0x3218, N, N),
  1935. PINGROUP(gmi_ad11_ph3, PWM3, NAND, GMI, RSVD4, 0x321c, N, N),
  1936. PINGROUP(gmi_ad12_ph4, RSVD1, NAND, GMI, RSVD4, 0x3220, N, N),
  1937. PINGROUP(gmi_ad13_ph5, RSVD1, NAND, GMI, RSVD4, 0x3224, N, N),
  1938. PINGROUP(gmi_ad14_ph6, RSVD1, NAND, GMI, RSVD4, 0x3228, N, N),
  1939. PINGROUP(gmi_ad15_ph7, RSVD1, NAND, GMI, RSVD4, 0x322c, N, N),
  1940. PINGROUP(gmi_wr_n_pi0, RSVD1, NAND, GMI, RSVD4, 0x3240, N, N),
  1941. PINGROUP(gmi_oe_n_pi1, RSVD1, NAND, GMI, RSVD4, 0x3244, N, N),
  1942. PINGROUP(gmi_dqs_pi2, RSVD1, NAND, GMI, RSVD4, 0x3248, N, N),
  1943. PINGROUP(gmi_cs6_n_pi3, NAND, NAND_ALT, GMI, SATA, 0x31e8, N, N),
  1944. PINGROUP(gmi_rst_n_pi4, NAND, NAND_ALT, GMI, RSVD4, 0x324c, N, N),
  1945. PINGROUP(gmi_iordy_pi5, RSVD1, NAND, GMI, RSVD4, 0x31c4, N, N),
  1946. PINGROUP(gmi_cs7_n_pi6, NAND, NAND_ALT, GMI, GMI_ALT, 0x31ec, N, N),
  1947. PINGROUP(gmi_wait_pi7, RSVD1, NAND, GMI, RSVD4, 0x31c8, N, N),
  1948. PINGROUP(gmi_cs0_n_pj0, RSVD1, NAND, GMI, DTV, 0x31d4, N, N),
  1949. PINGROUP(lcd_de_pj1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x3098, N, N),
  1950. PINGROUP(gmi_cs1_n_pj2, RSVD1, NAND, GMI, DTV, 0x31d8, N, N),
  1951. PINGROUP(lcd_hsync_pj3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x309c, N, N),
  1952. PINGROUP(lcd_vsync_pj4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30a0, N, N),
  1953. PINGROUP(uart2_cts_n_pj5, UARTA, UARTB, GMI, SPI4, 0x3170, N, N),
  1954. PINGROUP(uart2_rts_n_pj6, UARTA, UARTB, GMI, SPI4, 0x316c, N, N),
  1955. PINGROUP(gmi_a16_pj7, UARTD, SPI4, GMI, GMI_ALT, 0x3230, N, N),
  1956. PINGROUP(gmi_adv_n_pk0, RSVD1, NAND, GMI, RSVD4, 0x31cc, N, N),
  1957. PINGROUP(gmi_clk_pk1, RSVD1, NAND, GMI, RSVD4, 0x31d0, N, N),
  1958. PINGROUP(gmi_cs4_n_pk2, RSVD1, NAND, GMI, RSVD4, 0x31e4, N, N),
  1959. PINGROUP(gmi_cs2_n_pk3, RSVD1, NAND, GMI, RSVD4, 0x31dc, N, N),
  1960. PINGROUP(gmi_cs3_n_pk4, RSVD1, NAND, GMI, GMI_ALT, 0x31e0, N, N),
  1961. PINGROUP(spdif_out_pk5, SPDIF, RSVD2, I2C1, SDMMC2, 0x3354, N, N),
  1962. PINGROUP(spdif_in_pk6, SPDIF, HDA, I2C1, SDMMC2, 0x3350, N, N),
  1963. PINGROUP(gmi_a19_pk7, UARTD, SPI4, GMI, RSVD4, 0x323c, N, N),
  1964. PINGROUP(vi_d2_pl0, DDR, SDMMC2, VI, RSVD4, 0x312c, N, Y),
  1965. PINGROUP(vi_d3_pl1, DDR, SDMMC2, VI, RSVD4, 0x3130, N, Y),
  1966. PINGROUP(vi_d4_pl2, DDR, SDMMC2, VI, RSVD4, 0x3134, N, Y),
  1967. PINGROUP(vi_d5_pl3, DDR, SDMMC2, VI, RSVD4, 0x3138, N, Y),
  1968. PINGROUP(vi_d6_pl4, DDR, SDMMC2, VI, RSVD4, 0x313c, N, Y),
  1969. PINGROUP(vi_d7_pl5, DDR, SDMMC2, VI, RSVD4, 0x3140, N, Y),
  1970. PINGROUP(vi_d8_pl6, DDR, SDMMC2, VI, RSVD4, 0x3144, N, Y),
  1971. PINGROUP(vi_d9_pl7, DDR, SDMMC2, VI, RSVD4, 0x3148, N, Y),
  1972. PINGROUP(lcd_d16_pm0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30e4, N, N),
  1973. PINGROUP(lcd_d17_pm1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30e8, N, N),
  1974. PINGROUP(lcd_d18_pm2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30ec, N, N),
  1975. PINGROUP(lcd_d19_pm3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30f0, N, N),
  1976. PINGROUP(lcd_d20_pm4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30f4, N, N),
  1977. PINGROUP(lcd_d21_pm5, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30f8, N, N),
  1978. PINGROUP(lcd_d22_pm6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x30fc, N, N),
  1979. PINGROUP(lcd_d23_pm7, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x3100, N, N),
  1980. PINGROUP(dap1_fs_pn0, I2S0, HDA, GMI, SDMMC2, 0x3338, N, N),
  1981. PINGROUP(dap1_din_pn1, I2S0, HDA, GMI, SDMMC2, 0x333c, N, N),
  1982. PINGROUP(dap1_dout_pn2, I2S0, HDA, GMI, SDMMC2, 0x3340, N, N),
  1983. PINGROUP(dap1_sclk_pn3, I2S0, HDA, GMI, SDMMC2, 0x3344, N, N),
  1984. PINGROUP(lcd_cs0_n_pn4, DISPLAYA, DISPLAYB, SPI5, RSVD4, 0x3084, N, N),
  1985. PINGROUP(lcd_sdout_pn5, DISPLAYA, DISPLAYB, SPI5, HDCP, 0x307c, N, N),
  1986. PINGROUP(lcd_dc0_pn6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x3088, N, N),
  1987. PINGROUP(hdmi_int_pn7, HDMI, RSVD2, RSVD3, RSVD4, 0x3110, N, N),
  1988. PINGROUP(ulpi_data7_po0, SPI2, HSI, UARTA, ULPI, 0x301c, N, N),
  1989. PINGROUP(ulpi_data0_po1, SPI3, HSI, UARTA, ULPI, 0x3000, N, N),
  1990. PINGROUP(ulpi_data1_po2, SPI3, HSI, UARTA, ULPI, 0x3004, N, N),
  1991. PINGROUP(ulpi_data2_po3, SPI3, HSI, UARTA, ULPI, 0x3008, N, N),
  1992. PINGROUP(ulpi_data3_po4, SPI3, HSI, UARTA, ULPI, 0x300c, N, N),
  1993. PINGROUP(ulpi_data4_po5, SPI2, HSI, UARTA, ULPI, 0x3010, N, N),
  1994. PINGROUP(ulpi_data5_po6, SPI2, HSI, UARTA, ULPI, 0x3014, N, N),
  1995. PINGROUP(ulpi_data6_po7, SPI2, HSI, UARTA, ULPI, 0x3018, N, N),
  1996. PINGROUP(dap3_fs_pp0, I2S2, RSVD2, DISPLAYA, DISPLAYB, 0x3030, N, N),
  1997. PINGROUP(dap3_din_pp1, I2S2, RSVD2, DISPLAYA, DISPLAYB, 0x3034, N, N),
  1998. PINGROUP(dap3_dout_pp2, I2S2, RSVD2, DISPLAYA, DISPLAYB, 0x3038, N, N),
  1999. PINGROUP(dap3_sclk_pp3, I2S2, RSVD2, DISPLAYA, DISPLAYB, 0x303c, N, N),
  2000. PINGROUP(dap4_fs_pp4, I2S3, RSVD2, GMI, RSVD4, 0x31a8, N, N),
  2001. PINGROUP(dap4_din_pp5, I2S3, RSVD2, GMI, RSVD4, 0x31ac, N, N),
  2002. PINGROUP(dap4_dout_pp6, I2S3, RSVD2, GMI, RSVD4, 0x31b0, N, N),
  2003. PINGROUP(dap4_sclk_pp7, I2S3, RSVD2, GMI, RSVD4, 0x31b4, N, N),
  2004. PINGROUP(kb_col0_pq0, KBC, NAND, TRACE, TEST, 0x32fc, N, N),
  2005. PINGROUP(kb_col1_pq1, KBC, NAND, TRACE, TEST, 0x3300, N, N),
  2006. PINGROUP(kb_col2_pq2, KBC, NAND, TRACE, RSVD4, 0x3304, N, N),
  2007. PINGROUP(kb_col3_pq3, KBC, NAND, TRACE, RSVD4, 0x3308, N, N),
  2008. PINGROUP(kb_col4_pq4, KBC, NAND, TRACE, RSVD4, 0x330c, N, N),
  2009. PINGROUP(kb_col5_pq5, KBC, NAND, TRACE, RSVD4, 0x3310, N, N),
  2010. PINGROUP(kb_col6_pq6, KBC, NAND, TRACE, MIO, 0x3314, N, N),
  2011. PINGROUP(kb_col7_pq7, KBC, NAND, TRACE, MIO, 0x3318, N, N),
  2012. PINGROUP(kb_row0_pr0, KBC, NAND, RSVD3, RSVD4, 0x32bc, N, N),
  2013. PINGROUP(kb_row1_pr1, KBC, NAND, RSVD3, RSVD4, 0x32c0, N, N),
  2014. PINGROUP(kb_row2_pr2, KBC, NAND, RSVD3, RSVD4, 0x32c4, N, N),
  2015. PINGROUP(kb_row3_pr3, KBC, NAND, RSVD3, INVALID, 0x32c8, N, N),
  2016. PINGROUP(kb_row4_pr4, KBC, NAND, TRACE, RSVD4, 0x32cc, N, N),
  2017. PINGROUP(kb_row5_pr5, KBC, NAND, TRACE, OWR, 0x32d0, N, N),
  2018. PINGROUP(kb_row6_pr6, KBC, NAND, SDMMC2, MIO, 0x32d4, N, N),
  2019. PINGROUP(kb_row7_pr7, KBC, NAND, SDMMC2, MIO, 0x32d8, N, N),
  2020. PINGROUP(kb_row8_ps0, KBC, NAND, SDMMC2, MIO, 0x32dc, N, N),
  2021. PINGROUP(kb_row9_ps1, KBC, NAND, SDMMC2, MIO, 0x32e0, N, N),
  2022. PINGROUP(kb_row10_ps2, KBC, NAND, SDMMC2, MIO, 0x32e4, N, N),
  2023. PINGROUP(kb_row11_ps3, KBC, NAND, SDMMC2, MIO, 0x32e8, N, N),
  2024. PINGROUP(kb_row12_ps4, KBC, NAND, SDMMC2, MIO, 0x32ec, N, N),
  2025. PINGROUP(kb_row13_ps5, KBC, NAND, SDMMC2, MIO, 0x32f0, N, N),
  2026. PINGROUP(kb_row14_ps6, KBC, NAND, SDMMC2, MIO, 0x32f4, N, N),
  2027. PINGROUP(kb_row15_ps7, KBC, NAND, SDMMC2, MIO, 0x32f8, N, N),
  2028. PINGROUP(vi_pclk_pt0, RSVD1, SDMMC2, VI, RSVD4, 0x3154, N, Y),
  2029. PINGROUP(vi_mclk_pt1, VI, VI_ALT1, VI_ALT2, VI_ALT3, 0x3158, N, Y),
  2030. PINGROUP(vi_d10_pt2, DDR, RSVD2, VI, RSVD4, 0x314c, N, Y),
  2031. PINGROUP(vi_d11_pt3, DDR, RSVD2, VI, RSVD4, 0x3150, N, Y),
  2032. PINGROUP(vi_d0_pt4, DDR, RSVD2, VI, RSVD4, 0x3124, N, Y),
  2033. PINGROUP(gen2_i2c_scl_pt5, I2C2, HDCP, GMI, RSVD4, 0x3250, Y, N),
  2034. PINGROUP(gen2_i2c_sda_pt6, I2C2, HDCP, GMI, RSVD4, 0x3254, Y, N),
  2035. PINGROUP(sdmmc4_cmd_pt7, I2C3, NAND, GMI, SDMMC4, 0x325c, N, Y),
  2036. PINGROUP(pu0, OWR, UARTA, GMI, RSVD4, 0x3184, N, N),
  2037. PINGROUP(pu1, RSVD1, UARTA, GMI, RSVD4, 0x3188, N, N),
  2038. PINGROUP(pu2, RSVD1, UARTA, GMI, RSVD4, 0x318c, N, N),
  2039. PINGROUP(pu3, PWM0, UARTA, GMI, RSVD4, 0x3190, N, N),
  2040. PINGROUP(pu4, PWM1, UARTA, GMI, RSVD4, 0x3194, N, N),
  2041. PINGROUP(pu5, PWM2, UARTA, GMI, RSVD4, 0x3198, N, N),
  2042. PINGROUP(pu6, PWM3, UARTA, GMI, RSVD4, 0x319c, N, N),
  2043. PINGROUP(jtag_rtck_pu7, RTCK, RSVD2, RSVD3, RSVD4, 0x32b0, N, N),
  2044. PINGROUP(pv0, RSVD1, RSVD2, RSVD3, RSVD4, 0x3040, N, N),
  2045. PINGROUP(pv1, RSVD1, RSVD2, RSVD3, RSVD4, 0x3044, N, N),
  2046. PINGROUP(pv2, OWR, RSVD2, RSVD3, RSVD4, 0x3060, N, N),
  2047. PINGROUP(pv3, CLK_12M_OUT, RSVD2, RSVD3, RSVD4, 0x3064, N, N),
  2048. PINGROUP(ddc_scl_pv4, I2C4, RSVD2, RSVD3, RSVD4, 0x3114, N, N),
  2049. PINGROUP(ddc_sda_pv5, I2C4, RSVD2, RSVD3, RSVD4, 0x3118, N, N),
  2050. PINGROUP(crt_hsync_pv6, CRT, RSVD2, RSVD3, RSVD4, 0x311c, N, N),
  2051. PINGROUP(crt_vsync_pv7, CRT, RSVD2, RSVD3, RSVD4, 0x3120, N, N),
  2052. PINGROUP(lcd_cs1_n_pw0, DISPLAYA, DISPLAYB, SPI5, RSVD4, 0x3104, N, N),
  2053. PINGROUP(lcd_m1_pw1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, 0x3108, N, N),
  2054. PINGROUP(spi2_cs1_n_pw2, SPI3, SPI2, SPI2_ALT, I2C1, 0x3388, N, N),
  2055. PINGROUP(spi2_cs2_n_pw3, SPI3, SPI2, SPI2_ALT, I2C1, 0x338c, N, N),
  2056. PINGROUP(clk1_out_pw4, EXTPERIPH1, RSVD2, RSVD3, RSVD4, 0x334c, N, N),
  2057. PINGROUP(clk2_out_pw5, EXTPERIPH2, RSVD2, RSVD3, RSVD4, 0x3068, N, N),
  2058. PINGROUP(uart3_txd_pw6, UARTC, RSVD2, GMI, RSVD4, 0x3174, N, N),
  2059. PINGROUP(uart3_rxd_pw7, UARTC, RSVD2, GMI, RSVD4, 0x3178, N, N),
  2060. PINGROUP(spi2_mosi_px0, SPI6, SPI2, SPI3, GMI, 0x3368, N, N),
  2061. PINGROUP(spi2_miso_px1, SPI6, SPI2, SPI3, GMI, 0x336c, N, N),
  2062. PINGROUP(spi2_sck_px2, SPI6, SPI2, SPI3, GMI, 0x3374, N, N),
  2063. PINGROUP(spi2_cs0_n_px3, SPI6, SPI2, SPI3, GMI, 0x3370, N, N),
  2064. PINGROUP(spi1_mosi_px4, SPI2, SPI1, SPI2_ALT, GMI, 0x3378, N, N),
  2065. PINGROUP(spi1_sck_px5, SPI2, SPI1, SPI2_ALT, GMI, 0x337c, N, N),
  2066. PINGROUP(spi1_cs0_n_px6, SPI2, SPI1, SPI2_ALT, GMI, 0x3380, N, N),
  2067. PINGROUP(spi1_miso_px7, SPI3, SPI1, SPI2_ALT, RSVD4, 0x3384, N, N),
  2068. PINGROUP(ulpi_clk_py0, SPI1, RSVD2, UARTD, ULPI, 0x3020, N, N),
  2069. PINGROUP(ulpi_dir_py1, SPI1, RSVD2, UARTD, ULPI, 0x3024, N, N),
  2070. PINGROUP(ulpi_nxt_py2, SPI1, RSVD2, UARTD, ULPI, 0x3028, N, N),
  2071. PINGROUP(ulpi_stp_py3, SPI1, RSVD2, UARTD, ULPI, 0x302c, N, N),
  2072. PINGROUP(sdmmc1_dat3_py4, SDMMC1, RSVD2, UARTE, UARTA, 0x3050, N, N),
  2073. PINGROUP(sdmmc1_dat2_py5, SDMMC1, RSVD2, UARTE, UARTA, 0x3054, N, N),
  2074. PINGROUP(sdmmc1_dat1_py6, SDMMC1, RSVD2, UARTE, UARTA, 0x3058, N, N),
  2075. PINGROUP(sdmmc1_dat0_py7, SDMMC1, RSVD2, UARTE, UARTA, 0x305c, N, N),
  2076. PINGROUP(sdmmc1_clk_pz0, SDMMC1, RSVD2, RSVD3, UARTA, 0x3048, N, N),
  2077. PINGROUP(sdmmc1_cmd_pz1, SDMMC1, RSVD2, RSVD3, UARTA, 0x304c, N, N),
  2078. PINGROUP(lcd_sdin_pz2, DISPLAYA, DISPLAYB, SPI5, RSVD4, 0x3078, N, N),
  2079. PINGROUP(lcd_wr_n_pz3, DISPLAYA, DISPLAYB, SPI5, HDCP, 0x3080, N, N),
  2080. PINGROUP(lcd_sck_pz4, DISPLAYA, DISPLAYB, SPI5, HDCP, 0x308c, N, N),
  2081. PINGROUP(sys_clk_req_pz5, SYSCLK, RSVD2, RSVD3, RSVD4, 0x3320, N, N),
  2082. PINGROUP(pwr_i2c_scl_pz6, I2CPWR, RSVD2, RSVD3, RSVD4, 0x32b4, Y, N),
  2083. PINGROUP(pwr_i2c_sda_pz7, I2CPWR, RSVD2, RSVD3, RSVD4, 0x32b8, Y, N),
  2084. PINGROUP(sdmmc4_dat0_paa0, UARTE, SPI3, GMI, SDMMC4, 0x3260, N, Y),
  2085. PINGROUP(sdmmc4_dat1_paa1, UARTE, SPI3, GMI, SDMMC4, 0x3264, N, Y),
  2086. PINGROUP(sdmmc4_dat2_paa2, UARTE, SPI3, GMI, SDMMC4, 0x3268, N, Y),
  2087. PINGROUP(sdmmc4_dat3_paa3, UARTE, SPI3, GMI, SDMMC4, 0x326c, N, Y),
  2088. PINGROUP(sdmmc4_dat4_paa4, I2C3, I2S4, GMI, SDMMC4, 0x3270, N, Y),
  2089. PINGROUP(sdmmc4_dat5_paa5, VGP3, I2S4, GMI, SDMMC4, 0x3274, N, Y),
  2090. PINGROUP(sdmmc4_dat6_paa6, VGP4, I2S4, GMI, SDMMC4, 0x3278, N, Y),
  2091. PINGROUP(sdmmc4_dat7_paa7, VGP5, I2S4, GMI, SDMMC4, 0x327c, N, Y),
  2092. PINGROUP(pbb0, I2S4, RSVD2, RSVD3, SDMMC4, 0x328c, N, N),
  2093. PINGROUP(cam_i2c_scl_pbb1, VGP1, I2C3, RSVD3, SDMMC4, 0x3290, Y, N),
  2094. PINGROUP(cam_i2c_sda_pbb2, VGP2, I2C3, RSVD3, SDMMC4, 0x3294, Y, N),
  2095. PINGROUP(pbb3, VGP3, DISPLAYA, DISPLAYB, SDMMC4, 0x3298, N, N),
  2096. PINGROUP(pbb4, VGP4, DISPLAYA, DISPLAYB, SDMMC4, 0x329c, N, N),
  2097. PINGROUP(pbb5, VGP5, DISPLAYA, DISPLAYB, SDMMC4, 0x32a0, N, N),
  2098. PINGROUP(pbb6, VGP6, DISPLAYA, DISPLAYB, SDMMC4, 0x32a4, N, N),
  2099. PINGROUP(pbb7, I2S4, RSVD2, RSVD3, SDMMC4, 0x32a8, N, N),
  2100. PINGROUP(cam_mclk_pcc0, VI, VI_ALT1, VI_ALT3, SDMMC4, 0x3284, N, N),
  2101. PINGROUP(pcc1, I2S4, RSVD2, RSVD3, SDMMC4, 0x3288, N, N),
  2102. PINGROUP(pcc2, I2S4, RSVD2, RSVD3, RSVD4, 0x32ac, N, N),
  2103. PINGROUP(sdmmc4_rst_n_pcc3, VGP6, RSVD2, RSVD3, SDMMC4, 0x3280, N, Y),
  2104. PINGROUP(sdmmc4_clk_pcc4, INVALID, NAND, GMI, SDMMC4, 0x3258, N, Y),
  2105. PINGROUP(clk2_req_pcc5, DAP, RSVD2, RSVD3, RSVD4, 0x306c, N, N),
  2106. PINGROUP(pex_l2_rst_n_pcc6, PCIE, HDA, RSVD3, RSVD4, 0x33d8, N, N),
  2107. PINGROUP(pex_l2_clkreq_n_pcc7, PCIE, HDA, RSVD3, RSVD4, 0x33dc, N, N),
  2108. PINGROUP(pex_l0_prsnt_n_pdd0, PCIE, HDA, RSVD3, RSVD4, 0x33b8, N, N),
  2109. PINGROUP(pex_l0_rst_n_pdd1, PCIE, HDA, RSVD3, RSVD4, 0x33bc, N, N),
  2110. PINGROUP(pex_l0_clkreq_n_pdd2, PCIE, HDA, RSVD3, RSVD4, 0x33c0, N, N),
  2111. PINGROUP(pex_wake_n_pdd3, PCIE, HDA, RSVD3, RSVD4, 0x33c4, N, N),
  2112. PINGROUP(pex_l1_prsnt_n_pdd4, PCIE, HDA, RSVD3, RSVD4, 0x33c8, N, N),
  2113. PINGROUP(pex_l1_rst_n_pdd5, PCIE, HDA, RSVD3, RSVD4, 0x33cc, N, N),
  2114. PINGROUP(pex_l1_clkreq_n_pdd6, PCIE, HDA, RSVD3, RSVD4, 0x33d0, N, N),
  2115. PINGROUP(pex_l2_prsnt_n_pdd7, PCIE, HDA, RSVD3, RSVD4, 0x33d4, N, N),
  2116. PINGROUP(clk3_out_pee0, EXTPERIPH3, RSVD2, RSVD3, RSVD4, 0x31b8, N, N),
  2117. PINGROUP(clk3_req_pee1, DEV3, RSVD2, RSVD3, RSVD4, 0x31bc, N, N),
  2118. PINGROUP(clk1_req_pee2, DAP, HDA, RSVD3, RSVD4, 0x3348, N, N),
  2119. PINGROUP(hdmi_cec_pee3, CEC, RSVD2, RSVD3, RSVD4, 0x33e0, Y, N),
  2120. PINGROUP(clk_32k_in, CLK_32K_IN, RSVD2, RSVD3, RSVD4, 0x3330, N, N),
  2121. PINGROUP(core_pwr_req, CORE_PWR_REQ, RSVD2, RSVD3, RSVD4, 0x3324, N, N),
  2122. PINGROUP(cpu_pwr_req, CPU_PWR_REQ, RSVD2, RSVD3, RSVD4, 0x3328, N, N),
  2123. PINGROUP(owr, OWR, CEC, RSVD3, RSVD4, 0x3334, N, N),
  2124. PINGROUP(pwr_int_n, PWR_INT_N, RSVD2, RSVD3, RSVD4, 0x332c, N, N),
  2125. /* pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, slwf_b, slwf_w */
  2126. DRV_PINGROUP(ao1, 0x868, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2127. DRV_PINGROUP(ao2, 0x86c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2128. DRV_PINGROUP(at1, 0x870, 2, 3, 4, 14, 5, 19, 5, 24, 2, 28, 2),
  2129. DRV_PINGROUP(at2, 0x874, 2, 3, 4, 14, 5, 19, 5, 24, 2, 28, 2),
  2130. DRV_PINGROUP(at3, 0x878, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  2131. DRV_PINGROUP(at4, 0x87c, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  2132. DRV_PINGROUP(at5, 0x880, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  2133. DRV_PINGROUP(cdev1, 0x884, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2134. DRV_PINGROUP(cdev2, 0x888, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2135. DRV_PINGROUP(cec, 0x938, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2136. DRV_PINGROUP(crt, 0x8f8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2137. DRV_PINGROUP(csus, 0x88c, -1, -1, -1, 12, 5, 19, 5, 24, 4, 28, 4),
  2138. DRV_PINGROUP(dap1, 0x890, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2139. DRV_PINGROUP(dap2, 0x894, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2140. DRV_PINGROUP(dap3, 0x898, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2141. DRV_PINGROUP(dap4, 0x89c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2142. DRV_PINGROUP(dbg, 0x8a0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2143. DRV_PINGROUP(ddc, 0x8fc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2144. DRV_PINGROUP(dev3, 0x92c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2145. DRV_PINGROUP(gma, 0x900, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  2146. DRV_PINGROUP(gmb, 0x904, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  2147. DRV_PINGROUP(gmc, 0x908, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  2148. DRV_PINGROUP(gmd, 0x90c, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  2149. DRV_PINGROUP(gme, 0x910, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  2150. DRV_PINGROUP(gmf, 0x914, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  2151. DRV_PINGROUP(gmg, 0x918, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  2152. DRV_PINGROUP(gmh, 0x91c, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  2153. DRV_PINGROUP(gpv, 0x928, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2154. DRV_PINGROUP(lcd1, 0x8a4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2155. DRV_PINGROUP(lcd2, 0x8a8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2156. DRV_PINGROUP(owr, 0x920, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2157. DRV_PINGROUP(sdio1, 0x8ec, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2),
  2158. DRV_PINGROUP(sdio2, 0x8ac, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2),
  2159. DRV_PINGROUP(sdio3, 0x8b0, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2),
  2160. DRV_PINGROUP(spi, 0x8b4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2161. DRV_PINGROUP(uaa, 0x8b8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2162. DRV_PINGROUP(uab, 0x8bc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2163. DRV_PINGROUP(uart2, 0x8c0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2164. DRV_PINGROUP(uart3, 0x8c4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2165. DRV_PINGROUP(uda, 0x924, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  2166. DRV_PINGROUP(vi1, 0x8c8, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  2167. };
  2168. static const struct tegra_pinctrl_soc_data tegra30_pinctrl = {
  2169. .ngpios = NUM_GPIOS,
  2170. .gpio_compatible = "nvidia,tegra30-gpio",
  2171. .pins = tegra30_pins,
  2172. .npins = ARRAY_SIZE(tegra30_pins),
  2173. .functions = tegra30_functions,
  2174. .nfunctions = ARRAY_SIZE(tegra30_functions),
  2175. .groups = tegra30_groups,
  2176. .ngroups = ARRAY_SIZE(tegra30_groups),
  2177. .hsm_in_mux = false,
  2178. .schmitt_in_mux = false,
  2179. .drvtype_in_mux = false,
  2180. };
  2181. static int tegra30_pinctrl_probe(struct platform_device *pdev)
  2182. {
  2183. return tegra_pinctrl_probe(pdev, &tegra30_pinctrl);
  2184. }
  2185. static const struct of_device_id tegra30_pinctrl_of_match[] = {
  2186. { .compatible = "nvidia,tegra30-pinmux", },
  2187. { },
  2188. };
  2189. static struct platform_driver tegra30_pinctrl_driver = {
  2190. .driver = {
  2191. .name = "tegra30-pinctrl",
  2192. .of_match_table = tegra30_pinctrl_of_match,
  2193. },
  2194. .probe = tegra30_pinctrl_probe,
  2195. };
  2196. static int __init tegra30_pinctrl_init(void)
  2197. {
  2198. return platform_driver_register(&tegra30_pinctrl_driver);
  2199. }
  2200. arch_initcall(tegra30_pinctrl_init);