pinctrl-tegra20.c 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861
  1. /*
  2. * Pinctrl data for the NVIDIA Tegra20 pinmux
  3. *
  4. * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved.
  5. *
  6. * Derived from code:
  7. * Copyright (C) 2010 Google, Inc.
  8. * Copyright (C) 2010 NVIDIA Corporation
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms and conditions of the GNU General Public License,
  12. * version 2, as published by the Free Software Foundation.
  13. *
  14. * This program is distributed in the hope it will be useful, but WITHOUT
  15. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  16. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  17. * more details.
  18. */
  19. #include <linux/platform_device.h>
  20. #include <linux/pinctrl/pinctrl.h>
  21. #include <linux/pinctrl/pinmux.h>
  22. #include "pinctrl-tegra.h"
  23. /*
  24. * Most pins affected by the pinmux can also be GPIOs. Define these first.
  25. * These must match how the GPIO driver names/numbers its pins.
  26. */
  27. #define _GPIO(offset) (offset)
  28. #define TEGRA_PIN_VI_GP6_PA0 _GPIO(0)
  29. #define TEGRA_PIN_UART3_CTS_N_PA1 _GPIO(1)
  30. #define TEGRA_PIN_DAP2_FS_PA2 _GPIO(2)
  31. #define TEGRA_PIN_DAP2_SCLK_PA3 _GPIO(3)
  32. #define TEGRA_PIN_DAP2_DIN_PA4 _GPIO(4)
  33. #define TEGRA_PIN_DAP2_DOUT_PA5 _GPIO(5)
  34. #define TEGRA_PIN_SDIO3_CLK_PA6 _GPIO(6)
  35. #define TEGRA_PIN_SDIO3_CMD_PA7 _GPIO(7)
  36. #define TEGRA_PIN_GMI_AD17_PB0 _GPIO(8)
  37. #define TEGRA_PIN_GMI_AD18_PB1 _GPIO(9)
  38. #define TEGRA_PIN_LCD_PWR0_PB2 _GPIO(10)
  39. #define TEGRA_PIN_LCD_PCLK_PB3 _GPIO(11)
  40. #define TEGRA_PIN_SDIO3_DAT3_PB4 _GPIO(12)
  41. #define TEGRA_PIN_SDIO3_DAT2_PB5 _GPIO(13)
  42. #define TEGRA_PIN_SDIO3_DAT1_PB6 _GPIO(14)
  43. #define TEGRA_PIN_SDIO3_DAT0_PB7 _GPIO(15)
  44. #define TEGRA_PIN_UART3_RTS_N_PC0 _GPIO(16)
  45. #define TEGRA_PIN_LCD_PWR1_PC1 _GPIO(17)
  46. #define TEGRA_PIN_UART2_TXD_PC2 _GPIO(18)
  47. #define TEGRA_PIN_UART2_RXD_PC3 _GPIO(19)
  48. #define TEGRA_PIN_GEN1_I2C_SCL_PC4 _GPIO(20)
  49. #define TEGRA_PIN_GEN1_I2C_SDA_PC5 _GPIO(21)
  50. #define TEGRA_PIN_LCD_PWR2_PC6 _GPIO(22)
  51. #define TEGRA_PIN_GMI_WP_N_PC7 _GPIO(23)
  52. #define TEGRA_PIN_SDIO3_DAT5_PD0 _GPIO(24)
  53. #define TEGRA_PIN_SDIO3_DAT4_PD1 _GPIO(25)
  54. #define TEGRA_PIN_VI_GP5_PD2 _GPIO(26)
  55. #define TEGRA_PIN_SDIO3_DAT6_PD3 _GPIO(27)
  56. #define TEGRA_PIN_SDIO3_DAT7_PD4 _GPIO(28)
  57. #define TEGRA_PIN_VI_D1_PD5 _GPIO(29)
  58. #define TEGRA_PIN_VI_VSYNC_PD6 _GPIO(30)
  59. #define TEGRA_PIN_VI_HSYNC_PD7 _GPIO(31)
  60. #define TEGRA_PIN_LCD_D0_PE0 _GPIO(32)
  61. #define TEGRA_PIN_LCD_D1_PE1 _GPIO(33)
  62. #define TEGRA_PIN_LCD_D2_PE2 _GPIO(34)
  63. #define TEGRA_PIN_LCD_D3_PE3 _GPIO(35)
  64. #define TEGRA_PIN_LCD_D4_PE4 _GPIO(36)
  65. #define TEGRA_PIN_LCD_D5_PE5 _GPIO(37)
  66. #define TEGRA_PIN_LCD_D6_PE6 _GPIO(38)
  67. #define TEGRA_PIN_LCD_D7_PE7 _GPIO(39)
  68. #define TEGRA_PIN_LCD_D8_PF0 _GPIO(40)
  69. #define TEGRA_PIN_LCD_D9_PF1 _GPIO(41)
  70. #define TEGRA_PIN_LCD_D10_PF2 _GPIO(42)
  71. #define TEGRA_PIN_LCD_D11_PF3 _GPIO(43)
  72. #define TEGRA_PIN_LCD_D12_PF4 _GPIO(44)
  73. #define TEGRA_PIN_LCD_D13_PF5 _GPIO(45)
  74. #define TEGRA_PIN_LCD_D14_PF6 _GPIO(46)
  75. #define TEGRA_PIN_LCD_D15_PF7 _GPIO(47)
  76. #define TEGRA_PIN_GMI_AD0_PG0 _GPIO(48)
  77. #define TEGRA_PIN_GMI_AD1_PG1 _GPIO(49)
  78. #define TEGRA_PIN_GMI_AD2_PG2 _GPIO(50)
  79. #define TEGRA_PIN_GMI_AD3_PG3 _GPIO(51)
  80. #define TEGRA_PIN_GMI_AD4_PG4 _GPIO(52)
  81. #define TEGRA_PIN_GMI_AD5_PG5 _GPIO(53)
  82. #define TEGRA_PIN_GMI_AD6_PG6 _GPIO(54)
  83. #define TEGRA_PIN_GMI_AD7_PG7 _GPIO(55)
  84. #define TEGRA_PIN_GMI_AD8_PH0 _GPIO(56)
  85. #define TEGRA_PIN_GMI_AD9_PH1 _GPIO(57)
  86. #define TEGRA_PIN_GMI_AD10_PH2 _GPIO(58)
  87. #define TEGRA_PIN_GMI_AD11_PH3 _GPIO(59)
  88. #define TEGRA_PIN_GMI_AD12_PH4 _GPIO(60)
  89. #define TEGRA_PIN_GMI_AD13_PH5 _GPIO(61)
  90. #define TEGRA_PIN_GMI_AD14_PH6 _GPIO(62)
  91. #define TEGRA_PIN_GMI_AD15_PH7 _GPIO(63)
  92. #define TEGRA_PIN_GMI_HIOW_N_PI0 _GPIO(64)
  93. #define TEGRA_PIN_GMI_HIOR_N_PI1 _GPIO(65)
  94. #define TEGRA_PIN_GMI_CS5_N_PI2 _GPIO(66)
  95. #define TEGRA_PIN_GMI_CS6_N_PI3 _GPIO(67)
  96. #define TEGRA_PIN_GMI_RST_N_PI4 _GPIO(68)
  97. #define TEGRA_PIN_GMI_IORDY_PI5 _GPIO(69)
  98. #define TEGRA_PIN_GMI_CS7_N_PI6 _GPIO(70)
  99. #define TEGRA_PIN_GMI_WAIT_PI7 _GPIO(71)
  100. #define TEGRA_PIN_GMI_CS0_N_PJ0 _GPIO(72)
  101. #define TEGRA_PIN_LCD_DE_PJ1 _GPIO(73)
  102. #define TEGRA_PIN_GMI_CS1_N_PJ2 _GPIO(74)
  103. #define TEGRA_PIN_LCD_HSYNC_PJ3 _GPIO(75)
  104. #define TEGRA_PIN_LCD_VSYNC_PJ4 _GPIO(76)
  105. #define TEGRA_PIN_UART2_CTS_N_PJ5 _GPIO(77)
  106. #define TEGRA_PIN_UART2_RTS_N_PJ6 _GPIO(78)
  107. #define TEGRA_PIN_GMI_AD16_PJ7 _GPIO(79)
  108. #define TEGRA_PIN_GMI_ADV_N_PK0 _GPIO(80)
  109. #define TEGRA_PIN_GMI_CLK_PK1 _GPIO(81)
  110. #define TEGRA_PIN_GMI_CS4_N_PK2 _GPIO(82)
  111. #define TEGRA_PIN_GMI_CS2_N_PK3 _GPIO(83)
  112. #define TEGRA_PIN_GMI_CS3_N_PK4 _GPIO(84)
  113. #define TEGRA_PIN_SPDIF_OUT_PK5 _GPIO(85)
  114. #define TEGRA_PIN_SPDIF_IN_PK6 _GPIO(86)
  115. #define TEGRA_PIN_GMI_AD19_PK7 _GPIO(87)
  116. #define TEGRA_PIN_VI_D2_PL0 _GPIO(88)
  117. #define TEGRA_PIN_VI_D3_PL1 _GPIO(89)
  118. #define TEGRA_PIN_VI_D4_PL2 _GPIO(90)
  119. #define TEGRA_PIN_VI_D5_PL3 _GPIO(91)
  120. #define TEGRA_PIN_VI_D6_PL4 _GPIO(92)
  121. #define TEGRA_PIN_VI_D7_PL5 _GPIO(93)
  122. #define TEGRA_PIN_VI_D8_PL6 _GPIO(94)
  123. #define TEGRA_PIN_VI_D9_PL7 _GPIO(95)
  124. #define TEGRA_PIN_LCD_D16_PM0 _GPIO(96)
  125. #define TEGRA_PIN_LCD_D17_PM1 _GPIO(97)
  126. #define TEGRA_PIN_LCD_D18_PM2 _GPIO(98)
  127. #define TEGRA_PIN_LCD_D19_PM3 _GPIO(99)
  128. #define TEGRA_PIN_LCD_D20_PM4 _GPIO(100)
  129. #define TEGRA_PIN_LCD_D21_PM5 _GPIO(101)
  130. #define TEGRA_PIN_LCD_D22_PM6 _GPIO(102)
  131. #define TEGRA_PIN_LCD_D23_PM7 _GPIO(103)
  132. #define TEGRA_PIN_DAP1_FS_PN0 _GPIO(104)
  133. #define TEGRA_PIN_DAP1_DIN_PN1 _GPIO(105)
  134. #define TEGRA_PIN_DAP1_DOUT_PN2 _GPIO(106)
  135. #define TEGRA_PIN_DAP1_SCLK_PN3 _GPIO(107)
  136. #define TEGRA_PIN_LCD_CS0_N_PN4 _GPIO(108)
  137. #define TEGRA_PIN_LCD_SDOUT_PN5 _GPIO(109)
  138. #define TEGRA_PIN_LCD_DC0_PN6 _GPIO(110)
  139. #define TEGRA_PIN_HDMI_INT_N_PN7 _GPIO(111)
  140. #define TEGRA_PIN_ULPI_DATA7_PO0 _GPIO(112)
  141. #define TEGRA_PIN_ULPI_DATA0_PO1 _GPIO(113)
  142. #define TEGRA_PIN_ULPI_DATA1_PO2 _GPIO(114)
  143. #define TEGRA_PIN_ULPI_DATA2_PO3 _GPIO(115)
  144. #define TEGRA_PIN_ULPI_DATA3_PO4 _GPIO(116)
  145. #define TEGRA_PIN_ULPI_DATA4_PO5 _GPIO(117)
  146. #define TEGRA_PIN_ULPI_DATA5_PO6 _GPIO(118)
  147. #define TEGRA_PIN_ULPI_DATA6_PO7 _GPIO(119)
  148. #define TEGRA_PIN_DAP3_FS_PP0 _GPIO(120)
  149. #define TEGRA_PIN_DAP3_DIN_PP1 _GPIO(121)
  150. #define TEGRA_PIN_DAP3_DOUT_PP2 _GPIO(122)
  151. #define TEGRA_PIN_DAP3_SCLK_PP3 _GPIO(123)
  152. #define TEGRA_PIN_DAP4_FS_PP4 _GPIO(124)
  153. #define TEGRA_PIN_DAP4_DIN_PP5 _GPIO(125)
  154. #define TEGRA_PIN_DAP4_DOUT_PP6 _GPIO(126)
  155. #define TEGRA_PIN_DAP4_SCLK_PP7 _GPIO(127)
  156. #define TEGRA_PIN_KB_COL0_PQ0 _GPIO(128)
  157. #define TEGRA_PIN_KB_COL1_PQ1 _GPIO(129)
  158. #define TEGRA_PIN_KB_COL2_PQ2 _GPIO(130)
  159. #define TEGRA_PIN_KB_COL3_PQ3 _GPIO(131)
  160. #define TEGRA_PIN_KB_COL4_PQ4 _GPIO(132)
  161. #define TEGRA_PIN_KB_COL5_PQ5 _GPIO(133)
  162. #define TEGRA_PIN_KB_COL6_PQ6 _GPIO(134)
  163. #define TEGRA_PIN_KB_COL7_PQ7 _GPIO(135)
  164. #define TEGRA_PIN_KB_ROW0_PR0 _GPIO(136)
  165. #define TEGRA_PIN_KB_ROW1_PR1 _GPIO(137)
  166. #define TEGRA_PIN_KB_ROW2_PR2 _GPIO(138)
  167. #define TEGRA_PIN_KB_ROW3_PR3 _GPIO(139)
  168. #define TEGRA_PIN_KB_ROW4_PR4 _GPIO(140)
  169. #define TEGRA_PIN_KB_ROW5_PR5 _GPIO(141)
  170. #define TEGRA_PIN_KB_ROW6_PR6 _GPIO(142)
  171. #define TEGRA_PIN_KB_ROW7_PR7 _GPIO(143)
  172. #define TEGRA_PIN_KB_ROW8_PS0 _GPIO(144)
  173. #define TEGRA_PIN_KB_ROW9_PS1 _GPIO(145)
  174. #define TEGRA_PIN_KB_ROW10_PS2 _GPIO(146)
  175. #define TEGRA_PIN_KB_ROW11_PS3 _GPIO(147)
  176. #define TEGRA_PIN_KB_ROW12_PS4 _GPIO(148)
  177. #define TEGRA_PIN_KB_ROW13_PS5 _GPIO(149)
  178. #define TEGRA_PIN_KB_ROW14_PS6 _GPIO(150)
  179. #define TEGRA_PIN_KB_ROW15_PS7 _GPIO(151)
  180. #define TEGRA_PIN_VI_PCLK_PT0 _GPIO(152)
  181. #define TEGRA_PIN_VI_MCLK_PT1 _GPIO(153)
  182. #define TEGRA_PIN_VI_D10_PT2 _GPIO(154)
  183. #define TEGRA_PIN_VI_D11_PT3 _GPIO(155)
  184. #define TEGRA_PIN_VI_D0_PT4 _GPIO(156)
  185. #define TEGRA_PIN_GEN2_I2C_SCL_PT5 _GPIO(157)
  186. #define TEGRA_PIN_GEN2_I2C_SDA_PT6 _GPIO(158)
  187. #define TEGRA_PIN_GMI_DPD_PT7 _GPIO(159)
  188. #define TEGRA_PIN_PU0 _GPIO(160)
  189. #define TEGRA_PIN_PU1 _GPIO(161)
  190. #define TEGRA_PIN_PU2 _GPIO(162)
  191. #define TEGRA_PIN_PU3 _GPIO(163)
  192. #define TEGRA_PIN_PU4 _GPIO(164)
  193. #define TEGRA_PIN_PU5 _GPIO(165)
  194. #define TEGRA_PIN_PU6 _GPIO(166)
  195. #define TEGRA_PIN_JTAG_RTCK_PU7 _GPIO(167)
  196. #define TEGRA_PIN_PV0 _GPIO(168)
  197. #define TEGRA_PIN_PV1 _GPIO(169)
  198. #define TEGRA_PIN_PV2 _GPIO(170)
  199. #define TEGRA_PIN_PV3 _GPIO(171)
  200. #define TEGRA_PIN_PV4 _GPIO(172)
  201. #define TEGRA_PIN_PV5 _GPIO(173)
  202. #define TEGRA_PIN_PV6 _GPIO(174)
  203. #define TEGRA_PIN_LCD_DC1_PV7 _GPIO(175)
  204. #define TEGRA_PIN_LCD_CS1_N_PW0 _GPIO(176)
  205. #define TEGRA_PIN_LCD_M1_PW1 _GPIO(177)
  206. #define TEGRA_PIN_SPI2_CS1_N_PW2 _GPIO(178)
  207. #define TEGRA_PIN_SPI2_CS2_N_PW3 _GPIO(179)
  208. #define TEGRA_PIN_DAP_MCLK1_PW4 _GPIO(180)
  209. #define TEGRA_PIN_DAP_MCLK2_PW5 _GPIO(181)
  210. #define TEGRA_PIN_UART3_TXD_PW6 _GPIO(182)
  211. #define TEGRA_PIN_UART3_RXD_PW7 _GPIO(183)
  212. #define TEGRA_PIN_SPI2_MOSI_PX0 _GPIO(184)
  213. #define TEGRA_PIN_SPI2_MISO_PX1 _GPIO(185)
  214. #define TEGRA_PIN_SPI2_SCK_PX2 _GPIO(186)
  215. #define TEGRA_PIN_SPI2_CS0_N_PX3 _GPIO(187)
  216. #define TEGRA_PIN_SPI1_MOSI_PX4 _GPIO(188)
  217. #define TEGRA_PIN_SPI1_SCK_PX5 _GPIO(189)
  218. #define TEGRA_PIN_SPI1_CS0_N_PX6 _GPIO(190)
  219. #define TEGRA_PIN_SPI1_MISO_PX7 _GPIO(191)
  220. #define TEGRA_PIN_ULPI_CLK_PY0 _GPIO(192)
  221. #define TEGRA_PIN_ULPI_DIR_PY1 _GPIO(193)
  222. #define TEGRA_PIN_ULPI_NXT_PY2 _GPIO(194)
  223. #define TEGRA_PIN_ULPI_STP_PY3 _GPIO(195)
  224. #define TEGRA_PIN_SDIO1_DAT3_PY4 _GPIO(196)
  225. #define TEGRA_PIN_SDIO1_DAT2_PY5 _GPIO(197)
  226. #define TEGRA_PIN_SDIO1_DAT1_PY6 _GPIO(198)
  227. #define TEGRA_PIN_SDIO1_DAT0_PY7 _GPIO(199)
  228. #define TEGRA_PIN_SDIO1_CLK_PZ0 _GPIO(200)
  229. #define TEGRA_PIN_SDIO1_CMD_PZ1 _GPIO(201)
  230. #define TEGRA_PIN_LCD_SDIN_PZ2 _GPIO(202)
  231. #define TEGRA_PIN_LCD_WR_N_PZ3 _GPIO(203)
  232. #define TEGRA_PIN_LCD_SCK_PZ4 _GPIO(204)
  233. #define TEGRA_PIN_SYS_CLK_REQ_PZ5 _GPIO(205)
  234. #define TEGRA_PIN_PWR_I2C_SCL_PZ6 _GPIO(206)
  235. #define TEGRA_PIN_PWR_I2C_SDA_PZ7 _GPIO(207)
  236. #define TEGRA_PIN_GMI_AD20_PAA0 _GPIO(208)
  237. #define TEGRA_PIN_GMI_AD21_PAA1 _GPIO(209)
  238. #define TEGRA_PIN_GMI_AD22_PAA2 _GPIO(210)
  239. #define TEGRA_PIN_GMI_AD23_PAA3 _GPIO(211)
  240. #define TEGRA_PIN_GMI_AD24_PAA4 _GPIO(212)
  241. #define TEGRA_PIN_GMI_AD25_PAA5 _GPIO(213)
  242. #define TEGRA_PIN_GMI_AD26_PAA6 _GPIO(214)
  243. #define TEGRA_PIN_GMI_AD27_PAA7 _GPIO(215)
  244. #define TEGRA_PIN_LED_BLINK_PBB0 _GPIO(216)
  245. #define TEGRA_PIN_VI_GP0_PBB1 _GPIO(217)
  246. #define TEGRA_PIN_CAM_I2C_SCL_PBB2 _GPIO(218)
  247. #define TEGRA_PIN_CAM_I2C_SDA_PBB3 _GPIO(219)
  248. #define TEGRA_PIN_VI_GP3_PBB4 _GPIO(220)
  249. #define TEGRA_PIN_VI_GP4_PBB5 _GPIO(221)
  250. #define TEGRA_PIN_PBB6 _GPIO(222)
  251. #define TEGRA_PIN_PBB7 _GPIO(223)
  252. /* All non-GPIO pins follow */
  253. #define NUM_GPIOS (TEGRA_PIN_PBB7 + 1)
  254. #define _PIN(offset) (NUM_GPIOS + (offset))
  255. #define TEGRA_PIN_CRT_HSYNC _PIN(30)
  256. #define TEGRA_PIN_CRT_VSYNC _PIN(31)
  257. #define TEGRA_PIN_DDC_SCL _PIN(32)
  258. #define TEGRA_PIN_DDC_SDA _PIN(33)
  259. #define TEGRA_PIN_OWC _PIN(34)
  260. #define TEGRA_PIN_CORE_PWR_REQ _PIN(35)
  261. #define TEGRA_PIN_CPU_PWR_REQ _PIN(36)
  262. #define TEGRA_PIN_PWR_INT_N _PIN(37)
  263. #define TEGRA_PIN_CLK_32_K_IN _PIN(38)
  264. #define TEGRA_PIN_DDR_COMP_PD _PIN(39)
  265. #define TEGRA_PIN_DDR_COMP_PU _PIN(40)
  266. #define TEGRA_PIN_DDR_A0 _PIN(41)
  267. #define TEGRA_PIN_DDR_A1 _PIN(42)
  268. #define TEGRA_PIN_DDR_A2 _PIN(43)
  269. #define TEGRA_PIN_DDR_A3 _PIN(44)
  270. #define TEGRA_PIN_DDR_A4 _PIN(45)
  271. #define TEGRA_PIN_DDR_A5 _PIN(46)
  272. #define TEGRA_PIN_DDR_A6 _PIN(47)
  273. #define TEGRA_PIN_DDR_A7 _PIN(48)
  274. #define TEGRA_PIN_DDR_A8 _PIN(49)
  275. #define TEGRA_PIN_DDR_A9 _PIN(50)
  276. #define TEGRA_PIN_DDR_A10 _PIN(51)
  277. #define TEGRA_PIN_DDR_A11 _PIN(52)
  278. #define TEGRA_PIN_DDR_A12 _PIN(53)
  279. #define TEGRA_PIN_DDR_A13 _PIN(54)
  280. #define TEGRA_PIN_DDR_A14 _PIN(55)
  281. #define TEGRA_PIN_DDR_CAS_N _PIN(56)
  282. #define TEGRA_PIN_DDR_BA0 _PIN(57)
  283. #define TEGRA_PIN_DDR_BA1 _PIN(58)
  284. #define TEGRA_PIN_DDR_BA2 _PIN(59)
  285. #define TEGRA_PIN_DDR_DQS0P _PIN(60)
  286. #define TEGRA_PIN_DDR_DQS0N _PIN(61)
  287. #define TEGRA_PIN_DDR_DQS1P _PIN(62)
  288. #define TEGRA_PIN_DDR_DQS1N _PIN(63)
  289. #define TEGRA_PIN_DDR_DQS2P _PIN(64)
  290. #define TEGRA_PIN_DDR_DQS2N _PIN(65)
  291. #define TEGRA_PIN_DDR_DQS3P _PIN(66)
  292. #define TEGRA_PIN_DDR_DQS3N _PIN(67)
  293. #define TEGRA_PIN_DDR_CKE0 _PIN(68)
  294. #define TEGRA_PIN_DDR_CKE1 _PIN(69)
  295. #define TEGRA_PIN_DDR_CLK _PIN(70)
  296. #define TEGRA_PIN_DDR_CLK_N _PIN(71)
  297. #define TEGRA_PIN_DDR_DM0 _PIN(72)
  298. #define TEGRA_PIN_DDR_DM1 _PIN(73)
  299. #define TEGRA_PIN_DDR_DM2 _PIN(74)
  300. #define TEGRA_PIN_DDR_DM3 _PIN(75)
  301. #define TEGRA_PIN_DDR_ODT _PIN(76)
  302. #define TEGRA_PIN_DDR_QUSE0 _PIN(77)
  303. #define TEGRA_PIN_DDR_QUSE1 _PIN(78)
  304. #define TEGRA_PIN_DDR_QUSE2 _PIN(79)
  305. #define TEGRA_PIN_DDR_QUSE3 _PIN(80)
  306. #define TEGRA_PIN_DDR_RAS_N _PIN(81)
  307. #define TEGRA_PIN_DDR_WE_N _PIN(82)
  308. #define TEGRA_PIN_DDR_DQ0 _PIN(83)
  309. #define TEGRA_PIN_DDR_DQ1 _PIN(84)
  310. #define TEGRA_PIN_DDR_DQ2 _PIN(85)
  311. #define TEGRA_PIN_DDR_DQ3 _PIN(86)
  312. #define TEGRA_PIN_DDR_DQ4 _PIN(87)
  313. #define TEGRA_PIN_DDR_DQ5 _PIN(88)
  314. #define TEGRA_PIN_DDR_DQ6 _PIN(89)
  315. #define TEGRA_PIN_DDR_DQ7 _PIN(90)
  316. #define TEGRA_PIN_DDR_DQ8 _PIN(91)
  317. #define TEGRA_PIN_DDR_DQ9 _PIN(92)
  318. #define TEGRA_PIN_DDR_DQ10 _PIN(93)
  319. #define TEGRA_PIN_DDR_DQ11 _PIN(94)
  320. #define TEGRA_PIN_DDR_DQ12 _PIN(95)
  321. #define TEGRA_PIN_DDR_DQ13 _PIN(96)
  322. #define TEGRA_PIN_DDR_DQ14 _PIN(97)
  323. #define TEGRA_PIN_DDR_DQ15 _PIN(98)
  324. #define TEGRA_PIN_DDR_DQ16 _PIN(99)
  325. #define TEGRA_PIN_DDR_DQ17 _PIN(100)
  326. #define TEGRA_PIN_DDR_DQ18 _PIN(101)
  327. #define TEGRA_PIN_DDR_DQ19 _PIN(102)
  328. #define TEGRA_PIN_DDR_DQ20 _PIN(103)
  329. #define TEGRA_PIN_DDR_DQ21 _PIN(104)
  330. #define TEGRA_PIN_DDR_DQ22 _PIN(105)
  331. #define TEGRA_PIN_DDR_DQ23 _PIN(106)
  332. #define TEGRA_PIN_DDR_DQ24 _PIN(107)
  333. #define TEGRA_PIN_DDR_DQ25 _PIN(108)
  334. #define TEGRA_PIN_DDR_DQ26 _PIN(109)
  335. #define TEGRA_PIN_DDR_DQ27 _PIN(110)
  336. #define TEGRA_PIN_DDR_DQ28 _PIN(111)
  337. #define TEGRA_PIN_DDR_DQ29 _PIN(112)
  338. #define TEGRA_PIN_DDR_DQ30 _PIN(113)
  339. #define TEGRA_PIN_DDR_DQ31 _PIN(114)
  340. #define TEGRA_PIN_DDR_CS0_N _PIN(115)
  341. #define TEGRA_PIN_DDR_CS1_N _PIN(116)
  342. #define TEGRA_PIN_SYS_RESET _PIN(117)
  343. #define TEGRA_PIN_JTAG_TRST_N _PIN(118)
  344. #define TEGRA_PIN_JTAG_TDO _PIN(119)
  345. #define TEGRA_PIN_JTAG_TMS _PIN(120)
  346. #define TEGRA_PIN_JTAG_TCK _PIN(121)
  347. #define TEGRA_PIN_JTAG_TDI _PIN(122)
  348. #define TEGRA_PIN_TEST_MODE_EN _PIN(123)
  349. static const struct pinctrl_pin_desc tegra20_pins[] = {
  350. PINCTRL_PIN(TEGRA_PIN_VI_GP6_PA0, "VI_GP6 PA0"),
  351. PINCTRL_PIN(TEGRA_PIN_UART3_CTS_N_PA1, "UART3_CTS_N PA1"),
  352. PINCTRL_PIN(TEGRA_PIN_DAP2_FS_PA2, "DAP2_FS PA2"),
  353. PINCTRL_PIN(TEGRA_PIN_DAP2_SCLK_PA3, "DAP2_SCLK PA3"),
  354. PINCTRL_PIN(TEGRA_PIN_DAP2_DIN_PA4, "DAP2_DIN PA4"),
  355. PINCTRL_PIN(TEGRA_PIN_DAP2_DOUT_PA5, "DAP2_DOUT PA5"),
  356. PINCTRL_PIN(TEGRA_PIN_SDIO3_CLK_PA6, "SDIO3_CLK PA6"),
  357. PINCTRL_PIN(TEGRA_PIN_SDIO3_CMD_PA7, "SDIO3_CMD PA7"),
  358. PINCTRL_PIN(TEGRA_PIN_GMI_AD17_PB0, "GMI_AD17 PB0"),
  359. PINCTRL_PIN(TEGRA_PIN_GMI_AD18_PB1, "GMI_AD18 PB1"),
  360. PINCTRL_PIN(TEGRA_PIN_LCD_PWR0_PB2, "LCD_PWR0 PB2"),
  361. PINCTRL_PIN(TEGRA_PIN_LCD_PCLK_PB3, "LCD_PCLK PB3"),
  362. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT3_PB4, "SDIO3_DAT3 PB4"),
  363. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT2_PB5, "SDIO3_DAT2 PB5"),
  364. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT1_PB6, "SDIO3_DAT1 PB6"),
  365. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT0_PB7, "SDIO3_DAT0 PB7"),
  366. PINCTRL_PIN(TEGRA_PIN_UART3_RTS_N_PC0, "UART3_RTS_N PC0"),
  367. PINCTRL_PIN(TEGRA_PIN_LCD_PWR1_PC1, "LCD_PWR1 PC1"),
  368. PINCTRL_PIN(TEGRA_PIN_UART2_TXD_PC2, "UART2_TXD PC2"),
  369. PINCTRL_PIN(TEGRA_PIN_UART2_RXD_PC3, "UART2_RXD PC3"),
  370. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PC4, "GEN1_I2C_SCL PC4"),
  371. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PC5, "GEN1_I2C_SDA PC5"),
  372. PINCTRL_PIN(TEGRA_PIN_LCD_PWR2_PC6, "LCD_PWR2 PC6"),
  373. PINCTRL_PIN(TEGRA_PIN_GMI_WP_N_PC7, "GMI_WP_N PC7"),
  374. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT5_PD0, "SDIO3_DAT5 PD0"),
  375. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT4_PD1, "SDIO3_DAT4 PD1"),
  376. PINCTRL_PIN(TEGRA_PIN_VI_GP5_PD2, "VI_GP5 PD2"),
  377. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT6_PD3, "SDIO3_DAT6 PD3"),
  378. PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT7_PD4, "SDIO3_DAT7 PD4"),
  379. PINCTRL_PIN(TEGRA_PIN_VI_D1_PD5, "VI_D1 PD5"),
  380. PINCTRL_PIN(TEGRA_PIN_VI_VSYNC_PD6, "VI_VSYNC PD6"),
  381. PINCTRL_PIN(TEGRA_PIN_VI_HSYNC_PD7, "VI_HSYNC PD7"),
  382. PINCTRL_PIN(TEGRA_PIN_LCD_D0_PE0, "LCD_D0 PE0"),
  383. PINCTRL_PIN(TEGRA_PIN_LCD_D1_PE1, "LCD_D1 PE1"),
  384. PINCTRL_PIN(TEGRA_PIN_LCD_D2_PE2, "LCD_D2 PE2"),
  385. PINCTRL_PIN(TEGRA_PIN_LCD_D3_PE3, "LCD_D3 PE3"),
  386. PINCTRL_PIN(TEGRA_PIN_LCD_D4_PE4, "LCD_D4 PE4"),
  387. PINCTRL_PIN(TEGRA_PIN_LCD_D5_PE5, "LCD_D5 PE5"),
  388. PINCTRL_PIN(TEGRA_PIN_LCD_D6_PE6, "LCD_D6 PE6"),
  389. PINCTRL_PIN(TEGRA_PIN_LCD_D7_PE7, "LCD_D7 PE7"),
  390. PINCTRL_PIN(TEGRA_PIN_LCD_D8_PF0, "LCD_D8 PF0"),
  391. PINCTRL_PIN(TEGRA_PIN_LCD_D9_PF1, "LCD_D9 PF1"),
  392. PINCTRL_PIN(TEGRA_PIN_LCD_D10_PF2, "LCD_D10 PF2"),
  393. PINCTRL_PIN(TEGRA_PIN_LCD_D11_PF3, "LCD_D11 PF3"),
  394. PINCTRL_PIN(TEGRA_PIN_LCD_D12_PF4, "LCD_D12 PF4"),
  395. PINCTRL_PIN(TEGRA_PIN_LCD_D13_PF5, "LCD_D13 PF5"),
  396. PINCTRL_PIN(TEGRA_PIN_LCD_D14_PF6, "LCD_D14 PF6"),
  397. PINCTRL_PIN(TEGRA_PIN_LCD_D15_PF7, "LCD_D15 PF7"),
  398. PINCTRL_PIN(TEGRA_PIN_GMI_AD0_PG0, "GMI_AD0 PG0"),
  399. PINCTRL_PIN(TEGRA_PIN_GMI_AD1_PG1, "GMI_AD1 PG1"),
  400. PINCTRL_PIN(TEGRA_PIN_GMI_AD2_PG2, "GMI_AD2 PG2"),
  401. PINCTRL_PIN(TEGRA_PIN_GMI_AD3_PG3, "GMI_AD3 PG3"),
  402. PINCTRL_PIN(TEGRA_PIN_GMI_AD4_PG4, "GMI_AD4 PG4"),
  403. PINCTRL_PIN(TEGRA_PIN_GMI_AD5_PG5, "GMI_AD5 PG5"),
  404. PINCTRL_PIN(TEGRA_PIN_GMI_AD6_PG6, "GMI_AD6 PG6"),
  405. PINCTRL_PIN(TEGRA_PIN_GMI_AD7_PG7, "GMI_AD7 PG7"),
  406. PINCTRL_PIN(TEGRA_PIN_GMI_AD8_PH0, "GMI_AD8 PH0"),
  407. PINCTRL_PIN(TEGRA_PIN_GMI_AD9_PH1, "GMI_AD9 PH1"),
  408. PINCTRL_PIN(TEGRA_PIN_GMI_AD10_PH2, "GMI_AD10 PH2"),
  409. PINCTRL_PIN(TEGRA_PIN_GMI_AD11_PH3, "GMI_AD11 PH3"),
  410. PINCTRL_PIN(TEGRA_PIN_GMI_AD12_PH4, "GMI_AD12 PH4"),
  411. PINCTRL_PIN(TEGRA_PIN_GMI_AD13_PH5, "GMI_AD13 PH5"),
  412. PINCTRL_PIN(TEGRA_PIN_GMI_AD14_PH6, "GMI_AD14 PH6"),
  413. PINCTRL_PIN(TEGRA_PIN_GMI_AD15_PH7, "GMI_AD15 PH7"),
  414. PINCTRL_PIN(TEGRA_PIN_GMI_HIOW_N_PI0, "GMI_HIOW_N PI0"),
  415. PINCTRL_PIN(TEGRA_PIN_GMI_HIOR_N_PI1, "GMI_HIOR_N PI1"),
  416. PINCTRL_PIN(TEGRA_PIN_GMI_CS5_N_PI2, "GMI_CS5_N PI2"),
  417. PINCTRL_PIN(TEGRA_PIN_GMI_CS6_N_PI3, "GMI_CS6_N PI3"),
  418. PINCTRL_PIN(TEGRA_PIN_GMI_RST_N_PI4, "GMI_RST_N PI4"),
  419. PINCTRL_PIN(TEGRA_PIN_GMI_IORDY_PI5, "GMI_IORDY PI5"),
  420. PINCTRL_PIN(TEGRA_PIN_GMI_CS7_N_PI6, "GMI_CS7_N PI6"),
  421. PINCTRL_PIN(TEGRA_PIN_GMI_WAIT_PI7, "GMI_WAIT PI7"),
  422. PINCTRL_PIN(TEGRA_PIN_GMI_CS0_N_PJ0, "GMI_CS0_N PJ0"),
  423. PINCTRL_PIN(TEGRA_PIN_LCD_DE_PJ1, "LCD_DE PJ1"),
  424. PINCTRL_PIN(TEGRA_PIN_GMI_CS1_N_PJ2, "GMI_CS1_N PJ2"),
  425. PINCTRL_PIN(TEGRA_PIN_LCD_HSYNC_PJ3, "LCD_HSYNC PJ3"),
  426. PINCTRL_PIN(TEGRA_PIN_LCD_VSYNC_PJ4, "LCD_VSYNC PJ4"),
  427. PINCTRL_PIN(TEGRA_PIN_UART2_CTS_N_PJ5, "UART2_CTS_N PJ5"),
  428. PINCTRL_PIN(TEGRA_PIN_UART2_RTS_N_PJ6, "UART2_RTS_N PJ6"),
  429. PINCTRL_PIN(TEGRA_PIN_GMI_AD16_PJ7, "GMI_AD16 PJ7"),
  430. PINCTRL_PIN(TEGRA_PIN_GMI_ADV_N_PK0, "GMI_ADV_N PK0"),
  431. PINCTRL_PIN(TEGRA_PIN_GMI_CLK_PK1, "GMI_CLK PK1"),
  432. PINCTRL_PIN(TEGRA_PIN_GMI_CS4_N_PK2, "GMI_CS4_N PK2"),
  433. PINCTRL_PIN(TEGRA_PIN_GMI_CS2_N_PK3, "GMI_CS2_N PK3"),
  434. PINCTRL_PIN(TEGRA_PIN_GMI_CS3_N_PK4, "GMI_CS3_N PK4"),
  435. PINCTRL_PIN(TEGRA_PIN_SPDIF_OUT_PK5, "SPDIF_OUT PK5"),
  436. PINCTRL_PIN(TEGRA_PIN_SPDIF_IN_PK6, "SPDIF_IN PK6"),
  437. PINCTRL_PIN(TEGRA_PIN_GMI_AD19_PK7, "GMI_AD19 PK7"),
  438. PINCTRL_PIN(TEGRA_PIN_VI_D2_PL0, "VI_D2 PL0"),
  439. PINCTRL_PIN(TEGRA_PIN_VI_D3_PL1, "VI_D3 PL1"),
  440. PINCTRL_PIN(TEGRA_PIN_VI_D4_PL2, "VI_D4 PL2"),
  441. PINCTRL_PIN(TEGRA_PIN_VI_D5_PL3, "VI_D5 PL3"),
  442. PINCTRL_PIN(TEGRA_PIN_VI_D6_PL4, "VI_D6 PL4"),
  443. PINCTRL_PIN(TEGRA_PIN_VI_D7_PL5, "VI_D7 PL5"),
  444. PINCTRL_PIN(TEGRA_PIN_VI_D8_PL6, "VI_D8 PL6"),
  445. PINCTRL_PIN(TEGRA_PIN_VI_D9_PL7, "VI_D9 PL7"),
  446. PINCTRL_PIN(TEGRA_PIN_LCD_D16_PM0, "LCD_D16 PM0"),
  447. PINCTRL_PIN(TEGRA_PIN_LCD_D17_PM1, "LCD_D17 PM1"),
  448. PINCTRL_PIN(TEGRA_PIN_LCD_D18_PM2, "LCD_D18 PM2"),
  449. PINCTRL_PIN(TEGRA_PIN_LCD_D19_PM3, "LCD_D19 PM3"),
  450. PINCTRL_PIN(TEGRA_PIN_LCD_D20_PM4, "LCD_D20 PM4"),
  451. PINCTRL_PIN(TEGRA_PIN_LCD_D21_PM5, "LCD_D21 PM5"),
  452. PINCTRL_PIN(TEGRA_PIN_LCD_D22_PM6, "LCD_D22 PM6"),
  453. PINCTRL_PIN(TEGRA_PIN_LCD_D23_PM7, "LCD_D23 PM7"),
  454. PINCTRL_PIN(TEGRA_PIN_DAP1_FS_PN0, "DAP1_FS PN0"),
  455. PINCTRL_PIN(TEGRA_PIN_DAP1_DIN_PN1, "DAP1_DIN PN1"),
  456. PINCTRL_PIN(TEGRA_PIN_DAP1_DOUT_PN2, "DAP1_DOUT PN2"),
  457. PINCTRL_PIN(TEGRA_PIN_DAP1_SCLK_PN3, "DAP1_SCLK PN3"),
  458. PINCTRL_PIN(TEGRA_PIN_LCD_CS0_N_PN4, "LCD_CS0_N PN4"),
  459. PINCTRL_PIN(TEGRA_PIN_LCD_SDOUT_PN5, "LCD_SDOUT PN5"),
  460. PINCTRL_PIN(TEGRA_PIN_LCD_DC0_PN6, "LCD_DC0 PN6"),
  461. PINCTRL_PIN(TEGRA_PIN_HDMI_INT_N_PN7, "HDMI_INT_N PN7"),
  462. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA7_PO0, "ULPI_DATA7 PO0"),
  463. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA0_PO1, "ULPI_DATA0 PO1"),
  464. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA1_PO2, "ULPI_DATA1 PO2"),
  465. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA2_PO3, "ULPI_DATA2 PO3"),
  466. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA3_PO4, "ULPI_DATA3 PO4"),
  467. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA4_PO5, "ULPI_DATA4 PO5"),
  468. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA5_PO6, "ULPI_DATA5 PO6"),
  469. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA6_PO7, "ULPI_DATA6 PO7"),
  470. PINCTRL_PIN(TEGRA_PIN_DAP3_FS_PP0, "DAP3_FS PP0"),
  471. PINCTRL_PIN(TEGRA_PIN_DAP3_DIN_PP1, "DAP3_DIN PP1"),
  472. PINCTRL_PIN(TEGRA_PIN_DAP3_DOUT_PP2, "DAP3_DOUT PP2"),
  473. PINCTRL_PIN(TEGRA_PIN_DAP3_SCLK_PP3, "DAP3_SCLK PP3"),
  474. PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PP4, "DAP4_FS PP4"),
  475. PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PP5, "DAP4_DIN PP5"),
  476. PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PP6, "DAP4_DOUT PP6"),
  477. PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PP7, "DAP4_SCLK PP7"),
  478. PINCTRL_PIN(TEGRA_PIN_KB_COL0_PQ0, "KB_COL0 PQ0"),
  479. PINCTRL_PIN(TEGRA_PIN_KB_COL1_PQ1, "KB_COL1 PQ1"),
  480. PINCTRL_PIN(TEGRA_PIN_KB_COL2_PQ2, "KB_COL2 PQ2"),
  481. PINCTRL_PIN(TEGRA_PIN_KB_COL3_PQ3, "KB_COL3 PQ3"),
  482. PINCTRL_PIN(TEGRA_PIN_KB_COL4_PQ4, "KB_COL4 PQ4"),
  483. PINCTRL_PIN(TEGRA_PIN_KB_COL5_PQ5, "KB_COL5 PQ5"),
  484. PINCTRL_PIN(TEGRA_PIN_KB_COL6_PQ6, "KB_COL6 PQ6"),
  485. PINCTRL_PIN(TEGRA_PIN_KB_COL7_PQ7, "KB_COL7 PQ7"),
  486. PINCTRL_PIN(TEGRA_PIN_KB_ROW0_PR0, "KB_ROW0 PR0"),
  487. PINCTRL_PIN(TEGRA_PIN_KB_ROW1_PR1, "KB_ROW1 PR1"),
  488. PINCTRL_PIN(TEGRA_PIN_KB_ROW2_PR2, "KB_ROW2 PR2"),
  489. PINCTRL_PIN(TEGRA_PIN_KB_ROW3_PR3, "KB_ROW3 PR3"),
  490. PINCTRL_PIN(TEGRA_PIN_KB_ROW4_PR4, "KB_ROW4 PR4"),
  491. PINCTRL_PIN(TEGRA_PIN_KB_ROW5_PR5, "KB_ROW5 PR5"),
  492. PINCTRL_PIN(TEGRA_PIN_KB_ROW6_PR6, "KB_ROW6 PR6"),
  493. PINCTRL_PIN(TEGRA_PIN_KB_ROW7_PR7, "KB_ROW7 PR7"),
  494. PINCTRL_PIN(TEGRA_PIN_KB_ROW8_PS0, "KB_ROW8 PS0"),
  495. PINCTRL_PIN(TEGRA_PIN_KB_ROW9_PS1, "KB_ROW9 PS1"),
  496. PINCTRL_PIN(TEGRA_PIN_KB_ROW10_PS2, "KB_ROW10 PS2"),
  497. PINCTRL_PIN(TEGRA_PIN_KB_ROW11_PS3, "KB_ROW11 PS3"),
  498. PINCTRL_PIN(TEGRA_PIN_KB_ROW12_PS4, "KB_ROW12 PS4"),
  499. PINCTRL_PIN(TEGRA_PIN_KB_ROW13_PS5, "KB_ROW13 PS5"),
  500. PINCTRL_PIN(TEGRA_PIN_KB_ROW14_PS6, "KB_ROW14 PS6"),
  501. PINCTRL_PIN(TEGRA_PIN_KB_ROW15_PS7, "KB_ROW15 PS7"),
  502. PINCTRL_PIN(TEGRA_PIN_VI_PCLK_PT0, "VI_PCLK PT0"),
  503. PINCTRL_PIN(TEGRA_PIN_VI_MCLK_PT1, "VI_MCLK PT1"),
  504. PINCTRL_PIN(TEGRA_PIN_VI_D10_PT2, "VD_D10 PT2"),
  505. PINCTRL_PIN(TEGRA_PIN_VI_D11_PT3, "VI_D11 PT3"),
  506. PINCTRL_PIN(TEGRA_PIN_VI_D0_PT4, "VI_D0 PT4"),
  507. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PT5, "GEN2_I2C_SCL PT5"),
  508. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PT6, "GEN2_I2C_SDA PT6"),
  509. PINCTRL_PIN(TEGRA_PIN_GMI_DPD_PT7, "GMI_DPD PT7"),
  510. /* PU0..6: GPIO only */
  511. PINCTRL_PIN(TEGRA_PIN_PU0, "PU0"),
  512. PINCTRL_PIN(TEGRA_PIN_PU1, "PU1"),
  513. PINCTRL_PIN(TEGRA_PIN_PU2, "PU2"),
  514. PINCTRL_PIN(TEGRA_PIN_PU3, "PU3"),
  515. PINCTRL_PIN(TEGRA_PIN_PU4, "PU4"),
  516. PINCTRL_PIN(TEGRA_PIN_PU5, "PU5"),
  517. PINCTRL_PIN(TEGRA_PIN_PU6, "PU6"),
  518. PINCTRL_PIN(TEGRA_PIN_JTAG_RTCK_PU7, "JTAG_RTCK PU7"),
  519. /* PV0..1: GPIO only */
  520. PINCTRL_PIN(TEGRA_PIN_PV0, "PV0"),
  521. PINCTRL_PIN(TEGRA_PIN_PV1, "PV1"),
  522. /* PV2..3: Balls are named after GPIO not function */
  523. PINCTRL_PIN(TEGRA_PIN_PV2, "PV2"),
  524. PINCTRL_PIN(TEGRA_PIN_PV3, "PV3"),
  525. /* PV4..6: GPIO only */
  526. PINCTRL_PIN(TEGRA_PIN_PV4, "PV4"),
  527. PINCTRL_PIN(TEGRA_PIN_PV5, "PV5"),
  528. PINCTRL_PIN(TEGRA_PIN_PV6, "PV6"),
  529. PINCTRL_PIN(TEGRA_PIN_LCD_DC1_PV7, "LCD_DC1 PV7"),
  530. PINCTRL_PIN(TEGRA_PIN_LCD_CS1_N_PW0, "LCD_CS1_N PW0"),
  531. PINCTRL_PIN(TEGRA_PIN_LCD_M1_PW1, "LCD_M1 PW1"),
  532. PINCTRL_PIN(TEGRA_PIN_SPI2_CS1_N_PW2, "SPI2_CS1_N PW2"),
  533. PINCTRL_PIN(TEGRA_PIN_SPI2_CS2_N_PW3, "SPI2_CS2_N PW3"),
  534. PINCTRL_PIN(TEGRA_PIN_DAP_MCLK1_PW4, "DAP_MCLK1 PW4"),
  535. PINCTRL_PIN(TEGRA_PIN_DAP_MCLK2_PW5, "DAP_MCLK2 PW5"),
  536. PINCTRL_PIN(TEGRA_PIN_UART3_TXD_PW6, "UART3_TXD PW6"),
  537. PINCTRL_PIN(TEGRA_PIN_UART3_RXD_PW7, "UART3_RXD PW7"),
  538. PINCTRL_PIN(TEGRA_PIN_SPI2_MOSI_PX0, "SPI2_MOSI PX0"),
  539. PINCTRL_PIN(TEGRA_PIN_SPI2_MISO_PX1, "SPI2_MISO PX1"),
  540. PINCTRL_PIN(TEGRA_PIN_SPI2_SCK_PX2, "SPI2_SCK PX2"),
  541. PINCTRL_PIN(TEGRA_PIN_SPI2_CS0_N_PX3, "SPI2_CS0_N PX3"),
  542. PINCTRL_PIN(TEGRA_PIN_SPI1_MOSI_PX4, "SPI1_MOSI PX4"),
  543. PINCTRL_PIN(TEGRA_PIN_SPI1_SCK_PX5, "SPI1_SCK PX5"),
  544. PINCTRL_PIN(TEGRA_PIN_SPI1_CS0_N_PX6, "SPI1_CS0_N PX6"),
  545. PINCTRL_PIN(TEGRA_PIN_SPI1_MISO_PX7, "SPI1_MISO PX7"),
  546. PINCTRL_PIN(TEGRA_PIN_ULPI_CLK_PY0, "ULPI_CLK PY0"),
  547. PINCTRL_PIN(TEGRA_PIN_ULPI_DIR_PY1, "ULPI_DIR PY1"),
  548. PINCTRL_PIN(TEGRA_PIN_ULPI_NXT_PY2, "ULPI_NXT PY2"),
  549. PINCTRL_PIN(TEGRA_PIN_ULPI_STP_PY3, "ULPI_STP PY3"),
  550. PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT3_PY4, "SDIO1_DAT3 PY4"),
  551. PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT2_PY5, "SDIO1_DAT2 PY5"),
  552. PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT1_PY6, "SDIO1_DAT1 PY6"),
  553. PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT0_PY7, "SDIO1_DAT0 PY7"),
  554. PINCTRL_PIN(TEGRA_PIN_SDIO1_CLK_PZ0, "SDIO1_CLK PZ0"),
  555. PINCTRL_PIN(TEGRA_PIN_SDIO1_CMD_PZ1, "SDIO1_CMD PZ1"),
  556. PINCTRL_PIN(TEGRA_PIN_LCD_SDIN_PZ2, "LCD_SDIN PZ2"),
  557. PINCTRL_PIN(TEGRA_PIN_LCD_WR_N_PZ3, "LCD_WR_N PZ3"),
  558. PINCTRL_PIN(TEGRA_PIN_LCD_SCK_PZ4, "LCD_SCK PZ4"),
  559. PINCTRL_PIN(TEGRA_PIN_SYS_CLK_REQ_PZ5, "SYS_CLK_REQ PZ5"),
  560. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PZ6, "PWR_I2C_SCL PZ6"),
  561. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PZ7, "PWR_I2C_SDA PZ7"),
  562. PINCTRL_PIN(TEGRA_PIN_GMI_AD20_PAA0, "GMI_AD20 PAA0"),
  563. PINCTRL_PIN(TEGRA_PIN_GMI_AD21_PAA1, "GMI_AD21 PAA1"),
  564. PINCTRL_PIN(TEGRA_PIN_GMI_AD22_PAA2, "GMI_AD22 PAA2"),
  565. PINCTRL_PIN(TEGRA_PIN_GMI_AD23_PAA3, "GMI_AD23 PAA3"),
  566. PINCTRL_PIN(TEGRA_PIN_GMI_AD24_PAA4, "GMI_AD24 PAA4"),
  567. PINCTRL_PIN(TEGRA_PIN_GMI_AD25_PAA5, "GMI_AD25 PAA5"),
  568. PINCTRL_PIN(TEGRA_PIN_GMI_AD26_PAA6, "GMI_AD26 PAA6"),
  569. PINCTRL_PIN(TEGRA_PIN_GMI_AD27_PAA7, "GMI_AD27 PAA7"),
  570. PINCTRL_PIN(TEGRA_PIN_LED_BLINK_PBB0, "LED_BLINK PBB0"),
  571. PINCTRL_PIN(TEGRA_PIN_VI_GP0_PBB1, "VI_GP0 PBB1"),
  572. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PBB2, "CAM_I2C_SCL PBB2"),
  573. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PBB3, "CAM_I2C_SDA PBB3"),
  574. PINCTRL_PIN(TEGRA_PIN_VI_GP3_PBB4, "VI_GP3 PBB4"),
  575. PINCTRL_PIN(TEGRA_PIN_VI_GP4_PBB5, "VI_GP4 PBB5"),
  576. PINCTRL_PIN(TEGRA_PIN_PBB6, "PBB6"),
  577. PINCTRL_PIN(TEGRA_PIN_PBB7, "PBB7"),
  578. PINCTRL_PIN(TEGRA_PIN_CRT_HSYNC, "CRT_HSYNC"),
  579. PINCTRL_PIN(TEGRA_PIN_CRT_VSYNC, "CRT_VSYNC"),
  580. PINCTRL_PIN(TEGRA_PIN_DDC_SCL, "DDC_SCL"),
  581. PINCTRL_PIN(TEGRA_PIN_DDC_SDA, "DDC_SDA"),
  582. PINCTRL_PIN(TEGRA_PIN_OWC, "OWC"),
  583. PINCTRL_PIN(TEGRA_PIN_CORE_PWR_REQ, "CORE_PWR_REQ"),
  584. PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ, "CPU_PWR_REQ"),
  585. PINCTRL_PIN(TEGRA_PIN_PWR_INT_N, "PWR_INT_N"),
  586. PINCTRL_PIN(TEGRA_PIN_CLK_32_K_IN, "CLK_32_K_IN"),
  587. PINCTRL_PIN(TEGRA_PIN_DDR_COMP_PD, "DDR_COMP_PD"),
  588. PINCTRL_PIN(TEGRA_PIN_DDR_COMP_PU, "DDR_COMP_PU"),
  589. PINCTRL_PIN(TEGRA_PIN_DDR_A0, "DDR_A0"),
  590. PINCTRL_PIN(TEGRA_PIN_DDR_A1, "DDR_A1"),
  591. PINCTRL_PIN(TEGRA_PIN_DDR_A2, "DDR_A2"),
  592. PINCTRL_PIN(TEGRA_PIN_DDR_A3, "DDR_A3"),
  593. PINCTRL_PIN(TEGRA_PIN_DDR_A4, "DDR_A4"),
  594. PINCTRL_PIN(TEGRA_PIN_DDR_A5, "DDR_A5"),
  595. PINCTRL_PIN(TEGRA_PIN_DDR_A6, "DDR_A6"),
  596. PINCTRL_PIN(TEGRA_PIN_DDR_A7, "DDR_A7"),
  597. PINCTRL_PIN(TEGRA_PIN_DDR_A8, "DDR_A8"),
  598. PINCTRL_PIN(TEGRA_PIN_DDR_A9, "DDR_A9"),
  599. PINCTRL_PIN(TEGRA_PIN_DDR_A10, "DDR_A10"),
  600. PINCTRL_PIN(TEGRA_PIN_DDR_A11, "DDR_A11"),
  601. PINCTRL_PIN(TEGRA_PIN_DDR_A12, "DDR_A12"),
  602. PINCTRL_PIN(TEGRA_PIN_DDR_A13, "DDR_A13"),
  603. PINCTRL_PIN(TEGRA_PIN_DDR_A14, "DDR_A14"),
  604. PINCTRL_PIN(TEGRA_PIN_DDR_CAS_N, "DDR_CAS_N"),
  605. PINCTRL_PIN(TEGRA_PIN_DDR_BA0, "DDR_BA0"),
  606. PINCTRL_PIN(TEGRA_PIN_DDR_BA1, "DDR_BA1"),
  607. PINCTRL_PIN(TEGRA_PIN_DDR_BA2, "DDR_BA2"),
  608. PINCTRL_PIN(TEGRA_PIN_DDR_DQS0P, "DDR_DQS0P"),
  609. PINCTRL_PIN(TEGRA_PIN_DDR_DQS0N, "DDR_DQS0N"),
  610. PINCTRL_PIN(TEGRA_PIN_DDR_DQS1P, "DDR_DQS1P"),
  611. PINCTRL_PIN(TEGRA_PIN_DDR_DQS1N, "DDR_DQS1N"),
  612. PINCTRL_PIN(TEGRA_PIN_DDR_DQS2P, "DDR_DQS2P"),
  613. PINCTRL_PIN(TEGRA_PIN_DDR_DQS2N, "DDR_DQS2N"),
  614. PINCTRL_PIN(TEGRA_PIN_DDR_DQS3P, "DDR_DQS3P"),
  615. PINCTRL_PIN(TEGRA_PIN_DDR_DQS3N, "DDR_DQS3N"),
  616. PINCTRL_PIN(TEGRA_PIN_DDR_CKE0, "DDR_CKE0"),
  617. PINCTRL_PIN(TEGRA_PIN_DDR_CKE1, "DDR_CKE1"),
  618. PINCTRL_PIN(TEGRA_PIN_DDR_CLK, "DDR_CLK"),
  619. PINCTRL_PIN(TEGRA_PIN_DDR_CLK_N, "DDR_CLK_N"),
  620. PINCTRL_PIN(TEGRA_PIN_DDR_DM0, "DDR_DM0"),
  621. PINCTRL_PIN(TEGRA_PIN_DDR_DM1, "DDR_DM1"),
  622. PINCTRL_PIN(TEGRA_PIN_DDR_DM2, "DDR_DM2"),
  623. PINCTRL_PIN(TEGRA_PIN_DDR_DM3, "DDR_DM3"),
  624. PINCTRL_PIN(TEGRA_PIN_DDR_ODT, "DDR_ODT"),
  625. PINCTRL_PIN(TEGRA_PIN_DDR_QUSE0, "DDR_QUSE0"),
  626. PINCTRL_PIN(TEGRA_PIN_DDR_QUSE1, "DDR_QUSE1"),
  627. PINCTRL_PIN(TEGRA_PIN_DDR_QUSE2, "DDR_QUSE2"),
  628. PINCTRL_PIN(TEGRA_PIN_DDR_QUSE3, "DDR_QUSE3"),
  629. PINCTRL_PIN(TEGRA_PIN_DDR_RAS_N, "DDR_RAS_N"),
  630. PINCTRL_PIN(TEGRA_PIN_DDR_WE_N, "DDR_WE_N"),
  631. PINCTRL_PIN(TEGRA_PIN_DDR_DQ0, "DDR_DQ0"),
  632. PINCTRL_PIN(TEGRA_PIN_DDR_DQ1, "DDR_DQ1"),
  633. PINCTRL_PIN(TEGRA_PIN_DDR_DQ2, "DDR_DQ2"),
  634. PINCTRL_PIN(TEGRA_PIN_DDR_DQ3, "DDR_DQ3"),
  635. PINCTRL_PIN(TEGRA_PIN_DDR_DQ4, "DDR_DQ4"),
  636. PINCTRL_PIN(TEGRA_PIN_DDR_DQ5, "DDR_DQ5"),
  637. PINCTRL_PIN(TEGRA_PIN_DDR_DQ6, "DDR_DQ6"),
  638. PINCTRL_PIN(TEGRA_PIN_DDR_DQ7, "DDR_DQ7"),
  639. PINCTRL_PIN(TEGRA_PIN_DDR_DQ8, "DDR_DQ8"),
  640. PINCTRL_PIN(TEGRA_PIN_DDR_DQ9, "DDR_DQ9"),
  641. PINCTRL_PIN(TEGRA_PIN_DDR_DQ10, "DDR_DQ10"),
  642. PINCTRL_PIN(TEGRA_PIN_DDR_DQ11, "DDR_DQ11"),
  643. PINCTRL_PIN(TEGRA_PIN_DDR_DQ12, "DDR_DQ12"),
  644. PINCTRL_PIN(TEGRA_PIN_DDR_DQ13, "DDR_DQ13"),
  645. PINCTRL_PIN(TEGRA_PIN_DDR_DQ14, "DDR_DQ14"),
  646. PINCTRL_PIN(TEGRA_PIN_DDR_DQ15, "DDR_DQ15"),
  647. PINCTRL_PIN(TEGRA_PIN_DDR_DQ16, "DDR_DQ16"),
  648. PINCTRL_PIN(TEGRA_PIN_DDR_DQ17, "DDR_DQ17"),
  649. PINCTRL_PIN(TEGRA_PIN_DDR_DQ18, "DDR_DQ18"),
  650. PINCTRL_PIN(TEGRA_PIN_DDR_DQ19, "DDR_DQ19"),
  651. PINCTRL_PIN(TEGRA_PIN_DDR_DQ20, "DDR_DQ20"),
  652. PINCTRL_PIN(TEGRA_PIN_DDR_DQ21, "DDR_DQ21"),
  653. PINCTRL_PIN(TEGRA_PIN_DDR_DQ22, "DDR_DQ22"),
  654. PINCTRL_PIN(TEGRA_PIN_DDR_DQ23, "DDR_DQ23"),
  655. PINCTRL_PIN(TEGRA_PIN_DDR_DQ24, "DDR_DQ24"),
  656. PINCTRL_PIN(TEGRA_PIN_DDR_DQ25, "DDR_DQ25"),
  657. PINCTRL_PIN(TEGRA_PIN_DDR_DQ26, "DDR_DQ26"),
  658. PINCTRL_PIN(TEGRA_PIN_DDR_DQ27, "DDR_DQ27"),
  659. PINCTRL_PIN(TEGRA_PIN_DDR_DQ28, "DDR_DQ28"),
  660. PINCTRL_PIN(TEGRA_PIN_DDR_DQ29, "DDR_DQ29"),
  661. PINCTRL_PIN(TEGRA_PIN_DDR_DQ30, "DDR_DQ30"),
  662. PINCTRL_PIN(TEGRA_PIN_DDR_DQ31, "DDR_DQ31"),
  663. PINCTRL_PIN(TEGRA_PIN_DDR_CS0_N, "DDR_CS0_N"),
  664. PINCTRL_PIN(TEGRA_PIN_DDR_CS1_N, "DDR_CS1_N"),
  665. PINCTRL_PIN(TEGRA_PIN_SYS_RESET, "SYS_RESET"),
  666. PINCTRL_PIN(TEGRA_PIN_JTAG_TRST_N, "JTAG_TRST_N"),
  667. PINCTRL_PIN(TEGRA_PIN_JTAG_TDO, "JTAG_TDO"),
  668. PINCTRL_PIN(TEGRA_PIN_JTAG_TMS, "JTAG_TMS"),
  669. PINCTRL_PIN(TEGRA_PIN_JTAG_TCK, "JTAG_TCK"),
  670. PINCTRL_PIN(TEGRA_PIN_JTAG_TDI, "JTAG_TDI"),
  671. PINCTRL_PIN(TEGRA_PIN_TEST_MODE_EN, "TEST_MODE_EN"),
  672. };
  673. static const unsigned ata_pins[] = {
  674. TEGRA_PIN_GMI_CS6_N_PI3,
  675. TEGRA_PIN_GMI_CS7_N_PI6,
  676. TEGRA_PIN_GMI_RST_N_PI4,
  677. };
  678. static const unsigned atb_pins[] = {
  679. TEGRA_PIN_GMI_CS5_N_PI2,
  680. TEGRA_PIN_GMI_DPD_PT7,
  681. };
  682. static const unsigned atc_pins[] = {
  683. TEGRA_PIN_GMI_IORDY_PI5,
  684. TEGRA_PIN_GMI_WAIT_PI7,
  685. TEGRA_PIN_GMI_ADV_N_PK0,
  686. TEGRA_PIN_GMI_CLK_PK1,
  687. TEGRA_PIN_GMI_CS2_N_PK3,
  688. TEGRA_PIN_GMI_CS3_N_PK4,
  689. TEGRA_PIN_GMI_CS4_N_PK2,
  690. TEGRA_PIN_GMI_AD0_PG0,
  691. TEGRA_PIN_GMI_AD1_PG1,
  692. TEGRA_PIN_GMI_AD2_PG2,
  693. TEGRA_PIN_GMI_AD3_PG3,
  694. TEGRA_PIN_GMI_AD4_PG4,
  695. TEGRA_PIN_GMI_AD5_PG5,
  696. TEGRA_PIN_GMI_AD6_PG6,
  697. TEGRA_PIN_GMI_AD7_PG7,
  698. TEGRA_PIN_GMI_HIOW_N_PI0,
  699. TEGRA_PIN_GMI_HIOR_N_PI1,
  700. };
  701. static const unsigned atd_pins[] = {
  702. TEGRA_PIN_GMI_AD8_PH0,
  703. TEGRA_PIN_GMI_AD9_PH1,
  704. TEGRA_PIN_GMI_AD10_PH2,
  705. TEGRA_PIN_GMI_AD11_PH3,
  706. };
  707. static const unsigned ate_pins[] = {
  708. TEGRA_PIN_GMI_AD12_PH4,
  709. TEGRA_PIN_GMI_AD13_PH5,
  710. TEGRA_PIN_GMI_AD14_PH6,
  711. TEGRA_PIN_GMI_AD15_PH7,
  712. };
  713. static const unsigned cdev1_pins[] = {
  714. TEGRA_PIN_DAP_MCLK1_PW4,
  715. };
  716. static const unsigned cdev2_pins[] = {
  717. TEGRA_PIN_DAP_MCLK2_PW5,
  718. };
  719. static const unsigned crtp_pins[] = {
  720. TEGRA_PIN_CRT_HSYNC,
  721. TEGRA_PIN_CRT_VSYNC,
  722. };
  723. static const unsigned csus_pins[] = {
  724. TEGRA_PIN_VI_MCLK_PT1,
  725. };
  726. static const unsigned dap1_pins[] = {
  727. TEGRA_PIN_DAP1_FS_PN0,
  728. TEGRA_PIN_DAP1_DIN_PN1,
  729. TEGRA_PIN_DAP1_DOUT_PN2,
  730. TEGRA_PIN_DAP1_SCLK_PN3,
  731. };
  732. static const unsigned dap2_pins[] = {
  733. TEGRA_PIN_DAP2_FS_PA2,
  734. TEGRA_PIN_DAP2_SCLK_PA3,
  735. TEGRA_PIN_DAP2_DIN_PA4,
  736. TEGRA_PIN_DAP2_DOUT_PA5,
  737. };
  738. static const unsigned dap3_pins[] = {
  739. TEGRA_PIN_DAP3_FS_PP0,
  740. TEGRA_PIN_DAP3_DIN_PP1,
  741. TEGRA_PIN_DAP3_DOUT_PP2,
  742. TEGRA_PIN_DAP3_SCLK_PP3,
  743. };
  744. static const unsigned dap4_pins[] = {
  745. TEGRA_PIN_DAP4_FS_PP4,
  746. TEGRA_PIN_DAP4_DIN_PP5,
  747. TEGRA_PIN_DAP4_DOUT_PP6,
  748. TEGRA_PIN_DAP4_SCLK_PP7,
  749. };
  750. static const unsigned ddc_pins[] = {
  751. TEGRA_PIN_DDC_SCL,
  752. TEGRA_PIN_DDC_SDA,
  753. };
  754. static const unsigned dta_pins[] = {
  755. TEGRA_PIN_VI_D0_PT4,
  756. TEGRA_PIN_VI_D1_PD5,
  757. };
  758. static const unsigned dtb_pins[] = {
  759. TEGRA_PIN_VI_D10_PT2,
  760. TEGRA_PIN_VI_D11_PT3,
  761. };
  762. static const unsigned dtc_pins[] = {
  763. TEGRA_PIN_VI_HSYNC_PD7,
  764. TEGRA_PIN_VI_VSYNC_PD6,
  765. };
  766. static const unsigned dtd_pins[] = {
  767. TEGRA_PIN_VI_PCLK_PT0,
  768. TEGRA_PIN_VI_D2_PL0,
  769. TEGRA_PIN_VI_D3_PL1,
  770. TEGRA_PIN_VI_D4_PL2,
  771. TEGRA_PIN_VI_D5_PL3,
  772. TEGRA_PIN_VI_D6_PL4,
  773. TEGRA_PIN_VI_D7_PL5,
  774. TEGRA_PIN_VI_D8_PL6,
  775. TEGRA_PIN_VI_D9_PL7,
  776. };
  777. static const unsigned dte_pins[] = {
  778. TEGRA_PIN_VI_GP0_PBB1,
  779. TEGRA_PIN_VI_GP3_PBB4,
  780. TEGRA_PIN_VI_GP4_PBB5,
  781. TEGRA_PIN_VI_GP5_PD2,
  782. TEGRA_PIN_VI_GP6_PA0,
  783. };
  784. static const unsigned dtf_pins[] = {
  785. TEGRA_PIN_CAM_I2C_SCL_PBB2,
  786. TEGRA_PIN_CAM_I2C_SDA_PBB3,
  787. };
  788. static const unsigned gma_pins[] = {
  789. TEGRA_PIN_GMI_AD20_PAA0,
  790. TEGRA_PIN_GMI_AD21_PAA1,
  791. TEGRA_PIN_GMI_AD22_PAA2,
  792. TEGRA_PIN_GMI_AD23_PAA3,
  793. };
  794. static const unsigned gmb_pins[] = {
  795. TEGRA_PIN_GMI_WP_N_PC7,
  796. };
  797. static const unsigned gmc_pins[] = {
  798. TEGRA_PIN_GMI_AD16_PJ7,
  799. TEGRA_PIN_GMI_AD17_PB0,
  800. TEGRA_PIN_GMI_AD18_PB1,
  801. TEGRA_PIN_GMI_AD19_PK7,
  802. };
  803. static const unsigned gmd_pins[] = {
  804. TEGRA_PIN_GMI_CS0_N_PJ0,
  805. TEGRA_PIN_GMI_CS1_N_PJ2,
  806. };
  807. static const unsigned gme_pins[] = {
  808. TEGRA_PIN_GMI_AD24_PAA4,
  809. TEGRA_PIN_GMI_AD25_PAA5,
  810. TEGRA_PIN_GMI_AD26_PAA6,
  811. TEGRA_PIN_GMI_AD27_PAA7,
  812. };
  813. static const unsigned gpu_pins[] = {
  814. TEGRA_PIN_PU0,
  815. TEGRA_PIN_PU1,
  816. TEGRA_PIN_PU2,
  817. TEGRA_PIN_PU3,
  818. TEGRA_PIN_PU4,
  819. TEGRA_PIN_PU5,
  820. TEGRA_PIN_PU6,
  821. };
  822. static const unsigned gpu7_pins[] = {
  823. TEGRA_PIN_JTAG_RTCK_PU7,
  824. };
  825. static const unsigned gpv_pins[] = {
  826. TEGRA_PIN_PV4,
  827. TEGRA_PIN_PV5,
  828. TEGRA_PIN_PV6,
  829. };
  830. static const unsigned hdint_pins[] = {
  831. TEGRA_PIN_HDMI_INT_N_PN7,
  832. };
  833. static const unsigned i2cp_pins[] = {
  834. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  835. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  836. };
  837. static const unsigned irrx_pins[] = {
  838. TEGRA_PIN_UART2_RTS_N_PJ6,
  839. };
  840. static const unsigned irtx_pins[] = {
  841. TEGRA_PIN_UART2_CTS_N_PJ5,
  842. };
  843. static const unsigned kbca_pins[] = {
  844. TEGRA_PIN_KB_ROW0_PR0,
  845. TEGRA_PIN_KB_ROW1_PR1,
  846. TEGRA_PIN_KB_ROW2_PR2,
  847. };
  848. static const unsigned kbcb_pins[] = {
  849. TEGRA_PIN_KB_ROW7_PR7,
  850. TEGRA_PIN_KB_ROW8_PS0,
  851. TEGRA_PIN_KB_ROW9_PS1,
  852. TEGRA_PIN_KB_ROW10_PS2,
  853. TEGRA_PIN_KB_ROW11_PS3,
  854. TEGRA_PIN_KB_ROW12_PS4,
  855. TEGRA_PIN_KB_ROW13_PS5,
  856. TEGRA_PIN_KB_ROW14_PS6,
  857. TEGRA_PIN_KB_ROW15_PS7,
  858. };
  859. static const unsigned kbcc_pins[] = {
  860. TEGRA_PIN_KB_COL0_PQ0,
  861. TEGRA_PIN_KB_COL1_PQ1,
  862. };
  863. static const unsigned kbcd_pins[] = {
  864. TEGRA_PIN_KB_ROW3_PR3,
  865. TEGRA_PIN_KB_ROW4_PR4,
  866. TEGRA_PIN_KB_ROW5_PR5,
  867. TEGRA_PIN_KB_ROW6_PR6,
  868. };
  869. static const unsigned kbce_pins[] = {
  870. TEGRA_PIN_KB_COL7_PQ7,
  871. };
  872. static const unsigned kbcf_pins[] = {
  873. TEGRA_PIN_KB_COL2_PQ2,
  874. TEGRA_PIN_KB_COL3_PQ3,
  875. TEGRA_PIN_KB_COL4_PQ4,
  876. TEGRA_PIN_KB_COL5_PQ5,
  877. TEGRA_PIN_KB_COL6_PQ6,
  878. };
  879. static const unsigned lcsn_pins[] = {
  880. TEGRA_PIN_LCD_CS0_N_PN4,
  881. };
  882. static const unsigned ld0_pins[] = {
  883. TEGRA_PIN_LCD_D0_PE0,
  884. };
  885. static const unsigned ld1_pins[] = {
  886. TEGRA_PIN_LCD_D1_PE1,
  887. };
  888. static const unsigned ld2_pins[] = {
  889. TEGRA_PIN_LCD_D2_PE2,
  890. };
  891. static const unsigned ld3_pins[] = {
  892. TEGRA_PIN_LCD_D3_PE3,
  893. };
  894. static const unsigned ld4_pins[] = {
  895. TEGRA_PIN_LCD_D4_PE4,
  896. };
  897. static const unsigned ld5_pins[] = {
  898. TEGRA_PIN_LCD_D5_PE5,
  899. };
  900. static const unsigned ld6_pins[] = {
  901. TEGRA_PIN_LCD_D6_PE6,
  902. };
  903. static const unsigned ld7_pins[] = {
  904. TEGRA_PIN_LCD_D7_PE7,
  905. };
  906. static const unsigned ld8_pins[] = {
  907. TEGRA_PIN_LCD_D8_PF0,
  908. };
  909. static const unsigned ld9_pins[] = {
  910. TEGRA_PIN_LCD_D9_PF1,
  911. };
  912. static const unsigned ld10_pins[] = {
  913. TEGRA_PIN_LCD_D10_PF2,
  914. };
  915. static const unsigned ld11_pins[] = {
  916. TEGRA_PIN_LCD_D11_PF3,
  917. };
  918. static const unsigned ld12_pins[] = {
  919. TEGRA_PIN_LCD_D12_PF4,
  920. };
  921. static const unsigned ld13_pins[] = {
  922. TEGRA_PIN_LCD_D13_PF5,
  923. };
  924. static const unsigned ld14_pins[] = {
  925. TEGRA_PIN_LCD_D14_PF6,
  926. };
  927. static const unsigned ld15_pins[] = {
  928. TEGRA_PIN_LCD_D15_PF7,
  929. };
  930. static const unsigned ld16_pins[] = {
  931. TEGRA_PIN_LCD_D16_PM0,
  932. };
  933. static const unsigned ld17_pins[] = {
  934. TEGRA_PIN_LCD_D17_PM1,
  935. };
  936. static const unsigned ldc_pins[] = {
  937. TEGRA_PIN_LCD_DC0_PN6,
  938. };
  939. static const unsigned ldi_pins[] = {
  940. TEGRA_PIN_LCD_D22_PM6,
  941. };
  942. static const unsigned lhp0_pins[] = {
  943. TEGRA_PIN_LCD_D21_PM5,
  944. };
  945. static const unsigned lhp1_pins[] = {
  946. TEGRA_PIN_LCD_D18_PM2,
  947. };
  948. static const unsigned lhp2_pins[] = {
  949. TEGRA_PIN_LCD_D19_PM3,
  950. };
  951. static const unsigned lhs_pins[] = {
  952. TEGRA_PIN_LCD_HSYNC_PJ3,
  953. };
  954. static const unsigned lm0_pins[] = {
  955. TEGRA_PIN_LCD_CS1_N_PW0,
  956. };
  957. static const unsigned lm1_pins[] = {
  958. TEGRA_PIN_LCD_M1_PW1,
  959. };
  960. static const unsigned lpp_pins[] = {
  961. TEGRA_PIN_LCD_D23_PM7,
  962. };
  963. static const unsigned lpw0_pins[] = {
  964. TEGRA_PIN_LCD_PWR0_PB2,
  965. };
  966. static const unsigned lpw1_pins[] = {
  967. TEGRA_PIN_LCD_PWR1_PC1,
  968. };
  969. static const unsigned lpw2_pins[] = {
  970. TEGRA_PIN_LCD_PWR2_PC6,
  971. };
  972. static const unsigned lsc0_pins[] = {
  973. TEGRA_PIN_LCD_PCLK_PB3,
  974. };
  975. static const unsigned lsc1_pins[] = {
  976. TEGRA_PIN_LCD_WR_N_PZ3,
  977. };
  978. static const unsigned lsck_pins[] = {
  979. TEGRA_PIN_LCD_SCK_PZ4,
  980. };
  981. static const unsigned lsda_pins[] = {
  982. TEGRA_PIN_LCD_SDOUT_PN5,
  983. };
  984. static const unsigned lsdi_pins[] = {
  985. TEGRA_PIN_LCD_SDIN_PZ2,
  986. };
  987. static const unsigned lspi_pins[] = {
  988. TEGRA_PIN_LCD_DE_PJ1,
  989. };
  990. static const unsigned lvp0_pins[] = {
  991. TEGRA_PIN_LCD_DC1_PV7,
  992. };
  993. static const unsigned lvp1_pins[] = {
  994. TEGRA_PIN_LCD_D20_PM4,
  995. };
  996. static const unsigned lvs_pins[] = {
  997. TEGRA_PIN_LCD_VSYNC_PJ4,
  998. };
  999. static const unsigned ls_pins[] = {
  1000. TEGRA_PIN_LCD_PWR0_PB2,
  1001. TEGRA_PIN_LCD_PWR1_PC1,
  1002. TEGRA_PIN_LCD_PWR2_PC6,
  1003. TEGRA_PIN_LCD_SDIN_PZ2,
  1004. TEGRA_PIN_LCD_SDOUT_PN5,
  1005. TEGRA_PIN_LCD_WR_N_PZ3,
  1006. TEGRA_PIN_LCD_CS0_N_PN4,
  1007. TEGRA_PIN_LCD_DC0_PN6,
  1008. TEGRA_PIN_LCD_SCK_PZ4,
  1009. };
  1010. static const unsigned lc_pins[] = {
  1011. TEGRA_PIN_LCD_PCLK_PB3,
  1012. TEGRA_PIN_LCD_DE_PJ1,
  1013. TEGRA_PIN_LCD_HSYNC_PJ3,
  1014. TEGRA_PIN_LCD_VSYNC_PJ4,
  1015. TEGRA_PIN_LCD_CS1_N_PW0,
  1016. TEGRA_PIN_LCD_M1_PW1,
  1017. TEGRA_PIN_LCD_DC1_PV7,
  1018. TEGRA_PIN_HDMI_INT_N_PN7,
  1019. };
  1020. static const unsigned ld17_0_pins[] = {
  1021. TEGRA_PIN_LCD_D0_PE0,
  1022. TEGRA_PIN_LCD_D1_PE1,
  1023. TEGRA_PIN_LCD_D2_PE2,
  1024. TEGRA_PIN_LCD_D3_PE3,
  1025. TEGRA_PIN_LCD_D4_PE4,
  1026. TEGRA_PIN_LCD_D5_PE5,
  1027. TEGRA_PIN_LCD_D6_PE6,
  1028. TEGRA_PIN_LCD_D7_PE7,
  1029. TEGRA_PIN_LCD_D8_PF0,
  1030. TEGRA_PIN_LCD_D9_PF1,
  1031. TEGRA_PIN_LCD_D10_PF2,
  1032. TEGRA_PIN_LCD_D11_PF3,
  1033. TEGRA_PIN_LCD_D12_PF4,
  1034. TEGRA_PIN_LCD_D13_PF5,
  1035. TEGRA_PIN_LCD_D14_PF6,
  1036. TEGRA_PIN_LCD_D15_PF7,
  1037. TEGRA_PIN_LCD_D16_PM0,
  1038. TEGRA_PIN_LCD_D17_PM1,
  1039. };
  1040. static const unsigned ld19_18_pins[] = {
  1041. TEGRA_PIN_LCD_D18_PM2,
  1042. TEGRA_PIN_LCD_D19_PM3,
  1043. };
  1044. static const unsigned ld21_20_pins[] = {
  1045. TEGRA_PIN_LCD_D20_PM4,
  1046. TEGRA_PIN_LCD_D21_PM5,
  1047. };
  1048. static const unsigned ld23_22_pins[] = {
  1049. TEGRA_PIN_LCD_D22_PM6,
  1050. TEGRA_PIN_LCD_D23_PM7,
  1051. };
  1052. static const unsigned owc_pins[] = {
  1053. TEGRA_PIN_OWC,
  1054. };
  1055. static const unsigned pmc_pins[] = {
  1056. TEGRA_PIN_LED_BLINK_PBB0,
  1057. TEGRA_PIN_SYS_CLK_REQ_PZ5,
  1058. TEGRA_PIN_CORE_PWR_REQ,
  1059. TEGRA_PIN_CPU_PWR_REQ,
  1060. TEGRA_PIN_PWR_INT_N,
  1061. };
  1062. static const unsigned pta_pins[] = {
  1063. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  1064. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  1065. };
  1066. static const unsigned rm_pins[] = {
  1067. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  1068. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  1069. };
  1070. static const unsigned sdb_pins[] = {
  1071. TEGRA_PIN_SDIO3_CMD_PA7,
  1072. };
  1073. static const unsigned sdc_pins[] = {
  1074. TEGRA_PIN_SDIO3_DAT0_PB7,
  1075. TEGRA_PIN_SDIO3_DAT1_PB6,
  1076. TEGRA_PIN_SDIO3_DAT2_PB5,
  1077. TEGRA_PIN_SDIO3_DAT3_PB4,
  1078. };
  1079. static const unsigned sdd_pins[] = {
  1080. TEGRA_PIN_SDIO3_CLK_PA6,
  1081. };
  1082. static const unsigned sdio1_pins[] = {
  1083. TEGRA_PIN_SDIO1_CLK_PZ0,
  1084. TEGRA_PIN_SDIO1_CMD_PZ1,
  1085. TEGRA_PIN_SDIO1_DAT0_PY7,
  1086. TEGRA_PIN_SDIO1_DAT1_PY6,
  1087. TEGRA_PIN_SDIO1_DAT2_PY5,
  1088. TEGRA_PIN_SDIO1_DAT3_PY4,
  1089. };
  1090. static const unsigned slxa_pins[] = {
  1091. TEGRA_PIN_SDIO3_DAT4_PD1,
  1092. };
  1093. static const unsigned slxc_pins[] = {
  1094. TEGRA_PIN_SDIO3_DAT6_PD3,
  1095. };
  1096. static const unsigned slxd_pins[] = {
  1097. TEGRA_PIN_SDIO3_DAT7_PD4,
  1098. };
  1099. static const unsigned slxk_pins[] = {
  1100. TEGRA_PIN_SDIO3_DAT5_PD0,
  1101. };
  1102. static const unsigned spdi_pins[] = {
  1103. TEGRA_PIN_SPDIF_IN_PK6,
  1104. };
  1105. static const unsigned spdo_pins[] = {
  1106. TEGRA_PIN_SPDIF_OUT_PK5,
  1107. };
  1108. static const unsigned spia_pins[] = {
  1109. TEGRA_PIN_SPI2_MOSI_PX0,
  1110. };
  1111. static const unsigned spib_pins[] = {
  1112. TEGRA_PIN_SPI2_MISO_PX1,
  1113. };
  1114. static const unsigned spic_pins[] = {
  1115. TEGRA_PIN_SPI2_CS0_N_PX3,
  1116. TEGRA_PIN_SPI2_SCK_PX2,
  1117. };
  1118. static const unsigned spid_pins[] = {
  1119. TEGRA_PIN_SPI1_MOSI_PX4,
  1120. };
  1121. static const unsigned spie_pins[] = {
  1122. TEGRA_PIN_SPI1_CS0_N_PX6,
  1123. TEGRA_PIN_SPI1_SCK_PX5,
  1124. };
  1125. static const unsigned spif_pins[] = {
  1126. TEGRA_PIN_SPI1_MISO_PX7,
  1127. };
  1128. static const unsigned spig_pins[] = {
  1129. TEGRA_PIN_SPI2_CS1_N_PW2,
  1130. };
  1131. static const unsigned spih_pins[] = {
  1132. TEGRA_PIN_SPI2_CS2_N_PW3,
  1133. };
  1134. static const unsigned uaa_pins[] = {
  1135. TEGRA_PIN_ULPI_DATA0_PO1,
  1136. TEGRA_PIN_ULPI_DATA1_PO2,
  1137. TEGRA_PIN_ULPI_DATA2_PO3,
  1138. TEGRA_PIN_ULPI_DATA3_PO4,
  1139. };
  1140. static const unsigned uab_pins[] = {
  1141. TEGRA_PIN_ULPI_DATA4_PO5,
  1142. TEGRA_PIN_ULPI_DATA5_PO6,
  1143. TEGRA_PIN_ULPI_DATA6_PO7,
  1144. TEGRA_PIN_ULPI_DATA7_PO0,
  1145. };
  1146. static const unsigned uac_pins[] = {
  1147. TEGRA_PIN_PV0,
  1148. TEGRA_PIN_PV1,
  1149. TEGRA_PIN_PV2,
  1150. TEGRA_PIN_PV3,
  1151. };
  1152. static const unsigned ck32_pins[] = {
  1153. TEGRA_PIN_CLK_32_K_IN,
  1154. };
  1155. static const unsigned uad_pins[] = {
  1156. TEGRA_PIN_UART2_RXD_PC3,
  1157. TEGRA_PIN_UART2_TXD_PC2,
  1158. };
  1159. static const unsigned uca_pins[] = {
  1160. TEGRA_PIN_UART3_RXD_PW7,
  1161. TEGRA_PIN_UART3_TXD_PW6,
  1162. };
  1163. static const unsigned ucb_pins[] = {
  1164. TEGRA_PIN_UART3_CTS_N_PA1,
  1165. TEGRA_PIN_UART3_RTS_N_PC0,
  1166. };
  1167. static const unsigned uda_pins[] = {
  1168. TEGRA_PIN_ULPI_CLK_PY0,
  1169. TEGRA_PIN_ULPI_DIR_PY1,
  1170. TEGRA_PIN_ULPI_NXT_PY2,
  1171. TEGRA_PIN_ULPI_STP_PY3,
  1172. };
  1173. static const unsigned ddrc_pins[] = {
  1174. TEGRA_PIN_DDR_COMP_PD,
  1175. TEGRA_PIN_DDR_COMP_PU,
  1176. };
  1177. static const unsigned pmca_pins[] = {
  1178. TEGRA_PIN_LED_BLINK_PBB0,
  1179. };
  1180. static const unsigned pmcb_pins[] = {
  1181. TEGRA_PIN_SYS_CLK_REQ_PZ5,
  1182. };
  1183. static const unsigned pmcc_pins[] = {
  1184. TEGRA_PIN_CORE_PWR_REQ,
  1185. };
  1186. static const unsigned pmcd_pins[] = {
  1187. TEGRA_PIN_CPU_PWR_REQ,
  1188. };
  1189. static const unsigned pmce_pins[] = {
  1190. TEGRA_PIN_PWR_INT_N,
  1191. };
  1192. static const unsigned xm2c_pins[] = {
  1193. TEGRA_PIN_DDR_A0,
  1194. TEGRA_PIN_DDR_A1,
  1195. TEGRA_PIN_DDR_A2,
  1196. TEGRA_PIN_DDR_A3,
  1197. TEGRA_PIN_DDR_A4,
  1198. TEGRA_PIN_DDR_A5,
  1199. TEGRA_PIN_DDR_A6,
  1200. TEGRA_PIN_DDR_A7,
  1201. TEGRA_PIN_DDR_A8,
  1202. TEGRA_PIN_DDR_A9,
  1203. TEGRA_PIN_DDR_A10,
  1204. TEGRA_PIN_DDR_A11,
  1205. TEGRA_PIN_DDR_A12,
  1206. TEGRA_PIN_DDR_A13,
  1207. TEGRA_PIN_DDR_A14,
  1208. TEGRA_PIN_DDR_CAS_N,
  1209. TEGRA_PIN_DDR_BA0,
  1210. TEGRA_PIN_DDR_BA1,
  1211. TEGRA_PIN_DDR_BA2,
  1212. TEGRA_PIN_DDR_DQS0P,
  1213. TEGRA_PIN_DDR_DQS0N,
  1214. TEGRA_PIN_DDR_DQS1P,
  1215. TEGRA_PIN_DDR_DQS1N,
  1216. TEGRA_PIN_DDR_DQS2P,
  1217. TEGRA_PIN_DDR_DQS2N,
  1218. TEGRA_PIN_DDR_DQS3P,
  1219. TEGRA_PIN_DDR_DQS3N,
  1220. TEGRA_PIN_DDR_CS0_N,
  1221. TEGRA_PIN_DDR_CS1_N,
  1222. TEGRA_PIN_DDR_CKE0,
  1223. TEGRA_PIN_DDR_CKE1,
  1224. TEGRA_PIN_DDR_CLK,
  1225. TEGRA_PIN_DDR_CLK_N,
  1226. TEGRA_PIN_DDR_DM0,
  1227. TEGRA_PIN_DDR_DM1,
  1228. TEGRA_PIN_DDR_DM2,
  1229. TEGRA_PIN_DDR_DM3,
  1230. TEGRA_PIN_DDR_ODT,
  1231. TEGRA_PIN_DDR_RAS_N,
  1232. TEGRA_PIN_DDR_WE_N,
  1233. TEGRA_PIN_DDR_QUSE0,
  1234. TEGRA_PIN_DDR_QUSE1,
  1235. TEGRA_PIN_DDR_QUSE2,
  1236. TEGRA_PIN_DDR_QUSE3,
  1237. };
  1238. static const unsigned xm2d_pins[] = {
  1239. TEGRA_PIN_DDR_DQ0,
  1240. TEGRA_PIN_DDR_DQ1,
  1241. TEGRA_PIN_DDR_DQ2,
  1242. TEGRA_PIN_DDR_DQ3,
  1243. TEGRA_PIN_DDR_DQ4,
  1244. TEGRA_PIN_DDR_DQ5,
  1245. TEGRA_PIN_DDR_DQ6,
  1246. TEGRA_PIN_DDR_DQ7,
  1247. TEGRA_PIN_DDR_DQ8,
  1248. TEGRA_PIN_DDR_DQ9,
  1249. TEGRA_PIN_DDR_DQ10,
  1250. TEGRA_PIN_DDR_DQ11,
  1251. TEGRA_PIN_DDR_DQ12,
  1252. TEGRA_PIN_DDR_DQ13,
  1253. TEGRA_PIN_DDR_DQ14,
  1254. TEGRA_PIN_DDR_DQ15,
  1255. TEGRA_PIN_DDR_DQ16,
  1256. TEGRA_PIN_DDR_DQ17,
  1257. TEGRA_PIN_DDR_DQ18,
  1258. TEGRA_PIN_DDR_DQ19,
  1259. TEGRA_PIN_DDR_DQ20,
  1260. TEGRA_PIN_DDR_DQ21,
  1261. TEGRA_PIN_DDR_DQ22,
  1262. TEGRA_PIN_DDR_DQ23,
  1263. TEGRA_PIN_DDR_DQ24,
  1264. TEGRA_PIN_DDR_DQ25,
  1265. TEGRA_PIN_DDR_DQ26,
  1266. TEGRA_PIN_DDR_DQ27,
  1267. TEGRA_PIN_DDR_DQ28,
  1268. TEGRA_PIN_DDR_DQ29,
  1269. TEGRA_PIN_DDR_DQ30,
  1270. TEGRA_PIN_DDR_DQ31,
  1271. };
  1272. static const unsigned drive_ao1_pins[] = {
  1273. TEGRA_PIN_SYS_RESET,
  1274. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  1275. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  1276. TEGRA_PIN_KB_ROW0_PR0,
  1277. TEGRA_PIN_KB_ROW1_PR1,
  1278. TEGRA_PIN_KB_ROW2_PR2,
  1279. TEGRA_PIN_KB_ROW3_PR3,
  1280. TEGRA_PIN_KB_ROW4_PR4,
  1281. TEGRA_PIN_KB_ROW5_PR5,
  1282. TEGRA_PIN_KB_ROW6_PR6,
  1283. TEGRA_PIN_KB_ROW7_PR7,
  1284. };
  1285. static const unsigned drive_ao2_pins[] = {
  1286. TEGRA_PIN_KB_ROW8_PS0,
  1287. TEGRA_PIN_KB_ROW9_PS1,
  1288. TEGRA_PIN_KB_ROW10_PS2,
  1289. TEGRA_PIN_KB_ROW11_PS3,
  1290. TEGRA_PIN_KB_ROW12_PS4,
  1291. TEGRA_PIN_KB_ROW13_PS5,
  1292. TEGRA_PIN_KB_ROW14_PS6,
  1293. TEGRA_PIN_KB_ROW15_PS7,
  1294. TEGRA_PIN_KB_COL0_PQ0,
  1295. TEGRA_PIN_KB_COL1_PQ1,
  1296. TEGRA_PIN_KB_COL2_PQ2,
  1297. TEGRA_PIN_KB_COL3_PQ3,
  1298. TEGRA_PIN_KB_COL4_PQ4,
  1299. TEGRA_PIN_KB_COL5_PQ5,
  1300. TEGRA_PIN_KB_COL6_PQ6,
  1301. TEGRA_PIN_KB_COL7_PQ7,
  1302. TEGRA_PIN_LED_BLINK_PBB0,
  1303. TEGRA_PIN_SYS_CLK_REQ_PZ5,
  1304. TEGRA_PIN_CORE_PWR_REQ,
  1305. TEGRA_PIN_CPU_PWR_REQ,
  1306. TEGRA_PIN_PWR_INT_N,
  1307. TEGRA_PIN_CLK_32_K_IN,
  1308. };
  1309. static const unsigned drive_at1_pins[] = {
  1310. TEGRA_PIN_GMI_IORDY_PI5,
  1311. TEGRA_PIN_GMI_AD8_PH0,
  1312. TEGRA_PIN_GMI_AD9_PH1,
  1313. TEGRA_PIN_GMI_AD10_PH2,
  1314. TEGRA_PIN_GMI_AD11_PH3,
  1315. TEGRA_PIN_GMI_AD12_PH4,
  1316. TEGRA_PIN_GMI_AD13_PH5,
  1317. TEGRA_PIN_GMI_AD14_PH6,
  1318. TEGRA_PIN_GMI_AD15_PH7,
  1319. TEGRA_PIN_GMI_CS7_N_PI6,
  1320. TEGRA_PIN_GMI_DPD_PT7,
  1321. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  1322. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  1323. };
  1324. static const unsigned drive_at2_pins[] = {
  1325. TEGRA_PIN_GMI_WAIT_PI7,
  1326. TEGRA_PIN_GMI_ADV_N_PK0,
  1327. TEGRA_PIN_GMI_CLK_PK1,
  1328. TEGRA_PIN_GMI_CS6_N_PI3,
  1329. TEGRA_PIN_GMI_CS5_N_PI2,
  1330. TEGRA_PIN_GMI_CS4_N_PK2,
  1331. TEGRA_PIN_GMI_CS3_N_PK4,
  1332. TEGRA_PIN_GMI_CS2_N_PK3,
  1333. TEGRA_PIN_GMI_AD0_PG0,
  1334. TEGRA_PIN_GMI_AD1_PG1,
  1335. TEGRA_PIN_GMI_AD2_PG2,
  1336. TEGRA_PIN_GMI_AD3_PG3,
  1337. TEGRA_PIN_GMI_AD4_PG4,
  1338. TEGRA_PIN_GMI_AD5_PG5,
  1339. TEGRA_PIN_GMI_AD6_PG6,
  1340. TEGRA_PIN_GMI_AD7_PG7,
  1341. TEGRA_PIN_GMI_HIOW_N_PI0,
  1342. TEGRA_PIN_GMI_HIOR_N_PI1,
  1343. TEGRA_PIN_GMI_RST_N_PI4,
  1344. };
  1345. static const unsigned drive_cdev1_pins[] = {
  1346. TEGRA_PIN_DAP_MCLK1_PW4,
  1347. };
  1348. static const unsigned drive_cdev2_pins[] = {
  1349. TEGRA_PIN_DAP_MCLK2_PW5,
  1350. };
  1351. static const unsigned drive_csus_pins[] = {
  1352. TEGRA_PIN_VI_MCLK_PT1,
  1353. };
  1354. static const unsigned drive_dap1_pins[] = {
  1355. TEGRA_PIN_DAP1_FS_PN0,
  1356. TEGRA_PIN_DAP1_DIN_PN1,
  1357. TEGRA_PIN_DAP1_DOUT_PN2,
  1358. TEGRA_PIN_DAP1_SCLK_PN3,
  1359. TEGRA_PIN_SPDIF_OUT_PK5,
  1360. TEGRA_PIN_SPDIF_IN_PK6,
  1361. };
  1362. static const unsigned drive_dap2_pins[] = {
  1363. TEGRA_PIN_DAP2_FS_PA2,
  1364. TEGRA_PIN_DAP2_SCLK_PA3,
  1365. TEGRA_PIN_DAP2_DIN_PA4,
  1366. TEGRA_PIN_DAP2_DOUT_PA5,
  1367. };
  1368. static const unsigned drive_dap3_pins[] = {
  1369. TEGRA_PIN_DAP3_FS_PP0,
  1370. TEGRA_PIN_DAP3_DIN_PP1,
  1371. TEGRA_PIN_DAP3_DOUT_PP2,
  1372. TEGRA_PIN_DAP3_SCLK_PP3,
  1373. };
  1374. static const unsigned drive_dap4_pins[] = {
  1375. TEGRA_PIN_DAP4_FS_PP4,
  1376. TEGRA_PIN_DAP4_DIN_PP5,
  1377. TEGRA_PIN_DAP4_DOUT_PP6,
  1378. TEGRA_PIN_DAP4_SCLK_PP7,
  1379. };
  1380. static const unsigned drive_dbg_pins[] = {
  1381. TEGRA_PIN_PU0,
  1382. TEGRA_PIN_PU1,
  1383. TEGRA_PIN_PU2,
  1384. TEGRA_PIN_PU3,
  1385. TEGRA_PIN_PU4,
  1386. TEGRA_PIN_PU5,
  1387. TEGRA_PIN_PU6,
  1388. TEGRA_PIN_JTAG_RTCK_PU7,
  1389. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  1390. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  1391. TEGRA_PIN_JTAG_TRST_N,
  1392. TEGRA_PIN_JTAG_TDO,
  1393. TEGRA_PIN_JTAG_TMS,
  1394. TEGRA_PIN_JTAG_TCK,
  1395. TEGRA_PIN_JTAG_TDI,
  1396. TEGRA_PIN_TEST_MODE_EN,
  1397. };
  1398. static const unsigned drive_lcd1_pins[] = {
  1399. TEGRA_PIN_LCD_PWR1_PC1,
  1400. TEGRA_PIN_LCD_PWR2_PC6,
  1401. TEGRA_PIN_LCD_SDIN_PZ2,
  1402. TEGRA_PIN_LCD_SDOUT_PN5,
  1403. TEGRA_PIN_LCD_WR_N_PZ3,
  1404. TEGRA_PIN_LCD_CS0_N_PN4,
  1405. TEGRA_PIN_LCD_DC0_PN6,
  1406. TEGRA_PIN_LCD_SCK_PZ4,
  1407. };
  1408. static const unsigned drive_lcd2_pins[] = {
  1409. TEGRA_PIN_LCD_PWR0_PB2,
  1410. TEGRA_PIN_LCD_PCLK_PB3,
  1411. TEGRA_PIN_LCD_DE_PJ1,
  1412. TEGRA_PIN_LCD_HSYNC_PJ3,
  1413. TEGRA_PIN_LCD_VSYNC_PJ4,
  1414. TEGRA_PIN_LCD_D0_PE0,
  1415. TEGRA_PIN_LCD_D1_PE1,
  1416. TEGRA_PIN_LCD_D2_PE2,
  1417. TEGRA_PIN_LCD_D3_PE3,
  1418. TEGRA_PIN_LCD_D4_PE4,
  1419. TEGRA_PIN_LCD_D5_PE5,
  1420. TEGRA_PIN_LCD_D6_PE6,
  1421. TEGRA_PIN_LCD_D7_PE7,
  1422. TEGRA_PIN_LCD_D8_PF0,
  1423. TEGRA_PIN_LCD_D9_PF1,
  1424. TEGRA_PIN_LCD_D10_PF2,
  1425. TEGRA_PIN_LCD_D11_PF3,
  1426. TEGRA_PIN_LCD_D12_PF4,
  1427. TEGRA_PIN_LCD_D13_PF5,
  1428. TEGRA_PIN_LCD_D14_PF6,
  1429. TEGRA_PIN_LCD_D15_PF7,
  1430. TEGRA_PIN_LCD_D16_PM0,
  1431. TEGRA_PIN_LCD_D17_PM1,
  1432. TEGRA_PIN_LCD_D18_PM2,
  1433. TEGRA_PIN_LCD_D19_PM3,
  1434. TEGRA_PIN_LCD_D20_PM4,
  1435. TEGRA_PIN_LCD_D21_PM5,
  1436. TEGRA_PIN_LCD_D22_PM6,
  1437. TEGRA_PIN_LCD_D23_PM7,
  1438. TEGRA_PIN_LCD_CS1_N_PW0,
  1439. TEGRA_PIN_LCD_M1_PW1,
  1440. TEGRA_PIN_LCD_DC1_PV7,
  1441. TEGRA_PIN_HDMI_INT_N_PN7,
  1442. };
  1443. static const unsigned drive_sdmmc2_pins[] = {
  1444. TEGRA_PIN_SDIO3_DAT4_PD1,
  1445. TEGRA_PIN_SDIO3_DAT5_PD0,
  1446. TEGRA_PIN_SDIO3_DAT6_PD3,
  1447. TEGRA_PIN_SDIO3_DAT7_PD4,
  1448. };
  1449. static const unsigned drive_sdmmc3_pins[] = {
  1450. TEGRA_PIN_SDIO3_CLK_PA6,
  1451. TEGRA_PIN_SDIO3_CMD_PA7,
  1452. TEGRA_PIN_SDIO3_DAT0_PB7,
  1453. TEGRA_PIN_SDIO3_DAT1_PB6,
  1454. TEGRA_PIN_SDIO3_DAT2_PB5,
  1455. TEGRA_PIN_SDIO3_DAT3_PB4,
  1456. TEGRA_PIN_PV4,
  1457. TEGRA_PIN_PV5,
  1458. TEGRA_PIN_PV6,
  1459. };
  1460. static const unsigned drive_spi_pins[] = {
  1461. TEGRA_PIN_SPI2_MOSI_PX0,
  1462. TEGRA_PIN_SPI2_MISO_PX1,
  1463. TEGRA_PIN_SPI2_SCK_PX2,
  1464. TEGRA_PIN_SPI2_CS0_N_PX3,
  1465. TEGRA_PIN_SPI1_MOSI_PX4,
  1466. TEGRA_PIN_SPI1_SCK_PX5,
  1467. TEGRA_PIN_SPI1_CS0_N_PX6,
  1468. TEGRA_PIN_SPI1_MISO_PX7,
  1469. TEGRA_PIN_SPI2_CS1_N_PW2,
  1470. TEGRA_PIN_SPI2_CS2_N_PW3,
  1471. };
  1472. static const unsigned drive_uaa_pins[] = {
  1473. TEGRA_PIN_ULPI_DATA0_PO1,
  1474. TEGRA_PIN_ULPI_DATA1_PO2,
  1475. TEGRA_PIN_ULPI_DATA2_PO3,
  1476. TEGRA_PIN_ULPI_DATA3_PO4,
  1477. };
  1478. static const unsigned drive_uab_pins[] = {
  1479. TEGRA_PIN_ULPI_DATA4_PO5,
  1480. TEGRA_PIN_ULPI_DATA5_PO6,
  1481. TEGRA_PIN_ULPI_DATA6_PO7,
  1482. TEGRA_PIN_ULPI_DATA7_PO0,
  1483. TEGRA_PIN_PV0,
  1484. TEGRA_PIN_PV1,
  1485. TEGRA_PIN_PV2,
  1486. TEGRA_PIN_PV3,
  1487. };
  1488. static const unsigned drive_uart2_pins[] = {
  1489. TEGRA_PIN_UART2_TXD_PC2,
  1490. TEGRA_PIN_UART2_RXD_PC3,
  1491. TEGRA_PIN_UART2_RTS_N_PJ6,
  1492. TEGRA_PIN_UART2_CTS_N_PJ5,
  1493. };
  1494. static const unsigned drive_uart3_pins[] = {
  1495. TEGRA_PIN_UART3_TXD_PW6,
  1496. TEGRA_PIN_UART3_RXD_PW7,
  1497. TEGRA_PIN_UART3_RTS_N_PC0,
  1498. TEGRA_PIN_UART3_CTS_N_PA1,
  1499. };
  1500. static const unsigned drive_vi1_pins[] = {
  1501. TEGRA_PIN_VI_D0_PT4,
  1502. TEGRA_PIN_VI_D1_PD5,
  1503. TEGRA_PIN_VI_D2_PL0,
  1504. TEGRA_PIN_VI_D3_PL1,
  1505. TEGRA_PIN_VI_D4_PL2,
  1506. TEGRA_PIN_VI_D5_PL3,
  1507. TEGRA_PIN_VI_D6_PL4,
  1508. TEGRA_PIN_VI_D7_PL5,
  1509. TEGRA_PIN_VI_D8_PL6,
  1510. TEGRA_PIN_VI_D9_PL7,
  1511. TEGRA_PIN_VI_D10_PT2,
  1512. TEGRA_PIN_VI_D11_PT3,
  1513. TEGRA_PIN_VI_PCLK_PT0,
  1514. TEGRA_PIN_VI_VSYNC_PD6,
  1515. TEGRA_PIN_VI_HSYNC_PD7,
  1516. };
  1517. static const unsigned drive_vi2_pins[] = {
  1518. TEGRA_PIN_VI_GP0_PBB1,
  1519. TEGRA_PIN_CAM_I2C_SCL_PBB2,
  1520. TEGRA_PIN_CAM_I2C_SDA_PBB3,
  1521. TEGRA_PIN_VI_GP3_PBB4,
  1522. TEGRA_PIN_VI_GP4_PBB5,
  1523. TEGRA_PIN_VI_GP5_PD2,
  1524. TEGRA_PIN_VI_GP6_PA0,
  1525. };
  1526. static const unsigned drive_xm2a_pins[] = {
  1527. TEGRA_PIN_DDR_A0,
  1528. TEGRA_PIN_DDR_A1,
  1529. TEGRA_PIN_DDR_A2,
  1530. TEGRA_PIN_DDR_A3,
  1531. TEGRA_PIN_DDR_A4,
  1532. TEGRA_PIN_DDR_A5,
  1533. TEGRA_PIN_DDR_A6,
  1534. TEGRA_PIN_DDR_A7,
  1535. TEGRA_PIN_DDR_A8,
  1536. TEGRA_PIN_DDR_A9,
  1537. TEGRA_PIN_DDR_A10,
  1538. TEGRA_PIN_DDR_A11,
  1539. TEGRA_PIN_DDR_A12,
  1540. TEGRA_PIN_DDR_A13,
  1541. TEGRA_PIN_DDR_A14,
  1542. TEGRA_PIN_DDR_BA0,
  1543. TEGRA_PIN_DDR_BA1,
  1544. TEGRA_PIN_DDR_BA2,
  1545. TEGRA_PIN_DDR_CS0_N,
  1546. TEGRA_PIN_DDR_CS1_N,
  1547. TEGRA_PIN_DDR_ODT,
  1548. TEGRA_PIN_DDR_RAS_N,
  1549. TEGRA_PIN_DDR_CAS_N,
  1550. TEGRA_PIN_DDR_WE_N,
  1551. TEGRA_PIN_DDR_CKE0,
  1552. TEGRA_PIN_DDR_CKE1,
  1553. };
  1554. static const unsigned drive_xm2c_pins[] = {
  1555. TEGRA_PIN_DDR_DQS0P,
  1556. TEGRA_PIN_DDR_DQS0N,
  1557. TEGRA_PIN_DDR_DQS1P,
  1558. TEGRA_PIN_DDR_DQS1N,
  1559. TEGRA_PIN_DDR_DQS2P,
  1560. TEGRA_PIN_DDR_DQS2N,
  1561. TEGRA_PIN_DDR_DQS3P,
  1562. TEGRA_PIN_DDR_DQS3N,
  1563. TEGRA_PIN_DDR_QUSE0,
  1564. TEGRA_PIN_DDR_QUSE1,
  1565. TEGRA_PIN_DDR_QUSE2,
  1566. TEGRA_PIN_DDR_QUSE3,
  1567. };
  1568. static const unsigned drive_xm2d_pins[] = {
  1569. TEGRA_PIN_DDR_DQ0,
  1570. TEGRA_PIN_DDR_DQ1,
  1571. TEGRA_PIN_DDR_DQ2,
  1572. TEGRA_PIN_DDR_DQ3,
  1573. TEGRA_PIN_DDR_DQ4,
  1574. TEGRA_PIN_DDR_DQ5,
  1575. TEGRA_PIN_DDR_DQ6,
  1576. TEGRA_PIN_DDR_DQ7,
  1577. TEGRA_PIN_DDR_DQ8,
  1578. TEGRA_PIN_DDR_DQ9,
  1579. TEGRA_PIN_DDR_DQ10,
  1580. TEGRA_PIN_DDR_DQ11,
  1581. TEGRA_PIN_DDR_DQ12,
  1582. TEGRA_PIN_DDR_DQ13,
  1583. TEGRA_PIN_DDR_DQ14,
  1584. TEGRA_PIN_DDR_DQ15,
  1585. TEGRA_PIN_DDR_DQ16,
  1586. TEGRA_PIN_DDR_DQ17,
  1587. TEGRA_PIN_DDR_DQ18,
  1588. TEGRA_PIN_DDR_DQ19,
  1589. TEGRA_PIN_DDR_DQ20,
  1590. TEGRA_PIN_DDR_DQ21,
  1591. TEGRA_PIN_DDR_DQ22,
  1592. TEGRA_PIN_DDR_DQ23,
  1593. TEGRA_PIN_DDR_DQ24,
  1594. TEGRA_PIN_DDR_DQ25,
  1595. TEGRA_PIN_DDR_DQ26,
  1596. TEGRA_PIN_DDR_DQ27,
  1597. TEGRA_PIN_DDR_DQ28,
  1598. TEGRA_PIN_DDR_DQ29,
  1599. TEGRA_PIN_DDR_DQ30,
  1600. TEGRA_PIN_DDR_DQ31,
  1601. TEGRA_PIN_DDR_DM0,
  1602. TEGRA_PIN_DDR_DM1,
  1603. TEGRA_PIN_DDR_DM2,
  1604. TEGRA_PIN_DDR_DM3,
  1605. };
  1606. static const unsigned drive_xm2clk_pins[] = {
  1607. TEGRA_PIN_DDR_CLK,
  1608. TEGRA_PIN_DDR_CLK_N,
  1609. };
  1610. static const unsigned drive_sdio1_pins[] = {
  1611. TEGRA_PIN_SDIO1_CLK_PZ0,
  1612. TEGRA_PIN_SDIO1_CMD_PZ1,
  1613. TEGRA_PIN_SDIO1_DAT0_PY7,
  1614. TEGRA_PIN_SDIO1_DAT1_PY6,
  1615. TEGRA_PIN_SDIO1_DAT2_PY5,
  1616. TEGRA_PIN_SDIO1_DAT3_PY4,
  1617. };
  1618. static const unsigned drive_crt_pins[] = {
  1619. TEGRA_PIN_CRT_HSYNC,
  1620. TEGRA_PIN_CRT_VSYNC,
  1621. };
  1622. static const unsigned drive_ddc_pins[] = {
  1623. TEGRA_PIN_DDC_SCL,
  1624. TEGRA_PIN_DDC_SDA,
  1625. };
  1626. static const unsigned drive_gma_pins[] = {
  1627. TEGRA_PIN_GMI_AD20_PAA0,
  1628. TEGRA_PIN_GMI_AD21_PAA1,
  1629. TEGRA_PIN_GMI_AD22_PAA2,
  1630. TEGRA_PIN_GMI_AD23_PAA3,
  1631. };
  1632. static const unsigned drive_gmb_pins[] = {
  1633. TEGRA_PIN_GMI_WP_N_PC7,
  1634. };
  1635. static const unsigned drive_gmc_pins[] = {
  1636. TEGRA_PIN_GMI_AD16_PJ7,
  1637. TEGRA_PIN_GMI_AD17_PB0,
  1638. TEGRA_PIN_GMI_AD18_PB1,
  1639. TEGRA_PIN_GMI_AD19_PK7,
  1640. };
  1641. static const unsigned drive_gmd_pins[] = {
  1642. TEGRA_PIN_GMI_CS0_N_PJ0,
  1643. TEGRA_PIN_GMI_CS1_N_PJ2,
  1644. };
  1645. static const unsigned drive_gme_pins[] = {
  1646. TEGRA_PIN_GMI_AD24_PAA4,
  1647. TEGRA_PIN_GMI_AD25_PAA5,
  1648. TEGRA_PIN_GMI_AD26_PAA6,
  1649. TEGRA_PIN_GMI_AD27_PAA7,
  1650. };
  1651. static const unsigned drive_owr_pins[] = {
  1652. TEGRA_PIN_OWC,
  1653. };
  1654. static const unsigned drive_uda_pins[] = {
  1655. TEGRA_PIN_ULPI_CLK_PY0,
  1656. TEGRA_PIN_ULPI_DIR_PY1,
  1657. TEGRA_PIN_ULPI_NXT_PY2,
  1658. TEGRA_PIN_ULPI_STP_PY3,
  1659. };
  1660. enum tegra_mux {
  1661. TEGRA_MUX_AHB_CLK,
  1662. TEGRA_MUX_APB_CLK,
  1663. TEGRA_MUX_AUDIO_SYNC,
  1664. TEGRA_MUX_CRT,
  1665. TEGRA_MUX_DAP1,
  1666. TEGRA_MUX_DAP2,
  1667. TEGRA_MUX_DAP3,
  1668. TEGRA_MUX_DAP4,
  1669. TEGRA_MUX_DAP5,
  1670. TEGRA_MUX_DISPLAYA,
  1671. TEGRA_MUX_DISPLAYB,
  1672. TEGRA_MUX_EMC_TEST0_DLL,
  1673. TEGRA_MUX_EMC_TEST1_DLL,
  1674. TEGRA_MUX_GMI,
  1675. TEGRA_MUX_GMI_INT,
  1676. TEGRA_MUX_HDMI,
  1677. TEGRA_MUX_I2CP,
  1678. TEGRA_MUX_I2C1,
  1679. TEGRA_MUX_I2C2,
  1680. TEGRA_MUX_I2C3,
  1681. TEGRA_MUX_IDE,
  1682. TEGRA_MUX_IRDA,
  1683. TEGRA_MUX_KBC,
  1684. TEGRA_MUX_MIO,
  1685. TEGRA_MUX_MIPI_HS,
  1686. TEGRA_MUX_NAND,
  1687. TEGRA_MUX_OSC,
  1688. TEGRA_MUX_OWR,
  1689. TEGRA_MUX_PCIE,
  1690. TEGRA_MUX_PLLA_OUT,
  1691. TEGRA_MUX_PLLC_OUT1,
  1692. TEGRA_MUX_PLLM_OUT1,
  1693. TEGRA_MUX_PLLP_OUT2,
  1694. TEGRA_MUX_PLLP_OUT3,
  1695. TEGRA_MUX_PLLP_OUT4,
  1696. TEGRA_MUX_PWM,
  1697. TEGRA_MUX_PWR_INTR,
  1698. TEGRA_MUX_PWR_ON,
  1699. TEGRA_MUX_RSVD1,
  1700. TEGRA_MUX_RSVD2,
  1701. TEGRA_MUX_RSVD3,
  1702. TEGRA_MUX_RSVD4,
  1703. TEGRA_MUX_RTCK,
  1704. TEGRA_MUX_SDIO1,
  1705. TEGRA_MUX_SDIO2,
  1706. TEGRA_MUX_SDIO3,
  1707. TEGRA_MUX_SDIO4,
  1708. TEGRA_MUX_SFLASH,
  1709. TEGRA_MUX_SPDIF,
  1710. TEGRA_MUX_SPI1,
  1711. TEGRA_MUX_SPI2,
  1712. TEGRA_MUX_SPI2_ALT,
  1713. TEGRA_MUX_SPI3,
  1714. TEGRA_MUX_SPI4,
  1715. TEGRA_MUX_TRACE,
  1716. TEGRA_MUX_TWC,
  1717. TEGRA_MUX_UARTA,
  1718. TEGRA_MUX_UARTB,
  1719. TEGRA_MUX_UARTC,
  1720. TEGRA_MUX_UARTD,
  1721. TEGRA_MUX_UARTE,
  1722. TEGRA_MUX_ULPI,
  1723. TEGRA_MUX_VI,
  1724. TEGRA_MUX_VI_SENSOR_CLK,
  1725. TEGRA_MUX_XIO,
  1726. };
  1727. static const char * const ahb_clk_groups[] = {
  1728. "cdev2",
  1729. };
  1730. static const char * const apb_clk_groups[] = {
  1731. "cdev2",
  1732. };
  1733. static const char * const audio_sync_groups[] = {
  1734. "cdev1",
  1735. };
  1736. static const char * const crt_groups[] = {
  1737. "crtp",
  1738. "lm1",
  1739. };
  1740. static const char * const dap1_groups[] = {
  1741. "dap1",
  1742. };
  1743. static const char * const dap2_groups[] = {
  1744. "dap2",
  1745. };
  1746. static const char * const dap3_groups[] = {
  1747. "dap3",
  1748. };
  1749. static const char * const dap4_groups[] = {
  1750. "dap4",
  1751. };
  1752. static const char * const dap5_groups[] = {
  1753. "gme",
  1754. };
  1755. static const char * const displaya_groups[] = {
  1756. "lcsn",
  1757. "ld0",
  1758. "ld1",
  1759. "ld10",
  1760. "ld11",
  1761. "ld12",
  1762. "ld13",
  1763. "ld14",
  1764. "ld15",
  1765. "ld16",
  1766. "ld17",
  1767. "ld2",
  1768. "ld3",
  1769. "ld4",
  1770. "ld5",
  1771. "ld6",
  1772. "ld7",
  1773. "ld8",
  1774. "ld9",
  1775. "ldc",
  1776. "ldi",
  1777. "lhp0",
  1778. "lhp1",
  1779. "lhp2",
  1780. "lhs",
  1781. "lm0",
  1782. "lm1",
  1783. "lpp",
  1784. "lpw0",
  1785. "lpw1",
  1786. "lpw2",
  1787. "lsc0",
  1788. "lsc1",
  1789. "lsck",
  1790. "lsda",
  1791. "lsdi",
  1792. "lspi",
  1793. "lvp0",
  1794. "lvp1",
  1795. "lvs",
  1796. };
  1797. static const char * const displayb_groups[] = {
  1798. "lcsn",
  1799. "ld0",
  1800. "ld1",
  1801. "ld10",
  1802. "ld11",
  1803. "ld12",
  1804. "ld13",
  1805. "ld14",
  1806. "ld15",
  1807. "ld16",
  1808. "ld17",
  1809. "ld2",
  1810. "ld3",
  1811. "ld4",
  1812. "ld5",
  1813. "ld6",
  1814. "ld7",
  1815. "ld8",
  1816. "ld9",
  1817. "ldc",
  1818. "ldi",
  1819. "lhp0",
  1820. "lhp1",
  1821. "lhp2",
  1822. "lhs",
  1823. "lm0",
  1824. "lm1",
  1825. "lpp",
  1826. "lpw0",
  1827. "lpw1",
  1828. "lpw2",
  1829. "lsc0",
  1830. "lsc1",
  1831. "lsck",
  1832. "lsda",
  1833. "lsdi",
  1834. "lspi",
  1835. "lvp0",
  1836. "lvp1",
  1837. "lvs",
  1838. };
  1839. static const char * const emc_test0_dll_groups[] = {
  1840. "kbca",
  1841. };
  1842. static const char * const emc_test1_dll_groups[] = {
  1843. "kbcc",
  1844. };
  1845. static const char * const gmi_groups[] = {
  1846. "ata",
  1847. "atb",
  1848. "atc",
  1849. "atd",
  1850. "ate",
  1851. "dap1",
  1852. "dap2",
  1853. "dap4",
  1854. "gma",
  1855. "gmb",
  1856. "gmc",
  1857. "gmd",
  1858. "gme",
  1859. "gpu",
  1860. "irrx",
  1861. "irtx",
  1862. "pta",
  1863. "spia",
  1864. "spib",
  1865. "spic",
  1866. "spid",
  1867. "spie",
  1868. "uca",
  1869. "ucb",
  1870. };
  1871. static const char * const gmi_int_groups[] = {
  1872. "gmb",
  1873. };
  1874. static const char * const hdmi_groups[] = {
  1875. "hdint",
  1876. "lpw0",
  1877. "lpw2",
  1878. "lsc1",
  1879. "lsck",
  1880. "lsda",
  1881. "lspi",
  1882. "pta",
  1883. };
  1884. static const char * const i2cp_groups[] = {
  1885. "i2cp",
  1886. };
  1887. static const char * const i2c1_groups[] = {
  1888. "rm",
  1889. "spdi",
  1890. "spdo",
  1891. "spig",
  1892. "spih",
  1893. };
  1894. static const char * const i2c2_groups[] = {
  1895. "ddc",
  1896. "pta",
  1897. };
  1898. static const char * const i2c3_groups[] = {
  1899. "dtf",
  1900. };
  1901. static const char * const ide_groups[] = {
  1902. "ata",
  1903. "atb",
  1904. "atc",
  1905. "atd",
  1906. "ate",
  1907. "gmb",
  1908. };
  1909. static const char * const irda_groups[] = {
  1910. "uad",
  1911. };
  1912. static const char * const kbc_groups[] = {
  1913. "kbca",
  1914. "kbcb",
  1915. "kbcc",
  1916. "kbcd",
  1917. "kbce",
  1918. "kbcf",
  1919. };
  1920. static const char * const mio_groups[] = {
  1921. "kbcb",
  1922. "kbcd",
  1923. "kbcf",
  1924. };
  1925. static const char * const mipi_hs_groups[] = {
  1926. "uaa",
  1927. "uab",
  1928. };
  1929. static const char * const nand_groups[] = {
  1930. "ata",
  1931. "atb",
  1932. "atc",
  1933. "atd",
  1934. "ate",
  1935. "gmb",
  1936. "gmd",
  1937. "kbca",
  1938. "kbcb",
  1939. "kbcc",
  1940. "kbcd",
  1941. "kbce",
  1942. "kbcf",
  1943. };
  1944. static const char * const osc_groups[] = {
  1945. "cdev1",
  1946. "cdev2",
  1947. };
  1948. static const char * const owr_groups[] = {
  1949. "kbce",
  1950. "owc",
  1951. "uac",
  1952. };
  1953. static const char * const pcie_groups[] = {
  1954. "gpv",
  1955. "slxa",
  1956. "slxk",
  1957. };
  1958. static const char * const plla_out_groups[] = {
  1959. "cdev1",
  1960. };
  1961. static const char * const pllc_out1_groups[] = {
  1962. "csus",
  1963. };
  1964. static const char * const pllm_out1_groups[] = {
  1965. "cdev1",
  1966. };
  1967. static const char * const pllp_out2_groups[] = {
  1968. "csus",
  1969. };
  1970. static const char * const pllp_out3_groups[] = {
  1971. "csus",
  1972. };
  1973. static const char * const pllp_out4_groups[] = {
  1974. "cdev2",
  1975. };
  1976. static const char * const pwm_groups[] = {
  1977. "gpu",
  1978. "sdb",
  1979. "sdc",
  1980. "sdd",
  1981. "ucb",
  1982. };
  1983. static const char * const pwr_intr_groups[] = {
  1984. "pmc",
  1985. };
  1986. static const char * const pwr_on_groups[] = {
  1987. "pmc",
  1988. };
  1989. static const char * const rsvd1_groups[] = {
  1990. "dta",
  1991. "dtb",
  1992. "dtc",
  1993. "dtd",
  1994. "dte",
  1995. "gmd",
  1996. "gme",
  1997. };
  1998. static const char * const rsvd2_groups[] = {
  1999. "crtp",
  2000. "dap1",
  2001. "dap3",
  2002. "dap4",
  2003. "ddc",
  2004. "dtb",
  2005. "dtc",
  2006. "dte",
  2007. "dtf",
  2008. "gpu7",
  2009. "gpv",
  2010. "hdint",
  2011. "i2cp",
  2012. "owc",
  2013. "rm",
  2014. "sdio1",
  2015. "spdi",
  2016. "spdo",
  2017. "uac",
  2018. "uca",
  2019. "uda",
  2020. };
  2021. static const char * const rsvd3_groups[] = {
  2022. "crtp",
  2023. "dap2",
  2024. "dap3",
  2025. "ddc",
  2026. "gpu7",
  2027. "gpv",
  2028. "hdint",
  2029. "i2cp",
  2030. "ld17",
  2031. "ldc",
  2032. "ldi",
  2033. "lhp0",
  2034. "lhp1",
  2035. "lhp2",
  2036. "lm1",
  2037. "lpp",
  2038. "lpw1",
  2039. "lvp0",
  2040. "lvp1",
  2041. "owc",
  2042. "pmc",
  2043. "rm",
  2044. "uac",
  2045. };
  2046. static const char * const rsvd4_groups[] = {
  2047. "ata",
  2048. "ate",
  2049. "crtp",
  2050. "dap3",
  2051. "dap4",
  2052. "ddc",
  2053. "dta",
  2054. "dtc",
  2055. "dtd",
  2056. "dtf",
  2057. "gpu",
  2058. "gpu7",
  2059. "gpv",
  2060. "hdint",
  2061. "i2cp",
  2062. "kbce",
  2063. "lcsn",
  2064. "ld0",
  2065. "ld1",
  2066. "ld2",
  2067. "ld3",
  2068. "ld4",
  2069. "ld5",
  2070. "ld6",
  2071. "ld7",
  2072. "ld8",
  2073. "ld9",
  2074. "ld10",
  2075. "ld11",
  2076. "ld12",
  2077. "ld13",
  2078. "ld14",
  2079. "ld15",
  2080. "ld16",
  2081. "ld17",
  2082. "ldc",
  2083. "ldi",
  2084. "lhp0",
  2085. "lhp1",
  2086. "lhp2",
  2087. "lhs",
  2088. "lm0",
  2089. "lpp",
  2090. "lpw1",
  2091. "lsc0",
  2092. "lsdi",
  2093. "lvp0",
  2094. "lvp1",
  2095. "lvs",
  2096. "owc",
  2097. "pmc",
  2098. "pta",
  2099. "rm",
  2100. "spif",
  2101. "uac",
  2102. "uca",
  2103. "ucb",
  2104. };
  2105. static const char * const rtck_groups[] = {
  2106. "gpu7",
  2107. };
  2108. static const char * const sdio1_groups[] = {
  2109. "sdio1",
  2110. };
  2111. static const char * const sdio2_groups[] = {
  2112. "dap1",
  2113. "dta",
  2114. "dtd",
  2115. "kbca",
  2116. "kbcb",
  2117. "kbcd",
  2118. "spdi",
  2119. "spdo",
  2120. };
  2121. static const char * const sdio3_groups[] = {
  2122. "sdb",
  2123. "sdc",
  2124. "sdd",
  2125. "slxa",
  2126. "slxc",
  2127. "slxd",
  2128. "slxk",
  2129. };
  2130. static const char * const sdio4_groups[] = {
  2131. "atb",
  2132. "atc",
  2133. "atd",
  2134. "gma",
  2135. "gme",
  2136. };
  2137. static const char * const sflash_groups[] = {
  2138. "gmc",
  2139. "gmd",
  2140. };
  2141. static const char * const spdif_groups[] = {
  2142. "slxc",
  2143. "slxd",
  2144. "spdi",
  2145. "spdo",
  2146. "uad",
  2147. };
  2148. static const char * const spi1_groups[] = {
  2149. "dtb",
  2150. "dte",
  2151. "spia",
  2152. "spib",
  2153. "spic",
  2154. "spid",
  2155. "spie",
  2156. "spif",
  2157. "uda",
  2158. };
  2159. static const char * const spi2_groups[] = {
  2160. "sdb",
  2161. "slxa",
  2162. "slxc",
  2163. "slxd",
  2164. "slxk",
  2165. "spia",
  2166. "spib",
  2167. "spic",
  2168. "spid",
  2169. "spie",
  2170. "spif",
  2171. "spig",
  2172. "spih",
  2173. "uab",
  2174. };
  2175. static const char * const spi2_alt_groups[] = {
  2176. "spid",
  2177. "spie",
  2178. "spig",
  2179. "spih",
  2180. };
  2181. static const char * const spi3_groups[] = {
  2182. "gma",
  2183. "lcsn",
  2184. "lm0",
  2185. "lpw0",
  2186. "lpw2",
  2187. "lsc1",
  2188. "lsck",
  2189. "lsda",
  2190. "lsdi",
  2191. "sdc",
  2192. "sdd",
  2193. "spia",
  2194. "spib",
  2195. "spic",
  2196. "spif",
  2197. "spig",
  2198. "spih",
  2199. "uaa",
  2200. };
  2201. static const char * const spi4_groups[] = {
  2202. "gmc",
  2203. "irrx",
  2204. "irtx",
  2205. "slxa",
  2206. "slxc",
  2207. "slxd",
  2208. "slxk",
  2209. "uad",
  2210. };
  2211. static const char * const trace_groups[] = {
  2212. "kbcc",
  2213. "kbcf",
  2214. };
  2215. static const char * const twc_groups[] = {
  2216. "dap2",
  2217. "sdc",
  2218. };
  2219. static const char * const uarta_groups[] = {
  2220. "gpu",
  2221. "irrx",
  2222. "irtx",
  2223. "sdb",
  2224. "sdd",
  2225. "sdio1",
  2226. "uaa",
  2227. "uab",
  2228. "uad",
  2229. };
  2230. static const char * const uartb_groups[] = {
  2231. "irrx",
  2232. "irtx",
  2233. };
  2234. static const char * const uartc_groups[] = {
  2235. "uca",
  2236. "ucb",
  2237. };
  2238. static const char * const uartd_groups[] = {
  2239. "gmc",
  2240. "uda",
  2241. };
  2242. static const char * const uarte_groups[] = {
  2243. "gma",
  2244. "sdio1",
  2245. };
  2246. static const char * const ulpi_groups[] = {
  2247. "uaa",
  2248. "uab",
  2249. "uda",
  2250. };
  2251. static const char * const vi_groups[] = {
  2252. "dta",
  2253. "dtb",
  2254. "dtc",
  2255. "dtd",
  2256. "dte",
  2257. "dtf",
  2258. };
  2259. static const char * const vi_sensor_clk_groups[] = {
  2260. "csus",
  2261. };
  2262. static const char * const xio_groups[] = {
  2263. "ld0",
  2264. "ld1",
  2265. "ld10",
  2266. "ld11",
  2267. "ld12",
  2268. "ld13",
  2269. "ld14",
  2270. "ld15",
  2271. "ld16",
  2272. "ld2",
  2273. "ld3",
  2274. "ld4",
  2275. "ld5",
  2276. "ld6",
  2277. "ld7",
  2278. "ld8",
  2279. "ld9",
  2280. "lhs",
  2281. "lsc0",
  2282. "lspi",
  2283. "lvs",
  2284. };
  2285. #define FUNCTION(fname) \
  2286. { \
  2287. .name = #fname, \
  2288. .groups = fname##_groups, \
  2289. .ngroups = ARRAY_SIZE(fname##_groups), \
  2290. }
  2291. static const struct tegra_function tegra20_functions[] = {
  2292. FUNCTION(ahb_clk),
  2293. FUNCTION(apb_clk),
  2294. FUNCTION(audio_sync),
  2295. FUNCTION(crt),
  2296. FUNCTION(dap1),
  2297. FUNCTION(dap2),
  2298. FUNCTION(dap3),
  2299. FUNCTION(dap4),
  2300. FUNCTION(dap5),
  2301. FUNCTION(displaya),
  2302. FUNCTION(displayb),
  2303. FUNCTION(emc_test0_dll),
  2304. FUNCTION(emc_test1_dll),
  2305. FUNCTION(gmi),
  2306. FUNCTION(gmi_int),
  2307. FUNCTION(hdmi),
  2308. FUNCTION(i2cp),
  2309. FUNCTION(i2c1),
  2310. FUNCTION(i2c2),
  2311. FUNCTION(i2c3),
  2312. FUNCTION(ide),
  2313. FUNCTION(irda),
  2314. FUNCTION(kbc),
  2315. FUNCTION(mio),
  2316. FUNCTION(mipi_hs),
  2317. FUNCTION(nand),
  2318. FUNCTION(osc),
  2319. FUNCTION(owr),
  2320. FUNCTION(pcie),
  2321. FUNCTION(plla_out),
  2322. FUNCTION(pllc_out1),
  2323. FUNCTION(pllm_out1),
  2324. FUNCTION(pllp_out2),
  2325. FUNCTION(pllp_out3),
  2326. FUNCTION(pllp_out4),
  2327. FUNCTION(pwm),
  2328. FUNCTION(pwr_intr),
  2329. FUNCTION(pwr_on),
  2330. FUNCTION(rsvd1),
  2331. FUNCTION(rsvd2),
  2332. FUNCTION(rsvd3),
  2333. FUNCTION(rsvd4),
  2334. FUNCTION(rtck),
  2335. FUNCTION(sdio1),
  2336. FUNCTION(sdio2),
  2337. FUNCTION(sdio3),
  2338. FUNCTION(sdio4),
  2339. FUNCTION(sflash),
  2340. FUNCTION(spdif),
  2341. FUNCTION(spi1),
  2342. FUNCTION(spi2),
  2343. FUNCTION(spi2_alt),
  2344. FUNCTION(spi3),
  2345. FUNCTION(spi4),
  2346. FUNCTION(trace),
  2347. FUNCTION(twc),
  2348. FUNCTION(uarta),
  2349. FUNCTION(uartb),
  2350. FUNCTION(uartc),
  2351. FUNCTION(uartd),
  2352. FUNCTION(uarte),
  2353. FUNCTION(ulpi),
  2354. FUNCTION(vi),
  2355. FUNCTION(vi_sensor_clk),
  2356. FUNCTION(xio),
  2357. };
  2358. #define TRISTATE_REG_A 0x14
  2359. #define PIN_MUX_CTL_REG_A 0x80
  2360. #define PULLUPDOWN_REG_A 0xa0
  2361. #define PINGROUP_REG_A 0x868
  2362. /* Pin group with mux control, and typically tri-state and pull-up/down too */
  2363. #define MUX_PG(pg_name, f0, f1, f2, f3, f_safe, \
  2364. tri_r, tri_b, mux_r, mux_b, pupd_r, pupd_b) \
  2365. { \
  2366. .name = #pg_name, \
  2367. .pins = pg_name##_pins, \
  2368. .npins = ARRAY_SIZE(pg_name##_pins), \
  2369. .funcs = { \
  2370. TEGRA_MUX_ ## f0, \
  2371. TEGRA_MUX_ ## f1, \
  2372. TEGRA_MUX_ ## f2, \
  2373. TEGRA_MUX_ ## f3, \
  2374. }, \
  2375. .func_safe = TEGRA_MUX_ ## f_safe, \
  2376. .mux_reg = ((mux_r) - PIN_MUX_CTL_REG_A), \
  2377. .mux_bank = 1, \
  2378. .mux_bit = mux_b, \
  2379. .pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A), \
  2380. .pupd_bank = 2, \
  2381. .pupd_bit = pupd_b, \
  2382. .tri_reg = ((tri_r) - TRISTATE_REG_A), \
  2383. .tri_bank = 0, \
  2384. .tri_bit = tri_b, \
  2385. .einput_reg = -1, \
  2386. .odrain_reg = -1, \
  2387. .lock_reg = -1, \
  2388. .ioreset_reg = -1, \
  2389. .drv_reg = -1, \
  2390. }
  2391. /* Pin groups with only pull up and pull down control */
  2392. #define PULL_PG(pg_name, pupd_r, pupd_b) \
  2393. { \
  2394. .name = #pg_name, \
  2395. .pins = pg_name##_pins, \
  2396. .npins = ARRAY_SIZE(pg_name##_pins), \
  2397. .mux_reg = -1, \
  2398. .pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A), \
  2399. .pupd_bank = 2, \
  2400. .pupd_bit = pupd_b, \
  2401. .tri_reg = -1, \
  2402. .einput_reg = -1, \
  2403. .odrain_reg = -1, \
  2404. .lock_reg = -1, \
  2405. .ioreset_reg = -1, \
  2406. .drv_reg = -1, \
  2407. }
  2408. /* Pin groups for drive strength registers (configurable version) */
  2409. #define DRV_PG_EXT(pg_name, r, hsm_b, schmitt_b, lpmd_b, \
  2410. drvdn_b, drvup_b, \
  2411. slwr_b, slwr_w, slwf_b, slwf_w) \
  2412. { \
  2413. .name = "drive_" #pg_name, \
  2414. .pins = drive_##pg_name##_pins, \
  2415. .npins = ARRAY_SIZE(drive_##pg_name##_pins), \
  2416. .mux_reg = -1, \
  2417. .pupd_reg = -1, \
  2418. .tri_reg = -1, \
  2419. .einput_reg = -1, \
  2420. .odrain_reg = -1, \
  2421. .lock_reg = -1, \
  2422. .ioreset_reg = -1, \
  2423. .drv_reg = ((r) - PINGROUP_REG_A), \
  2424. .drv_bank = 3, \
  2425. .hsm_bit = hsm_b, \
  2426. .schmitt_bit = schmitt_b, \
  2427. .lpmd_bit = lpmd_b, \
  2428. .drvdn_bit = drvdn_b, \
  2429. .drvdn_width = 5, \
  2430. .drvup_bit = drvup_b, \
  2431. .drvup_width = 5, \
  2432. .slwr_bit = slwr_b, \
  2433. .slwr_width = slwr_w, \
  2434. .slwf_bit = slwf_b, \
  2435. .slwf_width = slwf_w, \
  2436. }
  2437. /* Pin groups for drive strength registers (simple version) */
  2438. #define DRV_PG(pg_name, r) \
  2439. DRV_PG_EXT(pg_name, r, 2, 3, 4, 12, 20, 28, 2, 30, 2)
  2440. static const struct tegra_pingroup tegra20_groups[] = {
  2441. /* name, f0, f1, f2, f3, f_safe, tri r/b, mux r/b, pupd r/b */
  2442. MUX_PG(ata, IDE, NAND, GMI, RSVD4, IDE, 0x14, 0, 0x80, 24, 0xa0, 0),
  2443. MUX_PG(atb, IDE, NAND, GMI, SDIO4, IDE, 0x14, 1, 0x80, 16, 0xa0, 2),
  2444. MUX_PG(atc, IDE, NAND, GMI, SDIO4, IDE, 0x14, 2, 0x80, 22, 0xa0, 4),
  2445. MUX_PG(atd, IDE, NAND, GMI, SDIO4, IDE, 0x14, 3, 0x80, 20, 0xa0, 6),
  2446. MUX_PG(ate, IDE, NAND, GMI, RSVD4, IDE, 0x18, 25, 0x80, 12, 0xa0, 8),
  2447. MUX_PG(cdev1, OSC, PLLA_OUT, PLLM_OUT1, AUDIO_SYNC, OSC, 0x14, 4, 0x88, 2, 0xa8, 0),
  2448. MUX_PG(cdev2, OSC, AHB_CLK, APB_CLK, PLLP_OUT4, OSC, 0x14, 5, 0x88, 4, 0xa8, 2),
  2449. MUX_PG(crtp, CRT, RSVD2, RSVD3, RSVD4, RSVD2, 0x20, 14, 0x98, 20, 0xa4, 24),
  2450. MUX_PG(csus, PLLC_OUT1, PLLP_OUT2, PLLP_OUT3, VI_SENSOR_CLK, PLLC_OUT1, 0x14, 6, 0x88, 6, 0xac, 24),
  2451. MUX_PG(dap1, DAP1, RSVD2, GMI, SDIO2, DAP1, 0x14, 7, 0x88, 20, 0xa0, 10),
  2452. MUX_PG(dap2, DAP2, TWC, RSVD3, GMI, DAP2, 0x14, 8, 0x88, 22, 0xa0, 12),
  2453. MUX_PG(dap3, DAP3, RSVD2, RSVD3, RSVD4, DAP3, 0x14, 9, 0x88, 24, 0xa0, 14),
  2454. MUX_PG(dap4, DAP4, RSVD2, GMI, RSVD4, DAP4, 0x14, 10, 0x88, 26, 0xa0, 16),
  2455. MUX_PG(ddc, I2C2, RSVD2, RSVD3, RSVD4, RSVD4, 0x18, 31, 0x88, 0, 0xb0, 28),
  2456. MUX_PG(dta, RSVD1, SDIO2, VI, RSVD4, RSVD4, 0x14, 11, 0x84, 20, 0xa0, 18),
  2457. MUX_PG(dtb, RSVD1, RSVD2, VI, SPI1, RSVD1, 0x14, 12, 0x84, 22, 0xa0, 20),
  2458. MUX_PG(dtc, RSVD1, RSVD2, VI, RSVD4, RSVD1, 0x14, 13, 0x84, 26, 0xa0, 22),
  2459. MUX_PG(dtd, RSVD1, SDIO2, VI, RSVD4, RSVD1, 0x14, 14, 0x84, 28, 0xa0, 24),
  2460. MUX_PG(dte, RSVD1, RSVD2, VI, SPI1, RSVD1, 0x14, 15, 0x84, 30, 0xa0, 26),
  2461. MUX_PG(dtf, I2C3, RSVD2, VI, RSVD4, RSVD4, 0x20, 12, 0x98, 30, 0xa0, 28),
  2462. MUX_PG(gma, UARTE, SPI3, GMI, SDIO4, SPI3, 0x14, 28, 0x84, 0, 0xb0, 20),
  2463. MUX_PG(gmb, IDE, NAND, GMI, GMI_INT, GMI, 0x18, 29, 0x88, 28, 0xb0, 22),
  2464. MUX_PG(gmc, UARTD, SPI4, GMI, SFLASH, SPI4, 0x14, 29, 0x84, 2, 0xb0, 24),
  2465. MUX_PG(gmd, RSVD1, NAND, GMI, SFLASH, GMI, 0x18, 30, 0x88, 30, 0xb0, 26),
  2466. MUX_PG(gme, RSVD1, DAP5, GMI, SDIO4, GMI, 0x18, 0, 0x8c, 0, 0xa8, 24),
  2467. MUX_PG(gpu, PWM, UARTA, GMI, RSVD4, RSVD4, 0x14, 16, 0x8c, 4, 0xa4, 20),
  2468. MUX_PG(gpu7, RTCK, RSVD2, RSVD3, RSVD4, RTCK, 0x20, 11, 0x98, 28, 0xa4, 6),
  2469. MUX_PG(gpv, PCIE, RSVD2, RSVD3, RSVD4, PCIE, 0x14, 17, 0x8c, 2, 0xa0, 30),
  2470. MUX_PG(hdint, HDMI, RSVD2, RSVD3, RSVD4, HDMI, 0x1c, 23, 0x84, 4, -1, -1),
  2471. MUX_PG(i2cp, I2CP, RSVD2, RSVD3, RSVD4, RSVD4, 0x14, 18, 0x88, 8, 0xa4, 2),
  2472. MUX_PG(irrx, UARTA, UARTB, GMI, SPI4, UARTB, 0x14, 20, 0x88, 18, 0xa8, 22),
  2473. MUX_PG(irtx, UARTA, UARTB, GMI, SPI4, UARTB, 0x14, 19, 0x88, 16, 0xa8, 20),
  2474. MUX_PG(kbca, KBC, NAND, SDIO2, EMC_TEST0_DLL, KBC, 0x14, 22, 0x88, 10, 0xa4, 8),
  2475. MUX_PG(kbcb, KBC, NAND, SDIO2, MIO, KBC, 0x14, 21, 0x88, 12, 0xa4, 10),
  2476. MUX_PG(kbcc, KBC, NAND, TRACE, EMC_TEST1_DLL, KBC, 0x18, 26, 0x88, 14, 0xa4, 12),
  2477. MUX_PG(kbcd, KBC, NAND, SDIO2, MIO, KBC, 0x20, 10, 0x98, 26, 0xa4, 14),
  2478. MUX_PG(kbce, KBC, NAND, OWR, RSVD4, KBC, 0x14, 26, 0x80, 28, 0xb0, 2),
  2479. MUX_PG(kbcf, KBC, NAND, TRACE, MIO, KBC, 0x14, 27, 0x80, 26, 0xb0, 0),
  2480. MUX_PG(lcsn, DISPLAYA, DISPLAYB, SPI3, RSVD4, RSVD4, 0x1c, 31, 0x90, 12, -1, -1),
  2481. MUX_PG(ld0, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 0, 0x94, 0, -1, -1),
  2482. MUX_PG(ld1, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 1, 0x94, 2, -1, -1),
  2483. MUX_PG(ld2, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 2, 0x94, 4, -1, -1),
  2484. MUX_PG(ld3, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 3, 0x94, 6, -1, -1),
  2485. MUX_PG(ld4, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 4, 0x94, 8, -1, -1),
  2486. MUX_PG(ld5, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 5, 0x94, 10, -1, -1),
  2487. MUX_PG(ld6, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 6, 0x94, 12, -1, -1),
  2488. MUX_PG(ld7, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 7, 0x94, 14, -1, -1),
  2489. MUX_PG(ld8, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 8, 0x94, 16, -1, -1),
  2490. MUX_PG(ld9, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 9, 0x94, 18, -1, -1),
  2491. MUX_PG(ld10, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 10, 0x94, 20, -1, -1),
  2492. MUX_PG(ld11, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 11, 0x94, 22, -1, -1),
  2493. MUX_PG(ld12, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 12, 0x94, 24, -1, -1),
  2494. MUX_PG(ld13, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 13, 0x94, 26, -1, -1),
  2495. MUX_PG(ld14, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 14, 0x94, 28, -1, -1),
  2496. MUX_PG(ld15, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 15, 0x94, 30, -1, -1),
  2497. MUX_PG(ld16, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 16, 0x98, 0, -1, -1),
  2498. MUX_PG(ld17, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x1c, 17, 0x98, 2, -1, -1),
  2499. MUX_PG(ldc, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x1c, 30, 0x90, 14, -1, -1),
  2500. MUX_PG(ldi, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x20, 6, 0x98, 16, -1, -1),
  2501. MUX_PG(lhp0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x1c, 18, 0x98, 10, -1, -1),
  2502. MUX_PG(lhp1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x1c, 19, 0x98, 4, -1, -1),
  2503. MUX_PG(lhp2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x1c, 20, 0x98, 6, -1, -1),
  2504. MUX_PG(lhs, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x20, 7, 0x90, 22, -1, -1),
  2505. MUX_PG(lm0, DISPLAYA, DISPLAYB, SPI3, RSVD4, RSVD4, 0x1c, 24, 0x90, 26, -1, -1),
  2506. MUX_PG(lm1, DISPLAYA, DISPLAYB, RSVD3, CRT, RSVD3, 0x1c, 25, 0x90, 28, -1, -1),
  2507. MUX_PG(lpp, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x20, 8, 0x98, 14, -1, -1),
  2508. MUX_PG(lpw0, DISPLAYA, DISPLAYB, SPI3, HDMI, DISPLAYA, 0x20, 3, 0x90, 0, -1, -1),
  2509. MUX_PG(lpw1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x20, 4, 0x90, 2, -1, -1),
  2510. MUX_PG(lpw2, DISPLAYA, DISPLAYB, SPI3, HDMI, DISPLAYA, 0x20, 5, 0x90, 4, -1, -1),
  2511. MUX_PG(lsc0, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 27, 0x90, 18, -1, -1),
  2512. MUX_PG(lsc1, DISPLAYA, DISPLAYB, SPI3, HDMI, DISPLAYA, 0x1c, 28, 0x90, 20, -1, -1),
  2513. MUX_PG(lsck, DISPLAYA, DISPLAYB, SPI3, HDMI, DISPLAYA, 0x1c, 29, 0x90, 16, -1, -1),
  2514. MUX_PG(lsda, DISPLAYA, DISPLAYB, SPI3, HDMI, DISPLAYA, 0x20, 1, 0x90, 8, -1, -1),
  2515. MUX_PG(lsdi, DISPLAYA, DISPLAYB, SPI3, RSVD4, DISPLAYA, 0x20, 2, 0x90, 6, -1, -1),
  2516. MUX_PG(lspi, DISPLAYA, DISPLAYB, XIO, HDMI, DISPLAYA, 0x20, 0, 0x90, 10, -1, -1),
  2517. MUX_PG(lvp0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x1c, 21, 0x90, 30, -1, -1),
  2518. MUX_PG(lvp1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x1c, 22, 0x98, 8, -1, -1),
  2519. MUX_PG(lvs, DISPLAYA, DISPLAYB, XIO, RSVD4, RSVD4, 0x1c, 26, 0x90, 24, -1, -1),
  2520. MUX_PG(owc, OWR, RSVD2, RSVD3, RSVD4, OWR, 0x14, 31, 0x84, 8, 0xb0, 30),
  2521. MUX_PG(pmc, PWR_ON, PWR_INTR, RSVD3, RSVD4, PWR_ON, 0x14, 23, 0x98, 18, -1, -1),
  2522. MUX_PG(pta, I2C2, HDMI, GMI, RSVD4, RSVD4, 0x14, 24, 0x98, 22, 0xa4, 4),
  2523. MUX_PG(rm, I2C1, RSVD2, RSVD3, RSVD4, RSVD4, 0x14, 25, 0x80, 14, 0xa4, 0),
  2524. MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, PWM, 0x20, 15, 0x8c, 10, -1, -1),
  2525. MUX_PG(sdc, PWM, TWC, SDIO3, SPI3, TWC, 0x18, 1, 0x8c, 12, 0xac, 28),
  2526. MUX_PG(sdd, UARTA, PWM, SDIO3, SPI3, PWM, 0x18, 2, 0x8c, 14, 0xac, 30),
  2527. MUX_PG(sdio1, SDIO1, RSVD2, UARTE, UARTA, RSVD2, 0x14, 30, 0x80, 30, 0xb0, 18),
  2528. MUX_PG(slxa, PCIE, SPI4, SDIO3, SPI2, PCIE, 0x18, 3, 0x84, 6, 0xa4, 22),
  2529. MUX_PG(slxc, SPDIF, SPI4, SDIO3, SPI2, SPI4, 0x18, 5, 0x84, 10, 0xa4, 26),
  2530. MUX_PG(slxd, SPDIF, SPI4, SDIO3, SPI2, SPI4, 0x18, 6, 0x84, 12, 0xa4, 28),
  2531. MUX_PG(slxk, PCIE, SPI4, SDIO3, SPI2, PCIE, 0x18, 7, 0x84, 14, 0xa4, 30),
  2532. MUX_PG(spdi, SPDIF, RSVD2, I2C1, SDIO2, RSVD2, 0x18, 8, 0x8c, 8, 0xa4, 16),
  2533. MUX_PG(spdo, SPDIF, RSVD2, I2C1, SDIO2, RSVD2, 0x18, 9, 0x8c, 6, 0xa4, 18),
  2534. MUX_PG(spia, SPI1, SPI2, SPI3, GMI, GMI, 0x18, 10, 0x8c, 30, 0xa8, 4),
  2535. MUX_PG(spib, SPI1, SPI2, SPI3, GMI, GMI, 0x18, 11, 0x8c, 28, 0xa8, 6),
  2536. MUX_PG(spic, SPI1, SPI2, SPI3, GMI, GMI, 0x18, 12, 0x8c, 26, 0xa8, 8),
  2537. MUX_PG(spid, SPI2, SPI1, SPI2_ALT, GMI, GMI, 0x18, 13, 0x8c, 24, 0xa8, 10),
  2538. MUX_PG(spie, SPI2, SPI1, SPI2_ALT, GMI, GMI, 0x18, 14, 0x8c, 22, 0xa8, 12),
  2539. MUX_PG(spif, SPI3, SPI1, SPI2, RSVD4, RSVD4, 0x18, 15, 0x8c, 20, 0xa8, 14),
  2540. MUX_PG(spig, SPI3, SPI2, SPI2_ALT, I2C1, SPI2_ALT, 0x18, 16, 0x8c, 18, 0xa8, 16),
  2541. MUX_PG(spih, SPI3, SPI2, SPI2_ALT, I2C1, SPI2_ALT, 0x18, 17, 0x8c, 16, 0xa8, 18),
  2542. MUX_PG(uaa, SPI3, MIPI_HS, UARTA, ULPI, MIPI_HS, 0x18, 18, 0x80, 0, 0xac, 0),
  2543. MUX_PG(uab, SPI2, MIPI_HS, UARTA, ULPI, MIPI_HS, 0x18, 19, 0x80, 2, 0xac, 2),
  2544. MUX_PG(uac, OWR, RSVD2, RSVD3, RSVD4, RSVD4, 0x18, 20, 0x80, 4, 0xac, 4),
  2545. MUX_PG(uad, IRDA, SPDIF, UARTA, SPI4, SPDIF, 0x18, 21, 0x80, 6, 0xac, 6),
  2546. MUX_PG(uca, UARTC, RSVD2, GMI, RSVD4, RSVD4, 0x18, 22, 0x84, 16, 0xac, 8),
  2547. MUX_PG(ucb, UARTC, PWM, GMI, RSVD4, RSVD4, 0x18, 23, 0x84, 18, 0xac, 10),
  2548. MUX_PG(uda, SPI1, RSVD2, UARTD, ULPI, RSVD2, 0x20, 13, 0x80, 8, 0xb0, 16),
  2549. /* pg_name, pupd_r/b */
  2550. PULL_PG(ck32, 0xb0, 14),
  2551. PULL_PG(ddrc, 0xac, 26),
  2552. PULL_PG(pmca, 0xb0, 4),
  2553. PULL_PG(pmcb, 0xb0, 6),
  2554. PULL_PG(pmcc, 0xb0, 8),
  2555. PULL_PG(pmcd, 0xb0, 10),
  2556. PULL_PG(pmce, 0xb0, 12),
  2557. PULL_PG(xm2c, 0xa8, 30),
  2558. PULL_PG(xm2d, 0xa8, 28),
  2559. PULL_PG(ls, 0xac, 20),
  2560. PULL_PG(lc, 0xac, 22),
  2561. PULL_PG(ld17_0, 0xac, 12),
  2562. PULL_PG(ld19_18, 0xac, 14),
  2563. PULL_PG(ld21_20, 0xac, 16),
  2564. PULL_PG(ld23_22, 0xac, 18),
  2565. /* pg_name, r */
  2566. DRV_PG(ao1, 0x868),
  2567. DRV_PG(ao2, 0x86c),
  2568. DRV_PG(at1, 0x870),
  2569. DRV_PG(at2, 0x874),
  2570. DRV_PG(cdev1, 0x878),
  2571. DRV_PG(cdev2, 0x87c),
  2572. DRV_PG(csus, 0x880),
  2573. DRV_PG(dap1, 0x884),
  2574. DRV_PG(dap2, 0x888),
  2575. DRV_PG(dap3, 0x88c),
  2576. DRV_PG(dap4, 0x890),
  2577. DRV_PG(dbg, 0x894),
  2578. DRV_PG(lcd1, 0x898),
  2579. DRV_PG(lcd2, 0x89c),
  2580. DRV_PG(sdmmc2, 0x8a0),
  2581. DRV_PG(sdmmc3, 0x8a4),
  2582. DRV_PG(spi, 0x8a8),
  2583. DRV_PG(uaa, 0x8ac),
  2584. DRV_PG(uab, 0x8b0),
  2585. DRV_PG(uart2, 0x8b4),
  2586. DRV_PG(uart3, 0x8b8),
  2587. DRV_PG(vi1, 0x8bc),
  2588. DRV_PG(vi2, 0x8c0),
  2589. /* pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, drvup_b, slwr_b, slwr_w, slwf_b, slwf_w */
  2590. DRV_PG_EXT(xm2a, 0x8c4, -1, -1, 4, 14, 19, 24, 4, 28, 4),
  2591. DRV_PG_EXT(xm2c, 0x8c8, -1, 3, -1, 14, 19, 24, 4, 28, 4),
  2592. DRV_PG_EXT(xm2d, 0x8cc, -1, 3, -1, 14, 19, 24, 4, 28, 4),
  2593. DRV_PG_EXT(xm2clk, 0x8d0, -1, -1, -1, 14, 19, 24, 4, 28, 4),
  2594. /* pg_name, r */
  2595. DRV_PG(sdio1, 0x8e0),
  2596. DRV_PG(crt, 0x8ec),
  2597. DRV_PG(ddc, 0x8f0),
  2598. DRV_PG(gma, 0x8f4),
  2599. DRV_PG(gmb, 0x8f8),
  2600. DRV_PG(gmc, 0x8fc),
  2601. DRV_PG(gmd, 0x900),
  2602. DRV_PG(gme, 0x904),
  2603. DRV_PG(owr, 0x908),
  2604. DRV_PG(uda, 0x90c),
  2605. };
  2606. static const struct tegra_pinctrl_soc_data tegra20_pinctrl = {
  2607. .ngpios = NUM_GPIOS,
  2608. .pins = tegra20_pins,
  2609. .npins = ARRAY_SIZE(tegra20_pins),
  2610. .functions = tegra20_functions,
  2611. .nfunctions = ARRAY_SIZE(tegra20_functions),
  2612. .groups = tegra20_groups,
  2613. .ngroups = ARRAY_SIZE(tegra20_groups),
  2614. };
  2615. void __devinit tegra20_pinctrl_init(const struct tegra_pinctrl_soc_data **soc)
  2616. {
  2617. *soc = &tegra20_pinctrl;
  2618. }