pinctrl-tegra30.c 86 KB

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