pinctrl-tegra124.c 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084
  1. /*
  2. * Pinctrl data for the NVIDIA Tegra124 pinmux
  3. *
  4. * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. */
  15. #include <linux/module.h>
  16. #include <linux/of.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/pinctrl/pinctrl.h>
  19. #include <linux/pinctrl/pinmux.h>
  20. #include "pinctrl-tegra.h"
  21. /*
  22. * Most pins affected by the pinmux can also be GPIOs. Define these first.
  23. * These must match how the GPIO driver names/numbers its pins.
  24. */
  25. #define _GPIO(offset) (offset)
  26. #define TEGRA_PIN_CLK_32K_OUT_PA0 _GPIO(0)
  27. #define TEGRA_PIN_UART3_CTS_N_PA1 _GPIO(1)
  28. #define TEGRA_PIN_DAP2_FS_PA2 _GPIO(2)
  29. #define TEGRA_PIN_DAP2_SCLK_PA3 _GPIO(3)
  30. #define TEGRA_PIN_DAP2_DIN_PA4 _GPIO(4)
  31. #define TEGRA_PIN_DAP2_DOUT_PA5 _GPIO(5)
  32. #define TEGRA_PIN_SDMMC3_CLK_PA6 _GPIO(6)
  33. #define TEGRA_PIN_SDMMC3_CMD_PA7 _GPIO(7)
  34. #define TEGRA_PIN_PB0 _GPIO(8)
  35. #define TEGRA_PIN_PB1 _GPIO(9)
  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_UART2_TXD_PC2 _GPIO(18)
  42. #define TEGRA_PIN_UART2_RXD_PC3 _GPIO(19)
  43. #define TEGRA_PIN_GEN1_I2C_SCL_PC4 _GPIO(20)
  44. #define TEGRA_PIN_GEN1_I2C_SDA_PC5 _GPIO(21)
  45. #define TEGRA_PIN_PC7 _GPIO(23)
  46. #define TEGRA_PIN_PG0 _GPIO(48)
  47. #define TEGRA_PIN_PG1 _GPIO(49)
  48. #define TEGRA_PIN_PG2 _GPIO(50)
  49. #define TEGRA_PIN_PG3 _GPIO(51)
  50. #define TEGRA_PIN_PG4 _GPIO(52)
  51. #define TEGRA_PIN_PG5 _GPIO(53)
  52. #define TEGRA_PIN_PG6 _GPIO(54)
  53. #define TEGRA_PIN_PG7 _GPIO(55)
  54. #define TEGRA_PIN_PH0 _GPIO(56)
  55. #define TEGRA_PIN_PH1 _GPIO(57)
  56. #define TEGRA_PIN_PH2 _GPIO(58)
  57. #define TEGRA_PIN_PH3 _GPIO(59)
  58. #define TEGRA_PIN_PH4 _GPIO(60)
  59. #define TEGRA_PIN_PH5 _GPIO(61)
  60. #define TEGRA_PIN_PH6 _GPIO(62)
  61. #define TEGRA_PIN_PH7 _GPIO(63)
  62. #define TEGRA_PIN_PI0 _GPIO(64)
  63. #define TEGRA_PIN_PI1 _GPIO(65)
  64. #define TEGRA_PIN_PI2 _GPIO(66)
  65. #define TEGRA_PIN_PI3 _GPIO(67)
  66. #define TEGRA_PIN_PI4 _GPIO(68)
  67. #define TEGRA_PIN_PI5 _GPIO(69)
  68. #define TEGRA_PIN_PI6 _GPIO(70)
  69. #define TEGRA_PIN_PI7 _GPIO(71)
  70. #define TEGRA_PIN_PJ0 _GPIO(72)
  71. #define TEGRA_PIN_PJ2 _GPIO(74)
  72. #define TEGRA_PIN_UART2_CTS_N_PJ5 _GPIO(77)
  73. #define TEGRA_PIN_UART2_RTS_N_PJ6 _GPIO(78)
  74. #define TEGRA_PIN_PJ7 _GPIO(79)
  75. #define TEGRA_PIN_PK0 _GPIO(80)
  76. #define TEGRA_PIN_PK1 _GPIO(81)
  77. #define TEGRA_PIN_PK2 _GPIO(82)
  78. #define TEGRA_PIN_PK3 _GPIO(83)
  79. #define TEGRA_PIN_PK4 _GPIO(84)
  80. #define TEGRA_PIN_SPDIF_OUT_PK5 _GPIO(85)
  81. #define TEGRA_PIN_SPDIF_IN_PK6 _GPIO(86)
  82. #define TEGRA_PIN_PK7 _GPIO(87)
  83. #define TEGRA_PIN_DAP1_FS_PN0 _GPIO(104)
  84. #define TEGRA_PIN_DAP1_DIN_PN1 _GPIO(105)
  85. #define TEGRA_PIN_DAP1_DOUT_PN2 _GPIO(106)
  86. #define TEGRA_PIN_DAP1_SCLK_PN3 _GPIO(107)
  87. #define TEGRA_PIN_USB_VBUS_EN0_PN4 _GPIO(108)
  88. #define TEGRA_PIN_USB_VBUS_EN1_PN5 _GPIO(109)
  89. #define TEGRA_PIN_HDMI_INT_PN7 _GPIO(111)
  90. #define TEGRA_PIN_ULPI_DATA7_PO0 _GPIO(112)
  91. #define TEGRA_PIN_ULPI_DATA0_PO1 _GPIO(113)
  92. #define TEGRA_PIN_ULPI_DATA1_PO2 _GPIO(114)
  93. #define TEGRA_PIN_ULPI_DATA2_PO3 _GPIO(115)
  94. #define TEGRA_PIN_ULPI_DATA3_PO4 _GPIO(116)
  95. #define TEGRA_PIN_ULPI_DATA4_PO5 _GPIO(117)
  96. #define TEGRA_PIN_ULPI_DATA5_PO6 _GPIO(118)
  97. #define TEGRA_PIN_ULPI_DATA6_PO7 _GPIO(119)
  98. #define TEGRA_PIN_DAP3_FS_PP0 _GPIO(120)
  99. #define TEGRA_PIN_DAP3_DIN_PP1 _GPIO(121)
  100. #define TEGRA_PIN_DAP3_DOUT_PP2 _GPIO(122)
  101. #define TEGRA_PIN_DAP3_SCLK_PP3 _GPIO(123)
  102. #define TEGRA_PIN_DAP4_FS_PP4 _GPIO(124)
  103. #define TEGRA_PIN_DAP4_DIN_PP5 _GPIO(125)
  104. #define TEGRA_PIN_DAP4_DOUT_PP6 _GPIO(126)
  105. #define TEGRA_PIN_DAP4_SCLK_PP7 _GPIO(127)
  106. #define TEGRA_PIN_KB_COL0_PQ0 _GPIO(128)
  107. #define TEGRA_PIN_KB_COL1_PQ1 _GPIO(129)
  108. #define TEGRA_PIN_KB_COL2_PQ2 _GPIO(130)
  109. #define TEGRA_PIN_KB_COL3_PQ3 _GPIO(131)
  110. #define TEGRA_PIN_KB_COL4_PQ4 _GPIO(132)
  111. #define TEGRA_PIN_KB_COL5_PQ5 _GPIO(133)
  112. #define TEGRA_PIN_KB_COL6_PQ6 _GPIO(134)
  113. #define TEGRA_PIN_KB_COL7_PQ7 _GPIO(135)
  114. #define TEGRA_PIN_KB_ROW0_PR0 _GPIO(136)
  115. #define TEGRA_PIN_KB_ROW1_PR1 _GPIO(137)
  116. #define TEGRA_PIN_KB_ROW2_PR2 _GPIO(138)
  117. #define TEGRA_PIN_KB_ROW3_PR3 _GPIO(139)
  118. #define TEGRA_PIN_KB_ROW4_PR4 _GPIO(140)
  119. #define TEGRA_PIN_KB_ROW5_PR5 _GPIO(141)
  120. #define TEGRA_PIN_KB_ROW6_PR6 _GPIO(142)
  121. #define TEGRA_PIN_KB_ROW7_PR7 _GPIO(143)
  122. #define TEGRA_PIN_KB_ROW8_PS0 _GPIO(144)
  123. #define TEGRA_PIN_KB_ROW9_PS1 _GPIO(145)
  124. #define TEGRA_PIN_KB_ROW10_PS2 _GPIO(146)
  125. #define TEGRA_PIN_KB_ROW11_PS3 _GPIO(147)
  126. #define TEGRA_PIN_KB_ROW12_PS4 _GPIO(148)
  127. #define TEGRA_PIN_KB_ROW13_PS5 _GPIO(149)
  128. #define TEGRA_PIN_KB_ROW14_PS6 _GPIO(150)
  129. #define TEGRA_PIN_KB_ROW15_PS7 _GPIO(151)
  130. #define TEGRA_PIN_KB_ROW16_PT0 _GPIO(152)
  131. #define TEGRA_PIN_KB_ROW17_PT1 _GPIO(153)
  132. #define TEGRA_PIN_GEN2_I2C_SCL_PT5 _GPIO(157)
  133. #define TEGRA_PIN_GEN2_I2C_SDA_PT6 _GPIO(158)
  134. #define TEGRA_PIN_SDMMC4_CMD_PT7 _GPIO(159)
  135. #define TEGRA_PIN_PU0 _GPIO(160)
  136. #define TEGRA_PIN_PU1 _GPIO(161)
  137. #define TEGRA_PIN_PU2 _GPIO(162)
  138. #define TEGRA_PIN_PU3 _GPIO(163)
  139. #define TEGRA_PIN_PU4 _GPIO(164)
  140. #define TEGRA_PIN_PU5 _GPIO(165)
  141. #define TEGRA_PIN_PU6 _GPIO(166)
  142. #define TEGRA_PIN_PV0 _GPIO(168)
  143. #define TEGRA_PIN_PV1 _GPIO(169)
  144. #define TEGRA_PIN_SDMMC3_CD_N_PV2 _GPIO(170)
  145. #define TEGRA_PIN_SDMMC1_WP_N_PV3 _GPIO(171)
  146. #define TEGRA_PIN_DDC_SCL_PV4 _GPIO(172)
  147. #define TEGRA_PIN_DDC_SDA_PV5 _GPIO(173)
  148. #define TEGRA_PIN_GPIO_W2_AUD_PW2 _GPIO(178)
  149. #define TEGRA_PIN_GPIO_W3_AUD_PW3 _GPIO(179)
  150. #define TEGRA_PIN_DAP_MCLK1_PW4 _GPIO(180)
  151. #define TEGRA_PIN_CLK2_OUT_PW5 _GPIO(181)
  152. #define TEGRA_PIN_UART3_TXD_PW6 _GPIO(182)
  153. #define TEGRA_PIN_UART3_RXD_PW7 _GPIO(183)
  154. #define TEGRA_PIN_DVFS_PWM_PX0 _GPIO(184)
  155. #define TEGRA_PIN_GPIO_X1_AUD_PX1 _GPIO(185)
  156. #define TEGRA_PIN_DVFS_CLK_PX2 _GPIO(186)
  157. #define TEGRA_PIN_GPIO_X3_AUD_PX3 _GPIO(187)
  158. #define TEGRA_PIN_GPIO_X4_AUD_PX4 _GPIO(188)
  159. #define TEGRA_PIN_GPIO_X5_AUD_PX5 _GPIO(189)
  160. #define TEGRA_PIN_GPIO_X6_AUD_PX6 _GPIO(190)
  161. #define TEGRA_PIN_GPIO_X7_AUD_PX7 _GPIO(191)
  162. #define TEGRA_PIN_ULPI_CLK_PY0 _GPIO(192)
  163. #define TEGRA_PIN_ULPI_DIR_PY1 _GPIO(193)
  164. #define TEGRA_PIN_ULPI_NXT_PY2 _GPIO(194)
  165. #define TEGRA_PIN_ULPI_STP_PY3 _GPIO(195)
  166. #define TEGRA_PIN_SDMMC1_DAT3_PY4 _GPIO(196)
  167. #define TEGRA_PIN_SDMMC1_DAT2_PY5 _GPIO(197)
  168. #define TEGRA_PIN_SDMMC1_DAT1_PY6 _GPIO(198)
  169. #define TEGRA_PIN_SDMMC1_DAT0_PY7 _GPIO(199)
  170. #define TEGRA_PIN_SDMMC1_CLK_PZ0 _GPIO(200)
  171. #define TEGRA_PIN_SDMMC1_CMD_PZ1 _GPIO(201)
  172. #define TEGRA_PIN_PWR_I2C_SCL_PZ6 _GPIO(206)
  173. #define TEGRA_PIN_PWR_I2C_SDA_PZ7 _GPIO(207)
  174. #define TEGRA_PIN_SDMMC4_DAT0_PAA0 _GPIO(208)
  175. #define TEGRA_PIN_SDMMC4_DAT1_PAA1 _GPIO(209)
  176. #define TEGRA_PIN_SDMMC4_DAT2_PAA2 _GPIO(210)
  177. #define TEGRA_PIN_SDMMC4_DAT3_PAA3 _GPIO(211)
  178. #define TEGRA_PIN_SDMMC4_DAT4_PAA4 _GPIO(212)
  179. #define TEGRA_PIN_SDMMC4_DAT5_PAA5 _GPIO(213)
  180. #define TEGRA_PIN_SDMMC4_DAT6_PAA6 _GPIO(214)
  181. #define TEGRA_PIN_SDMMC4_DAT7_PAA7 _GPIO(215)
  182. #define TEGRA_PIN_PBB0 _GPIO(216)
  183. #define TEGRA_PIN_CAM_I2C_SCL_PBB1 _GPIO(217)
  184. #define TEGRA_PIN_CAM_I2C_SDA_PBB2 _GPIO(218)
  185. #define TEGRA_PIN_PBB3 _GPIO(219)
  186. #define TEGRA_PIN_PBB4 _GPIO(220)
  187. #define TEGRA_PIN_PBB5 _GPIO(221)
  188. #define TEGRA_PIN_PBB6 _GPIO(222)
  189. #define TEGRA_PIN_PBB7 _GPIO(223)
  190. #define TEGRA_PIN_CAM_MCLK_PCC0 _GPIO(224)
  191. #define TEGRA_PIN_PCC1 _GPIO(225)
  192. #define TEGRA_PIN_PCC2 _GPIO(226)
  193. #define TEGRA_PIN_SDMMC4_CLK_PCC4 _GPIO(228)
  194. #define TEGRA_PIN_CLK2_REQ_PCC5 _GPIO(229)
  195. #define TEGRA_PIN_PEX_L0_RST_N_PDD1 _GPIO(233)
  196. #define TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2 _GPIO(234)
  197. #define TEGRA_PIN_PEX_WAKE_N_PDD3 _GPIO(235)
  198. #define TEGRA_PIN_PEX_L1_RST_N_PDD5 _GPIO(237)
  199. #define TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6 _GPIO(238)
  200. #define TEGRA_PIN_CLK3_OUT_PEE0 _GPIO(240)
  201. #define TEGRA_PIN_CLK3_REQ_PEE1 _GPIO(241)
  202. #define TEGRA_PIN_DAP_MCLK1_REQ_PEE2 _GPIO(242)
  203. #define TEGRA_PIN_HDMI_CEC_PEE3 _GPIO(243)
  204. #define TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4 _GPIO(244)
  205. #define TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5 _GPIO(245)
  206. #define TEGRA_PIN_DP_HPD_PFF0 _GPIO(248)
  207. #define TEGRA_PIN_USB_VBUS_EN2_PFF1 _GPIO(249)
  208. #define TEGRA_PIN_PFF2 _GPIO(250)
  209. /* All non-GPIO pins follow */
  210. #define NUM_GPIOS (TEGRA_PIN_PFF2 + 1)
  211. #define _PIN(offset) (NUM_GPIOS + (offset))
  212. /* Non-GPIO pins */
  213. #define TEGRA_PIN_CORE_PWR_REQ _PIN(0)
  214. #define TEGRA_PIN_CPU_PWR_REQ _PIN(1)
  215. #define TEGRA_PIN_PWR_INT_N _PIN(2)
  216. #define TEGRA_PIN_GMI_CLK_LB _PIN(3)
  217. #define TEGRA_PIN_RESET_OUT_N _PIN(4)
  218. #define TEGRA_PIN_OWR _PIN(5)
  219. #define TEGRA_PIN_CLK_32K_IN _PIN(6)
  220. #define TEGRA_PIN_JTAG_RTCK _PIN(7)
  221. #define TEGRA_PIN_DSI_B_CLK_P _PIN(8)
  222. #define TEGRA_PIN_DSI_B_CLK_N _PIN(9)
  223. #define TEGRA_PIN_DSI_B_D0_P _PIN(10)
  224. #define TEGRA_PIN_DSI_B_D0_N _PIN(11)
  225. #define TEGRA_PIN_DSI_B_D1_P _PIN(12)
  226. #define TEGRA_PIN_DSI_B_D1_N _PIN(13)
  227. #define TEGRA_PIN_DSI_B_D2_P _PIN(14)
  228. #define TEGRA_PIN_DSI_B_D2_N _PIN(15)
  229. #define TEGRA_PIN_DSI_B_D3_P _PIN(16)
  230. #define TEGRA_PIN_DSI_B_D3_N _PIN(17)
  231. static const struct pinctrl_pin_desc tegra124_pins[] = {
  232. PINCTRL_PIN(TEGRA_PIN_CLK_32K_OUT_PA0, "CLK_32K_OUT PA0"),
  233. PINCTRL_PIN(TEGRA_PIN_UART3_CTS_N_PA1, "UART3_CTS_N PA1"),
  234. PINCTRL_PIN(TEGRA_PIN_DAP2_FS_PA2, "DAP2_FS PA2"),
  235. PINCTRL_PIN(TEGRA_PIN_DAP2_SCLK_PA3, "DAP2_SCLK PA3"),
  236. PINCTRL_PIN(TEGRA_PIN_DAP2_DIN_PA4, "DAP2_DIN PA4"),
  237. PINCTRL_PIN(TEGRA_PIN_DAP2_DOUT_PA5, "DAP2_DOUT PA5"),
  238. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_PA6, "SDMMC3_CLK PA6"),
  239. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CMD_PA7, "SDMMC3_CMD PA7"),
  240. PINCTRL_PIN(TEGRA_PIN_PB0, "PB0"),
  241. PINCTRL_PIN(TEGRA_PIN_PB1, "PB1"),
  242. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT3_PB4, "SDMMC3_DAT3 PB4"),
  243. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT2_PB5, "SDMMC3_DAT2 PB5"),
  244. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT1_PB6, "SDMMC3_DAT1 PB6"),
  245. PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT0_PB7, "SDMMC3_DAT0 PB7"),
  246. PINCTRL_PIN(TEGRA_PIN_UART3_RTS_N_PC0, "UART3_RTS_N PC0"),
  247. PINCTRL_PIN(TEGRA_PIN_UART2_TXD_PC2, "UART2_TXD PC2"),
  248. PINCTRL_PIN(TEGRA_PIN_UART2_RXD_PC3, "UART2_RXD PC3"),
  249. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PC4, "GEN1_I2C_SCL PC4"),
  250. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PC5, "GEN1_I2C_SDA PC5"),
  251. PINCTRL_PIN(TEGRA_PIN_PC7, "PC7"),
  252. PINCTRL_PIN(TEGRA_PIN_PG0, "PG0"),
  253. PINCTRL_PIN(TEGRA_PIN_PG1, "PG1"),
  254. PINCTRL_PIN(TEGRA_PIN_PG2, "PG2"),
  255. PINCTRL_PIN(TEGRA_PIN_PG3, "PG3"),
  256. PINCTRL_PIN(TEGRA_PIN_PG4, "PG4"),
  257. PINCTRL_PIN(TEGRA_PIN_PG5, "PG5"),
  258. PINCTRL_PIN(TEGRA_PIN_PG6, "PG6"),
  259. PINCTRL_PIN(TEGRA_PIN_PG7, "PG7"),
  260. PINCTRL_PIN(TEGRA_PIN_PH0, "PH0"),
  261. PINCTRL_PIN(TEGRA_PIN_PH1, "PH1"),
  262. PINCTRL_PIN(TEGRA_PIN_PH2, "PH2"),
  263. PINCTRL_PIN(TEGRA_PIN_PH3, "PH3"),
  264. PINCTRL_PIN(TEGRA_PIN_PH4, "PH4"),
  265. PINCTRL_PIN(TEGRA_PIN_PH5, "PH5"),
  266. PINCTRL_PIN(TEGRA_PIN_PH6, "PH6"),
  267. PINCTRL_PIN(TEGRA_PIN_PH7, "PH7"),
  268. PINCTRL_PIN(TEGRA_PIN_PI0, "PI0"),
  269. PINCTRL_PIN(TEGRA_PIN_PI1, "PI1"),
  270. PINCTRL_PIN(TEGRA_PIN_PI2, "PI2"),
  271. PINCTRL_PIN(TEGRA_PIN_PI3, "PI3"),
  272. PINCTRL_PIN(TEGRA_PIN_PI4, "PI4"),
  273. PINCTRL_PIN(TEGRA_PIN_PI5, "PI5"),
  274. PINCTRL_PIN(TEGRA_PIN_PI6, "PI6"),
  275. PINCTRL_PIN(TEGRA_PIN_PI7, "PI7"),
  276. PINCTRL_PIN(TEGRA_PIN_PJ0, "PJ0"),
  277. PINCTRL_PIN(TEGRA_PIN_PJ2, "PJ2"),
  278. PINCTRL_PIN(TEGRA_PIN_UART2_CTS_N_PJ5, "UART2_CTS_N PJ5"),
  279. PINCTRL_PIN(TEGRA_PIN_UART2_RTS_N_PJ6, "UART2_RTS_N PJ6"),
  280. PINCTRL_PIN(TEGRA_PIN_PJ7, "PJ7"),
  281. PINCTRL_PIN(TEGRA_PIN_PK0, "PK0"),
  282. PINCTRL_PIN(TEGRA_PIN_PK1, "PK1"),
  283. PINCTRL_PIN(TEGRA_PIN_PK2, "PK2"),
  284. PINCTRL_PIN(TEGRA_PIN_PK3, "PK3"),
  285. PINCTRL_PIN(TEGRA_PIN_PK4, "PK4"),
  286. PINCTRL_PIN(TEGRA_PIN_SPDIF_OUT_PK5, "SPDIF_OUT PK5"),
  287. PINCTRL_PIN(TEGRA_PIN_SPDIF_IN_PK6, "SPDIF_IN PK6"),
  288. PINCTRL_PIN(TEGRA_PIN_PK7, "PK7"),
  289. PINCTRL_PIN(TEGRA_PIN_DAP1_FS_PN0, "DAP1_FS PN0"),
  290. PINCTRL_PIN(TEGRA_PIN_DAP1_DIN_PN1, "DAP1_DIN PN1"),
  291. PINCTRL_PIN(TEGRA_PIN_DAP1_DOUT_PN2, "DAP1_DOUT PN2"),
  292. PINCTRL_PIN(TEGRA_PIN_DAP1_SCLK_PN3, "DAP1_SCLK PN3"),
  293. PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN0_PN4, "USB_VBUS_EN0 PN4"),
  294. PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN1_PN5, "USB_VBUS_EN1 PN5"),
  295. PINCTRL_PIN(TEGRA_PIN_HDMI_INT_PN7, "HDMI_INT PN7"),
  296. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA7_PO0, "ULPI_DATA7 PO0"),
  297. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA0_PO1, "ULPI_DATA0 PO1"),
  298. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA1_PO2, "ULPI_DATA1 PO2"),
  299. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA2_PO3, "ULPI_DATA2 PO3"),
  300. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA3_PO4, "ULPI_DATA3 PO4"),
  301. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA4_PO5, "ULPI_DATA4 PO5"),
  302. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA5_PO6, "ULPI_DATA5 PO6"),
  303. PINCTRL_PIN(TEGRA_PIN_ULPI_DATA6_PO7, "ULPI_DATA6 PO7"),
  304. PINCTRL_PIN(TEGRA_PIN_DAP3_FS_PP0, "DAP3_FS PP0"),
  305. PINCTRL_PIN(TEGRA_PIN_DAP3_DIN_PP1, "DAP3_DIN PP1"),
  306. PINCTRL_PIN(TEGRA_PIN_DAP3_DOUT_PP2, "DAP3_DOUT PP2"),
  307. PINCTRL_PIN(TEGRA_PIN_DAP3_SCLK_PP3, "DAP3_SCLK PP3"),
  308. PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PP4, "DAP4_FS PP4"),
  309. PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PP5, "DAP4_DIN PP5"),
  310. PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PP6, "DAP4_DOUT PP6"),
  311. PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PP7, "DAP4_SCLK PP7"),
  312. PINCTRL_PIN(TEGRA_PIN_KB_COL0_PQ0, "KB_COL0 PQ0"),
  313. PINCTRL_PIN(TEGRA_PIN_KB_COL1_PQ1, "KB_COL1 PQ1"),
  314. PINCTRL_PIN(TEGRA_PIN_KB_COL2_PQ2, "KB_COL2 PQ2"),
  315. PINCTRL_PIN(TEGRA_PIN_KB_COL3_PQ3, "KB_COL3 PQ3"),
  316. PINCTRL_PIN(TEGRA_PIN_KB_COL4_PQ4, "KB_COL4 PQ4"),
  317. PINCTRL_PIN(TEGRA_PIN_KB_COL5_PQ5, "KB_COL5 PQ5"),
  318. PINCTRL_PIN(TEGRA_PIN_KB_COL6_PQ6, "KB_COL6 PQ6"),
  319. PINCTRL_PIN(TEGRA_PIN_KB_COL7_PQ7, "KB_COL7 PQ7"),
  320. PINCTRL_PIN(TEGRA_PIN_KB_ROW0_PR0, "KB_ROW0 PR0"),
  321. PINCTRL_PIN(TEGRA_PIN_KB_ROW1_PR1, "KB_ROW1 PR1"),
  322. PINCTRL_PIN(TEGRA_PIN_KB_ROW2_PR2, "KB_ROW2 PR2"),
  323. PINCTRL_PIN(TEGRA_PIN_KB_ROW3_PR3, "KB_ROW3 PR3"),
  324. PINCTRL_PIN(TEGRA_PIN_KB_ROW4_PR4, "KB_ROW4 PR4"),
  325. PINCTRL_PIN(TEGRA_PIN_KB_ROW5_PR5, "KB_ROW5 PR5"),
  326. PINCTRL_PIN(TEGRA_PIN_KB_ROW6_PR6, "KB_ROW6 PR6"),
  327. PINCTRL_PIN(TEGRA_PIN_KB_ROW7_PR7, "KB_ROW7 PR7"),
  328. PINCTRL_PIN(TEGRA_PIN_KB_ROW8_PS0, "KB_ROW8 PS0"),
  329. PINCTRL_PIN(TEGRA_PIN_KB_ROW9_PS1, "KB_ROW9 PS1"),
  330. PINCTRL_PIN(TEGRA_PIN_KB_ROW10_PS2, "KB_ROW10 PS2"),
  331. PINCTRL_PIN(TEGRA_PIN_KB_ROW11_PS3, "KB_ROW11 PS3"),
  332. PINCTRL_PIN(TEGRA_PIN_KB_ROW12_PS4, "KB_ROW12 PS4"),
  333. PINCTRL_PIN(TEGRA_PIN_KB_ROW13_PS5, "KB_ROW13 PS5"),
  334. PINCTRL_PIN(TEGRA_PIN_KB_ROW14_PS6, "KB_ROW14 PS6"),
  335. PINCTRL_PIN(TEGRA_PIN_KB_ROW15_PS7, "KB_ROW15 PS7"),
  336. PINCTRL_PIN(TEGRA_PIN_KB_ROW16_PT0, "KB_ROW16 PT0"),
  337. PINCTRL_PIN(TEGRA_PIN_KB_ROW17_PT1, "KB_ROW17 PT1"),
  338. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PT5, "GEN2_I2C_SCL PT5"),
  339. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PT6, "GEN2_I2C_SDA PT6"),
  340. PINCTRL_PIN(TEGRA_PIN_SDMMC4_CMD_PT7, "SDMMC4_CMD PT7"),
  341. PINCTRL_PIN(TEGRA_PIN_PU0, "PU0"),
  342. PINCTRL_PIN(TEGRA_PIN_PU1, "PU1"),
  343. PINCTRL_PIN(TEGRA_PIN_PU2, "PU2"),
  344. PINCTRL_PIN(TEGRA_PIN_PU3, "PU3"),
  345. PINCTRL_PIN(TEGRA_PIN_PU4, "PU4"),
  346. PINCTRL_PIN(TEGRA_PIN_PU5, "PU5"),
  347. PINCTRL_PIN(TEGRA_PIN_PU6, "PU6"),
  348. PINCTRL_PIN(TEGRA_PIN_PV0, "PV0"),
  349. PINCTRL_PIN(TEGRA_PIN_PV1, "PV1"),
  350. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CD_N_PV2, "SDMMC3_CD_N PV2"),
  351. PINCTRL_PIN(TEGRA_PIN_SDMMC1_WP_N_PV3, "SDMMC1_WP_N PV3"),
  352. PINCTRL_PIN(TEGRA_PIN_DDC_SCL_PV4, "DDC_SCL PV4"),
  353. PINCTRL_PIN(TEGRA_PIN_DDC_SDA_PV5, "DDC_SDA PV5"),
  354. PINCTRL_PIN(TEGRA_PIN_GPIO_W2_AUD_PW2, "GPIO_W2_AUD PW2"),
  355. PINCTRL_PIN(TEGRA_PIN_GPIO_W3_AUD_PW3, "GPIO_W3_AUD PW3"),
  356. PINCTRL_PIN(TEGRA_PIN_DAP_MCLK1_PW4, "DAP_MCLK1 PW4"),
  357. PINCTRL_PIN(TEGRA_PIN_CLK2_OUT_PW5, "CLK2_OUT PW5"),
  358. PINCTRL_PIN(TEGRA_PIN_UART3_TXD_PW6, "UART3_TXD PW6"),
  359. PINCTRL_PIN(TEGRA_PIN_UART3_RXD_PW7, "UART3_RXD PW7"),
  360. PINCTRL_PIN(TEGRA_PIN_DVFS_PWM_PX0, "DVFS_PWM PX0"),
  361. PINCTRL_PIN(TEGRA_PIN_GPIO_X1_AUD_PX1, "GPIO_X1_AUD PX1"),
  362. PINCTRL_PIN(TEGRA_PIN_DVFS_CLK_PX2, "DVFS_CLK PX2"),
  363. PINCTRL_PIN(TEGRA_PIN_GPIO_X3_AUD_PX3, "GPIO_X3_AUD PX3"),
  364. PINCTRL_PIN(TEGRA_PIN_GPIO_X4_AUD_PX4, "GPIO_X4_AUD PX4"),
  365. PINCTRL_PIN(TEGRA_PIN_GPIO_X5_AUD_PX5, "GPIO_X5_AUD PX5"),
  366. PINCTRL_PIN(TEGRA_PIN_GPIO_X6_AUD_PX6, "GPIO_X6_AUD PX6"),
  367. PINCTRL_PIN(TEGRA_PIN_GPIO_X7_AUD_PX7, "GPIO_X7_AUD PX7"),
  368. PINCTRL_PIN(TEGRA_PIN_ULPI_CLK_PY0, "ULPI_CLK PY0"),
  369. PINCTRL_PIN(TEGRA_PIN_ULPI_DIR_PY1, "ULPI_DIR PY1"),
  370. PINCTRL_PIN(TEGRA_PIN_ULPI_NXT_PY2, "ULPI_NXT PY2"),
  371. PINCTRL_PIN(TEGRA_PIN_ULPI_STP_PY3, "ULPI_STP PY3"),
  372. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT3_PY4, "SDMMC1_DAT3 PY4"),
  373. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT2_PY5, "SDMMC1_DAT2 PY5"),
  374. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT1_PY6, "SDMMC1_DAT1 PY6"),
  375. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT0_PY7, "SDMMC1_DAT0 PY7"),
  376. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CLK_PZ0, "SDMMC1_CLK PZ0"),
  377. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CMD_PZ1, "SDMMC1_CMD PZ1"),
  378. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PZ6, "PWR_I2C_SCL PZ6"),
  379. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PZ7, "PWR_I2C_SDA PZ7"),
  380. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT0_PAA0, "SDMMC4_DAT0 PAA0"),
  381. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT1_PAA1, "SDMMC4_DAT1 PAA1"),
  382. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT2_PAA2, "SDMMC4_DAT2 PAA2"),
  383. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT3_PAA3, "SDMMC4_DAT3 PAA3"),
  384. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT4_PAA4, "SDMMC4_DAT4 PAA4"),
  385. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT5_PAA5, "SDMMC4_DAT5 PAA5"),
  386. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT6_PAA6, "SDMMC4_DAT6 PAA6"),
  387. PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT7_PAA7, "SDMMC4_DAT7 PAA7"),
  388. PINCTRL_PIN(TEGRA_PIN_PBB0, "PBB0"),
  389. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PBB1, "CAM_I2C_SCL PBB1"),
  390. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PBB2, "CAM_I2C_SDA PBB2"),
  391. PINCTRL_PIN(TEGRA_PIN_PBB3, "PBB3"),
  392. PINCTRL_PIN(TEGRA_PIN_PBB4, "PBB4"),
  393. PINCTRL_PIN(TEGRA_PIN_PBB5, "PBB5"),
  394. PINCTRL_PIN(TEGRA_PIN_PBB6, "PBB6"),
  395. PINCTRL_PIN(TEGRA_PIN_PBB7, "PBB7"),
  396. PINCTRL_PIN(TEGRA_PIN_CAM_MCLK_PCC0, "CAM_MCLK PCC0"),
  397. PINCTRL_PIN(TEGRA_PIN_PCC1, "PCC1"),
  398. PINCTRL_PIN(TEGRA_PIN_PCC2, "PCC2"),
  399. PINCTRL_PIN(TEGRA_PIN_SDMMC4_CLK_PCC4, "SDMMC4_CLK PCC4"),
  400. PINCTRL_PIN(TEGRA_PIN_CLK2_REQ_PCC5, "CLK2_REQ PCC5"),
  401. PINCTRL_PIN(TEGRA_PIN_PEX_L0_RST_N_PDD1, "PEX_L0_RST_N PDD1"),
  402. PINCTRL_PIN(TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2, "PEX_L0_CLKREQ_N PDD2"),
  403. PINCTRL_PIN(TEGRA_PIN_PEX_WAKE_N_PDD3, "PEX_WAKE_N PDD3"),
  404. PINCTRL_PIN(TEGRA_PIN_PEX_L1_RST_N_PDD5, "PEX_L1_RST_N PDD5"),
  405. PINCTRL_PIN(TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6, "PEX_L1_CLKREQ_N PDD6"),
  406. PINCTRL_PIN(TEGRA_PIN_CLK3_OUT_PEE0, "CLK3_OUT PEE0"),
  407. PINCTRL_PIN(TEGRA_PIN_CLK3_REQ_PEE1, "CLK3_REQ PEE1"),
  408. PINCTRL_PIN(TEGRA_PIN_DAP_MCLK1_REQ_PEE2, "DAP_MCLK1_REQ PEE2"),
  409. PINCTRL_PIN(TEGRA_PIN_HDMI_CEC_PEE3, "HDMI_CEC PEE3"),
  410. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4, "SDMMC3_CLK_LB_OUT PEE4"),
  411. PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5, "SDMMC3_CLK_LB_IN PEE5"),
  412. PINCTRL_PIN(TEGRA_PIN_DP_HPD_PFF0, "DP_HPD PFF0"),
  413. PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN2_PFF1, "USB_VBUS_EN2 PFF1"),
  414. PINCTRL_PIN(TEGRA_PIN_PFF2, "PFF2"),
  415. PINCTRL_PIN(TEGRA_PIN_CORE_PWR_REQ, "CORE_PWR_REQ"),
  416. PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ, "CPU_PWR_REQ"),
  417. PINCTRL_PIN(TEGRA_PIN_PWR_INT_N, "PWR_INT_N"),
  418. PINCTRL_PIN(TEGRA_PIN_GMI_CLK_LB, "GMI_CLK_LB"),
  419. PINCTRL_PIN(TEGRA_PIN_RESET_OUT_N, "RESET_OUT_N"),
  420. PINCTRL_PIN(TEGRA_PIN_OWR, "OWR"),
  421. PINCTRL_PIN(TEGRA_PIN_CLK_32K_IN, "CLK_32K_IN"),
  422. PINCTRL_PIN(TEGRA_PIN_JTAG_RTCK, "JTAG_RTCK"),
  423. PINCTRL_PIN(TEGRA_PIN_DSI_B_CLK_P, "DSI_B_CLK_P"),
  424. PINCTRL_PIN(TEGRA_PIN_DSI_B_CLK_N, "DSI_B_CLK_N"),
  425. PINCTRL_PIN(TEGRA_PIN_DSI_B_D0_P, "DSI_B_D0_P"),
  426. PINCTRL_PIN(TEGRA_PIN_DSI_B_D0_N, "DSI_B_D0_N"),
  427. PINCTRL_PIN(TEGRA_PIN_DSI_B_D1_P, "DSI_B_D1_P"),
  428. PINCTRL_PIN(TEGRA_PIN_DSI_B_D1_N, "DSI_B_D1_N"),
  429. PINCTRL_PIN(TEGRA_PIN_DSI_B_D2_P, "DSI_B_D2_P"),
  430. PINCTRL_PIN(TEGRA_PIN_DSI_B_D2_N, "DSI_B_D2_N"),
  431. PINCTRL_PIN(TEGRA_PIN_DSI_B_D3_P, "DSI_B_D3_P"),
  432. PINCTRL_PIN(TEGRA_PIN_DSI_B_D3_N, "DSI_B_D3_N"),
  433. };
  434. static const unsigned clk_32k_out_pa0_pins[] = {
  435. TEGRA_PIN_CLK_32K_OUT_PA0,
  436. };
  437. static const unsigned uart3_cts_n_pa1_pins[] = {
  438. TEGRA_PIN_UART3_CTS_N_PA1,
  439. };
  440. static const unsigned dap2_fs_pa2_pins[] = {
  441. TEGRA_PIN_DAP2_FS_PA2,
  442. };
  443. static const unsigned dap2_sclk_pa3_pins[] = {
  444. TEGRA_PIN_DAP2_SCLK_PA3,
  445. };
  446. static const unsigned dap2_din_pa4_pins[] = {
  447. TEGRA_PIN_DAP2_DIN_PA4,
  448. };
  449. static const unsigned dap2_dout_pa5_pins[] = {
  450. TEGRA_PIN_DAP2_DOUT_PA5,
  451. };
  452. static const unsigned sdmmc3_clk_pa6_pins[] = {
  453. TEGRA_PIN_SDMMC3_CLK_PA6,
  454. };
  455. static const unsigned sdmmc3_cmd_pa7_pins[] = {
  456. TEGRA_PIN_SDMMC3_CMD_PA7,
  457. };
  458. static const unsigned pb0_pins[] = {
  459. TEGRA_PIN_PB0,
  460. };
  461. static const unsigned pb1_pins[] = {
  462. TEGRA_PIN_PB1,
  463. };
  464. static const unsigned sdmmc3_dat3_pb4_pins[] = {
  465. TEGRA_PIN_SDMMC3_DAT3_PB4,
  466. };
  467. static const unsigned sdmmc3_dat2_pb5_pins[] = {
  468. TEGRA_PIN_SDMMC3_DAT2_PB5,
  469. };
  470. static const unsigned sdmmc3_dat1_pb6_pins[] = {
  471. TEGRA_PIN_SDMMC3_DAT1_PB6,
  472. };
  473. static const unsigned sdmmc3_dat0_pb7_pins[] = {
  474. TEGRA_PIN_SDMMC3_DAT0_PB7,
  475. };
  476. static const unsigned uart3_rts_n_pc0_pins[] = {
  477. TEGRA_PIN_UART3_RTS_N_PC0,
  478. };
  479. static const unsigned uart2_txd_pc2_pins[] = {
  480. TEGRA_PIN_UART2_TXD_PC2,
  481. };
  482. static const unsigned uart2_rxd_pc3_pins[] = {
  483. TEGRA_PIN_UART2_RXD_PC3,
  484. };
  485. static const unsigned gen1_i2c_scl_pc4_pins[] = {
  486. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  487. };
  488. static const unsigned gen1_i2c_sda_pc5_pins[] = {
  489. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  490. };
  491. static const unsigned pc7_pins[] = {
  492. TEGRA_PIN_PC7,
  493. };
  494. static const unsigned pg0_pins[] = {
  495. TEGRA_PIN_PG0,
  496. };
  497. static const unsigned pg1_pins[] = {
  498. TEGRA_PIN_PG1,
  499. };
  500. static const unsigned pg2_pins[] = {
  501. TEGRA_PIN_PG2,
  502. };
  503. static const unsigned pg3_pins[] = {
  504. TEGRA_PIN_PG3,
  505. };
  506. static const unsigned pg4_pins[] = {
  507. TEGRA_PIN_PG4,
  508. };
  509. static const unsigned pg5_pins[] = {
  510. TEGRA_PIN_PG5,
  511. };
  512. static const unsigned pg6_pins[] = {
  513. TEGRA_PIN_PG6,
  514. };
  515. static const unsigned pg7_pins[] = {
  516. TEGRA_PIN_PG7,
  517. };
  518. static const unsigned ph0_pins[] = {
  519. TEGRA_PIN_PH0,
  520. };
  521. static const unsigned ph1_pins[] = {
  522. TEGRA_PIN_PH1,
  523. };
  524. static const unsigned ph2_pins[] = {
  525. TEGRA_PIN_PH2,
  526. };
  527. static const unsigned ph3_pins[] = {
  528. TEGRA_PIN_PH3,
  529. };
  530. static const unsigned ph4_pins[] = {
  531. TEGRA_PIN_PH4,
  532. };
  533. static const unsigned ph5_pins[] = {
  534. TEGRA_PIN_PH5,
  535. };
  536. static const unsigned ph6_pins[] = {
  537. TEGRA_PIN_PH6,
  538. };
  539. static const unsigned ph7_pins[] = {
  540. TEGRA_PIN_PH7,
  541. };
  542. static const unsigned pi0_pins[] = {
  543. TEGRA_PIN_PI0,
  544. };
  545. static const unsigned pi1_pins[] = {
  546. TEGRA_PIN_PI1,
  547. };
  548. static const unsigned pi2_pins[] = {
  549. TEGRA_PIN_PI2,
  550. };
  551. static const unsigned pi3_pins[] = {
  552. TEGRA_PIN_PI3,
  553. };
  554. static const unsigned pi4_pins[] = {
  555. TEGRA_PIN_PI4,
  556. };
  557. static const unsigned pi5_pins[] = {
  558. TEGRA_PIN_PI5,
  559. };
  560. static const unsigned pi6_pins[] = {
  561. TEGRA_PIN_PI6,
  562. };
  563. static const unsigned pi7_pins[] = {
  564. TEGRA_PIN_PI7,
  565. };
  566. static const unsigned pj0_pins[] = {
  567. TEGRA_PIN_PJ0,
  568. };
  569. static const unsigned pj2_pins[] = {
  570. TEGRA_PIN_PJ2,
  571. };
  572. static const unsigned uart2_cts_n_pj5_pins[] = {
  573. TEGRA_PIN_UART2_CTS_N_PJ5,
  574. };
  575. static const unsigned uart2_rts_n_pj6_pins[] = {
  576. TEGRA_PIN_UART2_RTS_N_PJ6,
  577. };
  578. static const unsigned pj7_pins[] = {
  579. TEGRA_PIN_PJ7,
  580. };
  581. static const unsigned pk0_pins[] = {
  582. TEGRA_PIN_PK0,
  583. };
  584. static const unsigned pk1_pins[] = {
  585. TEGRA_PIN_PK1,
  586. };
  587. static const unsigned pk2_pins[] = {
  588. TEGRA_PIN_PK2,
  589. };
  590. static const unsigned pk3_pins[] = {
  591. TEGRA_PIN_PK3,
  592. };
  593. static const unsigned pk4_pins[] = {
  594. TEGRA_PIN_PK4,
  595. };
  596. static const unsigned spdif_out_pk5_pins[] = {
  597. TEGRA_PIN_SPDIF_OUT_PK5,
  598. };
  599. static const unsigned spdif_in_pk6_pins[] = {
  600. TEGRA_PIN_SPDIF_IN_PK6,
  601. };
  602. static const unsigned pk7_pins[] = {
  603. TEGRA_PIN_PK7,
  604. };
  605. static const unsigned dap1_fs_pn0_pins[] = {
  606. TEGRA_PIN_DAP1_FS_PN0,
  607. };
  608. static const unsigned dap1_din_pn1_pins[] = {
  609. TEGRA_PIN_DAP1_DIN_PN1,
  610. };
  611. static const unsigned dap1_dout_pn2_pins[] = {
  612. TEGRA_PIN_DAP1_DOUT_PN2,
  613. };
  614. static const unsigned dap1_sclk_pn3_pins[] = {
  615. TEGRA_PIN_DAP1_SCLK_PN3,
  616. };
  617. static const unsigned usb_vbus_en0_pn4_pins[] = {
  618. TEGRA_PIN_USB_VBUS_EN0_PN4,
  619. };
  620. static const unsigned usb_vbus_en1_pn5_pins[] = {
  621. TEGRA_PIN_USB_VBUS_EN1_PN5,
  622. };
  623. static const unsigned hdmi_int_pn7_pins[] = {
  624. TEGRA_PIN_HDMI_INT_PN7,
  625. };
  626. static const unsigned ulpi_data7_po0_pins[] = {
  627. TEGRA_PIN_ULPI_DATA7_PO0,
  628. };
  629. static const unsigned ulpi_data0_po1_pins[] = {
  630. TEGRA_PIN_ULPI_DATA0_PO1,
  631. };
  632. static const unsigned ulpi_data1_po2_pins[] = {
  633. TEGRA_PIN_ULPI_DATA1_PO2,
  634. };
  635. static const unsigned ulpi_data2_po3_pins[] = {
  636. TEGRA_PIN_ULPI_DATA2_PO3,
  637. };
  638. static const unsigned ulpi_data3_po4_pins[] = {
  639. TEGRA_PIN_ULPI_DATA3_PO4,
  640. };
  641. static const unsigned ulpi_data4_po5_pins[] = {
  642. TEGRA_PIN_ULPI_DATA4_PO5,
  643. };
  644. static const unsigned ulpi_data5_po6_pins[] = {
  645. TEGRA_PIN_ULPI_DATA5_PO6,
  646. };
  647. static const unsigned ulpi_data6_po7_pins[] = {
  648. TEGRA_PIN_ULPI_DATA6_PO7,
  649. };
  650. static const unsigned dap3_fs_pp0_pins[] = {
  651. TEGRA_PIN_DAP3_FS_PP0,
  652. };
  653. static const unsigned dap3_din_pp1_pins[] = {
  654. TEGRA_PIN_DAP3_DIN_PP1,
  655. };
  656. static const unsigned dap3_dout_pp2_pins[] = {
  657. TEGRA_PIN_DAP3_DOUT_PP2,
  658. };
  659. static const unsigned dap3_sclk_pp3_pins[] = {
  660. TEGRA_PIN_DAP3_SCLK_PP3,
  661. };
  662. static const unsigned dap4_fs_pp4_pins[] = {
  663. TEGRA_PIN_DAP4_FS_PP4,
  664. };
  665. static const unsigned dap4_din_pp5_pins[] = {
  666. TEGRA_PIN_DAP4_DIN_PP5,
  667. };
  668. static const unsigned dap4_dout_pp6_pins[] = {
  669. TEGRA_PIN_DAP4_DOUT_PP6,
  670. };
  671. static const unsigned dap4_sclk_pp7_pins[] = {
  672. TEGRA_PIN_DAP4_SCLK_PP7,
  673. };
  674. static const unsigned kb_col0_pq0_pins[] = {
  675. TEGRA_PIN_KB_COL0_PQ0,
  676. };
  677. static const unsigned kb_col1_pq1_pins[] = {
  678. TEGRA_PIN_KB_COL1_PQ1,
  679. };
  680. static const unsigned kb_col2_pq2_pins[] = {
  681. TEGRA_PIN_KB_COL2_PQ2,
  682. };
  683. static const unsigned kb_col3_pq3_pins[] = {
  684. TEGRA_PIN_KB_COL3_PQ3,
  685. };
  686. static const unsigned kb_col4_pq4_pins[] = {
  687. TEGRA_PIN_KB_COL4_PQ4,
  688. };
  689. static const unsigned kb_col5_pq5_pins[] = {
  690. TEGRA_PIN_KB_COL5_PQ5,
  691. };
  692. static const unsigned kb_col6_pq6_pins[] = {
  693. TEGRA_PIN_KB_COL6_PQ6,
  694. };
  695. static const unsigned kb_col7_pq7_pins[] = {
  696. TEGRA_PIN_KB_COL7_PQ7,
  697. };
  698. static const unsigned kb_row0_pr0_pins[] = {
  699. TEGRA_PIN_KB_ROW0_PR0,
  700. };
  701. static const unsigned kb_row1_pr1_pins[] = {
  702. TEGRA_PIN_KB_ROW1_PR1,
  703. };
  704. static const unsigned kb_row2_pr2_pins[] = {
  705. TEGRA_PIN_KB_ROW2_PR2,
  706. };
  707. static const unsigned kb_row3_pr3_pins[] = {
  708. TEGRA_PIN_KB_ROW3_PR3,
  709. };
  710. static const unsigned kb_row4_pr4_pins[] = {
  711. TEGRA_PIN_KB_ROW4_PR4,
  712. };
  713. static const unsigned kb_row5_pr5_pins[] = {
  714. TEGRA_PIN_KB_ROW5_PR5,
  715. };
  716. static const unsigned kb_row6_pr6_pins[] = {
  717. TEGRA_PIN_KB_ROW6_PR6,
  718. };
  719. static const unsigned kb_row7_pr7_pins[] = {
  720. TEGRA_PIN_KB_ROW7_PR7,
  721. };
  722. static const unsigned kb_row8_ps0_pins[] = {
  723. TEGRA_PIN_KB_ROW8_PS0,
  724. };
  725. static const unsigned kb_row9_ps1_pins[] = {
  726. TEGRA_PIN_KB_ROW9_PS1,
  727. };
  728. static const unsigned kb_row10_ps2_pins[] = {
  729. TEGRA_PIN_KB_ROW10_PS2,
  730. };
  731. static const unsigned kb_row11_ps3_pins[] = {
  732. TEGRA_PIN_KB_ROW11_PS3,
  733. };
  734. static const unsigned kb_row12_ps4_pins[] = {
  735. TEGRA_PIN_KB_ROW12_PS4,
  736. };
  737. static const unsigned kb_row13_ps5_pins[] = {
  738. TEGRA_PIN_KB_ROW13_PS5,
  739. };
  740. static const unsigned kb_row14_ps6_pins[] = {
  741. TEGRA_PIN_KB_ROW14_PS6,
  742. };
  743. static const unsigned kb_row15_ps7_pins[] = {
  744. TEGRA_PIN_KB_ROW15_PS7,
  745. };
  746. static const unsigned kb_row16_pt0_pins[] = {
  747. TEGRA_PIN_KB_ROW16_PT0,
  748. };
  749. static const unsigned kb_row17_pt1_pins[] = {
  750. TEGRA_PIN_KB_ROW17_PT1,
  751. };
  752. static const unsigned gen2_i2c_scl_pt5_pins[] = {
  753. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  754. };
  755. static const unsigned gen2_i2c_sda_pt6_pins[] = {
  756. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  757. };
  758. static const unsigned sdmmc4_cmd_pt7_pins[] = {
  759. TEGRA_PIN_SDMMC4_CMD_PT7,
  760. };
  761. static const unsigned pu0_pins[] = {
  762. TEGRA_PIN_PU0,
  763. };
  764. static const unsigned pu1_pins[] = {
  765. TEGRA_PIN_PU1,
  766. };
  767. static const unsigned pu2_pins[] = {
  768. TEGRA_PIN_PU2,
  769. };
  770. static const unsigned pu3_pins[] = {
  771. TEGRA_PIN_PU3,
  772. };
  773. static const unsigned pu4_pins[] = {
  774. TEGRA_PIN_PU4,
  775. };
  776. static const unsigned pu5_pins[] = {
  777. TEGRA_PIN_PU5,
  778. };
  779. static const unsigned pu6_pins[] = {
  780. TEGRA_PIN_PU6,
  781. };
  782. static const unsigned pv0_pins[] = {
  783. TEGRA_PIN_PV0,
  784. };
  785. static const unsigned pv1_pins[] = {
  786. TEGRA_PIN_PV1,
  787. };
  788. static const unsigned sdmmc3_cd_n_pv2_pins[] = {
  789. TEGRA_PIN_SDMMC3_CD_N_PV2,
  790. };
  791. static const unsigned sdmmc1_wp_n_pv3_pins[] = {
  792. TEGRA_PIN_SDMMC1_WP_N_PV3,
  793. };
  794. static const unsigned ddc_scl_pv4_pins[] = {
  795. TEGRA_PIN_DDC_SCL_PV4,
  796. };
  797. static const unsigned ddc_sda_pv5_pins[] = {
  798. TEGRA_PIN_DDC_SDA_PV5,
  799. };
  800. static const unsigned gpio_w2_aud_pw2_pins[] = {
  801. TEGRA_PIN_GPIO_W2_AUD_PW2,
  802. };
  803. static const unsigned gpio_w3_aud_pw3_pins[] = {
  804. TEGRA_PIN_GPIO_W3_AUD_PW3,
  805. };
  806. static const unsigned dap_mclk1_pw4_pins[] = {
  807. TEGRA_PIN_DAP_MCLK1_PW4,
  808. };
  809. static const unsigned clk2_out_pw5_pins[] = {
  810. TEGRA_PIN_CLK2_OUT_PW5,
  811. };
  812. static const unsigned uart3_txd_pw6_pins[] = {
  813. TEGRA_PIN_UART3_TXD_PW6,
  814. };
  815. static const unsigned uart3_rxd_pw7_pins[] = {
  816. TEGRA_PIN_UART3_RXD_PW7,
  817. };
  818. static const unsigned dvfs_pwm_px0_pins[] = {
  819. TEGRA_PIN_DVFS_PWM_PX0,
  820. };
  821. static const unsigned gpio_x1_aud_px1_pins[] = {
  822. TEGRA_PIN_GPIO_X1_AUD_PX1,
  823. };
  824. static const unsigned dvfs_clk_px2_pins[] = {
  825. TEGRA_PIN_DVFS_CLK_PX2,
  826. };
  827. static const unsigned gpio_x3_aud_px3_pins[] = {
  828. TEGRA_PIN_GPIO_X3_AUD_PX3,
  829. };
  830. static const unsigned gpio_x4_aud_px4_pins[] = {
  831. TEGRA_PIN_GPIO_X4_AUD_PX4,
  832. };
  833. static const unsigned gpio_x5_aud_px5_pins[] = {
  834. TEGRA_PIN_GPIO_X5_AUD_PX5,
  835. };
  836. static const unsigned gpio_x6_aud_px6_pins[] = {
  837. TEGRA_PIN_GPIO_X6_AUD_PX6,
  838. };
  839. static const unsigned gpio_x7_aud_px7_pins[] = {
  840. TEGRA_PIN_GPIO_X7_AUD_PX7,
  841. };
  842. static const unsigned ulpi_clk_py0_pins[] = {
  843. TEGRA_PIN_ULPI_CLK_PY0,
  844. };
  845. static const unsigned ulpi_dir_py1_pins[] = {
  846. TEGRA_PIN_ULPI_DIR_PY1,
  847. };
  848. static const unsigned ulpi_nxt_py2_pins[] = {
  849. TEGRA_PIN_ULPI_NXT_PY2,
  850. };
  851. static const unsigned ulpi_stp_py3_pins[] = {
  852. TEGRA_PIN_ULPI_STP_PY3,
  853. };
  854. static const unsigned sdmmc1_dat3_py4_pins[] = {
  855. TEGRA_PIN_SDMMC1_DAT3_PY4,
  856. };
  857. static const unsigned sdmmc1_dat2_py5_pins[] = {
  858. TEGRA_PIN_SDMMC1_DAT2_PY5,
  859. };
  860. static const unsigned sdmmc1_dat1_py6_pins[] = {
  861. TEGRA_PIN_SDMMC1_DAT1_PY6,
  862. };
  863. static const unsigned sdmmc1_dat0_py7_pins[] = {
  864. TEGRA_PIN_SDMMC1_DAT0_PY7,
  865. };
  866. static const unsigned sdmmc1_clk_pz0_pins[] = {
  867. TEGRA_PIN_SDMMC1_CLK_PZ0,
  868. };
  869. static const unsigned sdmmc1_cmd_pz1_pins[] = {
  870. TEGRA_PIN_SDMMC1_CMD_PZ1,
  871. };
  872. static const unsigned pwr_i2c_scl_pz6_pins[] = {
  873. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  874. };
  875. static const unsigned pwr_i2c_sda_pz7_pins[] = {
  876. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  877. };
  878. static const unsigned sdmmc4_dat0_paa0_pins[] = {
  879. TEGRA_PIN_SDMMC4_DAT0_PAA0,
  880. };
  881. static const unsigned sdmmc4_dat1_paa1_pins[] = {
  882. TEGRA_PIN_SDMMC4_DAT1_PAA1,
  883. };
  884. static const unsigned sdmmc4_dat2_paa2_pins[] = {
  885. TEGRA_PIN_SDMMC4_DAT2_PAA2,
  886. };
  887. static const unsigned sdmmc4_dat3_paa3_pins[] = {
  888. TEGRA_PIN_SDMMC4_DAT3_PAA3,
  889. };
  890. static const unsigned sdmmc4_dat4_paa4_pins[] = {
  891. TEGRA_PIN_SDMMC4_DAT4_PAA4,
  892. };
  893. static const unsigned sdmmc4_dat5_paa5_pins[] = {
  894. TEGRA_PIN_SDMMC4_DAT5_PAA5,
  895. };
  896. static const unsigned sdmmc4_dat6_paa6_pins[] = {
  897. TEGRA_PIN_SDMMC4_DAT6_PAA6,
  898. };
  899. static const unsigned sdmmc4_dat7_paa7_pins[] = {
  900. TEGRA_PIN_SDMMC4_DAT7_PAA7,
  901. };
  902. static const unsigned pbb0_pins[] = {
  903. TEGRA_PIN_PBB0,
  904. };
  905. static const unsigned cam_i2c_scl_pbb1_pins[] = {
  906. TEGRA_PIN_CAM_I2C_SCL_PBB1,
  907. };
  908. static const unsigned cam_i2c_sda_pbb2_pins[] = {
  909. TEGRA_PIN_CAM_I2C_SDA_PBB2,
  910. };
  911. static const unsigned pbb3_pins[] = {
  912. TEGRA_PIN_PBB3,
  913. };
  914. static const unsigned pbb4_pins[] = {
  915. TEGRA_PIN_PBB4,
  916. };
  917. static const unsigned pbb5_pins[] = {
  918. TEGRA_PIN_PBB5,
  919. };
  920. static const unsigned pbb6_pins[] = {
  921. TEGRA_PIN_PBB6,
  922. };
  923. static const unsigned pbb7_pins[] = {
  924. TEGRA_PIN_PBB7,
  925. };
  926. static const unsigned cam_mclk_pcc0_pins[] = {
  927. TEGRA_PIN_CAM_MCLK_PCC0,
  928. };
  929. static const unsigned pcc1_pins[] = {
  930. TEGRA_PIN_PCC1,
  931. };
  932. static const unsigned pcc2_pins[] = {
  933. TEGRA_PIN_PCC2,
  934. };
  935. static const unsigned sdmmc4_clk_pcc4_pins[] = {
  936. TEGRA_PIN_SDMMC4_CLK_PCC4,
  937. };
  938. static const unsigned clk2_req_pcc5_pins[] = {
  939. TEGRA_PIN_CLK2_REQ_PCC5,
  940. };
  941. static const unsigned pex_l0_rst_n_pdd1_pins[] = {
  942. TEGRA_PIN_PEX_L0_RST_N_PDD1,
  943. };
  944. static const unsigned pex_l0_clkreq_n_pdd2_pins[] = {
  945. TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2,
  946. };
  947. static const unsigned pex_wake_n_pdd3_pins[] = {
  948. TEGRA_PIN_PEX_WAKE_N_PDD3,
  949. };
  950. static const unsigned pex_l1_rst_n_pdd5_pins[] = {
  951. TEGRA_PIN_PEX_L1_RST_N_PDD5,
  952. };
  953. static const unsigned pex_l1_clkreq_n_pdd6_pins[] = {
  954. TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6,
  955. };
  956. static const unsigned clk3_out_pee0_pins[] = {
  957. TEGRA_PIN_CLK3_OUT_PEE0,
  958. };
  959. static const unsigned clk3_req_pee1_pins[] = {
  960. TEGRA_PIN_CLK3_REQ_PEE1,
  961. };
  962. static const unsigned dap_mclk1_req_pee2_pins[] = {
  963. TEGRA_PIN_DAP_MCLK1_REQ_PEE2,
  964. };
  965. static const unsigned hdmi_cec_pee3_pins[] = {
  966. TEGRA_PIN_HDMI_CEC_PEE3,
  967. };
  968. static const unsigned sdmmc3_clk_lb_out_pee4_pins[] = {
  969. TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4,
  970. };
  971. static const unsigned sdmmc3_clk_lb_in_pee5_pins[] = {
  972. TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5,
  973. };
  974. static const unsigned dp_hpd_pff0_pins[] = {
  975. TEGRA_PIN_DP_HPD_PFF0,
  976. };
  977. static const unsigned usb_vbus_en2_pff1_pins[] = {
  978. TEGRA_PIN_USB_VBUS_EN2_PFF1,
  979. };
  980. static const unsigned pff2_pins[] = {
  981. TEGRA_PIN_PFF2,
  982. };
  983. static const unsigned core_pwr_req_pins[] = {
  984. TEGRA_PIN_CORE_PWR_REQ,
  985. };
  986. static const unsigned cpu_pwr_req_pins[] = {
  987. TEGRA_PIN_CPU_PWR_REQ,
  988. };
  989. static const unsigned pwr_int_n_pins[] = {
  990. TEGRA_PIN_PWR_INT_N,
  991. };
  992. static const unsigned gmi_clk_lb_pins[] = {
  993. TEGRA_PIN_GMI_CLK_LB,
  994. };
  995. static const unsigned reset_out_n_pins[] = {
  996. TEGRA_PIN_RESET_OUT_N,
  997. };
  998. static const unsigned owr_pins[] = {
  999. TEGRA_PIN_OWR,
  1000. };
  1001. static const unsigned clk_32k_in_pins[] = {
  1002. TEGRA_PIN_CLK_32K_IN,
  1003. };
  1004. static const unsigned jtag_rtck_pins[] = {
  1005. TEGRA_PIN_JTAG_RTCK,
  1006. };
  1007. static const unsigned drive_ao1_pins[] = {
  1008. TEGRA_PIN_KB_ROW0_PR0,
  1009. TEGRA_PIN_KB_ROW1_PR1,
  1010. TEGRA_PIN_KB_ROW2_PR2,
  1011. TEGRA_PIN_KB_ROW3_PR3,
  1012. TEGRA_PIN_KB_ROW4_PR4,
  1013. TEGRA_PIN_KB_ROW5_PR5,
  1014. TEGRA_PIN_KB_ROW6_PR6,
  1015. TEGRA_PIN_KB_ROW7_PR7,
  1016. TEGRA_PIN_PWR_I2C_SCL_PZ6,
  1017. TEGRA_PIN_PWR_I2C_SDA_PZ7,
  1018. };
  1019. static const unsigned drive_ao2_pins[] = {
  1020. TEGRA_PIN_CLK_32K_OUT_PA0,
  1021. TEGRA_PIN_CLK_32K_IN,
  1022. TEGRA_PIN_KB_COL0_PQ0,
  1023. TEGRA_PIN_KB_COL1_PQ1,
  1024. TEGRA_PIN_KB_COL2_PQ2,
  1025. TEGRA_PIN_KB_COL3_PQ3,
  1026. TEGRA_PIN_KB_COL4_PQ4,
  1027. TEGRA_PIN_KB_COL5_PQ5,
  1028. TEGRA_PIN_KB_COL6_PQ6,
  1029. TEGRA_PIN_KB_COL7_PQ7,
  1030. TEGRA_PIN_KB_ROW8_PS0,
  1031. TEGRA_PIN_KB_ROW9_PS1,
  1032. TEGRA_PIN_KB_ROW10_PS2,
  1033. TEGRA_PIN_KB_ROW11_PS3,
  1034. TEGRA_PIN_KB_ROW12_PS4,
  1035. TEGRA_PIN_KB_ROW13_PS5,
  1036. TEGRA_PIN_KB_ROW14_PS6,
  1037. TEGRA_PIN_KB_ROW15_PS7,
  1038. TEGRA_PIN_KB_ROW16_PT0,
  1039. TEGRA_PIN_KB_ROW17_PT1,
  1040. TEGRA_PIN_SDMMC3_CD_N_PV2,
  1041. TEGRA_PIN_CORE_PWR_REQ,
  1042. TEGRA_PIN_CPU_PWR_REQ,
  1043. TEGRA_PIN_PWR_INT_N,
  1044. };
  1045. static const unsigned drive_at1_pins[] = {
  1046. TEGRA_PIN_PH0,
  1047. TEGRA_PIN_PH1,
  1048. TEGRA_PIN_PH2,
  1049. TEGRA_PIN_PH3,
  1050. };
  1051. static const unsigned drive_at2_pins[] = {
  1052. TEGRA_PIN_PG0,
  1053. TEGRA_PIN_PG1,
  1054. TEGRA_PIN_PG2,
  1055. TEGRA_PIN_PG3,
  1056. TEGRA_PIN_PG4,
  1057. TEGRA_PIN_PG5,
  1058. TEGRA_PIN_PG6,
  1059. TEGRA_PIN_PG7,
  1060. TEGRA_PIN_PI0,
  1061. TEGRA_PIN_PI1,
  1062. TEGRA_PIN_PI3,
  1063. TEGRA_PIN_PI4,
  1064. TEGRA_PIN_PI7,
  1065. TEGRA_PIN_PK0,
  1066. TEGRA_PIN_PK2,
  1067. };
  1068. static const unsigned drive_at3_pins[] = {
  1069. TEGRA_PIN_PC7,
  1070. TEGRA_PIN_PJ0,
  1071. };
  1072. static const unsigned drive_at4_pins[] = {
  1073. TEGRA_PIN_PB0,
  1074. TEGRA_PIN_PB1,
  1075. TEGRA_PIN_PJ0,
  1076. TEGRA_PIN_PJ7,
  1077. TEGRA_PIN_PK7,
  1078. };
  1079. static const unsigned drive_at5_pins[] = {
  1080. TEGRA_PIN_GEN2_I2C_SCL_PT5,
  1081. TEGRA_PIN_GEN2_I2C_SDA_PT6,
  1082. };
  1083. static const unsigned drive_cdev1_pins[] = {
  1084. TEGRA_PIN_DAP_MCLK1_PW4,
  1085. TEGRA_PIN_DAP_MCLK1_REQ_PEE2,
  1086. };
  1087. static const unsigned drive_cdev2_pins[] = {
  1088. TEGRA_PIN_CLK2_OUT_PW5,
  1089. TEGRA_PIN_CLK2_REQ_PCC5,
  1090. };
  1091. static const unsigned drive_dap1_pins[] = {
  1092. TEGRA_PIN_DAP1_FS_PN0,
  1093. TEGRA_PIN_DAP1_DIN_PN1,
  1094. TEGRA_PIN_DAP1_DOUT_PN2,
  1095. TEGRA_PIN_DAP1_SCLK_PN3,
  1096. };
  1097. static const unsigned drive_dap2_pins[] = {
  1098. TEGRA_PIN_DAP2_FS_PA2,
  1099. TEGRA_PIN_DAP2_SCLK_PA3,
  1100. TEGRA_PIN_DAP2_DIN_PA4,
  1101. TEGRA_PIN_DAP2_DOUT_PA5,
  1102. };
  1103. static const unsigned drive_dap3_pins[] = {
  1104. TEGRA_PIN_DAP3_FS_PP0,
  1105. TEGRA_PIN_DAP3_DIN_PP1,
  1106. TEGRA_PIN_DAP3_DOUT_PP2,
  1107. TEGRA_PIN_DAP3_SCLK_PP3,
  1108. };
  1109. static const unsigned drive_dap4_pins[] = {
  1110. TEGRA_PIN_DAP4_FS_PP4,
  1111. TEGRA_PIN_DAP4_DIN_PP5,
  1112. TEGRA_PIN_DAP4_DOUT_PP6,
  1113. TEGRA_PIN_DAP4_SCLK_PP7,
  1114. };
  1115. static const unsigned drive_dbg_pins[] = {
  1116. TEGRA_PIN_GEN1_I2C_SCL_PC4,
  1117. TEGRA_PIN_GEN1_I2C_SDA_PC5,
  1118. TEGRA_PIN_PU0,
  1119. TEGRA_PIN_PU1,
  1120. TEGRA_PIN_PU2,
  1121. TEGRA_PIN_PU3,
  1122. TEGRA_PIN_PU4,
  1123. TEGRA_PIN_PU5,
  1124. TEGRA_PIN_PU6,
  1125. };
  1126. static const unsigned drive_sdio3_pins[] = {
  1127. TEGRA_PIN_SDMMC3_CLK_PA6,
  1128. TEGRA_PIN_SDMMC3_CMD_PA7,
  1129. TEGRA_PIN_SDMMC3_DAT3_PB4,
  1130. TEGRA_PIN_SDMMC3_DAT2_PB5,
  1131. TEGRA_PIN_SDMMC3_DAT1_PB6,
  1132. TEGRA_PIN_SDMMC3_DAT0_PB7,
  1133. TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4,
  1134. TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5,
  1135. };
  1136. static const unsigned drive_spi_pins[] = {
  1137. TEGRA_PIN_DVFS_PWM_PX0,
  1138. TEGRA_PIN_GPIO_X1_AUD_PX1,
  1139. TEGRA_PIN_DVFS_CLK_PX2,
  1140. TEGRA_PIN_GPIO_X3_AUD_PX3,
  1141. TEGRA_PIN_GPIO_X4_AUD_PX4,
  1142. TEGRA_PIN_GPIO_X5_AUD_PX5,
  1143. TEGRA_PIN_GPIO_X6_AUD_PX6,
  1144. TEGRA_PIN_GPIO_X7_AUD_PX7,
  1145. TEGRA_PIN_GPIO_W2_AUD_PW2,
  1146. TEGRA_PIN_GPIO_W3_AUD_PW3,
  1147. };
  1148. static const unsigned drive_uaa_pins[] = {
  1149. TEGRA_PIN_ULPI_DATA0_PO1,
  1150. TEGRA_PIN_ULPI_DATA1_PO2,
  1151. TEGRA_PIN_ULPI_DATA2_PO3,
  1152. TEGRA_PIN_ULPI_DATA3_PO4,
  1153. };
  1154. static const unsigned drive_uab_pins[] = {
  1155. TEGRA_PIN_ULPI_DATA7_PO0,
  1156. TEGRA_PIN_ULPI_DATA4_PO5,
  1157. TEGRA_PIN_ULPI_DATA5_PO6,
  1158. TEGRA_PIN_ULPI_DATA6_PO7,
  1159. TEGRA_PIN_PV0,
  1160. TEGRA_PIN_PV1,
  1161. };
  1162. static const unsigned drive_uart2_pins[] = {
  1163. TEGRA_PIN_UART2_TXD_PC2,
  1164. TEGRA_PIN_UART2_RXD_PC3,
  1165. TEGRA_PIN_UART2_CTS_N_PJ5,
  1166. TEGRA_PIN_UART2_RTS_N_PJ6,
  1167. };
  1168. static const unsigned drive_uart3_pins[] = {
  1169. TEGRA_PIN_UART3_CTS_N_PA1,
  1170. TEGRA_PIN_UART3_RTS_N_PC0,
  1171. TEGRA_PIN_UART3_TXD_PW6,
  1172. TEGRA_PIN_UART3_RXD_PW7,
  1173. };
  1174. static const unsigned drive_sdio1_pins[] = {
  1175. TEGRA_PIN_SDMMC1_DAT3_PY4,
  1176. TEGRA_PIN_SDMMC1_DAT2_PY5,
  1177. TEGRA_PIN_SDMMC1_DAT1_PY6,
  1178. TEGRA_PIN_SDMMC1_DAT0_PY7,
  1179. TEGRA_PIN_SDMMC1_CLK_PZ0,
  1180. TEGRA_PIN_SDMMC1_CMD_PZ1,
  1181. };
  1182. static const unsigned drive_ddc_pins[] = {
  1183. TEGRA_PIN_DDC_SCL_PV4,
  1184. TEGRA_PIN_DDC_SDA_PV5,
  1185. };
  1186. static const unsigned drive_gma_pins[] = {
  1187. TEGRA_PIN_SDMMC4_CLK_PCC4,
  1188. TEGRA_PIN_SDMMC4_CMD_PT7,
  1189. TEGRA_PIN_SDMMC4_DAT0_PAA0,
  1190. TEGRA_PIN_SDMMC4_DAT1_PAA1,
  1191. TEGRA_PIN_SDMMC4_DAT2_PAA2,
  1192. TEGRA_PIN_SDMMC4_DAT3_PAA3,
  1193. TEGRA_PIN_SDMMC4_DAT4_PAA4,
  1194. TEGRA_PIN_SDMMC4_DAT5_PAA5,
  1195. TEGRA_PIN_SDMMC4_DAT6_PAA6,
  1196. TEGRA_PIN_SDMMC4_DAT7_PAA7,
  1197. };
  1198. static const unsigned drive_gme_pins[] = {
  1199. TEGRA_PIN_PBB0,
  1200. TEGRA_PIN_CAM_I2C_SCL_PBB1,
  1201. TEGRA_PIN_CAM_I2C_SDA_PBB2,
  1202. TEGRA_PIN_PBB3,
  1203. TEGRA_PIN_PCC2,
  1204. };
  1205. static const unsigned drive_gmf_pins[] = {
  1206. TEGRA_PIN_PBB4,
  1207. TEGRA_PIN_PBB5,
  1208. TEGRA_PIN_PBB6,
  1209. TEGRA_PIN_PBB7,
  1210. };
  1211. static const unsigned drive_gmg_pins[] = {
  1212. TEGRA_PIN_CAM_MCLK_PCC0,
  1213. };
  1214. static const unsigned drive_gmh_pins[] = {
  1215. TEGRA_PIN_PCC1,
  1216. };
  1217. static const unsigned drive_owr_pins[] = {
  1218. TEGRA_PIN_SDMMC3_CD_N_PV2,
  1219. TEGRA_PIN_OWR,
  1220. };
  1221. static const unsigned drive_uda_pins[] = {
  1222. TEGRA_PIN_ULPI_CLK_PY0,
  1223. TEGRA_PIN_ULPI_DIR_PY1,
  1224. TEGRA_PIN_ULPI_NXT_PY2,
  1225. TEGRA_PIN_ULPI_STP_PY3,
  1226. };
  1227. static const unsigned drive_gpv_pins[] = {
  1228. TEGRA_PIN_PEX_L0_RST_N_PDD1,
  1229. TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2,
  1230. TEGRA_PIN_PEX_WAKE_N_PDD3,
  1231. TEGRA_PIN_PEX_L1_RST_N_PDD5,
  1232. TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6,
  1233. TEGRA_PIN_USB_VBUS_EN2_PFF1,
  1234. TEGRA_PIN_PFF2,
  1235. };
  1236. static const unsigned drive_dev3_pins[] = {
  1237. TEGRA_PIN_CLK3_OUT_PEE0,
  1238. TEGRA_PIN_CLK3_REQ_PEE1,
  1239. };
  1240. static const unsigned drive_cec_pins[] = {
  1241. TEGRA_PIN_HDMI_CEC_PEE3,
  1242. };
  1243. static const unsigned drive_at6_pins[] = {
  1244. TEGRA_PIN_PK1,
  1245. TEGRA_PIN_PK3,
  1246. TEGRA_PIN_PK4,
  1247. TEGRA_PIN_PI2,
  1248. TEGRA_PIN_PI5,
  1249. TEGRA_PIN_PI6,
  1250. TEGRA_PIN_PH4,
  1251. TEGRA_PIN_PH5,
  1252. TEGRA_PIN_PH6,
  1253. TEGRA_PIN_PH7,
  1254. };
  1255. static const unsigned drive_dap5_pins[] = {
  1256. TEGRA_PIN_SPDIF_IN_PK6,
  1257. TEGRA_PIN_SPDIF_OUT_PK5,
  1258. TEGRA_PIN_DP_HPD_PFF0,
  1259. };
  1260. static const unsigned drive_usb_vbus_en_pins[] = {
  1261. TEGRA_PIN_USB_VBUS_EN0_PN4,
  1262. TEGRA_PIN_USB_VBUS_EN1_PN5,
  1263. };
  1264. static const unsigned drive_ao3_pins[] = {
  1265. TEGRA_PIN_RESET_OUT_N,
  1266. };
  1267. static const unsigned drive_ao0_pins[] = {
  1268. TEGRA_PIN_JTAG_RTCK,
  1269. };
  1270. static const unsigned drive_hv0_pins[] = {
  1271. TEGRA_PIN_HDMI_INT_PN7,
  1272. };
  1273. static const unsigned drive_sdio4_pins[] = {
  1274. TEGRA_PIN_SDMMC1_WP_N_PV3,
  1275. };
  1276. static const unsigned drive_ao4_pins[] = {
  1277. TEGRA_PIN_JTAG_RTCK,
  1278. };
  1279. static const unsigned mipi_pad_ctrl_dsi_b_pins[] = {
  1280. TEGRA_PIN_DSI_B_CLK_P,
  1281. TEGRA_PIN_DSI_B_CLK_N,
  1282. TEGRA_PIN_DSI_B_D0_P,
  1283. TEGRA_PIN_DSI_B_D0_N,
  1284. TEGRA_PIN_DSI_B_D1_P,
  1285. TEGRA_PIN_DSI_B_D1_N,
  1286. TEGRA_PIN_DSI_B_D2_P,
  1287. TEGRA_PIN_DSI_B_D2_N,
  1288. TEGRA_PIN_DSI_B_D3_P,
  1289. TEGRA_PIN_DSI_B_D3_N,
  1290. };
  1291. enum tegra_mux {
  1292. TEGRA_MUX_BLINK,
  1293. TEGRA_MUX_CCLA,
  1294. TEGRA_MUX_CEC,
  1295. TEGRA_MUX_CLDVFS,
  1296. TEGRA_MUX_CLK,
  1297. TEGRA_MUX_CLK12,
  1298. TEGRA_MUX_CPU,
  1299. TEGRA_MUX_CSI,
  1300. TEGRA_MUX_DAP,
  1301. TEGRA_MUX_DAP1,
  1302. TEGRA_MUX_DAP2,
  1303. TEGRA_MUX_DEV3,
  1304. TEGRA_MUX_DISPLAYA,
  1305. TEGRA_MUX_DISPLAYA_ALT,
  1306. TEGRA_MUX_DISPLAYB,
  1307. TEGRA_MUX_DP,
  1308. TEGRA_MUX_DSI_B,
  1309. TEGRA_MUX_DTV,
  1310. TEGRA_MUX_EXTPERIPH1,
  1311. TEGRA_MUX_EXTPERIPH2,
  1312. TEGRA_MUX_EXTPERIPH3,
  1313. TEGRA_MUX_GMI,
  1314. TEGRA_MUX_GMI_ALT,
  1315. TEGRA_MUX_HDA,
  1316. TEGRA_MUX_HSI,
  1317. TEGRA_MUX_I2C1,
  1318. TEGRA_MUX_I2C2,
  1319. TEGRA_MUX_I2C3,
  1320. TEGRA_MUX_I2C4,
  1321. TEGRA_MUX_I2CPWR,
  1322. TEGRA_MUX_I2S0,
  1323. TEGRA_MUX_I2S1,
  1324. TEGRA_MUX_I2S2,
  1325. TEGRA_MUX_I2S3,
  1326. TEGRA_MUX_I2S4,
  1327. TEGRA_MUX_IRDA,
  1328. TEGRA_MUX_KBC,
  1329. TEGRA_MUX_OWR,
  1330. TEGRA_MUX_PE,
  1331. TEGRA_MUX_PE0,
  1332. TEGRA_MUX_PE1,
  1333. TEGRA_MUX_PMI,
  1334. TEGRA_MUX_PWM0,
  1335. TEGRA_MUX_PWM1,
  1336. TEGRA_MUX_PWM2,
  1337. TEGRA_MUX_PWM3,
  1338. TEGRA_MUX_PWRON,
  1339. TEGRA_MUX_RESET_OUT_N,
  1340. TEGRA_MUX_RSVD1,
  1341. TEGRA_MUX_RSVD2,
  1342. TEGRA_MUX_RSVD3,
  1343. TEGRA_MUX_RSVD4,
  1344. TEGRA_MUX_RTCK,
  1345. TEGRA_MUX_SATA,
  1346. TEGRA_MUX_SDMMC1,
  1347. TEGRA_MUX_SDMMC2,
  1348. TEGRA_MUX_SDMMC3,
  1349. TEGRA_MUX_SDMMC4,
  1350. TEGRA_MUX_SOC,
  1351. TEGRA_MUX_SPDIF,
  1352. TEGRA_MUX_SPI1,
  1353. TEGRA_MUX_SPI2,
  1354. TEGRA_MUX_SPI3,
  1355. TEGRA_MUX_SPI4,
  1356. TEGRA_MUX_SPI5,
  1357. TEGRA_MUX_SPI6,
  1358. TEGRA_MUX_SYS,
  1359. TEGRA_MUX_TMDS,
  1360. TEGRA_MUX_TRACE,
  1361. TEGRA_MUX_UARTA,
  1362. TEGRA_MUX_UARTB,
  1363. TEGRA_MUX_UARTC,
  1364. TEGRA_MUX_UARTD,
  1365. TEGRA_MUX_ULPI,
  1366. TEGRA_MUX_USB,
  1367. TEGRA_MUX_VGP1,
  1368. TEGRA_MUX_VGP2,
  1369. TEGRA_MUX_VGP3,
  1370. TEGRA_MUX_VGP4,
  1371. TEGRA_MUX_VGP5,
  1372. TEGRA_MUX_VGP6,
  1373. TEGRA_MUX_VI,
  1374. TEGRA_MUX_VI_ALT1,
  1375. TEGRA_MUX_VI_ALT3,
  1376. TEGRA_MUX_VIMCLK2,
  1377. TEGRA_MUX_VIMCLK2_ALT,
  1378. };
  1379. #define FUNCTION(fname) \
  1380. { \
  1381. .name = #fname, \
  1382. }
  1383. static struct tegra_function tegra124_functions[] = {
  1384. FUNCTION(blink),
  1385. FUNCTION(ccla),
  1386. FUNCTION(cec),
  1387. FUNCTION(cldvfs),
  1388. FUNCTION(clk),
  1389. FUNCTION(clk12),
  1390. FUNCTION(cpu),
  1391. FUNCTION(csi),
  1392. FUNCTION(dap),
  1393. FUNCTION(dap1),
  1394. FUNCTION(dap2),
  1395. FUNCTION(dev3),
  1396. FUNCTION(displaya),
  1397. FUNCTION(displaya_alt),
  1398. FUNCTION(displayb),
  1399. FUNCTION(dp),
  1400. FUNCTION(dsi_b),
  1401. FUNCTION(dtv),
  1402. FUNCTION(extperiph1),
  1403. FUNCTION(extperiph2),
  1404. FUNCTION(extperiph3),
  1405. FUNCTION(gmi),
  1406. FUNCTION(gmi_alt),
  1407. FUNCTION(hda),
  1408. FUNCTION(hsi),
  1409. FUNCTION(i2c1),
  1410. FUNCTION(i2c2),
  1411. FUNCTION(i2c3),
  1412. FUNCTION(i2c4),
  1413. FUNCTION(i2cpwr),
  1414. FUNCTION(i2s0),
  1415. FUNCTION(i2s1),
  1416. FUNCTION(i2s2),
  1417. FUNCTION(i2s3),
  1418. FUNCTION(i2s4),
  1419. FUNCTION(irda),
  1420. FUNCTION(kbc),
  1421. FUNCTION(owr),
  1422. FUNCTION(pe),
  1423. FUNCTION(pe0),
  1424. FUNCTION(pe1),
  1425. FUNCTION(pmi),
  1426. FUNCTION(pwm0),
  1427. FUNCTION(pwm1),
  1428. FUNCTION(pwm2),
  1429. FUNCTION(pwm3),
  1430. FUNCTION(pwron),
  1431. FUNCTION(reset_out_n),
  1432. FUNCTION(rsvd1),
  1433. FUNCTION(rsvd2),
  1434. FUNCTION(rsvd3),
  1435. FUNCTION(rsvd4),
  1436. FUNCTION(rtck),
  1437. FUNCTION(sata),
  1438. FUNCTION(sdmmc1),
  1439. FUNCTION(sdmmc2),
  1440. FUNCTION(sdmmc3),
  1441. FUNCTION(sdmmc4),
  1442. FUNCTION(soc),
  1443. FUNCTION(spdif),
  1444. FUNCTION(spi1),
  1445. FUNCTION(spi2),
  1446. FUNCTION(spi3),
  1447. FUNCTION(spi4),
  1448. FUNCTION(spi5),
  1449. FUNCTION(spi6),
  1450. FUNCTION(sys),
  1451. FUNCTION(tmds),
  1452. FUNCTION(trace),
  1453. FUNCTION(uarta),
  1454. FUNCTION(uartb),
  1455. FUNCTION(uartc),
  1456. FUNCTION(uartd),
  1457. FUNCTION(ulpi),
  1458. FUNCTION(usb),
  1459. FUNCTION(vgp1),
  1460. FUNCTION(vgp2),
  1461. FUNCTION(vgp3),
  1462. FUNCTION(vgp4),
  1463. FUNCTION(vgp5),
  1464. FUNCTION(vgp6),
  1465. FUNCTION(vi),
  1466. FUNCTION(vi_alt1),
  1467. FUNCTION(vi_alt3),
  1468. FUNCTION(vimclk2),
  1469. FUNCTION(vimclk2_alt),
  1470. };
  1471. #define DRV_PINGROUP_REG_A 0x868 /* bank 0 */
  1472. #define PINGROUP_REG_A 0x3000 /* bank 1 */
  1473. #define MIPI_PAD_CTRL_PINGROUP_REG_A 0x820 /* bank 2 */
  1474. #define DRV_PINGROUP_REG(r) ((r) - DRV_PINGROUP_REG_A)
  1475. #define PINGROUP_REG(r) ((r) - PINGROUP_REG_A)
  1476. #define MIPI_PAD_CTRL_PINGROUP_REG_Y(r) ((r) - MIPI_PAD_CTRL_PINGROUP_REG_A)
  1477. #define PINGROUP_BIT_Y(b) (b)
  1478. #define PINGROUP_BIT_N(b) (-1)
  1479. #define PINGROUP(pg_name, f0, f1, f2, f3, r, od, ior, rcv_sel) \
  1480. { \
  1481. .name = #pg_name, \
  1482. .pins = pg_name##_pins, \
  1483. .npins = ARRAY_SIZE(pg_name##_pins), \
  1484. .funcs = { \
  1485. TEGRA_MUX_##f0, \
  1486. TEGRA_MUX_##f1, \
  1487. TEGRA_MUX_##f2, \
  1488. TEGRA_MUX_##f3, \
  1489. }, \
  1490. .mux_reg = PINGROUP_REG(r), \
  1491. .mux_bank = 1, \
  1492. .mux_bit = 0, \
  1493. .pupd_reg = PINGROUP_REG(r), \
  1494. .pupd_bank = 1, \
  1495. .pupd_bit = 2, \
  1496. .tri_reg = PINGROUP_REG(r), \
  1497. .tri_bank = 1, \
  1498. .tri_bit = 4, \
  1499. .einput_bit = 5, \
  1500. .odrain_bit = PINGROUP_BIT_##od(6), \
  1501. .lock_bit = 7, \
  1502. .ioreset_bit = PINGROUP_BIT_##ior(8), \
  1503. .rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \
  1504. .drv_reg = -1, \
  1505. }
  1506. #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, \
  1507. drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, \
  1508. slwf_b, slwf_w, drvtype) \
  1509. { \
  1510. .name = "drive_" #pg_name, \
  1511. .pins = drive_##pg_name##_pins, \
  1512. .npins = ARRAY_SIZE(drive_##pg_name##_pins), \
  1513. .mux_reg = -1, \
  1514. .pupd_reg = -1, \
  1515. .tri_reg = -1, \
  1516. .einput_bit = -1, \
  1517. .odrain_bit = -1, \
  1518. .lock_bit = -1, \
  1519. .ioreset_bit = -1, \
  1520. .rcv_sel_bit = -1, \
  1521. .drv_reg = DRV_PINGROUP_REG(r), \
  1522. .drv_bank = 0, \
  1523. .hsm_bit = hsm_b, \
  1524. .schmitt_bit = schmitt_b, \
  1525. .lpmd_bit = lpmd_b, \
  1526. .drvdn_bit = drvdn_b, \
  1527. .drvdn_width = drvdn_w, \
  1528. .drvup_bit = drvup_b, \
  1529. .drvup_width = drvup_w, \
  1530. .slwr_bit = slwr_b, \
  1531. .slwr_width = slwr_w, \
  1532. .slwf_bit = slwf_b, \
  1533. .slwf_width = slwf_w, \
  1534. .drvtype_bit = PINGROUP_BIT_##drvtype(6), \
  1535. }
  1536. #define MIPI_PAD_CTRL_PINGROUP(pg_name, r, b, f0, f1) \
  1537. { \
  1538. .name = "mipi_pad_ctrl_" #pg_name, \
  1539. .pins = mipi_pad_ctrl_##pg_name##_pins, \
  1540. .npins = ARRAY_SIZE(mipi_pad_ctrl_##pg_name##_pins), \
  1541. .funcs = { \
  1542. TEGRA_MUX_ ## f0, \
  1543. TEGRA_MUX_ ## f1, \
  1544. TEGRA_MUX_RSVD3, \
  1545. TEGRA_MUX_RSVD4, \
  1546. }, \
  1547. .mux_reg = MIPI_PAD_CTRL_PINGROUP_REG_Y(r), \
  1548. .mux_bank = 2, \
  1549. .mux_bit = b, \
  1550. .pupd_reg = -1, \
  1551. .tri_reg = -1, \
  1552. .einput_bit = -1, \
  1553. .odrain_bit = -1, \
  1554. .lock_bit = -1, \
  1555. .ioreset_bit = -1, \
  1556. .rcv_sel_bit = -1, \
  1557. .drv_reg = -1, \
  1558. }
  1559. static const struct tegra_pingroup tegra124_groups[] = {
  1560. /* pg_name, f0, f1, f2, f3, r, od, ior, rcv_sel */
  1561. PINGROUP(ulpi_data0_po1, SPI3, HSI, UARTA, ULPI, 0x3000, N, N, N),
  1562. PINGROUP(ulpi_data1_po2, SPI3, HSI, UARTA, ULPI, 0x3004, N, N, N),
  1563. PINGROUP(ulpi_data2_po3, SPI3, HSI, UARTA, ULPI, 0x3008, N, N, N),
  1564. PINGROUP(ulpi_data3_po4, SPI3, HSI, UARTA, ULPI, 0x300c, N, N, N),
  1565. PINGROUP(ulpi_data4_po5, SPI2, HSI, UARTA, ULPI, 0x3010, N, N, N),
  1566. PINGROUP(ulpi_data5_po6, SPI2, HSI, UARTA, ULPI, 0x3014, N, N, N),
  1567. PINGROUP(ulpi_data6_po7, SPI2, HSI, UARTA, ULPI, 0x3018, N, N, N),
  1568. PINGROUP(ulpi_data7_po0, SPI2, HSI, UARTA, ULPI, 0x301c, N, N, N),
  1569. PINGROUP(ulpi_clk_py0, SPI1, SPI5, UARTD, ULPI, 0x3020, N, N, N),
  1570. PINGROUP(ulpi_dir_py1, SPI1, SPI5, UARTD, ULPI, 0x3024, N, N, N),
  1571. PINGROUP(ulpi_nxt_py2, SPI1, SPI5, UARTD, ULPI, 0x3028, N, N, N),
  1572. PINGROUP(ulpi_stp_py3, SPI1, SPI5, UARTD, ULPI, 0x302c, N, N, N),
  1573. PINGROUP(dap3_fs_pp0, I2S2, SPI5, DISPLAYA, DISPLAYB, 0x3030, N, N, N),
  1574. PINGROUP(dap3_din_pp1, I2S2, SPI5, DISPLAYA, DISPLAYB, 0x3034, N, N, N),
  1575. PINGROUP(dap3_dout_pp2, I2S2, SPI5, DISPLAYA, RSVD4, 0x3038, N, N, N),
  1576. PINGROUP(dap3_sclk_pp3, I2S2, SPI5, RSVD3, DISPLAYB, 0x303c, N, N, N),
  1577. PINGROUP(pv0, RSVD1, RSVD2, RSVD3, RSVD4, 0x3040, N, N, N),
  1578. PINGROUP(pv1, RSVD1, RSVD2, RSVD3, RSVD4, 0x3044, N, N, N),
  1579. PINGROUP(sdmmc1_clk_pz0, SDMMC1, CLK12, RSVD3, RSVD4, 0x3048, N, N, N),
  1580. PINGROUP(sdmmc1_cmd_pz1, SDMMC1, SPDIF, SPI4, UARTA, 0x304c, N, N, N),
  1581. PINGROUP(sdmmc1_dat3_py4, SDMMC1, SPDIF, SPI4, UARTA, 0x3050, N, N, N),
  1582. PINGROUP(sdmmc1_dat2_py5, SDMMC1, PWM0, SPI4, UARTA, 0x3054, N, N, N),
  1583. PINGROUP(sdmmc1_dat1_py6, SDMMC1, PWM1, SPI4, UARTA, 0x3058, N, N, N),
  1584. PINGROUP(sdmmc1_dat0_py7, SDMMC1, RSVD2, SPI4, UARTA, 0x305c, N, N, N),
  1585. PINGROUP(clk2_out_pw5, EXTPERIPH2, RSVD2, RSVD3, RSVD4, 0x3068, N, N, N),
  1586. PINGROUP(clk2_req_pcc5, DAP, RSVD2, RSVD3, RSVD4, 0x306c, N, N, N),
  1587. PINGROUP(hdmi_int_pn7, RSVD1, RSVD2, RSVD3, RSVD4, 0x3110, N, N, Y),
  1588. PINGROUP(ddc_scl_pv4, I2C4, RSVD2, RSVD3, RSVD4, 0x3114, N, N, Y),
  1589. PINGROUP(ddc_sda_pv5, I2C4, RSVD2, RSVD3, RSVD4, 0x3118, N, N, Y),
  1590. PINGROUP(uart2_rxd_pc3, IRDA, SPDIF, UARTA, SPI4, 0x3164, N, N, N),
  1591. PINGROUP(uart2_txd_pc2, IRDA, SPDIF, UARTA, SPI4, 0x3168, N, N, N),
  1592. PINGROUP(uart2_rts_n_pj6, UARTA, UARTB, GMI, SPI4, 0x316c, N, N, N),
  1593. PINGROUP(uart2_cts_n_pj5, UARTA, UARTB, GMI, SPI4, 0x3170, N, N, N),
  1594. PINGROUP(uart3_txd_pw6, UARTC, RSVD2, GMI, SPI4, 0x3174, N, N, N),
  1595. PINGROUP(uart3_rxd_pw7, UARTC, RSVD2, GMI, SPI4, 0x3178, N, N, N),
  1596. PINGROUP(uart3_cts_n_pa1, UARTC, SDMMC1, DTV, GMI, 0x317c, N, N, N),
  1597. PINGROUP(uart3_rts_n_pc0, UARTC, PWM0, DTV, GMI, 0x3180, N, N, N),
  1598. PINGROUP(pu0, OWR, UARTA, GMI, RSVD4, 0x3184, N, N, N),
  1599. PINGROUP(pu1, RSVD1, UARTA, GMI, RSVD4, 0x3188, N, N, N),
  1600. PINGROUP(pu2, RSVD1, UARTA, GMI, RSVD4, 0x318c, N, N, N),
  1601. PINGROUP(pu3, PWM0, UARTA, GMI, DISPLAYB, 0x3190, N, N, N),
  1602. PINGROUP(pu4, PWM1, UARTA, GMI, DISPLAYB, 0x3194, N, N, N),
  1603. PINGROUP(pu5, PWM2, UARTA, GMI, DISPLAYB, 0x3198, N, N, N),
  1604. PINGROUP(pu6, PWM3, UARTA, RSVD3, GMI, 0x319c, N, N, N),
  1605. PINGROUP(gen1_i2c_sda_pc5, I2C1, RSVD2, RSVD3, RSVD4, 0x31a0, Y, N, N),
  1606. PINGROUP(gen1_i2c_scl_pc4, I2C1, RSVD2, RSVD3, RSVD4, 0x31a4, Y, N, N),
  1607. PINGROUP(dap4_fs_pp4, I2S3, GMI, DTV, RSVD4, 0x31a8, N, N, N),
  1608. PINGROUP(dap4_din_pp5, I2S3, GMI, RSVD3, RSVD4, 0x31ac, N, N, N),
  1609. PINGROUP(dap4_dout_pp6, I2S3, GMI, DTV, RSVD4, 0x31b0, N, N, N),
  1610. PINGROUP(dap4_sclk_pp7, I2S3, GMI, RSVD3, RSVD4, 0x31b4, N, N, N),
  1611. PINGROUP(clk3_out_pee0, EXTPERIPH3, RSVD2, RSVD3, RSVD4, 0x31b8, N, N, N),
  1612. PINGROUP(clk3_req_pee1, DEV3, RSVD2, RSVD3, RSVD4, 0x31bc, N, N, N),
  1613. PINGROUP(pc7, RSVD1, RSVD2, GMI, GMI_ALT, 0x31c0, N, N, N),
  1614. PINGROUP(pi5, SDMMC2, RSVD2, GMI, RSVD4, 0x31c4, N, N, N),
  1615. PINGROUP(pi7, RSVD1, TRACE, GMI, DTV, 0x31c8, N, N, N),
  1616. PINGROUP(pk0, RSVD1, SDMMC3, GMI, SOC, 0x31cc, N, N, N),
  1617. PINGROUP(pk1, SDMMC2, TRACE, GMI, RSVD4, 0x31d0, N, N, N),
  1618. PINGROUP(pj0, RSVD1, RSVD2, GMI, USB, 0x31d4, N, N, N),
  1619. PINGROUP(pj2, RSVD1, RSVD2, GMI, SOC, 0x31d8, N, N, N),
  1620. PINGROUP(pk3, SDMMC2, TRACE, GMI, CCLA, 0x31dc, N, N, N),
  1621. PINGROUP(pk4, SDMMC2, RSVD2, GMI, GMI_ALT, 0x31e0, N, N, N),
  1622. PINGROUP(pk2, RSVD1, RSVD2, GMI, RSVD4, 0x31e4, N, N, N),
  1623. PINGROUP(pi3, RSVD1, RSVD2, GMI, SPI4, 0x31e8, N, N, N),
  1624. PINGROUP(pi6, RSVD1, RSVD2, GMI, SDMMC2, 0x31ec, N, N, N),
  1625. PINGROUP(pg0, RSVD1, RSVD2, GMI, RSVD4, 0x31f0, N, N, N),
  1626. PINGROUP(pg1, RSVD1, RSVD2, GMI, RSVD4, 0x31f4, N, N, N),
  1627. PINGROUP(pg2, RSVD1, TRACE, GMI, RSVD4, 0x31f8, N, N, N),
  1628. PINGROUP(pg3, RSVD1, TRACE, GMI, RSVD4, 0x31fc, N, N, N),
  1629. PINGROUP(pg4, RSVD1, TMDS, GMI, SPI4, 0x3200, N, N, N),
  1630. PINGROUP(pg5, RSVD1, RSVD2, GMI, SPI4, 0x3204, N, N, N),
  1631. PINGROUP(pg6, RSVD1, RSVD2, GMI, SPI4, 0x3208, N, N, N),
  1632. PINGROUP(pg7, RSVD1, RSVD2, GMI, SPI4, 0x320c, N, N, N),
  1633. PINGROUP(ph0, PWM0, TRACE, GMI, DTV, 0x3210, N, N, N),
  1634. PINGROUP(ph1, PWM1, TMDS, GMI, DISPLAYA, 0x3214, N, N, N),
  1635. PINGROUP(ph2, PWM2, TMDS, GMI, CLDVFS, 0x3218, N, N, N),
  1636. PINGROUP(ph3, PWM3, SPI4, GMI, CLDVFS, 0x321c, N, N, N),
  1637. PINGROUP(ph4, SDMMC2, RSVD2, GMI, RSVD4, 0x3220, N, N, N),
  1638. PINGROUP(ph5, SDMMC2, RSVD2, GMI, RSVD4, 0x3224, N, N, N),
  1639. PINGROUP(ph6, SDMMC2, TRACE, GMI, DTV, 0x3228, N, N, N),
  1640. PINGROUP(ph7, SDMMC2, TRACE, GMI, DTV, 0x322c, N, N, N),
  1641. PINGROUP(pj7, UARTD, RSVD2, GMI, GMI_ALT, 0x3230, N, N, N),
  1642. PINGROUP(pb0, UARTD, RSVD2, GMI, RSVD4, 0x3234, N, N, N),
  1643. PINGROUP(pb1, UARTD, RSVD2, GMI, RSVD4, 0x3238, N, N, N),
  1644. PINGROUP(pk7, UARTD, RSVD2, GMI, RSVD4, 0x323c, N, N, N),
  1645. PINGROUP(pi0, RSVD1, RSVD2, GMI, RSVD4, 0x3240, N, N, N),
  1646. PINGROUP(pi1, RSVD1, RSVD2, GMI, RSVD4, 0x3244, N, N, N),
  1647. PINGROUP(pi2, SDMMC2, TRACE, GMI, RSVD4, 0x3248, N, N, N),
  1648. PINGROUP(pi4, SPI4, TRACE, GMI, DISPLAYA, 0x324c, N, N, N),
  1649. PINGROUP(gen2_i2c_scl_pt5, I2C2, RSVD2, GMI, RSVD4, 0x3250, Y, N, N),
  1650. PINGROUP(gen2_i2c_sda_pt6, I2C2, RSVD2, GMI, RSVD4, 0x3254, Y, N, N),
  1651. PINGROUP(sdmmc4_clk_pcc4, SDMMC4, RSVD2, GMI, RSVD4, 0x3258, N, Y, N),
  1652. PINGROUP(sdmmc4_cmd_pt7, SDMMC4, RSVD2, GMI, RSVD4, 0x325c, N, Y, N),
  1653. PINGROUP(sdmmc4_dat0_paa0, SDMMC4, SPI3, GMI, RSVD4, 0x3260, N, Y, N),
  1654. PINGROUP(sdmmc4_dat1_paa1, SDMMC4, SPI3, GMI, RSVD4, 0x3264, N, Y, N),
  1655. PINGROUP(sdmmc4_dat2_paa2, SDMMC4, SPI3, GMI, RSVD4, 0x3268, N, Y, N),
  1656. PINGROUP(sdmmc4_dat3_paa3, SDMMC4, SPI3, GMI, RSVD4, 0x326c, N, Y, N),
  1657. PINGROUP(sdmmc4_dat4_paa4, SDMMC4, SPI3, GMI, RSVD4, 0x3270, N, Y, N),
  1658. PINGROUP(sdmmc4_dat5_paa5, SDMMC4, SPI3, RSVD3, RSVD4, 0x3274, N, Y, N),
  1659. PINGROUP(sdmmc4_dat6_paa6, SDMMC4, SPI3, GMI, RSVD4, 0x3278, N, Y, N),
  1660. PINGROUP(sdmmc4_dat7_paa7, SDMMC4, RSVD2, GMI, RSVD4, 0x327c, N, Y, N),
  1661. PINGROUP(cam_mclk_pcc0, VI, VI_ALT1, VI_ALT3, SDMMC2, 0x3284, N, N, N),
  1662. PINGROUP(pcc1, I2S4, RSVD2, RSVD3, SDMMC2, 0x3288, N, N, N),
  1663. PINGROUP(pbb0, VGP6, VIMCLK2, SDMMC2, VIMCLK2_ALT, 0x328c, N, N, N),
  1664. PINGROUP(cam_i2c_scl_pbb1, VGP1, I2C3, RSVD3, SDMMC2, 0x3290, Y, N, N),
  1665. PINGROUP(cam_i2c_sda_pbb2, VGP2, I2C3, RSVD3, SDMMC2, 0x3294, Y, N, N),
  1666. PINGROUP(pbb3, VGP3, DISPLAYA, DISPLAYB, SDMMC2, 0x3298, N, N, N),
  1667. PINGROUP(pbb4, VGP4, DISPLAYA, DISPLAYB, SDMMC2, 0x329c, N, N, N),
  1668. PINGROUP(pbb5, VGP5, DISPLAYA, RSVD3, SDMMC2, 0x32a0, N, N, N),
  1669. PINGROUP(pbb6, I2S4, RSVD2, DISPLAYB, SDMMC2, 0x32a4, N, N, N),
  1670. PINGROUP(pbb7, I2S4, RSVD2, RSVD3, SDMMC2, 0x32a8, N, N, N),
  1671. PINGROUP(pcc2, I2S4, RSVD2, SDMMC3, SDMMC2, 0x32ac, N, N, N),
  1672. PINGROUP(jtag_rtck, RTCK, RSVD2, RSVD3, RSVD4, 0x32b0, N, N, N),
  1673. PINGROUP(pwr_i2c_scl_pz6, I2CPWR, RSVD2, RSVD3, RSVD4, 0x32b4, Y, N, N),
  1674. PINGROUP(pwr_i2c_sda_pz7, I2CPWR, RSVD2, RSVD3, RSVD4, 0x32b8, Y, N, N),
  1675. PINGROUP(kb_row0_pr0, KBC, RSVD2, RSVD3, RSVD4, 0x32bc, N, N, N),
  1676. PINGROUP(kb_row1_pr1, KBC, RSVD2, RSVD3, RSVD4, 0x32c0, N, N, N),
  1677. PINGROUP(kb_row2_pr2, KBC, RSVD2, RSVD3, RSVD4, 0x32c4, N, N, N),
  1678. PINGROUP(kb_row3_pr3, KBC, DISPLAYA, SYS, DISPLAYB, 0x32c8, N, N, N),
  1679. PINGROUP(kb_row4_pr4, KBC, DISPLAYA, RSVD3, DISPLAYB, 0x32cc, N, N, N),
  1680. PINGROUP(kb_row5_pr5, KBC, DISPLAYA, RSVD3, DISPLAYB, 0x32d0, N, N, N),
  1681. PINGROUP(kb_row6_pr6, KBC, DISPLAYA, DISPLAYA_ALT, DISPLAYB, 0x32d4, N, N, N),
  1682. PINGROUP(kb_row7_pr7, KBC, RSVD2, CLDVFS, UARTA, 0x32d8, N, N, N),
  1683. PINGROUP(kb_row8_ps0, KBC, RSVD2, CLDVFS, UARTA, 0x32dc, N, N, N),
  1684. PINGROUP(kb_row9_ps1, KBC, RSVD2, RSVD3, UARTA, 0x32e0, N, N, N),
  1685. PINGROUP(kb_row10_ps2, KBC, RSVD2, RSVD3, UARTA, 0x32e4, N, N, N),
  1686. PINGROUP(kb_row11_ps3, KBC, RSVD2, RSVD3, IRDA, 0x32e8, N, N, N),
  1687. PINGROUP(kb_row12_ps4, KBC, RSVD2, RSVD3, IRDA, 0x32ec, N, N, N),
  1688. PINGROUP(kb_row13_ps5, KBC, RSVD2, SPI2, RSVD4, 0x32f0, N, N, N),
  1689. PINGROUP(kb_row14_ps6, KBC, RSVD2, SPI2, RSVD4, 0x32f4, N, N, N),
  1690. PINGROUP(kb_row15_ps7, KBC, SOC, RSVD3, RSVD4, 0x32f8, N, N, N),
  1691. PINGROUP(kb_col0_pq0, KBC, RSVD2, SPI2, RSVD4, 0x32fc, N, N, N),
  1692. PINGROUP(kb_col1_pq1, KBC, RSVD2, SPI2, RSVD4, 0x3300, N, N, N),
  1693. PINGROUP(kb_col2_pq2, KBC, RSVD2, SPI2, RSVD4, 0x3304, N, N, N),
  1694. PINGROUP(kb_col3_pq3, KBC, DISPLAYA, PWM2, UARTA, 0x3308, N, N, N),
  1695. PINGROUP(kb_col4_pq4, KBC, OWR, SDMMC3, UARTA, 0x330c, N, N, N),
  1696. PINGROUP(kb_col5_pq5, KBC, RSVD2, SDMMC3, RSVD4, 0x3310, N, N, N),
  1697. PINGROUP(kb_col6_pq6, KBC, RSVD2, SPI2, UARTD, 0x3314, N, N, N),
  1698. PINGROUP(kb_col7_pq7, KBC, RSVD2, SPI2, UARTD, 0x3318, N, N, N),
  1699. PINGROUP(clk_32k_out_pa0, BLINK, SOC, RSVD3, RSVD4, 0x331c, N, N, N),
  1700. PINGROUP(core_pwr_req, PWRON, RSVD2, RSVD3, RSVD4, 0x3324, N, N, N),
  1701. PINGROUP(cpu_pwr_req, CPU, RSVD2, RSVD3, RSVD4, 0x3328, N, N, N),
  1702. PINGROUP(pwr_int_n, PMI, RSVD2, RSVD3, RSVD4, 0x332c, N, N, N),
  1703. PINGROUP(clk_32k_in, CLK, RSVD2, RSVD3, RSVD4, 0x3330, N, N, N),
  1704. PINGROUP(owr, OWR, RSVD2, RSVD3, RSVD4, 0x3334, N, N, Y),
  1705. PINGROUP(dap1_fs_pn0, I2S0, HDA, GMI, RSVD4, 0x3338, N, N, N),
  1706. PINGROUP(dap1_din_pn1, I2S0, HDA, GMI, RSVD4, 0x333c, N, N, N),
  1707. PINGROUP(dap1_dout_pn2, I2S0, HDA, GMI, SATA, 0x3340, N, N, N),
  1708. PINGROUP(dap1_sclk_pn3, I2S0, HDA, GMI, RSVD4, 0x3344, N, N, N),
  1709. PINGROUP(dap_mclk1_req_pee2, DAP, DAP1, SATA, RSVD4, 0x3348, N, N, N),
  1710. PINGROUP(dap_mclk1_pw4, EXTPERIPH1, DAP2, RSVD3, RSVD4, 0x334c, N, N, N),
  1711. PINGROUP(spdif_in_pk6, SPDIF, RSVD2, RSVD3, I2C3, 0x3350, N, N, N),
  1712. PINGROUP(spdif_out_pk5, SPDIF, RSVD2, RSVD3, I2C3, 0x3354, N, N, N),
  1713. PINGROUP(dap2_fs_pa2, I2S1, HDA, GMI, RSVD4, 0x3358, N, N, N),
  1714. PINGROUP(dap2_din_pa4, I2S1, HDA, GMI, RSVD4, 0x335c, N, N, N),
  1715. PINGROUP(dap2_dout_pa5, I2S1, HDA, GMI, RSVD4, 0x3360, N, N, N),
  1716. PINGROUP(dap2_sclk_pa3, I2S1, HDA, GMI, RSVD4, 0x3364, N, N, N),
  1717. PINGROUP(dvfs_pwm_px0, SPI6, CLDVFS, GMI, RSVD4, 0x3368, N, N, N),
  1718. PINGROUP(gpio_x1_aud_px1, SPI6, RSVD2, GMI, RSVD4, 0x336c, N, N, N),
  1719. PINGROUP(gpio_x3_aud_px3, SPI6, SPI1, GMI, RSVD4, 0x3370, N, N, N),
  1720. PINGROUP(dvfs_clk_px2, SPI6, CLDVFS, GMI, RSVD4, 0x3374, N, N, N),
  1721. PINGROUP(gpio_x4_aud_px4, GMI, SPI1, SPI2, DAP2, 0x3378, N, N, N),
  1722. PINGROUP(gpio_x5_aud_px5, GMI, SPI1, SPI2, RSVD4, 0x337c, N, N, N),
  1723. PINGROUP(gpio_x6_aud_px6, SPI6, SPI1, SPI2, GMI, 0x3380, N, N, N),
  1724. PINGROUP(gpio_x7_aud_px7, RSVD1, SPI1, SPI2, RSVD4, 0x3384, N, N, N),
  1725. PINGROUP(sdmmc3_clk_pa6, SDMMC3, RSVD2, RSVD3, SPI3, 0x3390, N, N, N),
  1726. PINGROUP(sdmmc3_cmd_pa7, SDMMC3, PWM3, UARTA, SPI3, 0x3394, N, N, N),
  1727. PINGROUP(sdmmc3_dat0_pb7, SDMMC3, RSVD2, RSVD3, SPI3, 0x3398, N, N, N),
  1728. PINGROUP(sdmmc3_dat1_pb6, SDMMC3, PWM2, UARTA, SPI3, 0x339c, N, N, N),
  1729. PINGROUP(sdmmc3_dat2_pb5, SDMMC3, PWM1, DISPLAYA, SPI3, 0x33a0, N, N, N),
  1730. PINGROUP(sdmmc3_dat3_pb4, SDMMC3, PWM0, DISPLAYB, SPI3, 0x33a4, N, N, N),
  1731. PINGROUP(pex_l0_rst_n_pdd1, PE0, RSVD2, RSVD3, RSVD4, 0x33bc, N, N, N),
  1732. PINGROUP(pex_l0_clkreq_n_pdd2, PE0, RSVD2, RSVD3, RSVD4, 0x33c0, N, N, N),
  1733. PINGROUP(pex_wake_n_pdd3, PE, RSVD2, RSVD3, RSVD4, 0x33c4, N, N, N),
  1734. PINGROUP(pex_l1_rst_n_pdd5, PE1, RSVD2, RSVD3, RSVD4, 0x33cc, N, N, N),
  1735. PINGROUP(pex_l1_clkreq_n_pdd6, PE1, RSVD2, RSVD3, RSVD4, 0x33d0, N, N, N),
  1736. PINGROUP(hdmi_cec_pee3, CEC, RSVD2, RSVD3, RSVD4, 0x33e0, Y, N, N),
  1737. PINGROUP(sdmmc1_wp_n_pv3, SDMMC1, CLK12, SPI4, UARTA, 0x33e4, N, N, N),
  1738. PINGROUP(sdmmc3_cd_n_pv2, SDMMC3, OWR, RSVD3, RSVD4, 0x33e8, N, N, N),
  1739. PINGROUP(gpio_w2_aud_pw2, SPI6, RSVD2, SPI2, I2C1, 0x33ec, N, N, N),
  1740. PINGROUP(gpio_w3_aud_pw3, SPI6, SPI1, SPI2, I2C1, 0x33f0, N, N, N),
  1741. PINGROUP(usb_vbus_en0_pn4, USB, RSVD2, RSVD3, RSVD4, 0x33f4, Y, N, N),
  1742. PINGROUP(usb_vbus_en1_pn5, USB, RSVD2, RSVD3, RSVD4, 0x33f8, Y, N, N),
  1743. PINGROUP(sdmmc3_clk_lb_in_pee5, SDMMC3, RSVD2, RSVD3, RSVD4, 0x33fc, N, N, N),
  1744. PINGROUP(sdmmc3_clk_lb_out_pee4, SDMMC3, RSVD2, RSVD3, RSVD4, 0x3400, N, N, N),
  1745. PINGROUP(gmi_clk_lb, SDMMC2, RSVD2, GMI, RSVD4, 0x3404, N, N, N),
  1746. PINGROUP(reset_out_n, RSVD1, RSVD2, RSVD3, RESET_OUT_N, 0x3408, N, N, N),
  1747. PINGROUP(kb_row16_pt0, KBC, RSVD2, RSVD3, UARTC, 0x340c, N, N, N),
  1748. PINGROUP(kb_row17_pt1, KBC, RSVD2, RSVD3, UARTC, 0x3410, N, N, N),
  1749. PINGROUP(usb_vbus_en2_pff1, USB, RSVD2, RSVD3, RSVD4, 0x3414, Y, N, N),
  1750. PINGROUP(pff2, SATA, RSVD2, RSVD3, RSVD4, 0x3418, Y, N, N),
  1751. PINGROUP(dp_hpd_pff0, DP, RSVD2, RSVD3, RSVD4, 0x3430, N, N, N),
  1752. /* 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, drvtype */
  1753. DRV_PINGROUP(ao1, 0x868, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1754. DRV_PINGROUP(ao2, 0x86c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1755. DRV_PINGROUP(at1, 0x870, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y),
  1756. DRV_PINGROUP(at2, 0x874, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y),
  1757. DRV_PINGROUP(at3, 0x878, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y),
  1758. DRV_PINGROUP(at4, 0x87c, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y),
  1759. DRV_PINGROUP(at5, 0x880, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N),
  1760. DRV_PINGROUP(cdev1, 0x884, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1761. DRV_PINGROUP(cdev2, 0x888, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1762. DRV_PINGROUP(dap1, 0x890, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1763. DRV_PINGROUP(dap2, 0x894, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1764. DRV_PINGROUP(dap3, 0x898, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1765. DRV_PINGROUP(dap4, 0x89c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1766. DRV_PINGROUP(dbg, 0x8a0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1767. DRV_PINGROUP(sdio3, 0x8b0, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2, N),
  1768. DRV_PINGROUP(spi, 0x8b4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1769. DRV_PINGROUP(uaa, 0x8b8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1770. DRV_PINGROUP(uab, 0x8bc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1771. DRV_PINGROUP(uart2, 0x8c0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1772. DRV_PINGROUP(uart3, 0x8c4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1773. DRV_PINGROUP(sdio1, 0x8ec, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2, N),
  1774. DRV_PINGROUP(ddc, 0x8fc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1775. DRV_PINGROUP(gma, 0x900, 2, 3, 4, 14, 5, 20, 5, 28, 2, 30, 2, Y),
  1776. DRV_PINGROUP(gme, 0x910, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N),
  1777. DRV_PINGROUP(gmf, 0x914, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N),
  1778. DRV_PINGROUP(gmg, 0x918, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N),
  1779. DRV_PINGROUP(gmh, 0x91c, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N),
  1780. DRV_PINGROUP(owr, 0x920, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1781. DRV_PINGROUP(uda, 0x924, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1782. DRV_PINGROUP(gpv, 0x928, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1783. DRV_PINGROUP(dev3, 0x92c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1784. DRV_PINGROUP(cec, 0x938, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1785. DRV_PINGROUP(at6, 0x994, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y),
  1786. DRV_PINGROUP(dap5, 0x998, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1787. DRV_PINGROUP(usb_vbus_en, 0x99c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1788. DRV_PINGROUP(ao3, 0x9a8, 2, 3, 4, 12, 5, -1, -1, 28, 2, -1, -1, N),
  1789. DRV_PINGROUP(ao0, 0x9b0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1790. DRV_PINGROUP(hv0, 0x9b4, 2, 3, 4, 12, 5, -1, -1, 28, 2, -1, -1, N),
  1791. DRV_PINGROUP(sdio4, 0x9c4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N),
  1792. DRV_PINGROUP(ao4, 0x9c8, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y),
  1793. /* pg_name, r, b, f0, f1 */
  1794. MIPI_PAD_CTRL_PINGROUP(dsi_b, 0x820, 1, CSI, DSI_B),
  1795. };
  1796. static const struct tegra_pinctrl_soc_data tegra124_pinctrl = {
  1797. .ngpios = NUM_GPIOS,
  1798. .pins = tegra124_pins,
  1799. .npins = ARRAY_SIZE(tegra124_pins),
  1800. .functions = tegra124_functions,
  1801. .nfunctions = ARRAY_SIZE(tegra124_functions),
  1802. .groups = tegra124_groups,
  1803. .ngroups = ARRAY_SIZE(tegra124_groups),
  1804. .hsm_in_mux = false,
  1805. .schmitt_in_mux = false,
  1806. .drvtype_in_mux = false,
  1807. };
  1808. static int tegra124_pinctrl_probe(struct platform_device *pdev)
  1809. {
  1810. return tegra_pinctrl_probe(pdev, &tegra124_pinctrl);
  1811. }
  1812. static const struct of_device_id tegra124_pinctrl_of_match[] = {
  1813. { .compatible = "nvidia,tegra124-pinmux", },
  1814. { },
  1815. };
  1816. MODULE_DEVICE_TABLE(of, tegra124_pinctrl_of_match);
  1817. static struct platform_driver tegra124_pinctrl_driver = {
  1818. .driver = {
  1819. .name = "tegra124-pinctrl",
  1820. .of_match_table = tegra124_pinctrl_of_match,
  1821. },
  1822. .probe = tegra124_pinctrl_probe,
  1823. .remove = tegra_pinctrl_remove,
  1824. };
  1825. module_platform_driver(tegra124_pinctrl_driver);
  1826. MODULE_AUTHOR("Ashwini Ghuge <aghuge@nvidia.com>");
  1827. MODULE_DESCRIPTION("NVIDIA Tegra124 pinctrl driver");
  1828. MODULE_LICENSE("GPL v2");