pinctrl-tegra30.c 109 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727
  1. /*
  2. * Pinctrl data for the NVIDIA Tegra30 pinmux
  3. *
  4. * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. */
  15. #include <linux/platform_device.h>
  16. #include <linux/pinctrl/pinctrl.h>
  17. #include <linux/pinctrl/pinmux.h>
  18. #include "pinctrl-tegra.h"
  19. /*
  20. * Most pins affected by the pinmux can also be GPIOs. Define these first.
  21. * These must match how the GPIO driver names/numbers its pins.
  22. */
  23. #define _GPIO(offset) (offset)
  24. #define TEGRA_PIN_CLK_32K_OUT_PA0 _GPIO(0)
  25. #define TEGRA_PIN_UART3_CTS_N_PA1 _GPIO(1)
  26. #define TEGRA_PIN_DAP2_FS_PA2 _GPIO(2)
  27. #define TEGRA_PIN_DAP2_SCLK_PA3 _GPIO(3)
  28. #define TEGRA_PIN_DAP2_DIN_PA4 _GPIO(4)
  29. #define TEGRA_PIN_DAP2_DOUT_PA5 _GPIO(5)
  30. #define TEGRA_PIN_SDMMC3_CLK_PA6 _GPIO(6)
  31. #define TEGRA_PIN_SDMMC3_CMD_PA7 _GPIO(7)
  32. #define TEGRA_PIN_GMI_A17_PB0 _GPIO(8)
  33. #define TEGRA_PIN_GMI_A18_PB1 _GPIO(9)
  34. #define TEGRA_PIN_LCD_PWR0_PB2 _GPIO(10)
  35. #define TEGRA_PIN_LCD_PCLK_PB3 _GPIO(11)
  36. #define TEGRA_PIN_SDMMC3_DAT3_PB4 _GPIO(12)
  37. #define TEGRA_PIN_SDMMC3_DAT2_PB5 _GPIO(13)
  38. #define TEGRA_PIN_SDMMC3_DAT1_PB6 _GPIO(14)
  39. #define TEGRA_PIN_SDMMC3_DAT0_PB7 _GPIO(15)
  40. #define TEGRA_PIN_UART3_RTS_N_PC0 _GPIO(16)
  41. #define TEGRA_PIN_LCD_PWR1_PC1 _GPIO(17)
  42. #define TEGRA_PIN_UART2_TXD_PC2 _GPIO(18)
  43. #define TEGRA_PIN_UART2_RXD_PC3 _GPIO(19)
  44. #define TEGRA_PIN_GEN1_I2C_SCL_PC4 _GPIO(20)
  45. #define TEGRA_PIN_GEN1_I2C_SDA_PC5 _GPIO(21)
  46. #define TEGRA_PIN_LCD_PWR2_PC6 _GPIO(22)
  47. #define TEGRA_PIN_GMI_WP_N_PC7 _GPIO(23)
  48. #define TEGRA_PIN_SDMMC3_DAT5_PD0 _GPIO(24)
  49. #define TEGRA_PIN_SDMMC3_DAT4_PD1 _GPIO(25)
  50. #define TEGRA_PIN_LCD_DC1_PD2 _GPIO(26)
  51. #define TEGRA_PIN_SDMMC3_DAT6_PD3 _GPIO(27)
  52. #define TEGRA_PIN_SDMMC3_DAT7_PD4 _GPIO(28)
  53. #define TEGRA_PIN_VI_D1_PD5 _GPIO(29)
  54. #define TEGRA_PIN_VI_VSYNC_PD6 _GPIO(30)
  55. #define TEGRA_PIN_VI_HSYNC_PD7 _GPIO(31)
  56. #define TEGRA_PIN_LCD_D0_PE0 _GPIO(32)
  57. #define TEGRA_PIN_LCD_D1_PE1 _GPIO(33)
  58. #define TEGRA_PIN_LCD_D2_PE2 _GPIO(34)
  59. #define TEGRA_PIN_LCD_D3_PE3 _GPIO(35)
  60. #define TEGRA_PIN_LCD_D4_PE4 _GPIO(36)
  61. #define TEGRA_PIN_LCD_D5_PE5 _GPIO(37)
  62. #define TEGRA_PIN_LCD_D6_PE6 _GPIO(38)
  63. #define TEGRA_PIN_LCD_D7_PE7 _GPIO(39)
  64. #define TEGRA_PIN_LCD_D8_PF0 _GPIO(40)
  65. #define TEGRA_PIN_LCD_D9_PF1 _GPIO(41)
  66. #define TEGRA_PIN_LCD_D10_PF2 _GPIO(42)
  67. #define TEGRA_PIN_LCD_D11_PF3 _GPIO(43)
  68. #define TEGRA_PIN_LCD_D12_PF4 _GPIO(44)
  69. #define TEGRA_PIN_LCD_D13_PF5 _GPIO(45)
  70. #define TEGRA_PIN_LCD_D14_PF6 _GPIO(46)
  71. #define TEGRA_PIN_LCD_D15_PF7 _GPIO(47)
  72. #define TEGRA_PIN_GMI_AD0_PG0 _GPIO(48)
  73. #define TEGRA_PIN_GMI_AD1_PG1 _GPIO(49)
  74. #define TEGRA_PIN_GMI_AD2_PG2 _GPIO(50)
  75. #define TEGRA_PIN_GMI_AD3_PG3 _GPIO(51)
  76. #define TEGRA_PIN_GMI_AD4_PG4 _GPIO(52)
  77. #define TEGRA_PIN_GMI_AD5_PG5 _GPIO(53)
  78. #define TEGRA_PIN_GMI_AD6_PG6 _GPIO(54)
  79. #define TEGRA_PIN_GMI_AD7_PG7 _GPIO(55)
  80. #define TEGRA_PIN_GMI_AD8_PH0 _GPIO(56)
  81. #define TEGRA_PIN_GMI_AD9_PH1 _GPIO(57)
  82. #define TEGRA_PIN_GMI_AD10_PH2 _GPIO(58)
  83. #define TEGRA_PIN_GMI_AD11_PH3 _GPIO(59)
  84. #define TEGRA_PIN_GMI_AD12_PH4 _GPIO(60)
  85. #define TEGRA_PIN_GMI_AD13_PH5 _GPIO(61)
  86. #define TEGRA_PIN_GMI_AD14_PH6 _GPIO(62)
  87. #define TEGRA_PIN_GMI_AD15_PH7 _GPIO(63)
  88. #define TEGRA_PIN_GMI_WR_N_PI0 _GPIO(64)
  89. #define TEGRA_PIN_GMI_OE_N_PI1 _GPIO(65)
  90. #define TEGRA_PIN_GMI_DQS_PI2 _GPIO(66)
  91. #define TEGRA_PIN_GMI_CS6_N_PI3 _GPIO(67)
  92. #define TEGRA_PIN_GMI_RST_N_PI4 _GPIO(68)
  93. #define TEGRA_PIN_GMI_IORDY_PI5 _GPIO(69)
  94. #define TEGRA_PIN_GMI_CS7_N_PI6 _GPIO(70)
  95. #define TEGRA_PIN_GMI_WAIT_PI7 _GPIO(71)
  96. #define TEGRA_PIN_GMI_CS0_N_PJ0 _GPIO(72)
  97. #define TEGRA_PIN_LCD_DE_PJ1 _GPIO(73)
  98. #define TEGRA_PIN_GMI_CS1_N_PJ2 _GPIO(74)
  99. #define TEGRA_PIN_LCD_HSYNC_PJ3 _GPIO(75)
  100. #define TEGRA_PIN_LCD_VSYNC_PJ4 _GPIO(76)
  101. #define TEGRA_PIN_UART2_CTS_N_PJ5 _GPIO(77)
  102. #define TEGRA_PIN_UART2_RTS_N_PJ6 _GPIO(78)
  103. #define TEGRA_PIN_GMI_A16_PJ7 _GPIO(79)
  104. #define TEGRA_PIN_GMI_ADV_N_PK0 _GPIO(80)
  105. #define TEGRA_PIN_GMI_CLK_PK1 _GPIO(81)
  106. #define TEGRA_PIN_GMI_CS4_N_PK2 _GPIO(82)
  107. #define TEGRA_PIN_GMI_CS2_N_PK3 _GPIO(83)
  108. #define TEGRA_PIN_GMI_CS3_N_PK4 _GPIO(84)
  109. #define TEGRA_PIN_SPDIF_OUT_PK5 _GPIO(85)
  110. #define TEGRA_PIN_SPDIF_IN_PK6 _GPIO(86)
  111. #define TEGRA_PIN_GMI_A19_PK7 _GPIO(87)
  112. #define TEGRA_PIN_VI_D2_PL0 _GPIO(88)
  113. #define TEGRA_PIN_VI_D3_PL1 _GPIO(89)
  114. #define TEGRA_PIN_VI_D4_PL2 _GPIO(90)
  115. #define TEGRA_PIN_VI_D5_PL3 _GPIO(91)
  116. #define TEGRA_PIN_VI_D6_PL4 _GPIO(92)
  117. #define TEGRA_PIN_VI_D7_PL5 _GPIO(93)
  118. #define TEGRA_PIN_VI_D8_PL6 _GPIO(94)
  119. #define TEGRA_PIN_VI_D9_PL7 _GPIO(95)
  120. #define TEGRA_PIN_LCD_D16_PM0 _GPIO(96)
  121. #define TEGRA_PIN_LCD_D17_PM1 _GPIO(97)
  122. #define TEGRA_PIN_LCD_D18_PM2 _GPIO(98)
  123. #define TEGRA_PIN_LCD_D19_PM3 _GPIO(99)
  124. #define TEGRA_PIN_LCD_D20_PM4 _GPIO(100)
  125. #define TEGRA_PIN_LCD_D21_PM5 _GPIO(101)
  126. #define TEGRA_PIN_LCD_D22_PM6 _GPIO(102)
  127. #define TEGRA_PIN_LCD_D23_PM7 _GPIO(103)
  128. #define TEGRA_PIN_DAP1_FS_PN0 _GPIO(104)
  129. #define TEGRA_PIN_DAP1_DIN_PN1 _GPIO(105)
  130. #define TEGRA_PIN_DAP1_DOUT_PN2 _GPIO(106)
  131. #define TEGRA_PIN_DAP1_SCLK_PN3 _GPIO(107)
  132. #define TEGRA_PIN_LCD_CS0_N_PN4 _GPIO(108)
  133. #define TEGRA_PIN_LCD_SDOUT_PN5 _GPIO(109)
  134. #define TEGRA_PIN_LCD_DC0_PN6 _GPIO(110)
  135. #define TEGRA_PIN_HDMI_INT_PN7 _GPIO(111)
  136. #define TEGRA_PIN_ULPI_DATA7_PO0 _GPIO(112)
  137. #define TEGRA_PIN_ULPI_DATA0_PO1 _GPIO(113)
  138. #define TEGRA_PIN_ULPI_DATA1_PO2 _GPIO(114)
  139. #define TEGRA_PIN_ULPI_DATA2_PO3 _GPIO(115)
  140. #define TEGRA_PIN_ULPI_DATA3_PO4 _GPIO(116)
  141. #define TEGRA_PIN_ULPI_DATA4_PO5 _GPIO(117)
  142. #define TEGRA_PIN_ULPI_DATA5_PO6 _GPIO(118)
  143. #define TEGRA_PIN_ULPI_DATA6_PO7 _GPIO(119)
  144. #define TEGRA_PIN_DAP3_FS_PP0 _GPIO(120)
  145. #define TEGRA_PIN_DAP3_DIN_PP1 _GPIO(121)
  146. #define TEGRA_PIN_DAP3_DOUT_PP2 _GPIO(122)
  147. #define TEGRA_PIN_DAP3_SCLK_PP3 _GPIO(123)
  148. #define TEGRA_PIN_DAP4_FS_PP4 _GPIO(124)
  149. #define TEGRA_PIN_DAP4_DIN_PP5 _GPIO(125)
  150. #define TEGRA_PIN_DAP4_DOUT_PP6 _GPIO(126)
  151. #define TEGRA_PIN_DAP4_SCLK_PP7 _GPIO(127)
  152. #define TEGRA_PIN_KB_COL0_PQ0 _GPIO(128)
  153. #define TEGRA_PIN_KB_COL1_PQ1 _GPIO(129)
  154. #define TEGRA_PIN_KB_COL2_PQ2 _GPIO(130)
  155. #define TEGRA_PIN_KB_COL3_PQ3 _GPIO(131)
  156. #define TEGRA_PIN_KB_COL4_PQ4 _GPIO(132)
  157. #define TEGRA_PIN_KB_COL5_PQ5 _GPIO(133)
  158. #define TEGRA_PIN_KB_COL6_PQ6 _GPIO(134)
  159. #define TEGRA_PIN_KB_COL7_PQ7 _GPIO(135)
  160. #define TEGRA_PIN_KB_ROW0_PR0 _GPIO(136)
  161. #define TEGRA_PIN_KB_ROW1_PR1 _GPIO(137)
  162. #define TEGRA_PIN_KB_ROW2_PR2 _GPIO(138)
  163. #define TEGRA_PIN_KB_ROW3_PR3 _GPIO(139)
  164. #define TEGRA_PIN_KB_ROW4_PR4 _GPIO(140)
  165. #define TEGRA_PIN_KB_ROW5_PR5 _GPIO(141)
  166. #define TEGRA_PIN_KB_ROW6_PR6 _GPIO(142)
  167. #define TEGRA_PIN_KB_ROW7_PR7 _GPIO(143)
  168. #define TEGRA_PIN_KB_ROW8_PS0 _GPIO(144)
  169. #define TEGRA_PIN_KB_ROW9_PS1 _GPIO(145)
  170. #define TEGRA_PIN_KB_ROW10_PS2 _GPIO(146)
  171. #define TEGRA_PIN_KB_ROW11_PS3 _GPIO(147)
  172. #define TEGRA_PIN_KB_ROW12_PS4 _GPIO(148)
  173. #define TEGRA_PIN_KB_ROW13_PS5 _GPIO(149)
  174. #define TEGRA_PIN_KB_ROW14_PS6 _GPIO(150)
  175. #define TEGRA_PIN_KB_ROW15_PS7 _GPIO(151)
  176. #define TEGRA_PIN_VI_PCLK_PT0 _GPIO(152)
  177. #define TEGRA_PIN_VI_MCLK_PT1 _GPIO(153)
  178. #define TEGRA_PIN_VI_D10_PT2 _GPIO(154)
  179. #define TEGRA_PIN_VI_D11_PT3 _GPIO(155)
  180. #define TEGRA_PIN_VI_D0_PT4 _GPIO(156)
  181. #define TEGRA_PIN_GEN2_I2C_SCL_PT5 _GPIO(157)
  182. #define TEGRA_PIN_GEN2_I2C_SDA_PT6 _GPIO(158)
  183. #define TEGRA_PIN_SDMMC4_CMD_PT7 _GPIO(159)
  184. #define TEGRA_PIN_PU0 _GPIO(160)
  185. #define TEGRA_PIN_PU1 _GPIO(161)
  186. #define TEGRA_PIN_PU2 _GPIO(162)
  187. #define TEGRA_PIN_PU3 _GPIO(163)
  188. #define TEGRA_PIN_PU4 _GPIO(164)
  189. #define TEGRA_PIN_PU5 _GPIO(165)
  190. #define TEGRA_PIN_PU6 _GPIO(166)
  191. #define TEGRA_PIN_JTAG_RTCK_PU7 _GPIO(167)
  192. #define TEGRA_PIN_PV0 _GPIO(168)
  193. #define TEGRA_PIN_PV1 _GPIO(169)
  194. #define TEGRA_PIN_PV2 _GPIO(170)
  195. #define TEGRA_PIN_PV3 _GPIO(171)
  196. #define TEGRA_PIN_DDC_SCL_PV4 _GPIO(172)
  197. #define TEGRA_PIN_DDC_SDA_PV5 _GPIO(173)
  198. #define TEGRA_PIN_CRT_HSYNC_PV6 _GPIO(174)
  199. #define TEGRA_PIN_CRT_VSYNC_PV7 _GPIO(175)
  200. #define TEGRA_PIN_LCD_CS1_N_PW0 _GPIO(176)
  201. #define TEGRA_PIN_LCD_M1_PW1 _GPIO(177)
  202. #define TEGRA_PIN_SPI2_CS1_N_PW2 _GPIO(178)
  203. #define TEGRA_PIN_SPI2_CS2_N_PW3 _GPIO(179)
  204. #define TEGRA_PIN_CLK1_OUT_PW4 _GPIO(180)
  205. #define TEGRA_PIN_CLK2_OUT_PW5 _GPIO(181)
  206. #define TEGRA_PIN_UART3_TXD_PW6 _GPIO(182)
  207. #define TEGRA_PIN_UART3_RXD_PW7 _GPIO(183)
  208. #define TEGRA_PIN_SPI2_MOSI_PX0 _GPIO(184)
  209. #define TEGRA_PIN_SPI2_MISO_PX1 _GPIO(185)
  210. #define TEGRA_PIN_SPI2_SCK_PX2 _GPIO(186)
  211. #define TEGRA_PIN_SPI2_CS0_N_PX3 _GPIO(187)
  212. #define TEGRA_PIN_SPI1_MOSI_PX4 _GPIO(188)
  213. #define TEGRA_PIN_SPI1_SCK_PX5 _GPIO(189)
  214. #define TEGRA_PIN_SPI1_CS0_N_PX6 _GPIO(190)
  215. #define TEGRA_PIN_SPI1_MISO_PX7 _GPIO(191)
  216. #define TEGRA_PIN_ULPI_CLK_PY0 _GPIO(192)
  217. #define TEGRA_PIN_ULPI_DIR_PY1 _GPIO(193)
  218. #define TEGRA_PIN_ULPI_NXT_PY2 _GPIO(194)
  219. #define TEGRA_PIN_ULPI_STP_PY3 _GPIO(195)
  220. #define TEGRA_PIN_SDMMC1_DAT3_PY4 _GPIO(196)
  221. #define TEGRA_PIN_SDMMC1_DAT2_PY5 _GPIO(197)
  222. #define TEGRA_PIN_SDMMC1_DAT1_PY6 _GPIO(198)
  223. #define TEGRA_PIN_SDMMC1_DAT0_PY7 _GPIO(199)
  224. #define TEGRA_PIN_SDMMC1_CLK_PZ0 _GPIO(200)
  225. #define TEGRA_PIN_SDMMC1_CMD_PZ1 _GPIO(201)
  226. #define TEGRA_PIN_LCD_SDIN_PZ2 _GPIO(202)
  227. #define TEGRA_PIN_LCD_WR_N_PZ3 _GPIO(203)
  228. #define TEGRA_PIN_LCD_SCK_PZ4 _GPIO(204)
  229. #define TEGRA_PIN_SYS_CLK_REQ_PZ5 _GPIO(205)
  230. #define TEGRA_PIN_PWR_I2C_SCL_PZ6 _GPIO(206)
  231. #define TEGRA_PIN_PWR_I2C_SDA_PZ7 _GPIO(207)
  232. #define TEGRA_PIN_SDMMC4_DAT0_PAA0 _GPIO(208)
  233. #define TEGRA_PIN_SDMMC4_DAT1_PAA1 _GPIO(209)
  234. #define TEGRA_PIN_SDMMC4_DAT2_PAA2 _GPIO(210)
  235. #define TEGRA_PIN_SDMMC4_DAT3_PAA3 _GPIO(211)
  236. #define TEGRA_PIN_SDMMC4_DAT4_PAA4 _GPIO(212)
  237. #define TEGRA_PIN_SDMMC4_DAT5_PAA5 _GPIO(213)
  238. #define TEGRA_PIN_SDMMC4_DAT6_PAA6 _GPIO(214)
  239. #define TEGRA_PIN_SDMMC4_DAT7_PAA7 _GPIO(215)
  240. #define TEGRA_PIN_PBB0 _GPIO(216)
  241. #define TEGRA_PIN_CAM_I2C_SCL_PBB1 _GPIO(217)
  242. #define TEGRA_PIN_CAM_I2C_SDA_PBB2 _GPIO(218)
  243. #define TEGRA_PIN_PBB3 _GPIO(219)
  244. #define TEGRA_PIN_PBB4 _GPIO(220)
  245. #define TEGRA_PIN_PBB5 _GPIO(221)
  246. #define TEGRA_PIN_PBB6 _GPIO(222)
  247. #define TEGRA_PIN_PBB7 _GPIO(223)
  248. #define TEGRA_PIN_CAM_MCLK_PCC0 _GPIO(224)
  249. #define TEGRA_PIN_PCC1 _GPIO(225)
  250. #define TEGRA_PIN_PCC2 _GPIO(226)
  251. #define TEGRA_PIN_SDMMC4_RST_N_PCC3 _GPIO(227)
  252. #define TEGRA_PIN_SDMMC4_CLK_PCC4 _GPIO(228)
  253. #define TEGRA_PIN_CLK2_REQ_PCC5 _GPIO(229)
  254. #define TEGRA_PIN_PEX_L2_RST_N_PCC6 _GPIO(230)
  255. #define TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7 _GPIO(231)
  256. #define TEGRA_PIN_PEX_L0_PRSNT_N_PDD0 _GPIO(232)
  257. #define TEGRA_PIN_PEX_L0_RST_N_PDD1 _GPIO(233)
  258. #define TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2 _GPIO(234)
  259. #define TEGRA_PIN_PEX_WAKE_N_PDD3 _GPIO(235)
  260. #define TEGRA_PIN_PEX_L1_PRSNT_N_PDD4 _GPIO(236)
  261. #define TEGRA_PIN_PEX_L1_RST_N_PDD5 _GPIO(237)
  262. #define TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6 _GPIO(238)
  263. #define TEGRA_PIN_PEX_L2_PRSNT_N_PDD7 _GPIO(239)
  264. #define TEGRA_PIN_CLK3_OUT_PEE0 _GPIO(240)
  265. #define TEGRA_PIN_CLK3_REQ_PEE1 _GPIO(241)
  266. #define TEGRA_PIN_CLK1_REQ_PEE2 _GPIO(242)
  267. #define TEGRA_PIN_HDMI_CEC_PEE3 _GPIO(243)
  268. #define TEGRA_PIN_PEE4 _GPIO(244)
  269. #define TEGRA_PIN_PEE5 _GPIO(245)
  270. #define TEGRA_PIN_PEE6 _GPIO(246)
  271. #define TEGRA_PIN_PEE7 _GPIO(247)
  272. /* All non-GPIO pins follow */
  273. #define NUM_GPIOS (TEGRA_PIN_PEE7 + 1)
  274. #define _PIN(offset) (NUM_GPIOS + (offset))
  275. /* Non-GPIO pins */
  276. #define TEGRA_PIN_CLK_32K_IN _PIN(0)
  277. #define TEGRA_PIN_CORE_PWR_REQ _PIN(1)
  278. #define TEGRA_PIN_CPU_PWR_REQ _PIN(2)
  279. #define TEGRA_PIN_JTAG_TCK _PIN(3)
  280. #define TEGRA_PIN_JTAG_TDI _PIN(4)
  281. #define TEGRA_PIN_JTAG_TDO _PIN(5)
  282. #define TEGRA_PIN_JTAG_TMS _PIN(6)
  283. #define TEGRA_PIN_JTAG_TRST_N _PIN(7)
  284. #define TEGRA_PIN_OWR _PIN(8)
  285. #define TEGRA_PIN_PWR_INT_N _PIN(9)
  286. #define TEGRA_PIN_SYS_RESET_N _PIN(10)
  287. #define TEGRA_PIN_TEST_MODE_EN _PIN(11)
  288. static const struct pinctrl_pin_desc tegra30_pins[] = {
  289. PINCTRL_PIN(TEGRA_PIN_CLK_32K_OUT_PA0, "CLK_32K_OUT PA0"),
  290. PINCTRL_PIN(TEGRA_PIN_UART3_CTS_N_PA1, "UART3_CTS_N PA1"),
  291. PINCTRL_PIN(TEGRA_PIN_DAP2_FS_PA2, "DAP2_FS PA2"),
  292. PINCTRL_PIN(TEGRA_PIN_DAP2_SCLK_PA3, "DAP2_SCLK PA3"),
  293. PINCTRL_PIN(TEGRA_PIN_DAP2_DIN_PA4, "DAP2_DIN PA4"),
  294. PINCTRL_PIN(TEGRA_PIN_DAP2_DOUT_PA5, "DAP2_DOUT PA5"),
  295. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_PA6, "SDMMC3_CLK PA6"),
  296. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CMD_PA7, "SDMMC3_CMD PA7"),
  297. PINCTRL_PIN(TEGRA_PIN_GMI_A17_PB0, "GMI_A17 PB0"),
  298. PINCTRL_PIN(TEGRA_PIN_GMI_A18_PB1, "GMI_A18 PB1"),
  299. PINCTRL_PIN(TEGRA_PIN_LCD_PWR0_PB2, "LCD_PWR0 PB2"),
  300. PINCTRL_PIN(TEGRA_PIN_LCD_PCLK_PB3, "LCD_PCLK PB3"),
  301. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT3_PB4, "SDMMC3_DAT3 PB4"),
  302. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT2_PB5, "SDMMC3_DAT2 PB5"),
  303. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT1_PB6, "SDMMC3_DAT1 PB6"),
  304. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT0_PB7, "SDMMC3_DAT0 PB7"),
  305. PINCTRL_PIN(TEGRA_PIN_UART3_RTS_N_PC0, "UART3_RTS_N PC0"),
  306. PINCTRL_PIN(TEGRA_PIN_LCD_PWR1_PC1, "LCD_PWR1 PC1"),
  307. PINCTRL_PIN(TEGRA_PIN_UART2_TXD_PC2, "UART2_TXD PC2"),
  308. PINCTRL_PIN(TEGRA_PIN_UART2_RXD_PC3, "UART2_RXD PC3"),
  309. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PC4, "GEN1_I2C_SCL PC4"),
  310. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PC5, "GEN1_I2C_SDA PC5"),
  311. PINCTRL_PIN(TEGRA_PIN_LCD_PWR2_PC6, "LCD_PWR2 PC6"),
  312. PINCTRL_PIN(TEGRA_PIN_GMI_WP_N_PC7, "GMI_WP_N PC7"),
  313. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT5_PD0, "SDMMC3_DAT5 PD0"),
  314. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT4_PD1, "SDMMC3_DAT4 PD1"),
  315. PINCTRL_PIN(TEGRA_PIN_LCD_DC1_PD2, "LCD_DC1 PD2"),
  316. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT6_PD3, "SDMMC3_DAT6 PD3"),
  317. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT7_PD4, "SDMMC3_DAT7 PD4"),
  318. PINCTRL_PIN(TEGRA_PIN_VI_D1_PD5, "VI_D1 PD5"),
  319. PINCTRL_PIN(TEGRA_PIN_VI_VSYNC_PD6, "VI_VSYNC PD6"),
  320. PINCTRL_PIN(TEGRA_PIN_VI_HSYNC_PD7, "VI_HSYNC PD7"),
  321. PINCTRL_PIN(TEGRA_PIN_LCD_D0_PE0, "LCD_D0 PE0"),
  322. PINCTRL_PIN(TEGRA_PIN_LCD_D1_PE1, "LCD_D1 PE1"),
  323. PINCTRL_PIN(TEGRA_PIN_LCD_D2_PE2, "LCD_D2 PE2"),
  324. PINCTRL_PIN(TEGRA_PIN_LCD_D3_PE3, "LCD_D3 PE3"),
  325. PINCTRL_PIN(TEGRA_PIN_LCD_D4_PE4, "LCD_D4 PE4"),
  326. PINCTRL_PIN(TEGRA_PIN_LCD_D5_PE5, "LCD_D5 PE5"),
  327. PINCTRL_PIN(TEGRA_PIN_LCD_D6_PE6, "LCD_D6 PE6"),
  328. PINCTRL_PIN(TEGRA_PIN_LCD_D7_PE7, "LCD_D7 PE7"),
  329. PINCTRL_PIN(TEGRA_PIN_LCD_D8_PF0, "LCD_D8 PF0"),
  330. PINCTRL_PIN(TEGRA_PIN_LCD_D9_PF1, "LCD_D9 PF1"),
  331. PINCTRL_PIN(TEGRA_PIN_LCD_D10_PF2, "LCD_D10 PF2"),
  332. PINCTRL_PIN(TEGRA_PIN_LCD_D11_PF3, "LCD_D11 PF3"),
  333. PINCTRL_PIN(TEGRA_PIN_LCD_D12_PF4, "LCD_D12 PF4"),
  334. PINCTRL_PIN(TEGRA_PIN_LCD_D13_PF5, "LCD_D13 PF5"),
  335. PINCTRL_PIN(TEGRA_PIN_LCD_D14_PF6, "LCD_D14 PF6"),
  336. PINCTRL_PIN(TEGRA_PIN_LCD_D15_PF7, "LCD_D15 PF7"),
  337. PINCTRL_PIN(TEGRA_PIN_GMI_AD0_PG0, "GMI_AD0 PG0"),
  338. PINCTRL_PIN(TEGRA_PIN_GMI_AD1_PG1, "GMI_AD1 PG1"),
  339. PINCTRL_PIN(TEGRA_PIN_GMI_AD2_PG2, "GMI_AD2 PG2"),
  340. PINCTRL_PIN(TEGRA_PIN_GMI_AD3_PG3, "GMI_AD3 PG3"),
  341. PINCTRL_PIN(TEGRA_PIN_GMI_AD4_PG4, "GMI_AD4 PG4"),
  342. PINCTRL_PIN(TEGRA_PIN_GMI_AD5_PG5, "GMI_AD5 PG5"),
  343. PINCTRL_PIN(TEGRA_PIN_GMI_AD6_PG6, "GMI_AD6 PG6"),
  344. PINCTRL_PIN(TEGRA_PIN_GMI_AD7_PG7, "GMI_AD7 PG7"),
  345. PINCTRL_PIN(TEGRA_PIN_GMI_AD8_PH0, "GMI_AD8 PH0"),
  346. PINCTRL_PIN(TEGRA_PIN_GMI_AD9_PH1, "GMI_AD9 PH1"),
  347. PINCTRL_PIN(TEGRA_PIN_GMI_AD10_PH2, "GMI_AD10 PH2"),
  348. PINCTRL_PIN(TEGRA_PIN_GMI_AD11_PH3, "GMI_AD11 PH3"),
  349. PINCTRL_PIN(TEGRA_PIN_GMI_AD12_PH4, "GMI_AD12 PH4"),
  350. PINCTRL_PIN(TEGRA_PIN_GMI_AD13_PH5, "GMI_AD13 PH5"),
  351. PINCTRL_PIN(TEGRA_PIN_GMI_AD14_PH6, "GMI_AD14 PH6"),
  352. PINCTRL_PIN(TEGRA_PIN_GMI_AD15_PH7, "GMI_AD15 PH7"),
  353. PINCTRL_PIN(TEGRA_PIN_GMI_WR_N_PI0, "GMI_WR_N PI0"),
  354. PINCTRL_PIN(TEGRA_PIN_GMI_OE_N_PI1, "GMI_OE_N PI1"),
  355. PINCTRL_PIN(TEGRA_PIN_GMI_DQS_PI2, "GMI_DQS PI2"),
  356. PINCTRL_PIN(TEGRA_PIN_GMI_CS6_N_PI3, "GMI_CS6_N PI3"),
  357. PINCTRL_PIN(TEGRA_PIN_GMI_RST_N_PI4, "GMI_RST_N PI4"),
  358. PINCTRL_PIN(TEGRA_PIN_GMI_IORDY_PI5, "GMI_IORDY PI5"),
  359. PINCTRL_PIN(TEGRA_PIN_GMI_CS7_N_PI6, "GMI_CS7_N PI6"),
  360. PINCTRL_PIN(TEGRA_PIN_GMI_WAIT_PI7, "GMI_WAIT PI7"),
  361. PINCTRL_PIN(TEGRA_PIN_GMI_CS0_N_PJ0, "GMI_CS0_N PJ0"),
  362. PINCTRL_PIN(TEGRA_PIN_LCD_DE_PJ1, "LCD_DE PJ1"),
  363. PINCTRL_PIN(TEGRA_PIN_GMI_CS1_N_PJ2, "GMI_CS1_N PJ2"),
  364. PINCTRL_PIN(TEGRA_PIN_LCD_HSYNC_PJ3, "LCD_HSYNC PJ3"),
  365. PINCTRL_PIN(TEGRA_PIN_LCD_VSYNC_PJ4, "LCD_VSYNC PJ4"),
  366. PINCTRL_PIN(TEGRA_PIN_UART2_CTS_N_PJ5, "UART2_CTS_N PJ5"),
  367. PINCTRL_PIN(TEGRA_PIN_UART2_RTS_N_PJ6, "UART2_RTS_N PJ6"),
  368. PINCTRL_PIN(TEGRA_PIN_GMI_A16_PJ7, "GMI_A16 PJ7"),
  369. PINCTRL_PIN(TEGRA_PIN_GMI_ADV_N_PK0, "GMI_ADV_N PK0"),
  370. PINCTRL_PIN(TEGRA_PIN_GMI_CLK_PK1, "GMI_CLK PK1"),
  371. PINCTRL_PIN(TEGRA_PIN_GMI_CS4_N_PK2, "GMI_CS4_N PK2"),
  372. PINCTRL_PIN(TEGRA_PIN_GMI_CS2_N_PK3, "GMI_CS2_N PK3"),
  373. PINCTRL_PIN(TEGRA_PIN_GMI_CS3_N_PK4, "GMI_CS3_N PK4"),
  374. PINCTRL_PIN(TEGRA_PIN_SPDIF_OUT_PK5, "SPDIF_OUT PK5"),
  375. PINCTRL_PIN(TEGRA_PIN_SPDIF_IN_PK6, "SPDIF_IN PK6"),
  376. PINCTRL_PIN(TEGRA_PIN_GMI_A19_PK7, "GMI_A19 PK7"),
  377. PINCTRL_PIN(TEGRA_PIN_VI_D2_PL0, "VI_D2 PL0"),
  378. PINCTRL_PIN(TEGRA_PIN_VI_D3_PL1, "VI_D3 PL1"),
  379. PINCTRL_PIN(TEGRA_PIN_VI_D4_PL2, "VI_D4 PL2"),
  380. PINCTRL_PIN(TEGRA_PIN_VI_D5_PL3, "VI_D5 PL3"),
  381. PINCTRL_PIN(TEGRA_PIN_VI_D6_PL4, "VI_D6 PL4"),
  382. PINCTRL_PIN(TEGRA_PIN_VI_D7_PL5, "VI_D7 PL5"),
  383. PINCTRL_PIN(TEGRA_PIN_VI_D8_PL6, "VI_D8 PL6"),
  384. PINCTRL_PIN(TEGRA_PIN_VI_D9_PL7, "VI_D9 PL7"),
  385. PINCTRL_PIN(TEGRA_PIN_LCD_D16_PM0, "LCD_D16 PM0"),
  386. PINCTRL_PIN(TEGRA_PIN_LCD_D17_PM1, "LCD_D17 PM1"),
  387. PINCTRL_PIN(TEGRA_PIN_LCD_D18_PM2, "LCD_D18 PM2"),
  388. PINCTRL_PIN(TEGRA_PIN_LCD_D19_PM3, "LCD_D19 PM3"),
  389. PINCTRL_PIN(TEGRA_PIN_LCD_D20_PM4, "LCD_D20 PM4"),
  390. PINCTRL_PIN(TEGRA_PIN_LCD_D21_PM5, "LCD_D21 PM5"),
  391. PINCTRL_PIN(TEGRA_PIN_LCD_D22_PM6, "LCD_D22 PM6"),
  392. PINCTRL_PIN(TEGRA_PIN_LCD_D23_PM7, "LCD_D23 PM7"),
  393. PINCTRL_PIN(TEGRA_PIN_DAP1_FS_PN0, "DAP1_FS PN0"),
  394. PINCTRL_PIN(TEGRA_PIN_DAP1_DIN_PN1, "DAP1_DIN PN1"),
  395. PINCTRL_PIN(TEGRA_PIN_DAP1_DOUT_PN2, "DAP1_DOUT PN2"),
  396. PINCTRL_PIN(TEGRA_PIN_DAP1_SCLK_PN3, "DAP1_SCLK PN3"),
  397. PINCTRL_PIN(TEGRA_PIN_LCD_CS0_N_PN4, "LCD_CS0_N PN4"),
  398. PINCTRL_PIN(TEGRA_PIN_LCD_SDOUT_PN5, "LCD_SDOUT PN5"),
  399. PINCTRL_PIN(TEGRA_PIN_LCD_DC0_PN6, "LCD_DC0 PN6"),
  400. PINCTRL_PIN(TEGRA_PIN_HDMI_INT_PN7, "HDMI_INT PN7"),
  401. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA7_PO0, "ULPI_DATA7 PO0"),
  402. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA0_PO1, "ULPI_DATA0 PO1"),
  403. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA1_PO2, "ULPI_DATA1 PO2"),
  404. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA2_PO3, "ULPI_DATA2 PO3"),
  405. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA3_PO4, "ULPI_DATA3 PO4"),
  406. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA4_PO5, "ULPI_DATA4 PO5"),
  407. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA5_PO6, "ULPI_DATA5 PO6"),
  408. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA6_PO7, "ULPI_DATA6 PO7"),
  409. PINCTRL_PIN(TEGRA_PIN_DAP3_FS_PP0, "DAP3_FS PP0"),
  410. PINCTRL_PIN(TEGRA_PIN_DAP3_DIN_PP1, "DAP3_DIN PP1"),
  411. PINCTRL_PIN(TEGRA_PIN_DAP3_DOUT_PP2, "DAP3_DOUT PP2"),
  412. PINCTRL_PIN(TEGRA_PIN_DAP3_SCLK_PP3, "DAP3_SCLK PP3"),
  413. PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PP4, "DAP4_FS PP4"),
  414. PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PP5, "DAP4_DIN PP5"),
  415. PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PP6, "DAP4_DOUT PP6"),
  416. PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PP7, "DAP4_SCLK PP7"),
  417. PINCTRL_PIN(TEGRA_PIN_KB_COL0_PQ0, "KB_COL0 PQ0"),
  418. PINCTRL_PIN(TEGRA_PIN_KB_COL1_PQ1, "KB_COL1 PQ1"),
  419. PINCTRL_PIN(TEGRA_PIN_KB_COL2_PQ2, "KB_COL2 PQ2"),
  420. PINCTRL_PIN(TEGRA_PIN_KB_COL3_PQ3, "KB_COL3 PQ3"),
  421. PINCTRL_PIN(TEGRA_PIN_KB_COL4_PQ4, "KB_COL4 PQ4"),
  422. PINCTRL_PIN(TEGRA_PIN_KB_COL5_PQ5, "KB_COL5 PQ5"),
  423. PINCTRL_PIN(TEGRA_PIN_KB_COL6_PQ6, "KB_COL6 PQ6"),
  424. PINCTRL_PIN(TEGRA_PIN_KB_COL7_PQ7, "KB_COL7 PQ7"),
  425. PINCTRL_PIN(TEGRA_PIN_KB_ROW0_PR0, "KB_ROW0 PR0"),
  426. PINCTRL_PIN(TEGRA_PIN_KB_ROW1_PR1, "KB_ROW1 PR1"),
  427. PINCTRL_PIN(TEGRA_PIN_KB_ROW2_PR2, "KB_ROW2 PR2"),
  428. PINCTRL_PIN(TEGRA_PIN_KB_ROW3_PR3, "KB_ROW3 PR3"),
  429. PINCTRL_PIN(TEGRA_PIN_KB_ROW4_PR4, "KB_ROW4 PR4"),
  430. PINCTRL_PIN(TEGRA_PIN_KB_ROW5_PR5, "KB_ROW5 PR5"),
  431. PINCTRL_PIN(TEGRA_PIN_KB_ROW6_PR6, "KB_ROW6 PR6"),
  432. PINCTRL_PIN(TEGRA_PIN_KB_ROW7_PR7, "KB_ROW7 PR7"),
  433. PINCTRL_PIN(TEGRA_PIN_KB_ROW8_PS0, "KB_ROW8 PS0"),
  434. PINCTRL_PIN(TEGRA_PIN_KB_ROW9_PS1, "KB_ROW9 PS1"),
  435. PINCTRL_PIN(TEGRA_PIN_KB_ROW10_PS2, "KB_ROW10 PS2"),
  436. PINCTRL_PIN(TEGRA_PIN_KB_ROW11_PS3, "KB_ROW11 PS3"),
  437. PINCTRL_PIN(TEGRA_PIN_KB_ROW12_PS4, "KB_ROW12 PS4"),
  438. PINCTRL_PIN(TEGRA_PIN_KB_ROW13_PS5, "KB_ROW13 PS5"),
  439. PINCTRL_PIN(TEGRA_PIN_KB_ROW14_PS6, "KB_ROW14 PS6"),
  440. PINCTRL_PIN(TEGRA_PIN_KB_ROW15_PS7, "KB_ROW15 PS7"),
  441. PINCTRL_PIN(TEGRA_PIN_VI_PCLK_PT0, "VI_PCLK PT0"),
  442. PINCTRL_PIN(TEGRA_PIN_VI_MCLK_PT1, "VI_MCLK PT1"),
  443. PINCTRL_PIN(TEGRA_PIN_VI_D10_PT2, "VI_D10 PT2"),
  444. PINCTRL_PIN(TEGRA_PIN_VI_D11_PT3, "VI_D11 PT3"),
  445. PINCTRL_PIN(TEGRA_PIN_VI_D0_PT4, "VI_D0 PT4"),
  446. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PT5, "GEN2_I2C_SCL PT5"),
  447. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PT6, "GEN2_I2C_SDA PT6"),
  448. PINCTRL_PIN(TEGRA_PIN_SDMMC4_CMD_PT7, "SDMMC4_CMD PT7"),
  449. PINCTRL_PIN(TEGRA_PIN_PU0, "PU0"),
  450. PINCTRL_PIN(TEGRA_PIN_PU1, "PU1"),
  451. PINCTRL_PIN(TEGRA_PIN_PU2, "PU2"),
  452. PINCTRL_PIN(TEGRA_PIN_PU3, "PU3"),
  453. PINCTRL_PIN(TEGRA_PIN_PU4, "PU4"),
  454. PINCTRL_PIN(TEGRA_PIN_PU5, "PU5"),
  455. PINCTRL_PIN(TEGRA_PIN_PU6, "PU6"),
  456. PINCTRL_PIN(TEGRA_PIN_JTAG_RTCK_PU7, "JTAG_RTCK PU7"),
  457. PINCTRL_PIN(TEGRA_PIN_PV0, "PV0"),
  458. PINCTRL_PIN(TEGRA_PIN_PV1, "PV1"),
  459. PINCTRL_PIN(TEGRA_PIN_PV2, "PV2"),
  460. PINCTRL_PIN(TEGRA_PIN_PV3, "PV3"),
  461. PINCTRL_PIN(TEGRA_PIN_DDC_SCL_PV4, "DDC_SCL PV4"),
  462. PINCTRL_PIN(TEGRA_PIN_DDC_SDA_PV5, "DDC_SDA PV5"),
  463. PINCTRL_PIN(TEGRA_PIN_CRT_HSYNC_PV6, "CRT_HSYNC PV6"),
  464. PINCTRL_PIN(TEGRA_PIN_CRT_VSYNC_PV7, "CRT_VSYNC PV7"),
  465. PINCTRL_PIN(TEGRA_PIN_LCD_CS1_N_PW0, "LCD_CS1_N PW0"),
  466. PINCTRL_PIN(TEGRA_PIN_LCD_M1_PW1, "LCD_M1 PW1"),
  467. PINCTRL_PIN(TEGRA_PIN_SPI2_CS1_N_PW2, "SPI2_CS1_N PW2"),
  468. PINCTRL_PIN(TEGRA_PIN_SPI2_CS2_N_PW3, "SPI2_CS2_N PW3"),
  469. PINCTRL_PIN(TEGRA_PIN_CLK1_OUT_PW4, "CLK1_OUT PW4"),
  470. PINCTRL_PIN(TEGRA_PIN_CLK2_OUT_PW5, "CLK2_OUT PW5"),
  471. PINCTRL_PIN(TEGRA_PIN_UART3_TXD_PW6, "UART3_TXD PW6"),
  472. PINCTRL_PIN(TEGRA_PIN_UART3_RXD_PW7, "UART3_RXD PW7"),
  473. PINCTRL_PIN(TEGRA_PIN_SPI2_MOSI_PX0, "SPI2_MOSI PX0"),
  474. PINCTRL_PIN(TEGRA_PIN_SPI2_MISO_PX1, "SPI2_MISO PX1"),
  475. PINCTRL_PIN(TEGRA_PIN_SPI2_SCK_PX2, "SPI2_SCK PX2"),
  476. PINCTRL_PIN(TEGRA_PIN_SPI2_CS0_N_PX3, "SPI2_CS0_N PX3"),
  477. PINCTRL_PIN(TEGRA_PIN_SPI1_MOSI_PX4, "SPI1_MOSI PX4"),
  478. PINCTRL_PIN(TEGRA_PIN_SPI1_SCK_PX5, "SPI1_SCK PX5"),
  479. PINCTRL_PIN(TEGRA_PIN_SPI1_CS0_N_PX6, "SPI1_CS0_N PX6"),
  480. PINCTRL_PIN(TEGRA_PIN_SPI1_MISO_PX7, "SPI1_MISO PX7"),
  481. PINCTRL_PIN(TEGRA_PIN_ULPI_CLK_PY0, "ULPI_CLK PY0"),
  482. PINCTRL_PIN(TEGRA_PIN_ULPI_DIR_PY1, "ULPI_DIR PY1"),
  483. PINCTRL_PIN(TEGRA_PIN_ULPI_NXT_PY2, "ULPI_NXT PY2"),
  484. PINCTRL_PIN(TEGRA_PIN_ULPI_STP_PY3, "ULPI_STP PY3"),
  485. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT3_PY4, "SDMMC1_DAT3 PY4"),
  486. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT2_PY5, "SDMMC1_DAT2 PY5"),
  487. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT1_PY6, "SDMMC1_DAT1 PY6"),
  488. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT0_PY7, "SDMMC1_DAT0 PY7"),
  489. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CLK_PZ0, "SDMMC1_CLK PZ0"),
  490. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CMD_PZ1, "SDMMC1_CMD PZ1"),
  491. PINCTRL_PIN(TEGRA_PIN_LCD_SDIN_PZ2, "LCD_SDIN PZ2"),
  492. PINCTRL_PIN(TEGRA_PIN_LCD_WR_N_PZ3, "LCD_WR_N PZ3"),
  493. PINCTRL_PIN(TEGRA_PIN_LCD_SCK_PZ4, "LCD_SCK PZ4"),
  494. PINCTRL_PIN(TEGRA_PIN_SYS_CLK_REQ_PZ5, "SYS_CLK_REQ PZ5"),
  495. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PZ6, "PWR_I2C_SCL PZ6"),
  496. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PZ7, "PWR_I2C_SDA PZ7"),
  497. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT0_PAA0, "SDMMC4_DAT0 PAA0"),
  498. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT1_PAA1, "SDMMC4_DAT1 PAA1"),
  499. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT2_PAA2, "SDMMC4_DAT2 PAA2"),
  500. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT3_PAA3, "SDMMC4_DAT3 PAA3"),
  501. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT4_PAA4, "SDMMC4_DAT4 PAA4"),
  502. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT5_PAA5, "SDMMC4_DAT5 PAA5"),
  503. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT6_PAA6, "SDMMC4_DAT6 PAA6"),
  504. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT7_PAA7, "SDMMC4_DAT7 PAA7"),
  505. PINCTRL_PIN(TEGRA_PIN_PBB0, "PBB0"),
  506. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PBB1, "CAM_I2C_SCL PBB1"),
  507. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PBB2, "CAM_I2C_SDA PBB2"),
  508. PINCTRL_PIN(TEGRA_PIN_PBB3, "PBB3"),
  509. PINCTRL_PIN(TEGRA_PIN_PBB4, "PBB4"),
  510. PINCTRL_PIN(TEGRA_PIN_PBB5, "PBB5"),
  511. PINCTRL_PIN(TEGRA_PIN_PBB6, "PBB6"),
  512. PINCTRL_PIN(TEGRA_PIN_PBB7, "PBB7"),
  513. PINCTRL_PIN(TEGRA_PIN_CAM_MCLK_PCC0, "CAM_MCLK PCC0"),
  514. PINCTRL_PIN(TEGRA_PIN_PCC1, "PCC1"),
  515. PINCTRL_PIN(TEGRA_PIN_PCC2, "PCC2"),
  516. PINCTRL_PIN(TEGRA_PIN_SDMMC4_RST_N_PCC3, "SDMMC4_RST_N PCC3"),
  517. PINCTRL_PIN(TEGRA_PIN_SDMMC4_CLK_PCC4, "SDMMC4_CLK PCC4"),
  518. PINCTRL_PIN(TEGRA_PIN_CLK2_REQ_PCC5, "CLK2_REQ PCC5"),
  519. PINCTRL_PIN(TEGRA_PIN_PEX_L2_RST_N_PCC6, "PEX_L2_RST_N PCC6"),
  520. PINCTRL_PIN(TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7, "PEX_L2_CLKREQ_N PCC7"),
  521. PINCTRL_PIN(TEGRA_PIN_PEX_L0_PRSNT_N_PDD0, "PEX_L0_PRSNT_N PDD0"),
  522. PINCTRL_PIN(TEGRA_PIN_PEX_L0_RST_N_PDD1, "PEX_L0_RST_N PDD1"),
  523. PINCTRL_PIN(TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2, "PEX_L0_CLKREQ_N PDD2"),
  524. PINCTRL_PIN(TEGRA_PIN_PEX_WAKE_N_PDD3, "PEX_WAKE_N PDD3"),
  525. PINCTRL_PIN(TEGRA_PIN_PEX_L1_PRSNT_N_PDD4, "PEX_L1_PRSNT_N PDD4"),
  526. PINCTRL_PIN(TEGRA_PIN_PEX_L1_RST_N_PDD5, "PEX_L1_RST_N PDD5"),
  527. PINCTRL_PIN(TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6, "PEX_L1_CLKREQ_N PDD6"),
  528. PINCTRL_PIN(TEGRA_PIN_PEX_L2_PRSNT_N_PDD7, "PEX_L2_PRSNT_N PDD7"),
  529. PINCTRL_PIN(TEGRA_PIN_CLK3_OUT_PEE0, "CLK3_OUT PEE0"),
  530. PINCTRL_PIN(TEGRA_PIN_CLK3_REQ_PEE1, "CLK3_REQ PEE1"),
  531. PINCTRL_PIN(TEGRA_PIN_CLK1_REQ_PEE2, "CLK1_REQ PEE2"),
  532. PINCTRL_PIN(TEGRA_PIN_HDMI_CEC_PEE3, "HDMI_CEC PEE3"),
  533. PINCTRL_PIN(TEGRA_PIN_PEE4, "PEE4"),
  534. PINCTRL_PIN(TEGRA_PIN_PEE5, "PEE5"),
  535. PINCTRL_PIN(TEGRA_PIN_PEE6, "PEE6"),
  536. PINCTRL_PIN(TEGRA_PIN_PEE7, "PEE7"),
  537. PINCTRL_PIN(TEGRA_PIN_CLK_32K_IN, "CLK_32K_IN"),
  538. PINCTRL_PIN(TEGRA_PIN_CORE_PWR_REQ, "CORE_PWR_REQ"),
  539. PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ, "CPU_PWR_REQ"),
  540. PINCTRL_PIN(TEGRA_PIN_JTAG_TCK, "JTAG_TCK"),
  541. PINCTRL_PIN(TEGRA_PIN_JTAG_TDI, "JTAG_TDI"),
  542. PINCTRL_PIN(TEGRA_PIN_JTAG_TDO, "JTAG_TDO"),
  543. PINCTRL_PIN(TEGRA_PIN_JTAG_TMS, "JTAG_TMS"),
  544. PINCTRL_PIN(TEGRA_PIN_JTAG_TRST_N, "JTAG_TRST_N"),
  545. PINCTRL_PIN(TEGRA_PIN_OWR, "OWR"),
  546. PINCTRL_PIN(TEGRA_PIN_PWR_INT_N, "PWR_INT_N"),
  547. PINCTRL_PIN(TEGRA_PIN_SYS_RESET_N, "SYS_RESET_N"),
  548. PINCTRL_PIN(TEGRA_PIN_TEST_MODE_EN, "TEST_MODE_EN"),
  549. };
  550. static const unsigned clk_32k_out_pa0_pins[] = {
  551. TEGRA_PIN_CLK_32K_OUT_PA0,
  552. };
  553. static const unsigned uart3_cts_n_pa1_pins[] = {
  554. TEGRA_PIN_UART3_CTS_N_PA1,
  555. };
  556. static const unsigned dap2_fs_pa2_pins[] = {
  557. TEGRA_PIN_DAP2_FS_PA2,
  558. };
  559. static const unsigned dap2_sclk_pa3_pins[] = {
  560. TEGRA_PIN_DAP2_SCLK_PA3,
  561. };
  562. static const unsigned dap2_din_pa4_pins[] = {
  563. TEGRA_PIN_DAP2_DIN_PA4,
  564. };
  565. static const unsigned dap2_dout_pa5_pins[] = {
  566. TEGRA_PIN_DAP2_DOUT_PA5,
  567. };
  568. static const unsigned sdmmc3_clk_pa6_pins[] = {
  569. TEGRA_PIN_SDMMC3_CLK_PA6,
  570. };
  571. static const unsigned sdmmc3_cmd_pa7_pins[] = {
  572. TEGRA_PIN_SDMMC3_CMD_PA7,
  573. };
  574. static const unsigned gmi_a17_pb0_pins[] = {
  575. TEGRA_PIN_GMI_A17_PB0,
  576. };
  577. static const unsigned gmi_a18_pb1_pins[] = {
  578. TEGRA_PIN_GMI_A18_PB1,
  579. };
  580. static const unsigned lcd_pwr0_pb2_pins[] = {
  581. TEGRA_PIN_LCD_PWR0_PB2,
  582. };
  583. static const unsigned lcd_pclk_pb3_pins[] = {
  584. TEGRA_PIN_LCD_PCLK_PB3,
  585. };
  586. static const unsigned sdmmc3_dat3_pb4_pins[] = {
  587. TEGRA_PIN_SDMMC3_DAT3_PB4,
  588. };
  589. static const unsigned sdmmc3_dat2_pb5_pins[] = {
  590. TEGRA_PIN_SDMMC3_DAT2_PB5,
  591. };
  592. static const unsigned sdmmc3_dat1_pb6_pins[] = {
  593. TEGRA_PIN_SDMMC3_DAT1_PB6,
  594. };
  595. static const unsigned sdmmc3_dat0_pb7_pins[] = {
  596. TEGRA_PIN_SDMMC3_DAT0_PB7,
  597. };
  598. static const unsigned uart3_rts_n_pc0_pins[] = {
  599. TEGRA_PIN_UART3_RTS_N_PC0,
  600. };
  601. static const unsigned lcd_pwr1_pc1_pins[] = {
  602. TEGRA_PIN_LCD_PWR1_PC1,
  603. };
  604. static const unsigned uart2_txd_pc2_pins[] = {
  605. TEGRA_PIN_UART2_TXD_PC2,
  606. };
  607. static const unsigned uart2_rxd_pc3_pins[] = {
  608. TEGRA_PIN_UART2_RXD_PC3,
  609. };
  610. static const unsigned gen1_i2c_scl_pc4_pins[] = {
  611. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  612. };
  613. static const unsigned gen1_i2c_sda_pc5_pins[] = {
  614. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  615. };
  616. static const unsigned lcd_pwr2_pc6_pins[] = {
  617. TEGRA_PIN_LCD_PWR2_PC6,
  618. };
  619. static const unsigned gmi_wp_n_pc7_pins[] = {
  620. TEGRA_PIN_GMI_WP_N_PC7,
  621. };
  622. static const unsigned sdmmc3_dat5_pd0_pins[] = {
  623. TEGRA_PIN_SDMMC3_DAT5_PD0,
  624. };
  625. static const unsigned sdmmc3_dat4_pd1_pins[] = {
  626. TEGRA_PIN_SDMMC3_DAT4_PD1,
  627. };
  628. static const unsigned lcd_dc1_pd2_pins[] = {
  629. TEGRA_PIN_LCD_DC1_PD2,
  630. };
  631. static const unsigned sdmmc3_dat6_pd3_pins[] = {
  632. TEGRA_PIN_SDMMC3_DAT6_PD3,
  633. };
  634. static const unsigned sdmmc3_dat7_pd4_pins[] = {
  635. TEGRA_PIN_SDMMC3_DAT7_PD4,
  636. };
  637. static const unsigned vi_d1_pd5_pins[] = {
  638. TEGRA_PIN_VI_D1_PD5,
  639. };
  640. static const unsigned vi_vsync_pd6_pins[] = {
  641. TEGRA_PIN_VI_VSYNC_PD6,
  642. };
  643. static const unsigned vi_hsync_pd7_pins[] = {
  644. TEGRA_PIN_VI_HSYNC_PD7,
  645. };
  646. static const unsigned lcd_d0_pe0_pins[] = {
  647. TEGRA_PIN_LCD_D0_PE0,
  648. };
  649. static const unsigned lcd_d1_pe1_pins[] = {
  650. TEGRA_PIN_LCD_D1_PE1,
  651. };
  652. static const unsigned lcd_d2_pe2_pins[] = {
  653. TEGRA_PIN_LCD_D2_PE2,
  654. };
  655. static const unsigned lcd_d3_pe3_pins[] = {
  656. TEGRA_PIN_LCD_D3_PE3,
  657. };
  658. static const unsigned lcd_d4_pe4_pins[] = {
  659. TEGRA_PIN_LCD_D4_PE4,
  660. };
  661. static const unsigned lcd_d5_pe5_pins[] = {
  662. TEGRA_PIN_LCD_D5_PE5,
  663. };
  664. static const unsigned lcd_d6_pe6_pins[] = {
  665. TEGRA_PIN_LCD_D6_PE6,
  666. };
  667. static const unsigned lcd_d7_pe7_pins[] = {
  668. TEGRA_PIN_LCD_D7_PE7,
  669. };
  670. static const unsigned lcd_d8_pf0_pins[] = {
  671. TEGRA_PIN_LCD_D8_PF0,
  672. };
  673. static const unsigned lcd_d9_pf1_pins[] = {
  674. TEGRA_PIN_LCD_D9_PF1,
  675. };
  676. static const unsigned lcd_d10_pf2_pins[] = {
  677. TEGRA_PIN_LCD_D10_PF2,
  678. };
  679. static const unsigned lcd_d11_pf3_pins[] = {
  680. TEGRA_PIN_LCD_D11_PF3,
  681. };
  682. static const unsigned lcd_d12_pf4_pins[] = {
  683. TEGRA_PIN_LCD_D12_PF4,
  684. };
  685. static const unsigned lcd_d13_pf5_pins[] = {
  686. TEGRA_PIN_LCD_D13_PF5,
  687. };
  688. static const unsigned lcd_d14_pf6_pins[] = {
  689. TEGRA_PIN_LCD_D14_PF6,
  690. };
  691. static const unsigned lcd_d15_pf7_pins[] = {
  692. TEGRA_PIN_LCD_D15_PF7,
  693. };
  694. static const unsigned gmi_ad0_pg0_pins[] = {
  695. TEGRA_PIN_GMI_AD0_PG0,
  696. };
  697. static const unsigned gmi_ad1_pg1_pins[] = {
  698. TEGRA_PIN_GMI_AD1_PG1,
  699. };
  700. static const unsigned gmi_ad2_pg2_pins[] = {
  701. TEGRA_PIN_GMI_AD2_PG2,
  702. };
  703. static const unsigned gmi_ad3_pg3_pins[] = {
  704. TEGRA_PIN_GMI_AD3_PG3,
  705. };
  706. static const unsigned gmi_ad4_pg4_pins[] = {
  707. TEGRA_PIN_GMI_AD4_PG4,
  708. };
  709. static const unsigned gmi_ad5_pg5_pins[] = {
  710. TEGRA_PIN_GMI_AD5_PG5,
  711. };
  712. static const unsigned gmi_ad6_pg6_pins[] = {
  713. TEGRA_PIN_GMI_AD6_PG6,
  714. };
  715. static const unsigned gmi_ad7_pg7_pins[] = {
  716. TEGRA_PIN_GMI_AD7_PG7,
  717. };
  718. static const unsigned gmi_ad8_ph0_pins[] = {
  719. TEGRA_PIN_GMI_AD8_PH0,
  720. };
  721. static const unsigned gmi_ad9_ph1_pins[] = {
  722. TEGRA_PIN_GMI_AD9_PH1,
  723. };
  724. static const unsigned gmi_ad10_ph2_pins[] = {
  725. TEGRA_PIN_GMI_AD10_PH2,
  726. };
  727. static const unsigned gmi_ad11_ph3_pins[] = {
  728. TEGRA_PIN_GMI_AD11_PH3,
  729. };
  730. static const unsigned gmi_ad12_ph4_pins[] = {
  731. TEGRA_PIN_GMI_AD12_PH4,
  732. };
  733. static const unsigned gmi_ad13_ph5_pins[] = {
  734. TEGRA_PIN_GMI_AD13_PH5,
  735. };
  736. static const unsigned gmi_ad14_ph6_pins[] = {
  737. TEGRA_PIN_GMI_AD14_PH6,
  738. };
  739. static const unsigned gmi_ad15_ph7_pins[] = {
  740. TEGRA_PIN_GMI_AD15_PH7,
  741. };
  742. static const unsigned gmi_wr_n_pi0_pins[] = {
  743. TEGRA_PIN_GMI_WR_N_PI0,
  744. };
  745. static const unsigned gmi_oe_n_pi1_pins[] = {
  746. TEGRA_PIN_GMI_OE_N_PI1,
  747. };
  748. static const unsigned gmi_dqs_pi2_pins[] = {
  749. TEGRA_PIN_GMI_DQS_PI2,
  750. };
  751. static const unsigned gmi_cs6_n_pi3_pins[] = {
  752. TEGRA_PIN_GMI_CS6_N_PI3,
  753. };
  754. static const unsigned gmi_rst_n_pi4_pins[] = {
  755. TEGRA_PIN_GMI_RST_N_PI4,
  756. };
  757. static const unsigned gmi_iordy_pi5_pins[] = {
  758. TEGRA_PIN_GMI_IORDY_PI5,
  759. };
  760. static const unsigned gmi_cs7_n_pi6_pins[] = {
  761. TEGRA_PIN_GMI_CS7_N_PI6,
  762. };
  763. static const unsigned gmi_wait_pi7_pins[] = {
  764. TEGRA_PIN_GMI_WAIT_PI7,
  765. };
  766. static const unsigned gmi_cs0_n_pj0_pins[] = {
  767. TEGRA_PIN_GMI_CS0_N_PJ0,
  768. };
  769. static const unsigned lcd_de_pj1_pins[] = {
  770. TEGRA_PIN_LCD_DE_PJ1,
  771. };
  772. static const unsigned gmi_cs1_n_pj2_pins[] = {
  773. TEGRA_PIN_GMI_CS1_N_PJ2,
  774. };
  775. static const unsigned lcd_hsync_pj3_pins[] = {
  776. TEGRA_PIN_LCD_HSYNC_PJ3,
  777. };
  778. static const unsigned lcd_vsync_pj4_pins[] = {
  779. TEGRA_PIN_LCD_VSYNC_PJ4,
  780. };
  781. static const unsigned uart2_cts_n_pj5_pins[] = {
  782. TEGRA_PIN_UART2_CTS_N_PJ5,
  783. };
  784. static const unsigned uart2_rts_n_pj6_pins[] = {
  785. TEGRA_PIN_UART2_RTS_N_PJ6,
  786. };
  787. static const unsigned gmi_a16_pj7_pins[] = {
  788. TEGRA_PIN_GMI_A16_PJ7,
  789. };
  790. static const unsigned gmi_adv_n_pk0_pins[] = {
  791. TEGRA_PIN_GMI_ADV_N_PK0,
  792. };
  793. static const unsigned gmi_clk_pk1_pins[] = {
  794. TEGRA_PIN_GMI_CLK_PK1,
  795. };
  796. static const unsigned gmi_cs4_n_pk2_pins[] = {
  797. TEGRA_PIN_GMI_CS4_N_PK2,
  798. };
  799. static const unsigned gmi_cs2_n_pk3_pins[] = {
  800. TEGRA_PIN_GMI_CS2_N_PK3,
  801. };
  802. static const unsigned gmi_cs3_n_pk4_pins[] = {
  803. TEGRA_PIN_GMI_CS3_N_PK4,
  804. };
  805. static const unsigned spdif_out_pk5_pins[] = {
  806. TEGRA_PIN_SPDIF_OUT_PK5,
  807. };
  808. static const unsigned spdif_in_pk6_pins[] = {
  809. TEGRA_PIN_SPDIF_IN_PK6,
  810. };
  811. static const unsigned gmi_a19_pk7_pins[] = {
  812. TEGRA_PIN_GMI_A19_PK7,
  813. };
  814. static const unsigned vi_d2_pl0_pins[] = {
  815. TEGRA_PIN_VI_D2_PL0,
  816. };
  817. static const unsigned vi_d3_pl1_pins[] = {
  818. TEGRA_PIN_VI_D3_PL1,
  819. };
  820. static const unsigned vi_d4_pl2_pins[] = {
  821. TEGRA_PIN_VI_D4_PL2,
  822. };
  823. static const unsigned vi_d5_pl3_pins[] = {
  824. TEGRA_PIN_VI_D5_PL3,
  825. };
  826. static const unsigned vi_d6_pl4_pins[] = {
  827. TEGRA_PIN_VI_D6_PL4,
  828. };
  829. static const unsigned vi_d7_pl5_pins[] = {
  830. TEGRA_PIN_VI_D7_PL5,
  831. };
  832. static const unsigned vi_d8_pl6_pins[] = {
  833. TEGRA_PIN_VI_D8_PL6,
  834. };
  835. static const unsigned vi_d9_pl7_pins[] = {
  836. TEGRA_PIN_VI_D9_PL7,
  837. };
  838. static const unsigned lcd_d16_pm0_pins[] = {
  839. TEGRA_PIN_LCD_D16_PM0,
  840. };
  841. static const unsigned lcd_d17_pm1_pins[] = {
  842. TEGRA_PIN_LCD_D17_PM1,
  843. };
  844. static const unsigned lcd_d18_pm2_pins[] = {
  845. TEGRA_PIN_LCD_D18_PM2,
  846. };
  847. static const unsigned lcd_d19_pm3_pins[] = {
  848. TEGRA_PIN_LCD_D19_PM3,
  849. };
  850. static const unsigned lcd_d20_pm4_pins[] = {
  851. TEGRA_PIN_LCD_D20_PM4,
  852. };
  853. static const unsigned lcd_d21_pm5_pins[] = {
  854. TEGRA_PIN_LCD_D21_PM5,
  855. };
  856. static const unsigned lcd_d22_pm6_pins[] = {
  857. TEGRA_PIN_LCD_D22_PM6,
  858. };
  859. static const unsigned lcd_d23_pm7_pins[] = {
  860. TEGRA_PIN_LCD_D23_PM7,
  861. };
  862. static const unsigned dap1_fs_pn0_pins[] = {
  863. TEGRA_PIN_DAP1_FS_PN0,
  864. };
  865. static const unsigned dap1_din_pn1_pins[] = {
  866. TEGRA_PIN_DAP1_DIN_PN1,
  867. };
  868. static const unsigned dap1_dout_pn2_pins[] = {
  869. TEGRA_PIN_DAP1_DOUT_PN2,
  870. };
  871. static const unsigned dap1_sclk_pn3_pins[] = {
  872. TEGRA_PIN_DAP1_SCLK_PN3,
  873. };
  874. static const unsigned lcd_cs0_n_pn4_pins[] = {
  875. TEGRA_PIN_LCD_CS0_N_PN4,
  876. };
  877. static const unsigned lcd_sdout_pn5_pins[] = {
  878. TEGRA_PIN_LCD_SDOUT_PN5,
  879. };
  880. static const unsigned lcd_dc0_pn6_pins[] = {
  881. TEGRA_PIN_LCD_DC0_PN6,
  882. };
  883. static const unsigned hdmi_int_pn7_pins[] = {
  884. TEGRA_PIN_HDMI_INT_PN7,
  885. };
  886. static const unsigned ulpi_data7_po0_pins[] = {
  887. TEGRA_PIN_ULPI_DATA7_PO0,
  888. };
  889. static const unsigned ulpi_data0_po1_pins[] = {
  890. TEGRA_PIN_ULPI_DATA0_PO1,
  891. };
  892. static const unsigned ulpi_data1_po2_pins[] = {
  893. TEGRA_PIN_ULPI_DATA1_PO2,
  894. };
  895. static const unsigned ulpi_data2_po3_pins[] = {
  896. TEGRA_PIN_ULPI_DATA2_PO3,
  897. };
  898. static const unsigned ulpi_data3_po4_pins[] = {
  899. TEGRA_PIN_ULPI_DATA3_PO4,
  900. };
  901. static const unsigned ulpi_data4_po5_pins[] = {
  902. TEGRA_PIN_ULPI_DATA4_PO5,
  903. };
  904. static const unsigned ulpi_data5_po6_pins[] = {
  905. TEGRA_PIN_ULPI_DATA5_PO6,
  906. };
  907. static const unsigned ulpi_data6_po7_pins[] = {
  908. TEGRA_PIN_ULPI_DATA6_PO7,
  909. };
  910. static const unsigned dap3_fs_pp0_pins[] = {
  911. TEGRA_PIN_DAP3_FS_PP0,
  912. };
  913. static const unsigned dap3_din_pp1_pins[] = {
  914. TEGRA_PIN_DAP3_DIN_PP1,
  915. };
  916. static const unsigned dap3_dout_pp2_pins[] = {
  917. TEGRA_PIN_DAP3_DOUT_PP2,
  918. };
  919. static const unsigned dap3_sclk_pp3_pins[] = {
  920. TEGRA_PIN_DAP3_SCLK_PP3,
  921. };
  922. static const unsigned dap4_fs_pp4_pins[] = {
  923. TEGRA_PIN_DAP4_FS_PP4,
  924. };
  925. static const unsigned dap4_din_pp5_pins[] = {
  926. TEGRA_PIN_DAP4_DIN_PP5,
  927. };
  928. static const unsigned dap4_dout_pp6_pins[] = {
  929. TEGRA_PIN_DAP4_DOUT_PP6,
  930. };
  931. static const unsigned dap4_sclk_pp7_pins[] = {
  932. TEGRA_PIN_DAP4_SCLK_PP7,
  933. };
  934. static const unsigned kb_col0_pq0_pins[] = {
  935. TEGRA_PIN_KB_COL0_PQ0,
  936. };
  937. static const unsigned kb_col1_pq1_pins[] = {
  938. TEGRA_PIN_KB_COL1_PQ1,
  939. };
  940. static const unsigned kb_col2_pq2_pins[] = {
  941. TEGRA_PIN_KB_COL2_PQ2,
  942. };
  943. static const unsigned kb_col3_pq3_pins[] = {
  944. TEGRA_PIN_KB_COL3_PQ3,
  945. };
  946. static const unsigned kb_col4_pq4_pins[] = {
  947. TEGRA_PIN_KB_COL4_PQ4,
  948. };
  949. static const unsigned kb_col5_pq5_pins[] = {
  950. TEGRA_PIN_KB_COL5_PQ5,
  951. };
  952. static const unsigned kb_col6_pq6_pins[] = {
  953. TEGRA_PIN_KB_COL6_PQ6,
  954. };
  955. static const unsigned kb_col7_pq7_pins[] = {
  956. TEGRA_PIN_KB_COL7_PQ7,
  957. };
  958. static const unsigned kb_row0_pr0_pins[] = {
  959. TEGRA_PIN_KB_ROW0_PR0,
  960. };
  961. static const unsigned kb_row1_pr1_pins[] = {
  962. TEGRA_PIN_KB_ROW1_PR1,
  963. };
  964. static const unsigned kb_row2_pr2_pins[] = {
  965. TEGRA_PIN_KB_ROW2_PR2,
  966. };
  967. static const unsigned kb_row3_pr3_pins[] = {
  968. TEGRA_PIN_KB_ROW3_PR3,
  969. };
  970. static const unsigned kb_row4_pr4_pins[] = {
  971. TEGRA_PIN_KB_ROW4_PR4,
  972. };
  973. static const unsigned kb_row5_pr5_pins[] = {
  974. TEGRA_PIN_KB_ROW5_PR5,
  975. };
  976. static const unsigned kb_row6_pr6_pins[] = {
  977. TEGRA_PIN_KB_ROW6_PR6,
  978. };
  979. static const unsigned kb_row7_pr7_pins[] = {
  980. TEGRA_PIN_KB_ROW7_PR7,
  981. };
  982. static const unsigned kb_row8_ps0_pins[] = {
  983. TEGRA_PIN_KB_ROW8_PS0,
  984. };
  985. static const unsigned kb_row9_ps1_pins[] = {
  986. TEGRA_PIN_KB_ROW9_PS1,
  987. };
  988. static const unsigned kb_row10_ps2_pins[] = {
  989. TEGRA_PIN_KB_ROW10_PS2,
  990. };
  991. static const unsigned kb_row11_ps3_pins[] = {
  992. TEGRA_PIN_KB_ROW11_PS3,
  993. };
  994. static const unsigned kb_row12_ps4_pins[] = {
  995. TEGRA_PIN_KB_ROW12_PS4,
  996. };
  997. static const unsigned kb_row13_ps5_pins[] = {
  998. TEGRA_PIN_KB_ROW13_PS5,
  999. };
  1000. static const unsigned kb_row14_ps6_pins[] = {
  1001. TEGRA_PIN_KB_ROW14_PS6,
  1002. };
  1003. static const unsigned kb_row15_ps7_pins[] = {
  1004. TEGRA_PIN_KB_ROW15_PS7,
  1005. };
  1006. static const unsigned vi_pclk_pt0_pins[] = {
  1007. TEGRA_PIN_VI_PCLK_PT0,
  1008. };
  1009. static const unsigned vi_mclk_pt1_pins[] = {
  1010. TEGRA_PIN_VI_MCLK_PT1,
  1011. };
  1012. static const unsigned vi_d10_pt2_pins[] = {
  1013. TEGRA_PIN_VI_D10_PT2,
  1014. };
  1015. static const unsigned vi_d11_pt3_pins[] = {
  1016. TEGRA_PIN_VI_D11_PT3,
  1017. };
  1018. static const unsigned vi_d0_pt4_pins[] = {
  1019. TEGRA_PIN_VI_D0_PT4,
  1020. };
  1021. static const unsigned gen2_i2c_scl_pt5_pins[] = {
  1022. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  1023. };
  1024. static const unsigned gen2_i2c_sda_pt6_pins[] = {
  1025. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  1026. };
  1027. static const unsigned sdmmc4_cmd_pt7_pins[] = {
  1028. TEGRA_PIN_SDMMC4_CMD_PT7,
  1029. };
  1030. static const unsigned pu0_pins[] = {
  1031. TEGRA_PIN_PU0,
  1032. };
  1033. static const unsigned pu1_pins[] = {
  1034. TEGRA_PIN_PU1,
  1035. };
  1036. static const unsigned pu2_pins[] = {
  1037. TEGRA_PIN_PU2,
  1038. };
  1039. static const unsigned pu3_pins[] = {
  1040. TEGRA_PIN_PU3,
  1041. };
  1042. static const unsigned pu4_pins[] = {
  1043. TEGRA_PIN_PU4,
  1044. };
  1045. static const unsigned pu5_pins[] = {
  1046. TEGRA_PIN_PU5,
  1047. };
  1048. static const unsigned pu6_pins[] = {
  1049. TEGRA_PIN_PU6,
  1050. };
  1051. static const unsigned jtag_rtck_pu7_pins[] = {
  1052. TEGRA_PIN_JTAG_RTCK_PU7,
  1053. };
  1054. static const unsigned pv0_pins[] = {
  1055. TEGRA_PIN_PV0,
  1056. };
  1057. static const unsigned pv1_pins[] = {
  1058. TEGRA_PIN_PV1,
  1059. };
  1060. static const unsigned pv2_pins[] = {
  1061. TEGRA_PIN_PV2,
  1062. };
  1063. static const unsigned pv3_pins[] = {
  1064. TEGRA_PIN_PV3,
  1065. };
  1066. static const unsigned ddc_scl_pv4_pins[] = {
  1067. TEGRA_PIN_DDC_SCL_PV4,
  1068. };
  1069. static const unsigned ddc_sda_pv5_pins[] = {
  1070. TEGRA_PIN_DDC_SDA_PV5,
  1071. };
  1072. static const unsigned crt_hsync_pv6_pins[] = {
  1073. TEGRA_PIN_CRT_HSYNC_PV6,
  1074. };
  1075. static const unsigned crt_vsync_pv7_pins[] = {
  1076. TEGRA_PIN_CRT_VSYNC_PV7,
  1077. };
  1078. static const unsigned lcd_cs1_n_pw0_pins[] = {
  1079. TEGRA_PIN_LCD_CS1_N_PW0,
  1080. };
  1081. static const unsigned lcd_m1_pw1_pins[] = {
  1082. TEGRA_PIN_LCD_M1_PW1,
  1083. };
  1084. static const unsigned spi2_cs1_n_pw2_pins[] = {
  1085. TEGRA_PIN_SPI2_CS1_N_PW2,
  1086. };
  1087. static const unsigned spi2_cs2_n_pw3_pins[] = {
  1088. TEGRA_PIN_SPI2_CS2_N_PW3,
  1089. };
  1090. static const unsigned clk1_out_pw4_pins[] = {
  1091. TEGRA_PIN_CLK1_OUT_PW4,
  1092. };
  1093. static const unsigned clk2_out_pw5_pins[] = {
  1094. TEGRA_PIN_CLK2_OUT_PW5,
  1095. };
  1096. static const unsigned uart3_txd_pw6_pins[] = {
  1097. TEGRA_PIN_UART3_TXD_PW6,
  1098. };
  1099. static const unsigned uart3_rxd_pw7_pins[] = {
  1100. TEGRA_PIN_UART3_RXD_PW7,
  1101. };
  1102. static const unsigned spi2_mosi_px0_pins[] = {
  1103. TEGRA_PIN_SPI2_MOSI_PX0,
  1104. };
  1105. static const unsigned spi2_miso_px1_pins[] = {
  1106. TEGRA_PIN_SPI2_MISO_PX1,
  1107. };
  1108. static const unsigned spi2_sck_px2_pins[] = {
  1109. TEGRA_PIN_SPI2_SCK_PX2,
  1110. };
  1111. static const unsigned spi2_cs0_n_px3_pins[] = {
  1112. TEGRA_PIN_SPI2_CS0_N_PX3,
  1113. };
  1114. static const unsigned spi1_mosi_px4_pins[] = {
  1115. TEGRA_PIN_SPI1_MOSI_PX4,
  1116. };
  1117. static const unsigned spi1_sck_px5_pins[] = {
  1118. TEGRA_PIN_SPI1_SCK_PX5,
  1119. };
  1120. static const unsigned spi1_cs0_n_px6_pins[] = {
  1121. TEGRA_PIN_SPI1_CS0_N_PX6,
  1122. };
  1123. static const unsigned spi1_miso_px7_pins[] = {
  1124. TEGRA_PIN_SPI1_MISO_PX7,
  1125. };
  1126. static const unsigned ulpi_clk_py0_pins[] = {
  1127. TEGRA_PIN_ULPI_CLK_PY0,
  1128. };
  1129. static const unsigned ulpi_dir_py1_pins[] = {
  1130. TEGRA_PIN_ULPI_DIR_PY1,
  1131. };
  1132. static const unsigned ulpi_nxt_py2_pins[] = {
  1133. TEGRA_PIN_ULPI_NXT_PY2,
  1134. };
  1135. static const unsigned ulpi_stp_py3_pins[] = {
  1136. TEGRA_PIN_ULPI_STP_PY3,
  1137. };
  1138. static const unsigned sdmmc1_dat3_py4_pins[] = {
  1139. TEGRA_PIN_SDMMC1_DAT3_PY4,
  1140. };
  1141. static const unsigned sdmmc1_dat2_py5_pins[] = {
  1142. TEGRA_PIN_SDMMC1_DAT2_PY5,
  1143. };
  1144. static const unsigned sdmmc1_dat1_py6_pins[] = {
  1145. TEGRA_PIN_SDMMC1_DAT1_PY6,
  1146. };
  1147. static const unsigned sdmmc1_dat0_py7_pins[] = {
  1148. TEGRA_PIN_SDMMC1_DAT0_PY7,
  1149. };
  1150. static const unsigned sdmmc1_clk_pz0_pins[] = {
  1151. TEGRA_PIN_SDMMC1_CLK_PZ0,
  1152. };
  1153. static const unsigned sdmmc1_cmd_pz1_pins[] = {
  1154. TEGRA_PIN_SDMMC1_CMD_PZ1,
  1155. };
  1156. static const unsigned lcd_sdin_pz2_pins[] = {
  1157. TEGRA_PIN_LCD_SDIN_PZ2,
  1158. };
  1159. static const unsigned lcd_wr_n_pz3_pins[] = {
  1160. TEGRA_PIN_LCD_WR_N_PZ3,
  1161. };
  1162. static const unsigned lcd_sck_pz4_pins[] = {
  1163. TEGRA_PIN_LCD_SCK_PZ4,
  1164. };
  1165. static const unsigned sys_clk_req_pz5_pins[] = {
  1166. TEGRA_PIN_SYS_CLK_REQ_PZ5,
  1167. };
  1168. static const unsigned pwr_i2c_scl_pz6_pins[] = {
  1169. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  1170. };
  1171. static const unsigned pwr_i2c_sda_pz7_pins[] = {
  1172. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  1173. };
  1174. static const unsigned sdmmc4_dat0_paa0_pins[] = {
  1175. TEGRA_PIN_SDMMC4_DAT0_PAA0,
  1176. };
  1177. static const unsigned sdmmc4_dat1_paa1_pins[] = {
  1178. TEGRA_PIN_SDMMC4_DAT1_PAA1,
  1179. };
  1180. static const unsigned sdmmc4_dat2_paa2_pins[] = {
  1181. TEGRA_PIN_SDMMC4_DAT2_PAA2,
  1182. };
  1183. static const unsigned sdmmc4_dat3_paa3_pins[] = {
  1184. TEGRA_PIN_SDMMC4_DAT3_PAA3,
  1185. };
  1186. static const unsigned sdmmc4_dat4_paa4_pins[] = {
  1187. TEGRA_PIN_SDMMC4_DAT4_PAA4,
  1188. };
  1189. static const unsigned sdmmc4_dat5_paa5_pins[] = {
  1190. TEGRA_PIN_SDMMC4_DAT5_PAA5,
  1191. };
  1192. static const unsigned sdmmc4_dat6_paa6_pins[] = {
  1193. TEGRA_PIN_SDMMC4_DAT6_PAA6,
  1194. };
  1195. static const unsigned sdmmc4_dat7_paa7_pins[] = {
  1196. TEGRA_PIN_SDMMC4_DAT7_PAA7,
  1197. };
  1198. static const unsigned pbb0_pins[] = {
  1199. TEGRA_PIN_PBB0,
  1200. };
  1201. static const unsigned cam_i2c_scl_pbb1_pins[] = {
  1202. TEGRA_PIN_CAM_I2C_SCL_PBB1,
  1203. };
  1204. static const unsigned cam_i2c_sda_pbb2_pins[] = {
  1205. TEGRA_PIN_CAM_I2C_SDA_PBB2,
  1206. };
  1207. static const unsigned pbb3_pins[] = {
  1208. TEGRA_PIN_PBB3,
  1209. };
  1210. static const unsigned pbb4_pins[] = {
  1211. TEGRA_PIN_PBB4,
  1212. };
  1213. static const unsigned pbb5_pins[] = {
  1214. TEGRA_PIN_PBB5,
  1215. };
  1216. static const unsigned pbb6_pins[] = {
  1217. TEGRA_PIN_PBB6,
  1218. };
  1219. static const unsigned pbb7_pins[] = {
  1220. TEGRA_PIN_PBB7,
  1221. };
  1222. static const unsigned cam_mclk_pcc0_pins[] = {
  1223. TEGRA_PIN_CAM_MCLK_PCC0,
  1224. };
  1225. static const unsigned pcc1_pins[] = {
  1226. TEGRA_PIN_PCC1,
  1227. };
  1228. static const unsigned pcc2_pins[] = {
  1229. TEGRA_PIN_PCC2,
  1230. };
  1231. static const unsigned sdmmc4_rst_n_pcc3_pins[] = {
  1232. TEGRA_PIN_SDMMC4_RST_N_PCC3,
  1233. };
  1234. static const unsigned sdmmc4_clk_pcc4_pins[] = {
  1235. TEGRA_PIN_SDMMC4_CLK_PCC4,
  1236. };
  1237. static const unsigned clk2_req_pcc5_pins[] = {
  1238. TEGRA_PIN_CLK2_REQ_PCC5,
  1239. };
  1240. static const unsigned pex_l2_rst_n_pcc6_pins[] = {
  1241. TEGRA_PIN_PEX_L2_RST_N_PCC6,
  1242. };
  1243. static const unsigned pex_l2_clkreq_n_pcc7_pins[] = {
  1244. TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7,
  1245. };
  1246. static const unsigned pex_l0_prsnt_n_pdd0_pins[] = {
  1247. TEGRA_PIN_PEX_L0_PRSNT_N_PDD0,
  1248. };
  1249. static const unsigned pex_l0_rst_n_pdd1_pins[] = {
  1250. TEGRA_PIN_PEX_L0_RST_N_PDD1,
  1251. };
  1252. static const unsigned pex_l0_clkreq_n_pdd2_pins[] = {
  1253. TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2,
  1254. };
  1255. static const unsigned pex_wake_n_pdd3_pins[] = {
  1256. TEGRA_PIN_PEX_WAKE_N_PDD3,
  1257. };
  1258. static const unsigned pex_l1_prsnt_n_pdd4_pins[] = {
  1259. TEGRA_PIN_PEX_L1_PRSNT_N_PDD4,
  1260. };
  1261. static const unsigned pex_l1_rst_n_pdd5_pins[] = {
  1262. TEGRA_PIN_PEX_L1_RST_N_PDD5,
  1263. };
  1264. static const unsigned pex_l1_clkreq_n_pdd6_pins[] = {
  1265. TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6,
  1266. };
  1267. static const unsigned pex_l2_prsnt_n_pdd7_pins[] = {
  1268. TEGRA_PIN_PEX_L2_PRSNT_N_PDD7,
  1269. };
  1270. static const unsigned clk3_out_pee0_pins[] = {
  1271. TEGRA_PIN_CLK3_OUT_PEE0,
  1272. };
  1273. static const unsigned clk3_req_pee1_pins[] = {
  1274. TEGRA_PIN_CLK3_REQ_PEE1,
  1275. };
  1276. static const unsigned clk1_req_pee2_pins[] = {
  1277. TEGRA_PIN_CLK1_REQ_PEE2,
  1278. };
  1279. static const unsigned hdmi_cec_pee3_pins[] = {
  1280. TEGRA_PIN_HDMI_CEC_PEE3,
  1281. };
  1282. static const unsigned clk_32k_in_pins[] = {
  1283. TEGRA_PIN_CLK_32K_IN,
  1284. };
  1285. static const unsigned core_pwr_req_pins[] = {
  1286. TEGRA_PIN_CORE_PWR_REQ,
  1287. };
  1288. static const unsigned cpu_pwr_req_pins[] = {
  1289. TEGRA_PIN_CPU_PWR_REQ,
  1290. };
  1291. static const unsigned owr_pins[] = {
  1292. TEGRA_PIN_OWR,
  1293. };
  1294. static const unsigned pwr_int_n_pins[] = {
  1295. TEGRA_PIN_PWR_INT_N,
  1296. };
  1297. static const unsigned drive_ao1_pins[] = {
  1298. TEGRA_PIN_KB_ROW0_PR0,
  1299. TEGRA_PIN_KB_ROW1_PR1,
  1300. TEGRA_PIN_KB_ROW2_PR2,
  1301. TEGRA_PIN_KB_ROW3_PR3,
  1302. TEGRA_PIN_KB_ROW4_PR4,
  1303. TEGRA_PIN_KB_ROW5_PR5,
  1304. TEGRA_PIN_KB_ROW6_PR6,
  1305. TEGRA_PIN_KB_ROW7_PR7,
  1306. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  1307. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  1308. TEGRA_PIN_SYS_RESET_N,
  1309. };
  1310. static const unsigned drive_ao2_pins[] = {
  1311. TEGRA_PIN_CLK_32K_OUT_PA0,
  1312. TEGRA_PIN_KB_COL0_PQ0,
  1313. TEGRA_PIN_KB_COL1_PQ1,
  1314. TEGRA_PIN_KB_COL2_PQ2,
  1315. TEGRA_PIN_KB_COL3_PQ3,
  1316. TEGRA_PIN_KB_COL4_PQ4,
  1317. TEGRA_PIN_KB_COL5_PQ5,
  1318. TEGRA_PIN_KB_COL6_PQ6,
  1319. TEGRA_PIN_KB_COL7_PQ7,
  1320. TEGRA_PIN_KB_ROW8_PS0,
  1321. TEGRA_PIN_KB_ROW9_PS1,
  1322. TEGRA_PIN_KB_ROW10_PS2,
  1323. TEGRA_PIN_KB_ROW11_PS3,
  1324. TEGRA_PIN_KB_ROW12_PS4,
  1325. TEGRA_PIN_KB_ROW13_PS5,
  1326. TEGRA_PIN_KB_ROW14_PS6,
  1327. TEGRA_PIN_KB_ROW15_PS7,
  1328. TEGRA_PIN_SYS_CLK_REQ_PZ5,
  1329. TEGRA_PIN_CLK_32K_IN,
  1330. TEGRA_PIN_CORE_PWR_REQ,
  1331. TEGRA_PIN_CPU_PWR_REQ,
  1332. TEGRA_PIN_PWR_INT_N,
  1333. };
  1334. static const unsigned drive_at1_pins[] = {
  1335. TEGRA_PIN_GMI_AD8_PH0,
  1336. TEGRA_PIN_GMI_AD9_PH1,
  1337. TEGRA_PIN_GMI_AD10_PH2,
  1338. TEGRA_PIN_GMI_AD11_PH3,
  1339. TEGRA_PIN_GMI_AD12_PH4,
  1340. TEGRA_PIN_GMI_AD13_PH5,
  1341. TEGRA_PIN_GMI_AD14_PH6,
  1342. TEGRA_PIN_GMI_AD15_PH7,
  1343. TEGRA_PIN_GMI_IORDY_PI5,
  1344. TEGRA_PIN_GMI_CS7_N_PI6,
  1345. };
  1346. static const unsigned drive_at2_pins[] = {
  1347. TEGRA_PIN_GMI_AD0_PG0,
  1348. TEGRA_PIN_GMI_AD1_PG1,
  1349. TEGRA_PIN_GMI_AD2_PG2,
  1350. TEGRA_PIN_GMI_AD3_PG3,
  1351. TEGRA_PIN_GMI_AD4_PG4,
  1352. TEGRA_PIN_GMI_AD5_PG5,
  1353. TEGRA_PIN_GMI_AD6_PG6,
  1354. TEGRA_PIN_GMI_AD7_PG7,
  1355. TEGRA_PIN_GMI_WR_N_PI0,
  1356. TEGRA_PIN_GMI_OE_N_PI1,
  1357. TEGRA_PIN_GMI_DQS_PI2,
  1358. TEGRA_PIN_GMI_CS6_N_PI3,
  1359. TEGRA_PIN_GMI_RST_N_PI4,
  1360. TEGRA_PIN_GMI_WAIT_PI7,
  1361. TEGRA_PIN_GMI_ADV_N_PK0,
  1362. TEGRA_PIN_GMI_CLK_PK1,
  1363. TEGRA_PIN_GMI_CS4_N_PK2,
  1364. TEGRA_PIN_GMI_CS2_N_PK3,
  1365. TEGRA_PIN_GMI_CS3_N_PK4,
  1366. };
  1367. static const unsigned drive_at3_pins[] = {
  1368. TEGRA_PIN_GMI_WP_N_PC7,
  1369. TEGRA_PIN_GMI_CS0_N_PJ0,
  1370. };
  1371. static const unsigned drive_at4_pins[] = {
  1372. TEGRA_PIN_GMI_A17_PB0,
  1373. TEGRA_PIN_GMI_A18_PB1,
  1374. TEGRA_PIN_GMI_CS1_N_PJ2,
  1375. TEGRA_PIN_GMI_A16_PJ7,
  1376. TEGRA_PIN_GMI_A19_PK7,
  1377. };
  1378. static const unsigned drive_at5_pins[] = {
  1379. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  1380. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  1381. };
  1382. static const unsigned drive_cdev1_pins[] = {
  1383. TEGRA_PIN_CLK1_OUT_PW4,
  1384. TEGRA_PIN_CLK1_REQ_PEE2,
  1385. };
  1386. static const unsigned drive_cdev2_pins[] = {
  1387. TEGRA_PIN_CLK2_OUT_PW5,
  1388. TEGRA_PIN_CLK2_REQ_PCC5,
  1389. };
  1390. static const unsigned drive_cec_pins[] = {
  1391. TEGRA_PIN_HDMI_CEC_PEE3,
  1392. };
  1393. static const unsigned drive_crt_pins[] = {
  1394. TEGRA_PIN_CRT_HSYNC_PV6,
  1395. TEGRA_PIN_CRT_VSYNC_PV7,
  1396. };
  1397. static const unsigned drive_csus_pins[] = {
  1398. TEGRA_PIN_VI_MCLK_PT1,
  1399. };
  1400. static const unsigned drive_dap1_pins[] = {
  1401. TEGRA_PIN_SPDIF_OUT_PK5,
  1402. TEGRA_PIN_SPDIF_IN_PK6,
  1403. TEGRA_PIN_DAP1_FS_PN0,
  1404. TEGRA_PIN_DAP1_DIN_PN1,
  1405. TEGRA_PIN_DAP1_DOUT_PN2,
  1406. TEGRA_PIN_DAP1_SCLK_PN3,
  1407. };
  1408. static const unsigned drive_dap2_pins[] = {
  1409. TEGRA_PIN_DAP2_FS_PA2,
  1410. TEGRA_PIN_DAP2_SCLK_PA3,
  1411. TEGRA_PIN_DAP2_DIN_PA4,
  1412. TEGRA_PIN_DAP2_DOUT_PA5,
  1413. };
  1414. static const unsigned drive_dap3_pins[] = {
  1415. TEGRA_PIN_DAP3_FS_PP0,
  1416. TEGRA_PIN_DAP3_DIN_PP1,
  1417. TEGRA_PIN_DAP3_DOUT_PP2,
  1418. TEGRA_PIN_DAP3_SCLK_PP3,
  1419. };
  1420. static const unsigned drive_dap4_pins[] = {
  1421. TEGRA_PIN_DAP4_FS_PP4,
  1422. TEGRA_PIN_DAP4_DIN_PP5,
  1423. TEGRA_PIN_DAP4_DOUT_PP6,
  1424. TEGRA_PIN_DAP4_SCLK_PP7,
  1425. };
  1426. static const unsigned drive_dbg_pins[] = {
  1427. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  1428. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  1429. TEGRA_PIN_PU0,
  1430. TEGRA_PIN_PU1,
  1431. TEGRA_PIN_PU2,
  1432. TEGRA_PIN_PU3,
  1433. TEGRA_PIN_PU4,
  1434. TEGRA_PIN_PU5,
  1435. TEGRA_PIN_PU6,
  1436. TEGRA_PIN_JTAG_RTCK_PU7,
  1437. TEGRA_PIN_JTAG_TCK,
  1438. TEGRA_PIN_JTAG_TDI,
  1439. TEGRA_PIN_JTAG_TDO,
  1440. TEGRA_PIN_JTAG_TMS,
  1441. TEGRA_PIN_JTAG_TRST_N,
  1442. TEGRA_PIN_TEST_MODE_EN,
  1443. };
  1444. static const unsigned drive_ddc_pins[] = {
  1445. TEGRA_PIN_DDC_SCL_PV4,
  1446. TEGRA_PIN_DDC_SDA_PV5,
  1447. };
  1448. static const unsigned drive_dev3_pins[] = {
  1449. TEGRA_PIN_CLK3_OUT_PEE0,
  1450. TEGRA_PIN_CLK3_REQ_PEE1,
  1451. };
  1452. static const unsigned drive_gma_pins[] = {
  1453. TEGRA_PIN_SDMMC4_DAT0_PAA0,
  1454. TEGRA_PIN_SDMMC4_DAT1_PAA1,
  1455. TEGRA_PIN_SDMMC4_DAT2_PAA2,
  1456. TEGRA_PIN_SDMMC4_DAT3_PAA3,
  1457. TEGRA_PIN_SDMMC4_RST_N_PCC3,
  1458. };
  1459. static const unsigned drive_gmb_pins[] = {
  1460. TEGRA_PIN_SDMMC4_DAT4_PAA4,
  1461. TEGRA_PIN_SDMMC4_DAT5_PAA5,
  1462. TEGRA_PIN_SDMMC4_DAT6_PAA6,
  1463. TEGRA_PIN_SDMMC4_DAT7_PAA7,
  1464. };
  1465. static const unsigned drive_gmc_pins[] = {
  1466. TEGRA_PIN_SDMMC4_CLK_PCC4,
  1467. };
  1468. static const unsigned drive_gmd_pins[] = {
  1469. TEGRA_PIN_SDMMC4_CMD_PT7,
  1470. };
  1471. static const unsigned drive_gme_pins[] = {
  1472. TEGRA_PIN_PBB0,
  1473. TEGRA_PIN_CAM_I2C_SCL_PBB1,
  1474. TEGRA_PIN_CAM_I2C_SDA_PBB2,
  1475. TEGRA_PIN_PBB3,
  1476. TEGRA_PIN_PCC2,
  1477. };
  1478. static const unsigned drive_gmf_pins[] = {
  1479. TEGRA_PIN_PBB4,
  1480. TEGRA_PIN_PBB5,
  1481. TEGRA_PIN_PBB6,
  1482. TEGRA_PIN_PBB7,
  1483. };
  1484. static const unsigned drive_gmg_pins[] = {
  1485. TEGRA_PIN_CAM_MCLK_PCC0,
  1486. };
  1487. static const unsigned drive_gmh_pins[] = {
  1488. TEGRA_PIN_PCC1,
  1489. };
  1490. static const unsigned drive_gpv_pins[] = {
  1491. TEGRA_PIN_PEX_L2_RST_N_PCC6,
  1492. TEGRA_PIN_PEX_L2_CLKREQ_N_PCC7,
  1493. TEGRA_PIN_PEX_L0_PRSNT_N_PDD0,
  1494. TEGRA_PIN_PEX_L0_RST_N_PDD1,
  1495. TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2,
  1496. TEGRA_PIN_PEX_WAKE_N_PDD3,
  1497. TEGRA_PIN_PEX_L1_PRSNT_N_PDD4,
  1498. TEGRA_PIN_PEX_L1_RST_N_PDD5,
  1499. TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6,
  1500. TEGRA_PIN_PEX_L2_PRSNT_N_PDD7,
  1501. };
  1502. static const unsigned drive_lcd1_pins[] = {
  1503. TEGRA_PIN_LCD_PWR1_PC1,
  1504. TEGRA_PIN_LCD_PWR2_PC6,
  1505. TEGRA_PIN_LCD_CS0_N_PN4,
  1506. TEGRA_PIN_LCD_SDOUT_PN5,
  1507. TEGRA_PIN_LCD_DC0_PN6,
  1508. TEGRA_PIN_LCD_SDIN_PZ2,
  1509. TEGRA_PIN_LCD_WR_N_PZ3,
  1510. TEGRA_PIN_LCD_SCK_PZ4,
  1511. };
  1512. static const unsigned drive_lcd2_pins[] = {
  1513. TEGRA_PIN_LCD_PWR0_PB2,
  1514. TEGRA_PIN_LCD_PCLK_PB3,
  1515. TEGRA_PIN_LCD_DC1_PD2,
  1516. TEGRA_PIN_LCD_D0_PE0,
  1517. TEGRA_PIN_LCD_D1_PE1,
  1518. TEGRA_PIN_LCD_D2_PE2,
  1519. TEGRA_PIN_LCD_D3_PE3,
  1520. TEGRA_PIN_LCD_D4_PE4,
  1521. TEGRA_PIN_LCD_D5_PE5,
  1522. TEGRA_PIN_LCD_D6_PE6,
  1523. TEGRA_PIN_LCD_D7_PE7,
  1524. TEGRA_PIN_LCD_D8_PF0,
  1525. TEGRA_PIN_LCD_D9_PF1,
  1526. TEGRA_PIN_LCD_D10_PF2,
  1527. TEGRA_PIN_LCD_D11_PF3,
  1528. TEGRA_PIN_LCD_D12_PF4,
  1529. TEGRA_PIN_LCD_D13_PF5,
  1530. TEGRA_PIN_LCD_D14_PF6,
  1531. TEGRA_PIN_LCD_D15_PF7,
  1532. TEGRA_PIN_LCD_DE_PJ1,
  1533. TEGRA_PIN_LCD_HSYNC_PJ3,
  1534. TEGRA_PIN_LCD_VSYNC_PJ4,
  1535. TEGRA_PIN_LCD_D16_PM0,
  1536. TEGRA_PIN_LCD_D17_PM1,
  1537. TEGRA_PIN_LCD_D18_PM2,
  1538. TEGRA_PIN_LCD_D19_PM3,
  1539. TEGRA_PIN_LCD_D20_PM4,
  1540. TEGRA_PIN_LCD_D21_PM5,
  1541. TEGRA_PIN_LCD_D22_PM6,
  1542. TEGRA_PIN_LCD_D23_PM7,
  1543. TEGRA_PIN_HDMI_INT_PN7,
  1544. TEGRA_PIN_LCD_CS1_N_PW0,
  1545. TEGRA_PIN_LCD_M1_PW1,
  1546. };
  1547. static const unsigned drive_owr_pins[] = {
  1548. TEGRA_PIN_OWR,
  1549. };
  1550. static const unsigned drive_sdio1_pins[] = {
  1551. TEGRA_PIN_SDMMC1_DAT3_PY4,
  1552. TEGRA_PIN_SDMMC1_DAT2_PY5,
  1553. TEGRA_PIN_SDMMC1_DAT1_PY6,
  1554. TEGRA_PIN_SDMMC1_DAT0_PY7,
  1555. TEGRA_PIN_SDMMC1_CLK_PZ0,
  1556. TEGRA_PIN_SDMMC1_CMD_PZ1,
  1557. };
  1558. static const unsigned drive_sdio2_pins[] = {
  1559. TEGRA_PIN_SDMMC3_DAT5_PD0,
  1560. TEGRA_PIN_SDMMC3_DAT4_PD1,
  1561. TEGRA_PIN_SDMMC3_DAT6_PD3,
  1562. TEGRA_PIN_SDMMC3_DAT7_PD4,
  1563. };
  1564. static const unsigned drive_sdio3_pins[] = {
  1565. TEGRA_PIN_SDMMC3_CLK_PA6,
  1566. TEGRA_PIN_SDMMC3_CMD_PA7,
  1567. TEGRA_PIN_SDMMC3_DAT3_PB4,
  1568. TEGRA_PIN_SDMMC3_DAT2_PB5,
  1569. TEGRA_PIN_SDMMC3_DAT1_PB6,
  1570. TEGRA_PIN_SDMMC3_DAT0_PB7,
  1571. };
  1572. static const unsigned drive_spi_pins[] = {
  1573. TEGRA_PIN_SPI2_CS1_N_PW2,
  1574. TEGRA_PIN_SPI2_CS2_N_PW3,
  1575. TEGRA_PIN_SPI2_MOSI_PX0,
  1576. TEGRA_PIN_SPI2_MISO_PX1,
  1577. TEGRA_PIN_SPI2_SCK_PX2,
  1578. TEGRA_PIN_SPI2_CS0_N_PX3,
  1579. TEGRA_PIN_SPI1_MOSI_PX4,
  1580. TEGRA_PIN_SPI1_SCK_PX5,
  1581. TEGRA_PIN_SPI1_CS0_N_PX6,
  1582. TEGRA_PIN_SPI1_MISO_PX7,
  1583. };
  1584. static const unsigned drive_uaa_pins[] = {
  1585. TEGRA_PIN_ULPI_DATA0_PO1,
  1586. TEGRA_PIN_ULPI_DATA1_PO2,
  1587. TEGRA_PIN_ULPI_DATA2_PO3,
  1588. TEGRA_PIN_ULPI_DATA3_PO4,
  1589. };
  1590. static const unsigned drive_uab_pins[] = {
  1591. TEGRA_PIN_ULPI_DATA7_PO0,
  1592. TEGRA_PIN_ULPI_DATA4_PO5,
  1593. TEGRA_PIN_ULPI_DATA5_PO6,
  1594. TEGRA_PIN_ULPI_DATA6_PO7,
  1595. TEGRA_PIN_PV0,
  1596. TEGRA_PIN_PV1,
  1597. TEGRA_PIN_PV2,
  1598. TEGRA_PIN_PV3,
  1599. };
  1600. static const unsigned drive_uart2_pins[] = {
  1601. TEGRA_PIN_UART2_TXD_PC2,
  1602. TEGRA_PIN_UART2_RXD_PC3,
  1603. TEGRA_PIN_UART2_CTS_N_PJ5,
  1604. TEGRA_PIN_UART2_RTS_N_PJ6,
  1605. };
  1606. static const unsigned drive_uart3_pins[] = {
  1607. TEGRA_PIN_UART3_CTS_N_PA1,
  1608. TEGRA_PIN_UART3_RTS_N_PC0,
  1609. TEGRA_PIN_UART3_TXD_PW6,
  1610. TEGRA_PIN_UART3_RXD_PW7,
  1611. };
  1612. static const unsigned drive_uda_pins[] = {
  1613. TEGRA_PIN_ULPI_CLK_PY0,
  1614. TEGRA_PIN_ULPI_DIR_PY1,
  1615. TEGRA_PIN_ULPI_NXT_PY2,
  1616. TEGRA_PIN_ULPI_STP_PY3,
  1617. };
  1618. static const unsigned drive_vi1_pins[] = {
  1619. TEGRA_PIN_VI_D1_PD5,
  1620. TEGRA_PIN_VI_VSYNC_PD6,
  1621. TEGRA_PIN_VI_HSYNC_PD7,
  1622. TEGRA_PIN_VI_D2_PL0,
  1623. TEGRA_PIN_VI_D3_PL1,
  1624. TEGRA_PIN_VI_D4_PL2,
  1625. TEGRA_PIN_VI_D5_PL3,
  1626. TEGRA_PIN_VI_D6_PL4,
  1627. TEGRA_PIN_VI_D7_PL5,
  1628. TEGRA_PIN_VI_D8_PL6,
  1629. TEGRA_PIN_VI_D9_PL7,
  1630. TEGRA_PIN_VI_PCLK_PT0,
  1631. TEGRA_PIN_VI_D10_PT2,
  1632. TEGRA_PIN_VI_D11_PT3,
  1633. TEGRA_PIN_VI_D0_PT4,
  1634. };
  1635. enum tegra_mux {
  1636. TEGRA_MUX_BLINK,
  1637. TEGRA_MUX_CEC,
  1638. TEGRA_MUX_CLK_12M_OUT,
  1639. TEGRA_MUX_CLK_32K_IN,
  1640. TEGRA_MUX_CORE_PWR_REQ,
  1641. TEGRA_MUX_CPU_PWR_REQ,
  1642. TEGRA_MUX_CRT,
  1643. TEGRA_MUX_DAP,
  1644. TEGRA_MUX_DDR,
  1645. TEGRA_MUX_DEV3,
  1646. TEGRA_MUX_DISPLAYA,
  1647. TEGRA_MUX_DISPLAYB,
  1648. TEGRA_MUX_DTV,
  1649. TEGRA_MUX_EXTPERIPH1,
  1650. TEGRA_MUX_EXTPERIPH2,
  1651. TEGRA_MUX_EXTPERIPH3,
  1652. TEGRA_MUX_GMI,
  1653. TEGRA_MUX_GMI_ALT,
  1654. TEGRA_MUX_HDA,
  1655. TEGRA_MUX_HDCP,
  1656. TEGRA_MUX_HDMI,
  1657. TEGRA_MUX_HSI,
  1658. TEGRA_MUX_I2C1,
  1659. TEGRA_MUX_I2C2,
  1660. TEGRA_MUX_I2C3,
  1661. TEGRA_MUX_I2C4,
  1662. TEGRA_MUX_I2CPWR,
  1663. TEGRA_MUX_I2S0,
  1664. TEGRA_MUX_I2S1,
  1665. TEGRA_MUX_I2S2,
  1666. TEGRA_MUX_I2S3,
  1667. TEGRA_MUX_I2S4,
  1668. TEGRA_MUX_INVALID,
  1669. TEGRA_MUX_KBC,
  1670. TEGRA_MUX_MIO,
  1671. TEGRA_MUX_NAND,
  1672. TEGRA_MUX_NAND_ALT,
  1673. TEGRA_MUX_OWR,
  1674. TEGRA_MUX_PCIE,
  1675. TEGRA_MUX_PWM0,
  1676. TEGRA_MUX_PWM1,
  1677. TEGRA_MUX_PWM2,
  1678. TEGRA_MUX_PWM3,
  1679. TEGRA_MUX_PWR_INT_N,
  1680. TEGRA_MUX_RSVD1,
  1681. TEGRA_MUX_RSVD2,
  1682. TEGRA_MUX_RSVD3,
  1683. TEGRA_MUX_RSVD4,
  1684. TEGRA_MUX_RTCK,
  1685. TEGRA_MUX_SATA,
  1686. TEGRA_MUX_SDMMC1,
  1687. TEGRA_MUX_SDMMC2,
  1688. TEGRA_MUX_SDMMC3,
  1689. TEGRA_MUX_SDMMC4,
  1690. TEGRA_MUX_SPDIF,
  1691. TEGRA_MUX_SPI1,
  1692. TEGRA_MUX_SPI2,
  1693. TEGRA_MUX_SPI2_ALT,
  1694. TEGRA_MUX_SPI3,
  1695. TEGRA_MUX_SPI4,
  1696. TEGRA_MUX_SPI5,
  1697. TEGRA_MUX_SPI6,
  1698. TEGRA_MUX_SYSCLK,
  1699. TEGRA_MUX_TEST,
  1700. TEGRA_MUX_TRACE,
  1701. TEGRA_MUX_UARTA,
  1702. TEGRA_MUX_UARTB,
  1703. TEGRA_MUX_UARTC,
  1704. TEGRA_MUX_UARTD,
  1705. TEGRA_MUX_UARTE,
  1706. TEGRA_MUX_ULPI,
  1707. TEGRA_MUX_VGP1,
  1708. TEGRA_MUX_VGP2,
  1709. TEGRA_MUX_VGP3,
  1710. TEGRA_MUX_VGP4,
  1711. TEGRA_MUX_VGP5,
  1712. TEGRA_MUX_VGP6,
  1713. TEGRA_MUX_VI,
  1714. TEGRA_MUX_VI_ALT1,
  1715. TEGRA_MUX_VI_ALT2,
  1716. TEGRA_MUX_VI_ALT3,
  1717. };
  1718. static const char * const blink_groups[] = {
  1719. "clk_32k_out_pa0",
  1720. };
  1721. static const char * const cec_groups[] = {
  1722. "hdmi_cec_pee3",
  1723. "owr",
  1724. };
  1725. static const char * const clk_12m_out_groups[] = {
  1726. "pv3",
  1727. };
  1728. static const char * const clk_32k_in_groups[] = {
  1729. "clk_32k_in",
  1730. };
  1731. static const char * const core_pwr_req_groups[] = {
  1732. "core_pwr_req",
  1733. };
  1734. static const char * const cpu_pwr_req_groups[] = {
  1735. "cpu_pwr_req",
  1736. };
  1737. static const char * const crt_groups[] = {
  1738. "crt_hsync_pv6",
  1739. "crt_vsync_pv7",
  1740. };
  1741. static const char * const dap_groups[] = {
  1742. "clk1_req_pee2",
  1743. "clk2_req_pcc5",
  1744. };
  1745. static const char * const ddr_groups[] = {
  1746. "vi_d0_pt4",
  1747. "vi_d1_pd5",
  1748. "vi_d10_pt2",
  1749. "vi_d11_pt3",
  1750. "vi_d2_pl0",
  1751. "vi_d3_pl1",
  1752. "vi_d4_pl2",
  1753. "vi_d5_pl3",
  1754. "vi_d6_pl4",
  1755. "vi_d7_pl5",
  1756. "vi_d8_pl6",
  1757. "vi_d9_pl7",
  1758. "vi_hsync_pd7",
  1759. "vi_vsync_pd6",
  1760. };
  1761. static const char * const dev3_groups[] = {
  1762. "clk3_req_pee1",
  1763. };
  1764. static const char * const displaya_groups[] = {
  1765. "dap3_din_pp1",
  1766. "dap3_dout_pp2",
  1767. "dap3_fs_pp0",
  1768. "dap3_sclk_pp3",
  1769. "pbb3",
  1770. "pbb4",
  1771. "pbb5",
  1772. "pbb6",
  1773. "lcd_cs0_n_pn4",
  1774. "lcd_cs1_n_pw0",
  1775. "lcd_d0_pe0",
  1776. "lcd_d1_pe1",
  1777. "lcd_d10_pf2",
  1778. "lcd_d11_pf3",
  1779. "lcd_d12_pf4",
  1780. "lcd_d13_pf5",
  1781. "lcd_d14_pf6",
  1782. "lcd_d15_pf7",
  1783. "lcd_d16_pm0",
  1784. "lcd_d17_pm1",
  1785. "lcd_d18_pm2",
  1786. "lcd_d19_pm3",
  1787. "lcd_d2_pe2",
  1788. "lcd_d20_pm4",
  1789. "lcd_d21_pm5",
  1790. "lcd_d22_pm6",
  1791. "lcd_d23_pm7",
  1792. "lcd_d3_pe3",
  1793. "lcd_d4_pe4",
  1794. "lcd_d5_pe5",
  1795. "lcd_d6_pe6",
  1796. "lcd_d7_pe7",
  1797. "lcd_d8_pf0",
  1798. "lcd_d9_pf1",
  1799. "lcd_dc0_pn6",
  1800. "lcd_dc1_pd2",
  1801. "lcd_de_pj1",
  1802. "lcd_hsync_pj3",
  1803. "lcd_m1_pw1",
  1804. "lcd_pclk_pb3",
  1805. "lcd_pwr0_pb2",
  1806. "lcd_pwr1_pc1",
  1807. "lcd_pwr2_pc6",
  1808. "lcd_sck_pz4",
  1809. "lcd_sdin_pz2",
  1810. "lcd_sdout_pn5",
  1811. "lcd_vsync_pj4",
  1812. "lcd_wr_n_pz3",
  1813. };
  1814. static const char * const displayb_groups[] = {
  1815. "dap3_din_pp1",
  1816. "dap3_dout_pp2",
  1817. "dap3_fs_pp0",
  1818. "dap3_sclk_pp3",
  1819. "pbb3",
  1820. "pbb4",
  1821. "pbb5",
  1822. "pbb6",
  1823. "lcd_cs0_n_pn4",
  1824. "lcd_cs1_n_pw0",
  1825. "lcd_d0_pe0",
  1826. "lcd_d1_pe1",
  1827. "lcd_d10_pf2",
  1828. "lcd_d11_pf3",
  1829. "lcd_d12_pf4",
  1830. "lcd_d13_pf5",
  1831. "lcd_d14_pf6",
  1832. "lcd_d15_pf7",
  1833. "lcd_d16_pm0",
  1834. "lcd_d17_pm1",
  1835. "lcd_d18_pm2",
  1836. "lcd_d19_pm3",
  1837. "lcd_d2_pe2",
  1838. "lcd_d20_pm4",
  1839. "lcd_d21_pm5",
  1840. "lcd_d22_pm6",
  1841. "lcd_d23_pm7",
  1842. "lcd_d3_pe3",
  1843. "lcd_d4_pe4",
  1844. "lcd_d5_pe5",
  1845. "lcd_d6_pe6",
  1846. "lcd_d7_pe7",
  1847. "lcd_d8_pf0",
  1848. "lcd_d9_pf1",
  1849. "lcd_dc0_pn6",
  1850. "lcd_dc1_pd2",
  1851. "lcd_de_pj1",
  1852. "lcd_hsync_pj3",
  1853. "lcd_m1_pw1",
  1854. "lcd_pclk_pb3",
  1855. "lcd_pwr0_pb2",
  1856. "lcd_pwr1_pc1",
  1857. "lcd_pwr2_pc6",
  1858. "lcd_sck_pz4",
  1859. "lcd_sdin_pz2",
  1860. "lcd_sdout_pn5",
  1861. "lcd_vsync_pj4",
  1862. "lcd_wr_n_pz3",
  1863. };
  1864. static const char * const dtv_groups[] = {
  1865. "gmi_a17_pb0",
  1866. "gmi_a18_pb1",
  1867. "gmi_cs0_n_pj0",
  1868. "gmi_cs1_n_pj2",
  1869. };
  1870. static const char * const extperiph1_groups[] = {
  1871. "clk1_out_pw4",
  1872. };
  1873. static const char * const extperiph2_groups[] = {
  1874. "clk2_out_pw5",
  1875. };
  1876. static const char * const extperiph3_groups[] = {
  1877. "clk3_out_pee0",
  1878. };
  1879. static const char * const gmi_groups[] = {
  1880. "dap1_din_pn1",
  1881. "dap1_dout_pn2",
  1882. "dap1_fs_pn0",
  1883. "dap1_sclk_pn3",
  1884. "dap2_din_pa4",
  1885. "dap2_dout_pa5",
  1886. "dap2_fs_pa2",
  1887. "dap2_sclk_pa3",
  1888. "dap4_din_pp5",
  1889. "dap4_dout_pp6",
  1890. "dap4_fs_pp4",
  1891. "dap4_sclk_pp7",
  1892. "gen2_i2c_scl_pt5",
  1893. "gen2_i2c_sda_pt6",
  1894. "gmi_a16_pj7",
  1895. "gmi_a17_pb0",
  1896. "gmi_a18_pb1",
  1897. "gmi_a19_pk7",
  1898. "gmi_ad0_pg0",
  1899. "gmi_ad1_pg1",
  1900. "gmi_ad10_ph2",
  1901. "gmi_ad11_ph3",
  1902. "gmi_ad12_ph4",
  1903. "gmi_ad13_ph5",
  1904. "gmi_ad14_ph6",
  1905. "gmi_ad15_ph7",
  1906. "gmi_ad2_pg2",
  1907. "gmi_ad3_pg3",
  1908. "gmi_ad4_pg4",
  1909. "gmi_ad5_pg5",
  1910. "gmi_ad6_pg6",
  1911. "gmi_ad7_pg7",
  1912. "gmi_ad8_ph0",
  1913. "gmi_ad9_ph1",
  1914. "gmi_adv_n_pk0",
  1915. "gmi_clk_pk1",
  1916. "gmi_cs0_n_pj0",
  1917. "gmi_cs1_n_pj2",
  1918. "gmi_cs2_n_pk3",
  1919. "gmi_cs3_n_pk4",
  1920. "gmi_cs4_n_pk2",
  1921. "gmi_cs6_n_pi3",
  1922. "gmi_cs7_n_pi6",
  1923. "gmi_dqs_pi2",
  1924. "gmi_iordy_pi5",
  1925. "gmi_oe_n_pi1",
  1926. "gmi_rst_n_pi4",
  1927. "gmi_wait_pi7",
  1928. "gmi_wp_n_pc7",
  1929. "gmi_wr_n_pi0",
  1930. "pu0",
  1931. "pu1",
  1932. "pu2",
  1933. "pu3",
  1934. "pu4",
  1935. "pu5",
  1936. "pu6",
  1937. "sdmmc4_clk_pcc4",
  1938. "sdmmc4_cmd_pt7",
  1939. "sdmmc4_dat0_paa0",
  1940. "sdmmc4_dat1_paa1",
  1941. "sdmmc4_dat2_paa2",
  1942. "sdmmc4_dat3_paa3",
  1943. "sdmmc4_dat4_paa4",
  1944. "sdmmc4_dat5_paa5",
  1945. "sdmmc4_dat6_paa6",
  1946. "sdmmc4_dat7_paa7",
  1947. "spi1_cs0_n_px6",
  1948. "spi1_mosi_px4",
  1949. "spi1_sck_px5",
  1950. "spi2_cs0_n_px3",
  1951. "spi2_miso_px1",
  1952. "spi2_mosi_px0",
  1953. "spi2_sck_px2",
  1954. "uart2_cts_n_pj5",
  1955. "uart2_rts_n_pj6",
  1956. "uart3_cts_n_pa1",
  1957. "uart3_rts_n_pc0",
  1958. "uart3_rxd_pw7",
  1959. "uart3_txd_pw6",
  1960. };
  1961. static const char * const gmi_alt_groups[] = {
  1962. "gmi_a16_pj7",
  1963. "gmi_cs3_n_pk4",
  1964. "gmi_cs7_n_pi6",
  1965. "gmi_wp_n_pc7",
  1966. };
  1967. static const char * const hda_groups[] = {
  1968. "clk1_req_pee2",
  1969. "dap1_din_pn1",
  1970. "dap1_dout_pn2",
  1971. "dap1_fs_pn0",
  1972. "dap1_sclk_pn3",
  1973. "dap2_din_pa4",
  1974. "dap2_dout_pa5",
  1975. "dap2_fs_pa2",
  1976. "dap2_sclk_pa3",
  1977. "pex_l0_clkreq_n_pdd2",
  1978. "pex_l0_prsnt_n_pdd0",
  1979. "pex_l0_rst_n_pdd1",
  1980. "pex_l1_clkreq_n_pdd6",
  1981. "pex_l1_prsnt_n_pdd4",
  1982. "pex_l1_rst_n_pdd5",
  1983. "pex_l2_clkreq_n_pcc7",
  1984. "pex_l2_prsnt_n_pdd7",
  1985. "pex_l2_rst_n_pcc6",
  1986. "pex_wake_n_pdd3",
  1987. "spdif_in_pk6",
  1988. };
  1989. static const char * const hdcp_groups[] = {
  1990. "gen2_i2c_scl_pt5",
  1991. "gen2_i2c_sda_pt6",
  1992. "lcd_pwr0_pb2",
  1993. "lcd_pwr2_pc6",
  1994. "lcd_sck_pz4",
  1995. "lcd_sdout_pn5",
  1996. "lcd_wr_n_pz3",
  1997. };
  1998. static const char * const hdmi_groups[] = {
  1999. "hdmi_int_pn7",
  2000. };
  2001. static const char * const hsi_groups[] = {
  2002. "ulpi_data0_po1",
  2003. "ulpi_data1_po2",
  2004. "ulpi_data2_po3",
  2005. "ulpi_data3_po4",
  2006. "ulpi_data4_po5",
  2007. "ulpi_data5_po6",
  2008. "ulpi_data6_po7",
  2009. "ulpi_data7_po0",
  2010. };
  2011. static const char * const i2c1_groups[] = {
  2012. "gen1_i2c_scl_pc4",
  2013. "gen1_i2c_sda_pc5",
  2014. "spdif_in_pk6",
  2015. "spdif_out_pk5",
  2016. "spi2_cs1_n_pw2",
  2017. "spi2_cs2_n_pw3",
  2018. };
  2019. static const char * const i2c2_groups[] = {
  2020. "gen2_i2c_scl_pt5",
  2021. "gen2_i2c_sda_pt6",
  2022. };
  2023. static const char * const i2c3_groups[] = {
  2024. "cam_i2c_scl_pbb1",
  2025. "cam_i2c_sda_pbb2",
  2026. "sdmmc4_cmd_pt7",
  2027. "sdmmc4_dat4_paa4",
  2028. };
  2029. static const char * const i2c4_groups[] = {
  2030. "ddc_scl_pv4",
  2031. "ddc_sda_pv5",
  2032. };
  2033. static const char * const i2cpwr_groups[] = {
  2034. "pwr_i2c_scl_pz6",
  2035. "pwr_i2c_sda_pz7",
  2036. };
  2037. static const char * const i2s0_groups[] = {
  2038. "dap1_din_pn1",
  2039. "dap1_dout_pn2",
  2040. "dap1_fs_pn0",
  2041. "dap1_sclk_pn3",
  2042. };
  2043. static const char * const i2s1_groups[] = {
  2044. "dap2_din_pa4",
  2045. "dap2_dout_pa5",
  2046. "dap2_fs_pa2",
  2047. "dap2_sclk_pa3",
  2048. };
  2049. static const char * const i2s2_groups[] = {
  2050. "dap3_din_pp1",
  2051. "dap3_dout_pp2",
  2052. "dap3_fs_pp0",
  2053. "dap3_sclk_pp3",
  2054. };
  2055. static const char * const i2s3_groups[] = {
  2056. "dap4_din_pp5",
  2057. "dap4_dout_pp6",
  2058. "dap4_fs_pp4",
  2059. "dap4_sclk_pp7",
  2060. };
  2061. static const char * const i2s4_groups[] = {
  2062. "pbb0",
  2063. "pbb7",
  2064. "pcc1",
  2065. "pcc2",
  2066. "sdmmc4_dat4_paa4",
  2067. "sdmmc4_dat5_paa5",
  2068. "sdmmc4_dat6_paa6",
  2069. "sdmmc4_dat7_paa7",
  2070. };
  2071. static const char * const invalid_groups[] = {
  2072. "kb_row3_pr3",
  2073. "sdmmc4_clk_pcc4",
  2074. };
  2075. static const char * const kbc_groups[] = {
  2076. "kb_col0_pq0",
  2077. "kb_col1_pq1",
  2078. "kb_col2_pq2",
  2079. "kb_col3_pq3",
  2080. "kb_col4_pq4",
  2081. "kb_col5_pq5",
  2082. "kb_col6_pq6",
  2083. "kb_col7_pq7",
  2084. "kb_row0_pr0",
  2085. "kb_row1_pr1",
  2086. "kb_row10_ps2",
  2087. "kb_row11_ps3",
  2088. "kb_row12_ps4",
  2089. "kb_row13_ps5",
  2090. "kb_row14_ps6",
  2091. "kb_row15_ps7",
  2092. "kb_row2_pr2",
  2093. "kb_row3_pr3",
  2094. "kb_row4_pr4",
  2095. "kb_row5_pr5",
  2096. "kb_row6_pr6",
  2097. "kb_row7_pr7",
  2098. "kb_row8_ps0",
  2099. "kb_row9_ps1",
  2100. };
  2101. static const char * const mio_groups[] = {
  2102. "kb_col6_pq6",
  2103. "kb_col7_pq7",
  2104. "kb_row10_ps2",
  2105. "kb_row11_ps3",
  2106. "kb_row12_ps4",
  2107. "kb_row13_ps5",
  2108. "kb_row14_ps6",
  2109. "kb_row15_ps7",
  2110. "kb_row6_pr6",
  2111. "kb_row7_pr7",
  2112. "kb_row8_ps0",
  2113. "kb_row9_ps1",
  2114. };
  2115. static const char * const nand_groups[] = {
  2116. "gmi_ad0_pg0",
  2117. "gmi_ad1_pg1",
  2118. "gmi_ad10_ph2",
  2119. "gmi_ad11_ph3",
  2120. "gmi_ad12_ph4",
  2121. "gmi_ad13_ph5",
  2122. "gmi_ad14_ph6",
  2123. "gmi_ad15_ph7",
  2124. "gmi_ad2_pg2",
  2125. "gmi_ad3_pg3",
  2126. "gmi_ad4_pg4",
  2127. "gmi_ad5_pg5",
  2128. "gmi_ad6_pg6",
  2129. "gmi_ad7_pg7",
  2130. "gmi_ad8_ph0",
  2131. "gmi_ad9_ph1",
  2132. "gmi_adv_n_pk0",
  2133. "gmi_clk_pk1",
  2134. "gmi_cs0_n_pj0",
  2135. "gmi_cs1_n_pj2",
  2136. "gmi_cs2_n_pk3",
  2137. "gmi_cs3_n_pk4",
  2138. "gmi_cs4_n_pk2",
  2139. "gmi_cs6_n_pi3",
  2140. "gmi_cs7_n_pi6",
  2141. "gmi_dqs_pi2",
  2142. "gmi_iordy_pi5",
  2143. "gmi_oe_n_pi1",
  2144. "gmi_rst_n_pi4",
  2145. "gmi_wait_pi7",
  2146. "gmi_wp_n_pc7",
  2147. "gmi_wr_n_pi0",
  2148. "kb_col0_pq0",
  2149. "kb_col1_pq1",
  2150. "kb_col2_pq2",
  2151. "kb_col3_pq3",
  2152. "kb_col4_pq4",
  2153. "kb_col5_pq5",
  2154. "kb_col6_pq6",
  2155. "kb_col7_pq7",
  2156. "kb_row0_pr0",
  2157. "kb_row1_pr1",
  2158. "kb_row10_ps2",
  2159. "kb_row11_ps3",
  2160. "kb_row12_ps4",
  2161. "kb_row13_ps5",
  2162. "kb_row14_ps6",
  2163. "kb_row15_ps7",
  2164. "kb_row2_pr2",
  2165. "kb_row3_pr3",
  2166. "kb_row4_pr4",
  2167. "kb_row5_pr5",
  2168. "kb_row6_pr6",
  2169. "kb_row7_pr7",
  2170. "kb_row8_ps0",
  2171. "kb_row9_ps1",
  2172. "sdmmc4_clk_pcc4",
  2173. "sdmmc4_cmd_pt7",
  2174. };
  2175. static const char * const nand_alt_groups[] = {
  2176. "gmi_cs6_n_pi3",
  2177. "gmi_cs7_n_pi6",
  2178. "gmi_rst_n_pi4",
  2179. };
  2180. static const char * const owr_groups[] = {
  2181. "pu0",
  2182. "pv2",
  2183. "kb_row5_pr5",
  2184. "owr",
  2185. };
  2186. static const char * const pcie_groups[] = {
  2187. "pex_l0_clkreq_n_pdd2",
  2188. "pex_l0_prsnt_n_pdd0",
  2189. "pex_l0_rst_n_pdd1",
  2190. "pex_l1_clkreq_n_pdd6",
  2191. "pex_l1_prsnt_n_pdd4",
  2192. "pex_l1_rst_n_pdd5",
  2193. "pex_l2_clkreq_n_pcc7",
  2194. "pex_l2_prsnt_n_pdd7",
  2195. "pex_l2_rst_n_pcc6",
  2196. "pex_wake_n_pdd3",
  2197. };
  2198. static const char * const pwm0_groups[] = {
  2199. "gmi_ad8_ph0",
  2200. "pu3",
  2201. "sdmmc3_dat3_pb4",
  2202. "sdmmc3_dat5_pd0",
  2203. "uart3_rts_n_pc0",
  2204. };
  2205. static const char * const pwm1_groups[] = {
  2206. "gmi_ad9_ph1",
  2207. "pu4",
  2208. "sdmmc3_dat2_pb5",
  2209. "sdmmc3_dat4_pd1",
  2210. };
  2211. static const char * const pwm2_groups[] = {
  2212. "gmi_ad10_ph2",
  2213. "pu5",
  2214. "sdmmc3_clk_pa6",
  2215. };
  2216. static const char * const pwm3_groups[] = {
  2217. "gmi_ad11_ph3",
  2218. "pu6",
  2219. "sdmmc3_cmd_pa7",
  2220. };
  2221. static const char * const pwr_int_n_groups[] = {
  2222. "pwr_int_n",
  2223. };
  2224. static const char * const rsvd1_groups[] = {
  2225. "gmi_ad0_pg0",
  2226. "gmi_ad1_pg1",
  2227. "gmi_ad12_ph4",
  2228. "gmi_ad13_ph5",
  2229. "gmi_ad14_ph6",
  2230. "gmi_ad15_ph7",
  2231. "gmi_ad2_pg2",
  2232. "gmi_ad3_pg3",
  2233. "gmi_ad4_pg4",
  2234. "gmi_ad5_pg5",
  2235. "gmi_ad6_pg6",
  2236. "gmi_ad7_pg7",
  2237. "gmi_adv_n_pk0",
  2238. "gmi_clk_pk1",
  2239. "gmi_cs0_n_pj0",
  2240. "gmi_cs1_n_pj2",
  2241. "gmi_cs2_n_pk3",
  2242. "gmi_cs3_n_pk4",
  2243. "gmi_cs4_n_pk2",
  2244. "gmi_dqs_pi2",
  2245. "gmi_iordy_pi5",
  2246. "gmi_oe_n_pi1",
  2247. "gmi_wait_pi7",
  2248. "gmi_wp_n_pc7",
  2249. "gmi_wr_n_pi0",
  2250. "pu1",
  2251. "pu2",
  2252. "pv0",
  2253. "pv1",
  2254. "sdmmc3_dat0_pb7",
  2255. "sdmmc3_dat1_pb6",
  2256. "sdmmc3_dat2_pb5",
  2257. "sdmmc3_dat3_pb4",
  2258. "vi_pclk_pt0",
  2259. };
  2260. static const char * const rsvd2_groups[] = {
  2261. "clk1_out_pw4",
  2262. "clk2_out_pw5",
  2263. "clk2_req_pcc5",
  2264. "clk3_out_pee0",
  2265. "clk3_req_pee1",
  2266. "clk_32k_in",
  2267. "clk_32k_out_pa0",
  2268. "core_pwr_req",
  2269. "cpu_pwr_req",
  2270. "crt_hsync_pv6",
  2271. "crt_vsync_pv7",
  2272. "dap3_din_pp1",
  2273. "dap3_dout_pp2",
  2274. "dap3_fs_pp0",
  2275. "dap3_sclk_pp3",
  2276. "dap4_din_pp5",
  2277. "dap4_dout_pp6",
  2278. "dap4_fs_pp4",
  2279. "dap4_sclk_pp7",
  2280. "ddc_scl_pv4",
  2281. "ddc_sda_pv5",
  2282. "gen1_i2c_scl_pc4",
  2283. "gen1_i2c_sda_pc5",
  2284. "pbb0",
  2285. "pbb7",
  2286. "pcc1",
  2287. "pcc2",
  2288. "pv0",
  2289. "pv1",
  2290. "pv2",
  2291. "pv3",
  2292. "hdmi_cec_pee3",
  2293. "hdmi_int_pn7",
  2294. "jtag_rtck_pu7",
  2295. "pwr_i2c_scl_pz6",
  2296. "pwr_i2c_sda_pz7",
  2297. "pwr_int_n",
  2298. "sdmmc1_clk_pz0",
  2299. "sdmmc1_cmd_pz1",
  2300. "sdmmc1_dat0_py7",
  2301. "sdmmc1_dat1_py6",
  2302. "sdmmc1_dat2_py5",
  2303. "sdmmc1_dat3_py4",
  2304. "sdmmc3_dat0_pb7",
  2305. "sdmmc3_dat1_pb6",
  2306. "sdmmc4_rst_n_pcc3",
  2307. "spdif_out_pk5",
  2308. "sys_clk_req_pz5",
  2309. "uart3_cts_n_pa1",
  2310. "uart3_rxd_pw7",
  2311. "uart3_txd_pw6",
  2312. "ulpi_clk_py0",
  2313. "ulpi_dir_py1",
  2314. "ulpi_nxt_py2",
  2315. "ulpi_stp_py3",
  2316. "vi_d0_pt4",
  2317. "vi_d10_pt2",
  2318. "vi_d11_pt3",
  2319. "vi_hsync_pd7",
  2320. "vi_vsync_pd6",
  2321. };
  2322. static const char * const rsvd3_groups[] = {
  2323. "cam_i2c_scl_pbb1",
  2324. "cam_i2c_sda_pbb2",
  2325. "clk1_out_pw4",
  2326. "clk1_req_pee2",
  2327. "clk2_out_pw5",
  2328. "clk2_req_pcc5",
  2329. "clk3_out_pee0",
  2330. "clk3_req_pee1",
  2331. "clk_32k_in",
  2332. "clk_32k_out_pa0",
  2333. "core_pwr_req",
  2334. "cpu_pwr_req",
  2335. "crt_hsync_pv6",
  2336. "crt_vsync_pv7",
  2337. "dap2_din_pa4",
  2338. "dap2_dout_pa5",
  2339. "dap2_fs_pa2",
  2340. "dap2_sclk_pa3",
  2341. "ddc_scl_pv4",
  2342. "ddc_sda_pv5",
  2343. "gen1_i2c_scl_pc4",
  2344. "gen1_i2c_sda_pc5",
  2345. "pbb0",
  2346. "pbb7",
  2347. "pcc1",
  2348. "pcc2",
  2349. "pv0",
  2350. "pv1",
  2351. "pv2",
  2352. "pv3",
  2353. "hdmi_cec_pee3",
  2354. "hdmi_int_pn7",
  2355. "jtag_rtck_pu7",
  2356. "kb_row0_pr0",
  2357. "kb_row1_pr1",
  2358. "kb_row2_pr2",
  2359. "kb_row3_pr3",
  2360. "lcd_d0_pe0",
  2361. "lcd_d1_pe1",
  2362. "lcd_d10_pf2",
  2363. "lcd_d11_pf3",
  2364. "lcd_d12_pf4",
  2365. "lcd_d13_pf5",
  2366. "lcd_d14_pf6",
  2367. "lcd_d15_pf7",
  2368. "lcd_d16_pm0",
  2369. "lcd_d17_pm1",
  2370. "lcd_d18_pm2",
  2371. "lcd_d19_pm3",
  2372. "lcd_d2_pe2",
  2373. "lcd_d20_pm4",
  2374. "lcd_d21_pm5",
  2375. "lcd_d22_pm6",
  2376. "lcd_d23_pm7",
  2377. "lcd_d3_pe3",
  2378. "lcd_d4_pe4",
  2379. "lcd_d5_pe5",
  2380. "lcd_d6_pe6",
  2381. "lcd_d7_pe7",
  2382. "lcd_d8_pf0",
  2383. "lcd_d9_pf1",
  2384. "lcd_dc0_pn6",
  2385. "lcd_dc1_pd2",
  2386. "lcd_de_pj1",
  2387. "lcd_hsync_pj3",
  2388. "lcd_m1_pw1",
  2389. "lcd_pclk_pb3",
  2390. "lcd_pwr1_pc1",
  2391. "lcd_vsync_pj4",
  2392. "owr",
  2393. "pex_l0_clkreq_n_pdd2",
  2394. "pex_l0_prsnt_n_pdd0",
  2395. "pex_l0_rst_n_pdd1",
  2396. "pex_l1_clkreq_n_pdd6",
  2397. "pex_l1_prsnt_n_pdd4",
  2398. "pex_l1_rst_n_pdd5",
  2399. "pex_l2_clkreq_n_pcc7",
  2400. "pex_l2_prsnt_n_pdd7",
  2401. "pex_l2_rst_n_pcc6",
  2402. "pex_wake_n_pdd3",
  2403. "pwr_i2c_scl_pz6",
  2404. "pwr_i2c_sda_pz7",
  2405. "pwr_int_n",
  2406. "sdmmc1_clk_pz0",
  2407. "sdmmc1_cmd_pz1",
  2408. "sdmmc4_rst_n_pcc3",
  2409. "sys_clk_req_pz5",
  2410. };
  2411. static const char * const rsvd4_groups[] = {
  2412. "clk1_out_pw4",
  2413. "clk1_req_pee2",
  2414. "clk2_out_pw5",
  2415. "clk2_req_pcc5",
  2416. "clk3_out_pee0",
  2417. "clk3_req_pee1",
  2418. "clk_32k_in",
  2419. "clk_32k_out_pa0",
  2420. "core_pwr_req",
  2421. "cpu_pwr_req",
  2422. "crt_hsync_pv6",
  2423. "crt_vsync_pv7",
  2424. "dap4_din_pp5",
  2425. "dap4_dout_pp6",
  2426. "dap4_fs_pp4",
  2427. "dap4_sclk_pp7",
  2428. "ddc_scl_pv4",
  2429. "ddc_sda_pv5",
  2430. "gen1_i2c_scl_pc4",
  2431. "gen1_i2c_sda_pc5",
  2432. "gen2_i2c_scl_pt5",
  2433. "gen2_i2c_sda_pt6",
  2434. "gmi_a19_pk7",
  2435. "gmi_ad0_pg0",
  2436. "gmi_ad1_pg1",
  2437. "gmi_ad10_ph2",
  2438. "gmi_ad11_ph3",
  2439. "gmi_ad12_ph4",
  2440. "gmi_ad13_ph5",
  2441. "gmi_ad14_ph6",
  2442. "gmi_ad15_ph7",
  2443. "gmi_ad2_pg2",
  2444. "gmi_ad3_pg3",
  2445. "gmi_ad4_pg4",
  2446. "gmi_ad5_pg5",
  2447. "gmi_ad6_pg6",
  2448. "gmi_ad7_pg7",
  2449. "gmi_ad8_ph0",
  2450. "gmi_ad9_ph1",
  2451. "gmi_adv_n_pk0",
  2452. "gmi_clk_pk1",
  2453. "gmi_cs2_n_pk3",
  2454. "gmi_cs4_n_pk2",
  2455. "gmi_dqs_pi2",
  2456. "gmi_iordy_pi5",
  2457. "gmi_oe_n_pi1",
  2458. "gmi_rst_n_pi4",
  2459. "gmi_wait_pi7",
  2460. "gmi_wr_n_pi0",
  2461. "pcc2",
  2462. "pu0",
  2463. "pu1",
  2464. "pu2",
  2465. "pu3",
  2466. "pu4",
  2467. "pu5",
  2468. "pu6",
  2469. "pv0",
  2470. "pv1",
  2471. "pv2",
  2472. "pv3",
  2473. "hdmi_cec_pee3",
  2474. "hdmi_int_pn7",
  2475. "jtag_rtck_pu7",
  2476. "kb_col2_pq2",
  2477. "kb_col3_pq3",
  2478. "kb_col4_pq4",
  2479. "kb_col5_pq5",
  2480. "kb_row0_pr0",
  2481. "kb_row1_pr1",
  2482. "kb_row2_pr2",
  2483. "kb_row4_pr4",
  2484. "lcd_cs0_n_pn4",
  2485. "lcd_cs1_n_pw0",
  2486. "lcd_d0_pe0",
  2487. "lcd_d1_pe1",
  2488. "lcd_d10_pf2",
  2489. "lcd_d11_pf3",
  2490. "lcd_d12_pf4",
  2491. "lcd_d13_pf5",
  2492. "lcd_d14_pf6",
  2493. "lcd_d15_pf7",
  2494. "lcd_d16_pm0",
  2495. "lcd_d17_pm1",
  2496. "lcd_d18_pm2",
  2497. "lcd_d19_pm3",
  2498. "lcd_d2_pe2",
  2499. "lcd_d20_pm4",
  2500. "lcd_d21_pm5",
  2501. "lcd_d22_pm6",
  2502. "lcd_d23_pm7",
  2503. "lcd_d3_pe3",
  2504. "lcd_d4_pe4",
  2505. "lcd_d5_pe5",
  2506. "lcd_d6_pe6",
  2507. "lcd_d7_pe7",
  2508. "lcd_d8_pf0",
  2509. "lcd_d9_pf1",
  2510. "lcd_dc0_pn6",
  2511. "lcd_dc1_pd2",
  2512. "lcd_de_pj1",
  2513. "lcd_hsync_pj3",
  2514. "lcd_m1_pw1",
  2515. "lcd_pclk_pb3",
  2516. "lcd_pwr1_pc1",
  2517. "lcd_sdin_pz2",
  2518. "lcd_vsync_pj4",
  2519. "owr",
  2520. "pex_l0_clkreq_n_pdd2",
  2521. "pex_l0_prsnt_n_pdd0",
  2522. "pex_l0_rst_n_pdd1",
  2523. "pex_l1_clkreq_n_pdd6",
  2524. "pex_l1_prsnt_n_pdd4",
  2525. "pex_l1_rst_n_pdd5",
  2526. "pex_l2_clkreq_n_pcc7",
  2527. "pex_l2_prsnt_n_pdd7",
  2528. "pex_l2_rst_n_pcc6",
  2529. "pex_wake_n_pdd3",
  2530. "pwr_i2c_scl_pz6",
  2531. "pwr_i2c_sda_pz7",
  2532. "pwr_int_n",
  2533. "spi1_miso_px7",
  2534. "sys_clk_req_pz5",
  2535. "uart3_cts_n_pa1",
  2536. "uart3_rts_n_pc0",
  2537. "uart3_rxd_pw7",
  2538. "uart3_txd_pw6",
  2539. "vi_d0_pt4",
  2540. "vi_d1_pd5",
  2541. "vi_d10_pt2",
  2542. "vi_d11_pt3",
  2543. "vi_d2_pl0",
  2544. "vi_d3_pl1",
  2545. "vi_d4_pl2",
  2546. "vi_d5_pl3",
  2547. "vi_d6_pl4",
  2548. "vi_d7_pl5",
  2549. "vi_d8_pl6",
  2550. "vi_d9_pl7",
  2551. "vi_hsync_pd7",
  2552. "vi_pclk_pt0",
  2553. "vi_vsync_pd6",
  2554. };
  2555. static const char * const rtck_groups[] = {
  2556. "jtag_rtck_pu7",
  2557. };
  2558. static const char * const sata_groups[] = {
  2559. "gmi_cs6_n_pi3",
  2560. };
  2561. static const char * const sdmmc1_groups[] = {
  2562. "sdmmc1_clk_pz0",
  2563. "sdmmc1_cmd_pz1",
  2564. "sdmmc1_dat0_py7",
  2565. "sdmmc1_dat1_py6",
  2566. "sdmmc1_dat2_py5",
  2567. "sdmmc1_dat3_py4",
  2568. };
  2569. static const char * const sdmmc2_groups[] = {
  2570. "dap1_din_pn1",
  2571. "dap1_dout_pn2",
  2572. "dap1_fs_pn0",
  2573. "dap1_sclk_pn3",
  2574. "kb_row10_ps2",
  2575. "kb_row11_ps3",
  2576. "kb_row12_ps4",
  2577. "kb_row13_ps5",
  2578. "kb_row14_ps6",
  2579. "kb_row15_ps7",
  2580. "kb_row6_pr6",
  2581. "kb_row7_pr7",
  2582. "kb_row8_ps0",
  2583. "kb_row9_ps1",
  2584. "spdif_in_pk6",
  2585. "spdif_out_pk5",
  2586. "vi_d1_pd5",
  2587. "vi_d2_pl0",
  2588. "vi_d3_pl1",
  2589. "vi_d4_pl2",
  2590. "vi_d5_pl3",
  2591. "vi_d6_pl4",
  2592. "vi_d7_pl5",
  2593. "vi_d8_pl6",
  2594. "vi_d9_pl7",
  2595. "vi_pclk_pt0",
  2596. };
  2597. static const char * const sdmmc3_groups[] = {
  2598. "sdmmc3_clk_pa6",
  2599. "sdmmc3_cmd_pa7",
  2600. "sdmmc3_dat0_pb7",
  2601. "sdmmc3_dat1_pb6",
  2602. "sdmmc3_dat2_pb5",
  2603. "sdmmc3_dat3_pb4",
  2604. "sdmmc3_dat4_pd1",
  2605. "sdmmc3_dat5_pd0",
  2606. "sdmmc3_dat6_pd3",
  2607. "sdmmc3_dat7_pd4",
  2608. };
  2609. static const char * const sdmmc4_groups[] = {
  2610. "cam_i2c_scl_pbb1",
  2611. "cam_i2c_sda_pbb2",
  2612. "cam_mclk_pcc0",
  2613. "pbb0",
  2614. "pbb3",
  2615. "pbb4",
  2616. "pbb5",
  2617. "pbb6",
  2618. "pbb7",
  2619. "pcc1",
  2620. "sdmmc4_clk_pcc4",
  2621. "sdmmc4_cmd_pt7",
  2622. "sdmmc4_dat0_paa0",
  2623. "sdmmc4_dat1_paa1",
  2624. "sdmmc4_dat2_paa2",
  2625. "sdmmc4_dat3_paa3",
  2626. "sdmmc4_dat4_paa4",
  2627. "sdmmc4_dat5_paa5",
  2628. "sdmmc4_dat6_paa6",
  2629. "sdmmc4_dat7_paa7",
  2630. "sdmmc4_rst_n_pcc3",
  2631. };
  2632. static const char * const spdif_groups[] = {
  2633. "sdmmc3_dat6_pd3",
  2634. "sdmmc3_dat7_pd4",
  2635. "spdif_in_pk6",
  2636. "spdif_out_pk5",
  2637. "uart2_rxd_pc3",
  2638. "uart2_txd_pc2",
  2639. };
  2640. static const char * const spi1_groups[] = {
  2641. "spi1_cs0_n_px6",
  2642. "spi1_miso_px7",
  2643. "spi1_mosi_px4",
  2644. "spi1_sck_px5",
  2645. "ulpi_clk_py0",
  2646. "ulpi_dir_py1",
  2647. "ulpi_nxt_py2",
  2648. "ulpi_stp_py3",
  2649. };
  2650. static const char * const spi2_groups[] = {
  2651. "sdmmc3_cmd_pa7",
  2652. "sdmmc3_dat4_pd1",
  2653. "sdmmc3_dat5_pd0",
  2654. "sdmmc3_dat6_pd3",
  2655. "sdmmc3_dat7_pd4",
  2656. "spi1_cs0_n_px6",
  2657. "spi1_mosi_px4",
  2658. "spi1_sck_px5",
  2659. "spi2_cs0_n_px3",
  2660. "spi2_cs1_n_pw2",
  2661. "spi2_cs2_n_pw3",
  2662. "spi2_miso_px1",
  2663. "spi2_mosi_px0",
  2664. "spi2_sck_px2",
  2665. "ulpi_data4_po5",
  2666. "ulpi_data5_po6",
  2667. "ulpi_data6_po7",
  2668. "ulpi_data7_po0",
  2669. };
  2670. static const char * const spi2_alt_groups[] = {
  2671. "spi1_cs0_n_px6",
  2672. "spi1_miso_px7",
  2673. "spi1_mosi_px4",
  2674. "spi1_sck_px5",
  2675. "spi2_cs1_n_pw2",
  2676. "spi2_cs2_n_pw3",
  2677. };
  2678. static const char * const spi3_groups[] = {
  2679. "sdmmc3_clk_pa6",
  2680. "sdmmc3_dat0_pb7",
  2681. "sdmmc3_dat1_pb6",
  2682. "sdmmc3_dat2_pb5",
  2683. "sdmmc3_dat3_pb4",
  2684. "sdmmc4_dat0_paa0",
  2685. "sdmmc4_dat1_paa1",
  2686. "sdmmc4_dat2_paa2",
  2687. "sdmmc4_dat3_paa3",
  2688. "spi1_miso_px7",
  2689. "spi2_cs0_n_px3",
  2690. "spi2_cs1_n_pw2",
  2691. "spi2_cs2_n_pw3",
  2692. "spi2_miso_px1",
  2693. "spi2_mosi_px0",
  2694. "spi2_sck_px2",
  2695. "ulpi_data0_po1",
  2696. "ulpi_data1_po2",
  2697. "ulpi_data2_po3",
  2698. "ulpi_data3_po4",
  2699. };
  2700. static const char * const spi4_groups[] = {
  2701. "gmi_a16_pj7",
  2702. "gmi_a17_pb0",
  2703. "gmi_a18_pb1",
  2704. "gmi_a19_pk7",
  2705. "sdmmc3_dat4_pd1",
  2706. "sdmmc3_dat5_pd0",
  2707. "sdmmc3_dat6_pd3",
  2708. "sdmmc3_dat7_pd4",
  2709. "uart2_cts_n_pj5",
  2710. "uart2_rts_n_pj6",
  2711. "uart2_rxd_pc3",
  2712. "uart2_txd_pc2",
  2713. };
  2714. static const char * const spi5_groups[] = {
  2715. "lcd_cs0_n_pn4",
  2716. "lcd_cs1_n_pw0",
  2717. "lcd_pwr0_pb2",
  2718. "lcd_pwr2_pc6",
  2719. "lcd_sck_pz4",
  2720. "lcd_sdin_pz2",
  2721. "lcd_sdout_pn5",
  2722. "lcd_wr_n_pz3",
  2723. };
  2724. static const char * const spi6_groups[] = {
  2725. "spi2_cs0_n_px3",
  2726. "spi2_miso_px1",
  2727. "spi2_mosi_px0",
  2728. "spi2_sck_px2",
  2729. };
  2730. static const char * const sysclk_groups[] = {
  2731. "sys_clk_req_pz5",
  2732. };
  2733. static const char * const test_groups[] = {
  2734. "kb_col0_pq0",
  2735. "kb_col1_pq1",
  2736. };
  2737. static const char * const trace_groups[] = {
  2738. "kb_col0_pq0",
  2739. "kb_col1_pq1",
  2740. "kb_col2_pq2",
  2741. "kb_col3_pq3",
  2742. "kb_col4_pq4",
  2743. "kb_col5_pq5",
  2744. "kb_col6_pq6",
  2745. "kb_col7_pq7",
  2746. "kb_row4_pr4",
  2747. "kb_row5_pr5",
  2748. };
  2749. static const char * const uarta_groups[] = {
  2750. "pu0",
  2751. "pu1",
  2752. "pu2",
  2753. "pu3",
  2754. "pu4",
  2755. "pu5",
  2756. "pu6",
  2757. "sdmmc1_clk_pz0",
  2758. "sdmmc1_cmd_pz1",
  2759. "sdmmc1_dat0_py7",
  2760. "sdmmc1_dat1_py6",
  2761. "sdmmc1_dat2_py5",
  2762. "sdmmc1_dat3_py4",
  2763. "sdmmc3_clk_pa6",
  2764. "sdmmc3_cmd_pa7",
  2765. "uart2_cts_n_pj5",
  2766. "uart2_rts_n_pj6",
  2767. "uart2_rxd_pc3",
  2768. "uart2_txd_pc2",
  2769. "ulpi_data0_po1",
  2770. "ulpi_data1_po2",
  2771. "ulpi_data2_po3",
  2772. "ulpi_data3_po4",
  2773. "ulpi_data4_po5",
  2774. "ulpi_data5_po6",
  2775. "ulpi_data6_po7",
  2776. "ulpi_data7_po0",
  2777. };
  2778. static const char * const uartb_groups[] = {
  2779. "uart2_cts_n_pj5",
  2780. "uart2_rts_n_pj6",
  2781. "uart2_rxd_pc3",
  2782. "uart2_txd_pc2",
  2783. };
  2784. static const char * const uartc_groups[] = {
  2785. "uart3_cts_n_pa1",
  2786. "uart3_rts_n_pc0",
  2787. "uart3_rxd_pw7",
  2788. "uart3_txd_pw6",
  2789. };
  2790. static const char * const uartd_groups[] = {
  2791. "gmi_a16_pj7",
  2792. "gmi_a17_pb0",
  2793. "gmi_a18_pb1",
  2794. "gmi_a19_pk7",
  2795. "ulpi_clk_py0",
  2796. "ulpi_dir_py1",
  2797. "ulpi_nxt_py2",
  2798. "ulpi_stp_py3",
  2799. };
  2800. static const char * const uarte_groups[] = {
  2801. "sdmmc1_dat0_py7",
  2802. "sdmmc1_dat1_py6",
  2803. "sdmmc1_dat2_py5",
  2804. "sdmmc1_dat3_py4",
  2805. "sdmmc4_dat0_paa0",
  2806. "sdmmc4_dat1_paa1",
  2807. "sdmmc4_dat2_paa2",
  2808. "sdmmc4_dat3_paa3",
  2809. };
  2810. static const char * const ulpi_groups[] = {
  2811. "ulpi_clk_py0",
  2812. "ulpi_data0_po1",
  2813. "ulpi_data1_po2",
  2814. "ulpi_data2_po3",
  2815. "ulpi_data3_po4",
  2816. "ulpi_data4_po5",
  2817. "ulpi_data5_po6",
  2818. "ulpi_data6_po7",
  2819. "ulpi_data7_po0",
  2820. "ulpi_dir_py1",
  2821. "ulpi_nxt_py2",
  2822. "ulpi_stp_py3",
  2823. };
  2824. static const char * const vgp1_groups[] = {
  2825. "cam_i2c_scl_pbb1",
  2826. };
  2827. static const char * const vgp2_groups[] = {
  2828. "cam_i2c_sda_pbb2",
  2829. };
  2830. static const char * const vgp3_groups[] = {
  2831. "pbb3",
  2832. "sdmmc4_dat5_paa5",
  2833. };
  2834. static const char * const vgp4_groups[] = {
  2835. "pbb4",
  2836. "sdmmc4_dat6_paa6",
  2837. };
  2838. static const char * const vgp5_groups[] = {
  2839. "pbb5",
  2840. "sdmmc4_dat7_paa7",
  2841. };
  2842. static const char * const vgp6_groups[] = {
  2843. "pbb6",
  2844. "sdmmc4_rst_n_pcc3",
  2845. };
  2846. static const char * const vi_groups[] = {
  2847. "cam_mclk_pcc0",
  2848. "vi_d0_pt4",
  2849. "vi_d1_pd5",
  2850. "vi_d10_pt2",
  2851. "vi_d11_pt3",
  2852. "vi_d2_pl0",
  2853. "vi_d3_pl1",
  2854. "vi_d4_pl2",
  2855. "vi_d5_pl3",
  2856. "vi_d6_pl4",
  2857. "vi_d7_pl5",
  2858. "vi_d8_pl6",
  2859. "vi_d9_pl7",
  2860. "vi_hsync_pd7",
  2861. "vi_mclk_pt1",
  2862. "vi_pclk_pt0",
  2863. "vi_vsync_pd6",
  2864. };
  2865. static const char * const vi_alt1_groups[] = {
  2866. "cam_mclk_pcc0",
  2867. "vi_mclk_pt1",
  2868. };
  2869. static const char * const vi_alt2_groups[] = {
  2870. "vi_mclk_pt1",
  2871. };
  2872. static const char * const vi_alt3_groups[] = {
  2873. "cam_mclk_pcc0",
  2874. "vi_mclk_pt1",
  2875. };
  2876. #define FUNCTION(fname) \
  2877. { \
  2878. .name = #fname, \
  2879. .groups = fname##_groups, \
  2880. .ngroups = ARRAY_SIZE(fname##_groups), \
  2881. }
  2882. static const struct tegra_function tegra30_functions[] = {
  2883. FUNCTION(blink),
  2884. FUNCTION(cec),
  2885. FUNCTION(clk_12m_out),
  2886. FUNCTION(clk_32k_in),
  2887. FUNCTION(core_pwr_req),
  2888. FUNCTION(cpu_pwr_req),
  2889. FUNCTION(crt),
  2890. FUNCTION(dap),
  2891. FUNCTION(ddr),
  2892. FUNCTION(dev3),
  2893. FUNCTION(displaya),
  2894. FUNCTION(displayb),
  2895. FUNCTION(dtv),
  2896. FUNCTION(extperiph1),
  2897. FUNCTION(extperiph2),
  2898. FUNCTION(extperiph3),
  2899. FUNCTION(gmi),
  2900. FUNCTION(gmi_alt),
  2901. FUNCTION(hda),
  2902. FUNCTION(hdcp),
  2903. FUNCTION(hdmi),
  2904. FUNCTION(hsi),
  2905. FUNCTION(i2c1),
  2906. FUNCTION(i2c2),
  2907. FUNCTION(i2c3),
  2908. FUNCTION(i2c4),
  2909. FUNCTION(i2cpwr),
  2910. FUNCTION(i2s0),
  2911. FUNCTION(i2s1),
  2912. FUNCTION(i2s2),
  2913. FUNCTION(i2s3),
  2914. FUNCTION(i2s4),
  2915. FUNCTION(invalid),
  2916. FUNCTION(kbc),
  2917. FUNCTION(mio),
  2918. FUNCTION(nand),
  2919. FUNCTION(nand_alt),
  2920. FUNCTION(owr),
  2921. FUNCTION(pcie),
  2922. FUNCTION(pwm0),
  2923. FUNCTION(pwm1),
  2924. FUNCTION(pwm2),
  2925. FUNCTION(pwm3),
  2926. FUNCTION(pwr_int_n),
  2927. FUNCTION(rsvd1),
  2928. FUNCTION(rsvd2),
  2929. FUNCTION(rsvd3),
  2930. FUNCTION(rsvd4),
  2931. FUNCTION(rtck),
  2932. FUNCTION(sata),
  2933. FUNCTION(sdmmc1),
  2934. FUNCTION(sdmmc2),
  2935. FUNCTION(sdmmc3),
  2936. FUNCTION(sdmmc4),
  2937. FUNCTION(spdif),
  2938. FUNCTION(spi1),
  2939. FUNCTION(spi2),
  2940. FUNCTION(spi2_alt),
  2941. FUNCTION(spi3),
  2942. FUNCTION(spi4),
  2943. FUNCTION(spi5),
  2944. FUNCTION(spi6),
  2945. FUNCTION(sysclk),
  2946. FUNCTION(test),
  2947. FUNCTION(trace),
  2948. FUNCTION(uarta),
  2949. FUNCTION(uartb),
  2950. FUNCTION(uartc),
  2951. FUNCTION(uartd),
  2952. FUNCTION(uarte),
  2953. FUNCTION(ulpi),
  2954. FUNCTION(vgp1),
  2955. FUNCTION(vgp2),
  2956. FUNCTION(vgp3),
  2957. FUNCTION(vgp4),
  2958. FUNCTION(vgp5),
  2959. FUNCTION(vgp6),
  2960. FUNCTION(vi),
  2961. FUNCTION(vi_alt1),
  2962. FUNCTION(vi_alt2),
  2963. FUNCTION(vi_alt3),
  2964. };
  2965. #define DRV_PINGROUP_REG_A 0x868 /* bank 0 */
  2966. #define PINGROUP_REG_A 0x3000 /* bank 1 */
  2967. #define PINGROUP_REG_Y(r) ((r) - PINGROUP_REG_A)
  2968. #define PINGROUP_REG_N(r) -1
  2969. #define PINGROUP(pg_name, f0, f1, f2, f3, f_safe, r, od, ior) \
  2970. { \
  2971. .name = #pg_name, \
  2972. .pins = pg_name##_pins, \
  2973. .npins = ARRAY_SIZE(pg_name##_pins), \
  2974. .funcs = { \
  2975. TEGRA_MUX_ ## f0, \
  2976. TEGRA_MUX_ ## f1, \
  2977. TEGRA_MUX_ ## f2, \
  2978. TEGRA_MUX_ ## f3, \
  2979. }, \
  2980. .func_safe = TEGRA_MUX_ ## f_safe, \
  2981. .mux_reg = PINGROUP_REG_Y(r), \
  2982. .mux_bank = 1, \
  2983. .mux_bit = 0, \
  2984. .pupd_reg = PINGROUP_REG_Y(r), \
  2985. .pupd_bank = 1, \
  2986. .pupd_bit = 2, \
  2987. .tri_reg = PINGROUP_REG_Y(r), \
  2988. .tri_bank = 1, \
  2989. .tri_bit = 4, \
  2990. .einput_reg = PINGROUP_REG_Y(r), \
  2991. .einput_bank = 1, \
  2992. .einput_bit = 5, \
  2993. .odrain_reg = PINGROUP_REG_##od(r), \
  2994. .odrain_bank = 1, \
  2995. .odrain_bit = 6, \
  2996. .lock_reg = PINGROUP_REG_Y(r), \
  2997. .lock_bank = 1, \
  2998. .lock_bit = 7, \
  2999. .ioreset_reg = PINGROUP_REG_##ior(r), \
  3000. .ioreset_bank = 1, \
  3001. .ioreset_bit = 8, \
  3002. .drv_reg = -1, \
  3003. }
  3004. #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, \
  3005. drvdn_b, drvdn_w, drvup_b, drvup_w, \
  3006. slwr_b, slwr_w, slwf_b, slwf_w) \
  3007. { \
  3008. .name = "drive_" #pg_name, \
  3009. .pins = drive_##pg_name##_pins, \
  3010. .npins = ARRAY_SIZE(drive_##pg_name##_pins), \
  3011. .mux_reg = -1, \
  3012. .pupd_reg = -1, \
  3013. .tri_reg = -1, \
  3014. .einput_reg = -1, \
  3015. .odrain_reg = -1, \
  3016. .lock_reg = -1, \
  3017. .ioreset_reg = -1, \
  3018. .drv_reg = ((r) - DRV_PINGROUP_REG_A), \
  3019. .drv_bank = 0, \
  3020. .hsm_bit = hsm_b, \
  3021. .schmitt_bit = schmitt_b, \
  3022. .lpmd_bit = lpmd_b, \
  3023. .drvdn_bit = drvdn_b, \
  3024. .drvdn_width = drvdn_w, \
  3025. .drvup_bit = drvup_b, \
  3026. .drvup_width = drvup_w, \
  3027. .slwr_bit = slwr_b, \
  3028. .slwr_width = slwr_w, \
  3029. .slwf_bit = slwf_b, \
  3030. .slwf_width = slwf_w, \
  3031. }
  3032. static const struct tegra_pingroup tegra30_groups[] = {
  3033. /* pg_name, f0, f1, f2, f3, safe, r, od, ior */
  3034. /* FIXME: Fill in correct data in safe column */
  3035. PINGROUP(clk_32k_out_pa0, BLINK, RSVD2, RSVD3, RSVD4, RSVD4, 0x331c, N, N),
  3036. PINGROUP(uart3_cts_n_pa1, UARTC, RSVD2, GMI, RSVD4, RSVD4, 0x317c, N, N),
  3037. PINGROUP(dap2_fs_pa2, I2S1, HDA, RSVD3, GMI, RSVD3, 0x3358, N, N),
  3038. PINGROUP(dap2_sclk_pa3, I2S1, HDA, RSVD3, GMI, RSVD3, 0x3364, N, N),
  3039. PINGROUP(dap2_din_pa4, I2S1, HDA, RSVD3, GMI, RSVD3, 0x335c, N, N),
  3040. PINGROUP(dap2_dout_pa5, I2S1, HDA, RSVD3, GMI, RSVD3, 0x3360, N, N),
  3041. PINGROUP(sdmmc3_clk_pa6, UARTA, PWM2, SDMMC3, SPI3, SPI3, 0x3390, N, N),
  3042. PINGROUP(sdmmc3_cmd_pa7, UARTA, PWM3, SDMMC3, SPI2, SPI2, 0x3394, N, N),
  3043. PINGROUP(gmi_a17_pb0, UARTD, SPI4, GMI, DTV, DTV, 0x3234, N, N),
  3044. PINGROUP(gmi_a18_pb1, UARTD, SPI4, GMI, DTV, DTV, 0x3238, N, N),
  3045. PINGROUP(lcd_pwr0_pb2, DISPLAYA, DISPLAYB, SPI5, HDCP, HDCP, 0x3090, N, N),
  3046. PINGROUP(lcd_pclk_pb3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x3094, N, N),
  3047. PINGROUP(sdmmc3_dat3_pb4, RSVD1, PWM0, SDMMC3, SPI3, RSVD1, 0x33a4, N, N),
  3048. PINGROUP(sdmmc3_dat2_pb5, RSVD1, PWM1, SDMMC3, SPI3, RSVD1, 0x33a0, N, N),
  3049. PINGROUP(sdmmc3_dat1_pb6, RSVD1, RSVD2, SDMMC3, SPI3, RSVD2, 0x339c, N, N),
  3050. PINGROUP(sdmmc3_dat0_pb7, RSVD1, RSVD2, SDMMC3, SPI3, RSVD2, 0x3398, N, N),
  3051. PINGROUP(uart3_rts_n_pc0, UARTC, PWM0, GMI, RSVD4, RSVD4, 0x3180, N, N),
  3052. PINGROUP(lcd_pwr1_pc1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x3070, N, N),
  3053. PINGROUP(uart2_txd_pc2, UARTB, SPDIF, UARTA, SPI4, SPI4, 0x3168, N, N),
  3054. PINGROUP(uart2_rxd_pc3, UARTB, SPDIF, UARTA, SPI4, SPI4, 0x3164, N, N),
  3055. PINGROUP(gen1_i2c_scl_pc4, I2C1, RSVD2, RSVD3, RSVD4, RSVD4, 0x31a4, Y, N),
  3056. PINGROUP(gen1_i2c_sda_pc5, I2C1, RSVD2, RSVD3, RSVD4, RSVD4, 0x31a0, Y, N),
  3057. PINGROUP(lcd_pwr2_pc6, DISPLAYA, DISPLAYB, SPI5, HDCP, HDCP, 0x3074, N, N),
  3058. PINGROUP(gmi_wp_n_pc7, RSVD1, NAND, GMI, GMI_ALT, RSVD1, 0x31c0, N, N),
  3059. PINGROUP(sdmmc3_dat5_pd0, PWM0, SPI4, SDMMC3, SPI2, SPI2, 0x33ac, N, N),
  3060. PINGROUP(sdmmc3_dat4_pd1, PWM1, SPI4, SDMMC3, SPI2, SPI2, 0x33a8, N, N),
  3061. PINGROUP(lcd_dc1_pd2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x310c, N, N),
  3062. PINGROUP(sdmmc3_dat6_pd3, SPDIF, SPI4, SDMMC3, SPI2, SPI2, 0x33b0, N, N),
  3063. PINGROUP(sdmmc3_dat7_pd4, SPDIF, SPI4, SDMMC3, SPI2, SPI2, 0x33b4, N, N),
  3064. PINGROUP(vi_d1_pd5, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x3128, N, Y),
  3065. PINGROUP(vi_vsync_pd6, DDR, RSVD2, VI, RSVD4, RSVD4, 0x315c, N, Y),
  3066. PINGROUP(vi_hsync_pd7, DDR, RSVD2, VI, RSVD4, RSVD4, 0x3160, N, Y),
  3067. PINGROUP(lcd_d0_pe0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30a4, N, N),
  3068. PINGROUP(lcd_d1_pe1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30a8, N, N),
  3069. PINGROUP(lcd_d2_pe2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30ac, N, N),
  3070. PINGROUP(lcd_d3_pe3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30b0, N, N),
  3071. PINGROUP(lcd_d4_pe4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30b4, N, N),
  3072. PINGROUP(lcd_d5_pe5, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30b8, N, N),
  3073. PINGROUP(lcd_d6_pe6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30bc, N, N),
  3074. PINGROUP(lcd_d7_pe7, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30c0, N, N),
  3075. PINGROUP(lcd_d8_pf0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30c4, N, N),
  3076. PINGROUP(lcd_d9_pf1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30c8, N, N),
  3077. PINGROUP(lcd_d10_pf2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30cc, N, N),
  3078. PINGROUP(lcd_d11_pf3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30d0, N, N),
  3079. PINGROUP(lcd_d12_pf4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30d4, N, N),
  3080. PINGROUP(lcd_d13_pf5, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30d8, N, N),
  3081. PINGROUP(lcd_d14_pf6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30dc, N, N),
  3082. PINGROUP(lcd_d15_pf7, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30e0, N, N),
  3083. PINGROUP(gmi_ad0_pg0, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31f0, N, N),
  3084. PINGROUP(gmi_ad1_pg1, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31f4, N, N),
  3085. PINGROUP(gmi_ad2_pg2, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31f8, N, N),
  3086. PINGROUP(gmi_ad3_pg3, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31fc, N, N),
  3087. PINGROUP(gmi_ad4_pg4, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3200, N, N),
  3088. PINGROUP(gmi_ad5_pg5, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3204, N, N),
  3089. PINGROUP(gmi_ad6_pg6, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3208, N, N),
  3090. PINGROUP(gmi_ad7_pg7, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x320c, N, N),
  3091. PINGROUP(gmi_ad8_ph0, PWM0, NAND, GMI, RSVD4, RSVD4, 0x3210, N, N),
  3092. PINGROUP(gmi_ad9_ph1, PWM1, NAND, GMI, RSVD4, RSVD4, 0x3214, N, N),
  3093. PINGROUP(gmi_ad10_ph2, PWM2, NAND, GMI, RSVD4, RSVD4, 0x3218, N, N),
  3094. PINGROUP(gmi_ad11_ph3, PWM3, NAND, GMI, RSVD4, RSVD4, 0x321c, N, N),
  3095. PINGROUP(gmi_ad12_ph4, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3220, N, N),
  3096. PINGROUP(gmi_ad13_ph5, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3224, N, N),
  3097. PINGROUP(gmi_ad14_ph6, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3228, N, N),
  3098. PINGROUP(gmi_ad15_ph7, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x322c, N, N),
  3099. PINGROUP(gmi_wr_n_pi0, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3240, N, N),
  3100. PINGROUP(gmi_oe_n_pi1, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3244, N, N),
  3101. PINGROUP(gmi_dqs_pi2, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x3248, N, N),
  3102. PINGROUP(gmi_cs6_n_pi3, NAND, NAND_ALT, GMI, SATA, SATA, 0x31e8, N, N),
  3103. PINGROUP(gmi_rst_n_pi4, NAND, NAND_ALT, GMI, RSVD4, RSVD4, 0x324c, N, N),
  3104. PINGROUP(gmi_iordy_pi5, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31c4, N, N),
  3105. PINGROUP(gmi_cs7_n_pi6, NAND, NAND_ALT, GMI, GMI_ALT, GMI_ALT, 0x31ec, N, N),
  3106. PINGROUP(gmi_wait_pi7, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31c8, N, N),
  3107. PINGROUP(gmi_cs0_n_pj0, RSVD1, NAND, GMI, DTV, RSVD1, 0x31d4, N, N),
  3108. PINGROUP(lcd_de_pj1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x3098, N, N),
  3109. PINGROUP(gmi_cs1_n_pj2, RSVD1, NAND, GMI, DTV, RSVD1, 0x31d8, N, N),
  3110. PINGROUP(lcd_hsync_pj3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x309c, N, N),
  3111. PINGROUP(lcd_vsync_pj4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30a0, N, N),
  3112. PINGROUP(uart2_cts_n_pj5, UARTA, UARTB, GMI, SPI4, SPI4, 0x3170, N, N),
  3113. PINGROUP(uart2_rts_n_pj6, UARTA, UARTB, GMI, SPI4, SPI4, 0x316c, N, N),
  3114. PINGROUP(gmi_a16_pj7, UARTD, SPI4, GMI, GMI_ALT, GMI_ALT, 0x3230, N, N),
  3115. PINGROUP(gmi_adv_n_pk0, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31cc, N, N),
  3116. PINGROUP(gmi_clk_pk1, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31d0, N, N),
  3117. PINGROUP(gmi_cs4_n_pk2, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31e4, N, N),
  3118. PINGROUP(gmi_cs2_n_pk3, RSVD1, NAND, GMI, RSVD4, RSVD4, 0x31dc, N, N),
  3119. PINGROUP(gmi_cs3_n_pk4, RSVD1, NAND, GMI, GMI_ALT, RSVD1, 0x31e0, N, N),
  3120. PINGROUP(spdif_out_pk5, SPDIF, RSVD2, I2C1, SDMMC2, RSVD2, 0x3354, N, N),
  3121. PINGROUP(spdif_in_pk6, SPDIF, HDA, I2C1, SDMMC2, SDMMC2, 0x3350, N, N),
  3122. PINGROUP(gmi_a19_pk7, UARTD, SPI4, GMI, RSVD4, RSVD4, 0x323c, N, N),
  3123. PINGROUP(vi_d2_pl0, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x312c, N, Y),
  3124. PINGROUP(vi_d3_pl1, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x3130, N, Y),
  3125. PINGROUP(vi_d4_pl2, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x3134, N, Y),
  3126. PINGROUP(vi_d5_pl3, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x3138, N, Y),
  3127. PINGROUP(vi_d6_pl4, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x313c, N, Y),
  3128. PINGROUP(vi_d7_pl5, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x3140, N, Y),
  3129. PINGROUP(vi_d8_pl6, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x3144, N, Y),
  3130. PINGROUP(vi_d9_pl7, DDR, SDMMC2, VI, RSVD4, RSVD4, 0x3148, N, Y),
  3131. PINGROUP(lcd_d16_pm0, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30e4, N, N),
  3132. PINGROUP(lcd_d17_pm1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30e8, N, N),
  3133. PINGROUP(lcd_d18_pm2, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30ec, N, N),
  3134. PINGROUP(lcd_d19_pm3, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30f0, N, N),
  3135. PINGROUP(lcd_d20_pm4, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30f4, N, N),
  3136. PINGROUP(lcd_d21_pm5, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30f8, N, N),
  3137. PINGROUP(lcd_d22_pm6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x30fc, N, N),
  3138. PINGROUP(lcd_d23_pm7, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x3100, N, N),
  3139. PINGROUP(dap1_fs_pn0, I2S0, HDA, GMI, SDMMC2, SDMMC2, 0x3338, N, N),
  3140. PINGROUP(dap1_din_pn1, I2S0, HDA, GMI, SDMMC2, SDMMC2, 0x333c, N, N),
  3141. PINGROUP(dap1_dout_pn2, I2S0, HDA, GMI, SDMMC2, SDMMC2, 0x3340, N, N),
  3142. PINGROUP(dap1_sclk_pn3, I2S0, HDA, GMI, SDMMC2, SDMMC2, 0x3344, N, N),
  3143. PINGROUP(lcd_cs0_n_pn4, DISPLAYA, DISPLAYB, SPI5, RSVD4, RSVD4, 0x3084, N, N),
  3144. PINGROUP(lcd_sdout_pn5, DISPLAYA, DISPLAYB, SPI5, HDCP, HDCP, 0x307c, N, N),
  3145. PINGROUP(lcd_dc0_pn6, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x3088, N, N),
  3146. PINGROUP(hdmi_int_pn7, HDMI, RSVD2, RSVD3, RSVD4, RSVD4, 0x3110, N, N),
  3147. PINGROUP(ulpi_data7_po0, SPI2, HSI, UARTA, ULPI, ULPI, 0x301c, N, N),
  3148. PINGROUP(ulpi_data0_po1, SPI3, HSI, UARTA, ULPI, ULPI, 0x3000, N, N),
  3149. PINGROUP(ulpi_data1_po2, SPI3, HSI, UARTA, ULPI, ULPI, 0x3004, N, N),
  3150. PINGROUP(ulpi_data2_po3, SPI3, HSI, UARTA, ULPI, ULPI, 0x3008, N, N),
  3151. PINGROUP(ulpi_data3_po4, SPI3, HSI, UARTA, ULPI, ULPI, 0x300c, N, N),
  3152. PINGROUP(ulpi_data4_po5, SPI2, HSI, UARTA, ULPI, ULPI, 0x3010, N, N),
  3153. PINGROUP(ulpi_data5_po6, SPI2, HSI, UARTA, ULPI, ULPI, 0x3014, N, N),
  3154. PINGROUP(ulpi_data6_po7, SPI2, HSI, UARTA, ULPI, ULPI, 0x3018, N, N),
  3155. PINGROUP(dap3_fs_pp0, I2S2, RSVD2, DISPLAYA, DISPLAYB, RSVD2, 0x3030, N, N),
  3156. PINGROUP(dap3_din_pp1, I2S2, RSVD2, DISPLAYA, DISPLAYB, RSVD2, 0x3034, N, N),
  3157. PINGROUP(dap3_dout_pp2, I2S2, RSVD2, DISPLAYA, DISPLAYB, RSVD2, 0x3038, N, N),
  3158. PINGROUP(dap3_sclk_pp3, I2S2, RSVD2, DISPLAYA, DISPLAYB, RSVD2, 0x303c, N, N),
  3159. PINGROUP(dap4_fs_pp4, I2S3, RSVD2, GMI, RSVD4, RSVD4, 0x31a8, N, N),
  3160. PINGROUP(dap4_din_pp5, I2S3, RSVD2, GMI, RSVD4, RSVD4, 0x31ac, N, N),
  3161. PINGROUP(dap4_dout_pp6, I2S3, RSVD2, GMI, RSVD4, RSVD4, 0x31b0, N, N),
  3162. PINGROUP(dap4_sclk_pp7, I2S3, RSVD2, GMI, RSVD4, RSVD4, 0x31b4, N, N),
  3163. PINGROUP(kb_col0_pq0, KBC, NAND, TRACE, TEST, TEST, 0x32fc, N, N),
  3164. PINGROUP(kb_col1_pq1, KBC, NAND, TRACE, TEST, TEST, 0x3300, N, N),
  3165. PINGROUP(kb_col2_pq2, KBC, NAND, TRACE, RSVD4, RSVD4, 0x3304, N, N),
  3166. PINGROUP(kb_col3_pq3, KBC, NAND, TRACE, RSVD4, RSVD4, 0x3308, N, N),
  3167. PINGROUP(kb_col4_pq4, KBC, NAND, TRACE, RSVD4, RSVD4, 0x330c, N, N),
  3168. PINGROUP(kb_col5_pq5, KBC, NAND, TRACE, RSVD4, RSVD4, 0x3310, N, N),
  3169. PINGROUP(kb_col6_pq6, KBC, NAND, TRACE, MIO, MIO, 0x3314, N, N),
  3170. PINGROUP(kb_col7_pq7, KBC, NAND, TRACE, MIO, MIO, 0x3318, N, N),
  3171. PINGROUP(kb_row0_pr0, KBC, NAND, RSVD3, RSVD4, RSVD4, 0x32bc, N, N),
  3172. PINGROUP(kb_row1_pr1, KBC, NAND, RSVD3, RSVD4, RSVD4, 0x32c0, N, N),
  3173. PINGROUP(kb_row2_pr2, KBC, NAND, RSVD3, RSVD4, RSVD4, 0x32c4, N, N),
  3174. PINGROUP(kb_row3_pr3, KBC, NAND, RSVD3, INVALID, RSVD3, 0x32c8, N, N),
  3175. PINGROUP(kb_row4_pr4, KBC, NAND, TRACE, RSVD4, RSVD4, 0x32cc, N, N),
  3176. PINGROUP(kb_row5_pr5, KBC, NAND, TRACE, OWR, OWR, 0x32d0, N, N),
  3177. PINGROUP(kb_row6_pr6, KBC, NAND, SDMMC2, MIO, MIO, 0x32d4, N, N),
  3178. PINGROUP(kb_row7_pr7, KBC, NAND, SDMMC2, MIO, MIO, 0x32d8, N, N),
  3179. PINGROUP(kb_row8_ps0, KBC, NAND, SDMMC2, MIO, MIO, 0x32dc, N, N),
  3180. PINGROUP(kb_row9_ps1, KBC, NAND, SDMMC2, MIO, MIO, 0x32e0, N, N),
  3181. PINGROUP(kb_row10_ps2, KBC, NAND, SDMMC2, MIO, MIO, 0x32e4, N, N),
  3182. PINGROUP(kb_row11_ps3, KBC, NAND, SDMMC2, MIO, MIO, 0x32e8, N, N),
  3183. PINGROUP(kb_row12_ps4, KBC, NAND, SDMMC2, MIO, MIO, 0x32ec, N, N),
  3184. PINGROUP(kb_row13_ps5, KBC, NAND, SDMMC2, MIO, MIO, 0x32f0, N, N),
  3185. PINGROUP(kb_row14_ps6, KBC, NAND, SDMMC2, MIO, MIO, 0x32f4, N, N),
  3186. PINGROUP(kb_row15_ps7, KBC, NAND, SDMMC2, MIO, MIO, 0x32f8, N, N),
  3187. PINGROUP(vi_pclk_pt0, RSVD1, SDMMC2, VI, RSVD4, RSVD4, 0x3154, N, Y),
  3188. PINGROUP(vi_mclk_pt1, VI, VI_ALT1, VI_ALT2, VI_ALT3, VI_ALT3, 0x3158, N, Y),
  3189. PINGROUP(vi_d10_pt2, DDR, RSVD2, VI, RSVD4, RSVD4, 0x314c, N, Y),
  3190. PINGROUP(vi_d11_pt3, DDR, RSVD2, VI, RSVD4, RSVD4, 0x3150, N, Y),
  3191. PINGROUP(vi_d0_pt4, DDR, RSVD2, VI, RSVD4, RSVD4, 0x3124, N, Y),
  3192. PINGROUP(gen2_i2c_scl_pt5, I2C2, HDCP, GMI, RSVD4, RSVD4, 0x3250, Y, N),
  3193. PINGROUP(gen2_i2c_sda_pt6, I2C2, HDCP, GMI, RSVD4, RSVD4, 0x3254, Y, N),
  3194. PINGROUP(sdmmc4_cmd_pt7, I2C3, NAND, GMI, SDMMC4, SDMMC4, 0x325c, N, Y),
  3195. PINGROUP(pu0, OWR, UARTA, GMI, RSVD4, RSVD4, 0x3184, N, N),
  3196. PINGROUP(pu1, RSVD1, UARTA, GMI, RSVD4, RSVD4, 0x3188, N, N),
  3197. PINGROUP(pu2, RSVD1, UARTA, GMI, RSVD4, RSVD4, 0x318c, N, N),
  3198. PINGROUP(pu3, PWM0, UARTA, GMI, RSVD4, RSVD4, 0x3190, N, N),
  3199. PINGROUP(pu4, PWM1, UARTA, GMI, RSVD4, RSVD4, 0x3194, N, N),
  3200. PINGROUP(pu5, PWM2, UARTA, GMI, RSVD4, RSVD4, 0x3198, N, N),
  3201. PINGROUP(pu6, PWM3, UARTA, GMI, RSVD4, RSVD4, 0x319c, N, N),
  3202. PINGROUP(jtag_rtck_pu7, RTCK, RSVD2, RSVD3, RSVD4, RSVD4, 0x32b0, N, N),
  3203. PINGROUP(pv0, RSVD1, RSVD2, RSVD3, RSVD4, RSVD4, 0x3040, N, N),
  3204. PINGROUP(pv1, RSVD1, RSVD2, RSVD3, RSVD4, RSVD4, 0x3044, N, N),
  3205. PINGROUP(pv2, OWR, RSVD2, RSVD3, RSVD4, RSVD4, 0x3060, N, N),
  3206. PINGROUP(pv3, CLK_12M_OUT, RSVD2, RSVD3, RSVD4, RSVD4, 0x3064, N, N),
  3207. PINGROUP(ddc_scl_pv4, I2C4, RSVD2, RSVD3, RSVD4, RSVD4, 0x3114, N, N),
  3208. PINGROUP(ddc_sda_pv5, I2C4, RSVD2, RSVD3, RSVD4, RSVD4, 0x3118, N, N),
  3209. PINGROUP(crt_hsync_pv6, CRT, RSVD2, RSVD3, RSVD4, RSVD4, 0x311c, N, N),
  3210. PINGROUP(crt_vsync_pv7, CRT, RSVD2, RSVD3, RSVD4, RSVD4, 0x3120, N, N),
  3211. PINGROUP(lcd_cs1_n_pw0, DISPLAYA, DISPLAYB, SPI5, RSVD4, RSVD4, 0x3104, N, N),
  3212. PINGROUP(lcd_m1_pw1, DISPLAYA, DISPLAYB, RSVD3, RSVD4, RSVD4, 0x3108, N, N),
  3213. PINGROUP(spi2_cs1_n_pw2, SPI3, SPI2, SPI2_ALT, I2C1, I2C1, 0x3388, N, N),
  3214. PINGROUP(spi2_cs2_n_pw3, SPI3, SPI2, SPI2_ALT, I2C1, I2C1, 0x338c, N, N),
  3215. PINGROUP(clk1_out_pw4, EXTPERIPH1, RSVD2, RSVD3, RSVD4, RSVD4, 0x334c, N, N),
  3216. PINGROUP(clk2_out_pw5, EXTPERIPH2, RSVD2, RSVD3, RSVD4, RSVD4, 0x3068, N, N),
  3217. PINGROUP(uart3_txd_pw6, UARTC, RSVD2, GMI, RSVD4, RSVD4, 0x3174, N, N),
  3218. PINGROUP(uart3_rxd_pw7, UARTC, RSVD2, GMI, RSVD4, RSVD4, 0x3178, N, N),
  3219. PINGROUP(spi2_mosi_px0, SPI6, SPI2, SPI3, GMI, GMI, 0x3368, N, N),
  3220. PINGROUP(spi2_miso_px1, SPI6, SPI2, SPI3, GMI, GMI, 0x336c, N, N),
  3221. PINGROUP(spi2_sck_px2, SPI6, SPI2, SPI3, GMI, GMI, 0x3374, N, N),
  3222. PINGROUP(spi2_cs0_n_px3, SPI6, SPI2, SPI3, GMI, GMI, 0x3370, N, N),
  3223. PINGROUP(spi1_mosi_px4, SPI2, SPI1, SPI2_ALT, GMI, GMI, 0x3378, N, N),
  3224. PINGROUP(spi1_sck_px5, SPI2, SPI1, SPI2_ALT, GMI, GMI, 0x337c, N, N),
  3225. PINGROUP(spi1_cs0_n_px6, SPI2, SPI1, SPI2_ALT, GMI, GMI, 0x3380, N, N),
  3226. PINGROUP(spi1_miso_px7, SPI3, SPI1, SPI2_ALT, RSVD4, RSVD4, 0x3384, N, N),
  3227. PINGROUP(ulpi_clk_py0, SPI1, RSVD2, UARTD, ULPI, RSVD2, 0x3020, N, N),
  3228. PINGROUP(ulpi_dir_py1, SPI1, RSVD2, UARTD, ULPI, RSVD2, 0x3024, N, N),
  3229. PINGROUP(ulpi_nxt_py2, SPI1, RSVD2, UARTD, ULPI, RSVD2, 0x3028, N, N),
  3230. PINGROUP(ulpi_stp_py3, SPI1, RSVD2, UARTD, ULPI, RSVD2, 0x302c, N, N),
  3231. PINGROUP(sdmmc1_dat3_py4, SDMMC1, RSVD2, UARTE, UARTA, RSVD2, 0x3050, N, N),
  3232. PINGROUP(sdmmc1_dat2_py5, SDMMC1, RSVD2, UARTE, UARTA, RSVD2, 0x3054, N, N),
  3233. PINGROUP(sdmmc1_dat1_py6, SDMMC1, RSVD2, UARTE, UARTA, RSVD2, 0x3058, N, N),
  3234. PINGROUP(sdmmc1_dat0_py7, SDMMC1, RSVD2, UARTE, UARTA, RSVD2, 0x305c, N, N),
  3235. PINGROUP(sdmmc1_clk_pz0, SDMMC1, RSVD2, RSVD3, UARTA, RSVD3, 0x3048, N, N),
  3236. PINGROUP(sdmmc1_cmd_pz1, SDMMC1, RSVD2, RSVD3, UARTA, RSVD3, 0x304c, N, N),
  3237. PINGROUP(lcd_sdin_pz2, DISPLAYA, DISPLAYB, SPI5, RSVD4, RSVD4, 0x3078, N, N),
  3238. PINGROUP(lcd_wr_n_pz3, DISPLAYA, DISPLAYB, SPI5, HDCP, HDCP, 0x3080, N, N),
  3239. PINGROUP(lcd_sck_pz4, DISPLAYA, DISPLAYB, SPI5, HDCP, HDCP, 0x308c, N, N),
  3240. PINGROUP(sys_clk_req_pz5, SYSCLK, RSVD2, RSVD3, RSVD4, RSVD4, 0x3320, N, N),
  3241. PINGROUP(pwr_i2c_scl_pz6, I2CPWR, RSVD2, RSVD3, RSVD4, RSVD4, 0x32b4, Y, N),
  3242. PINGROUP(pwr_i2c_sda_pz7, I2CPWR, RSVD2, RSVD3, RSVD4, RSVD4, 0x32b8, Y, N),
  3243. PINGROUP(sdmmc4_dat0_paa0, UARTE, SPI3, GMI, SDMMC4, SDMMC4, 0x3260, N, Y),
  3244. PINGROUP(sdmmc4_dat1_paa1, UARTE, SPI3, GMI, SDMMC4, SDMMC4, 0x3264, N, Y),
  3245. PINGROUP(sdmmc4_dat2_paa2, UARTE, SPI3, GMI, SDMMC4, SDMMC4, 0x3268, N, Y),
  3246. PINGROUP(sdmmc4_dat3_paa3, UARTE, SPI3, GMI, SDMMC4, SDMMC4, 0x326c, N, Y),
  3247. PINGROUP(sdmmc4_dat4_paa4, I2C3, I2S4, GMI, SDMMC4, SDMMC4, 0x3270, N, Y),
  3248. PINGROUP(sdmmc4_dat5_paa5, VGP3, I2S4, GMI, SDMMC4, SDMMC4, 0x3274, N, Y),
  3249. PINGROUP(sdmmc4_dat6_paa6, VGP4, I2S4, GMI, SDMMC4, SDMMC4, 0x3278, N, Y),
  3250. PINGROUP(sdmmc4_dat7_paa7, VGP5, I2S4, GMI, SDMMC4, SDMMC4, 0x327c, N, Y),
  3251. PINGROUP(pbb0, I2S4, RSVD2, RSVD3, SDMMC4, RSVD3, 0x328c, N, N),
  3252. PINGROUP(cam_i2c_scl_pbb1, VGP1, I2C3, RSVD3, SDMMC4, RSVD3, 0x3290, Y, N),
  3253. PINGROUP(cam_i2c_sda_pbb2, VGP2, I2C3, RSVD3, SDMMC4, RSVD3, 0x3294, Y, N),
  3254. PINGROUP(pbb3, VGP3, DISPLAYA, DISPLAYB, SDMMC4, SDMMC4, 0x3298, N, N),
  3255. PINGROUP(pbb4, VGP4, DISPLAYA, DISPLAYB, SDMMC4, SDMMC4, 0x329c, N, N),
  3256. PINGROUP(pbb5, VGP5, DISPLAYA, DISPLAYB, SDMMC4, SDMMC4, 0x32a0, N, N),
  3257. PINGROUP(pbb6, VGP6, DISPLAYA, DISPLAYB, SDMMC4, SDMMC4, 0x32a4, N, N),
  3258. PINGROUP(pbb7, I2S4, RSVD2, RSVD3, SDMMC4, RSVD3, 0x32a8, N, N),
  3259. PINGROUP(cam_mclk_pcc0, VI, VI_ALT1, VI_ALT3, SDMMC4, SDMMC4, 0x3284, N, N),
  3260. PINGROUP(pcc1, I2S4, RSVD2, RSVD3, SDMMC4, RSVD3, 0x3288, N, N),
  3261. PINGROUP(pcc2, I2S4, RSVD2, RSVD3, RSVD4, RSVD4, 0x32ac, N, N),
  3262. PINGROUP(sdmmc4_rst_n_pcc3, VGP6, RSVD2, RSVD3, SDMMC4, RSVD3, 0x3280, N, Y),
  3263. PINGROUP(sdmmc4_clk_pcc4, INVALID, NAND, GMI, SDMMC4, SDMMC4, 0x3258, N, Y),
  3264. PINGROUP(clk2_req_pcc5, DAP, RSVD2, RSVD3, RSVD4, RSVD4, 0x306c, N, N),
  3265. PINGROUP(pex_l2_rst_n_pcc6, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33d8, N, N),
  3266. PINGROUP(pex_l2_clkreq_n_pcc7, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33dc, N, N),
  3267. PINGROUP(pex_l0_prsnt_n_pdd0, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33b8, N, N),
  3268. PINGROUP(pex_l0_rst_n_pdd1, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33bc, N, N),
  3269. PINGROUP(pex_l0_clkreq_n_pdd2, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33c0, N, N),
  3270. PINGROUP(pex_wake_n_pdd3, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33c4, N, N),
  3271. PINGROUP(pex_l1_prsnt_n_pdd4, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33c8, N, N),
  3272. PINGROUP(pex_l1_rst_n_pdd5, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33cc, N, N),
  3273. PINGROUP(pex_l1_clkreq_n_pdd6, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33d0, N, N),
  3274. PINGROUP(pex_l2_prsnt_n_pdd7, PCIE, HDA, RSVD3, RSVD4, RSVD4, 0x33d4, N, N),
  3275. PINGROUP(clk3_out_pee0, EXTPERIPH3, RSVD2, RSVD3, RSVD4, RSVD4, 0x31b8, N, N),
  3276. PINGROUP(clk3_req_pee1, DEV3, RSVD2, RSVD3, RSVD4, RSVD4, 0x31bc, N, N),
  3277. PINGROUP(clk1_req_pee2, DAP, HDA, RSVD3, RSVD4, RSVD4, 0x3348, N, N),
  3278. PINGROUP(hdmi_cec_pee3, CEC, RSVD2, RSVD3, RSVD4, RSVD4, 0x33e0, Y, N),
  3279. PINGROUP(clk_32k_in, CLK_32K_IN, RSVD2, RSVD3, RSVD4, RSVD4, 0x3330, N, N),
  3280. PINGROUP(core_pwr_req, CORE_PWR_REQ, RSVD2, RSVD3, RSVD4, RSVD4, 0x3324, N, N),
  3281. PINGROUP(cpu_pwr_req, CPU_PWR_REQ, RSVD2, RSVD3, RSVD4, RSVD4, 0x3328, N, N),
  3282. PINGROUP(owr, OWR, CEC, RSVD3, RSVD4, RSVD4, 0x3334, N, N),
  3283. PINGROUP(pwr_int_n, PWR_INT_N, RSVD2, RSVD3, RSVD4, RSVD4, 0x332c, N, N),
  3284. /* pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, slwf_b, slwf_w */
  3285. DRV_PINGROUP(ao1, 0x868, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3286. DRV_PINGROUP(ao2, 0x86c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3287. DRV_PINGROUP(at1, 0x870, 2, 3, 4, 14, 5, 19, 5, 24, 2, 28, 2),
  3288. DRV_PINGROUP(at2, 0x874, 2, 3, 4, 14, 5, 19, 5, 24, 2, 28, 2),
  3289. DRV_PINGROUP(at3, 0x878, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  3290. DRV_PINGROUP(at4, 0x87c, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  3291. DRV_PINGROUP(at5, 0x880, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  3292. DRV_PINGROUP(cdev1, 0x884, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3293. DRV_PINGROUP(cdev2, 0x888, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3294. DRV_PINGROUP(cec, 0x938, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3295. DRV_PINGROUP(crt, 0x8f8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3296. DRV_PINGROUP(csus, 0x88c, -1, -1, -1, 12, 5, 19, 5, 24, 4, 28, 4),
  3297. DRV_PINGROUP(dap1, 0x890, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3298. DRV_PINGROUP(dap2, 0x894, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3299. DRV_PINGROUP(dap3, 0x898, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3300. DRV_PINGROUP(dap4, 0x89c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3301. DRV_PINGROUP(dbg, 0x8a0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3302. DRV_PINGROUP(ddc, 0x8fc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3303. DRV_PINGROUP(dev3, 0x92c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3304. DRV_PINGROUP(gma, 0x900, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  3305. DRV_PINGROUP(gmb, 0x904, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  3306. DRV_PINGROUP(gmc, 0x908, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  3307. DRV_PINGROUP(gmd, 0x90c, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  3308. DRV_PINGROUP(gme, 0x910, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  3309. DRV_PINGROUP(gmf, 0x914, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  3310. DRV_PINGROUP(gmg, 0x918, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  3311. DRV_PINGROUP(gmh, 0x91c, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2),
  3312. DRV_PINGROUP(gpv, 0x928, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3313. DRV_PINGROUP(lcd1, 0x8a4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3314. DRV_PINGROUP(lcd2, 0x8a8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3315. DRV_PINGROUP(owr, 0x920, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3316. DRV_PINGROUP(sdio1, 0x8ec, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2),
  3317. DRV_PINGROUP(sdio2, 0x8ac, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2),
  3318. DRV_PINGROUP(sdio3, 0x8b0, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2),
  3319. DRV_PINGROUP(spi, 0x8b4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3320. DRV_PINGROUP(uaa, 0x8b8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3321. DRV_PINGROUP(uab, 0x8bc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3322. DRV_PINGROUP(uart2, 0x8c0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3323. DRV_PINGROUP(uart3, 0x8c4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3324. DRV_PINGROUP(uda, 0x924, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2),
  3325. DRV_PINGROUP(vi1, 0x8c8, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4),
  3326. };
  3327. static const struct tegra_pinctrl_soc_data tegra30_pinctrl = {
  3328. .ngpios = NUM_GPIOS,
  3329. .pins = tegra30_pins,
  3330. .npins = ARRAY_SIZE(tegra30_pins),
  3331. .functions = tegra30_functions,
  3332. .nfunctions = ARRAY_SIZE(tegra30_functions),
  3333. .groups = tegra30_groups,
  3334. .ngroups = ARRAY_SIZE(tegra30_groups),
  3335. };
  3336. void __devinit tegra30_pinctrl_init(const struct tegra_pinctrl_soc_data **soc)
  3337. {
  3338. *soc = &tegra30_pinctrl;
  3339. }