pinctrl-tegra234.c 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Pinctrl data for the NVIDIA Tegra234 pinmux
  4. *
  5. * Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
  6. */
  7. #include <linux/mod_devicetable.h>
  8. #include <linux/module.h>
  9. #include <linux/platform_device.h>
  10. #include <linux/property.h>
  11. #include <linux/pinctrl/pinctrl.h>
  12. #include <linux/pinctrl/pinmux.h>
  13. #include "pinctrl-tegra.h"
  14. /* Define unique ID for each pins */
  15. enum {
  16. TEGRA_PIN_DAP6_SCLK_PA0,
  17. TEGRA_PIN_DAP6_DOUT_PA1,
  18. TEGRA_PIN_DAP6_DIN_PA2,
  19. TEGRA_PIN_DAP6_FS_PA3,
  20. TEGRA_PIN_DAP4_SCLK_PA4,
  21. TEGRA_PIN_DAP4_DOUT_PA5,
  22. TEGRA_PIN_DAP4_DIN_PA6,
  23. TEGRA_PIN_DAP4_FS_PA7,
  24. TEGRA_PIN_SOC_GPIO08_PB0,
  25. TEGRA_PIN_QSPI0_SCK_PC0,
  26. TEGRA_PIN_QSPI0_CS_N_PC1,
  27. TEGRA_PIN_QSPI0_IO0_PC2,
  28. TEGRA_PIN_QSPI0_IO1_PC3,
  29. TEGRA_PIN_QSPI0_IO2_PC4,
  30. TEGRA_PIN_QSPI0_IO3_PC5,
  31. TEGRA_PIN_QSPI1_SCK_PC6,
  32. TEGRA_PIN_QSPI1_CS_N_PC7,
  33. TEGRA_PIN_QSPI1_IO0_PD0,
  34. TEGRA_PIN_QSPI1_IO1_PD1,
  35. TEGRA_PIN_QSPI1_IO2_PD2,
  36. TEGRA_PIN_QSPI1_IO3_PD3,
  37. TEGRA_PIN_EQOS_TXC_PE0,
  38. TEGRA_PIN_EQOS_TD0_PE1,
  39. TEGRA_PIN_EQOS_TD1_PE2,
  40. TEGRA_PIN_EQOS_TD2_PE3,
  41. TEGRA_PIN_EQOS_TD3_PE4,
  42. TEGRA_PIN_EQOS_TX_CTL_PE5,
  43. TEGRA_PIN_EQOS_RD0_PE6,
  44. TEGRA_PIN_EQOS_RD1_PE7,
  45. TEGRA_PIN_EQOS_RD2_PF0,
  46. TEGRA_PIN_EQOS_RD3_PF1,
  47. TEGRA_PIN_EQOS_RX_CTL_PF2,
  48. TEGRA_PIN_EQOS_RXC_PF3,
  49. TEGRA_PIN_EQOS_SMA_MDIO_PF4,
  50. TEGRA_PIN_EQOS_SMA_MDC_PF5,
  51. TEGRA_PIN_SOC_GPIO13_PG0,
  52. TEGRA_PIN_SOC_GPIO14_PG1,
  53. TEGRA_PIN_SOC_GPIO15_PG2,
  54. TEGRA_PIN_SOC_GPIO16_PG3,
  55. TEGRA_PIN_SOC_GPIO17_PG4,
  56. TEGRA_PIN_SOC_GPIO18_PG5,
  57. TEGRA_PIN_SOC_GPIO19_PG6,
  58. TEGRA_PIN_SOC_GPIO20_PG7,
  59. TEGRA_PIN_SOC_GPIO21_PH0,
  60. TEGRA_PIN_SOC_GPIO22_PH1,
  61. TEGRA_PIN_SOC_GPIO06_PH2,
  62. TEGRA_PIN_UART4_TX_PH3,
  63. TEGRA_PIN_UART4_RX_PH4,
  64. TEGRA_PIN_UART4_RTS_PH5,
  65. TEGRA_PIN_UART4_CTS_PH6,
  66. TEGRA_PIN_SOC_GPIO41_PH7,
  67. TEGRA_PIN_SOC_GPIO42_PI0,
  68. TEGRA_PIN_SOC_GPIO43_PI1,
  69. TEGRA_PIN_SOC_GPIO44_PI2,
  70. TEGRA_PIN_GEN1_I2C_SCL_PI3,
  71. TEGRA_PIN_GEN1_I2C_SDA_PI4,
  72. TEGRA_PIN_CPU_PWR_REQ_PI5,
  73. TEGRA_PIN_SOC_GPIO07_PI6,
  74. TEGRA_PIN_SDMMC1_CLK_PJ0,
  75. TEGRA_PIN_SDMMC1_CMD_PJ1,
  76. TEGRA_PIN_SDMMC1_DAT0_PJ2,
  77. TEGRA_PIN_SDMMC1_DAT1_PJ3,
  78. TEGRA_PIN_SDMMC1_DAT2_PJ4,
  79. TEGRA_PIN_SDMMC1_DAT3_PJ5,
  80. TEGRA_PIN_PEX_L0_CLKREQ_N_PK0,
  81. TEGRA_PIN_PEX_L0_RST_N_PK1,
  82. TEGRA_PIN_PEX_L1_CLKREQ_N_PK2,
  83. TEGRA_PIN_PEX_L1_RST_N_PK3,
  84. TEGRA_PIN_PEX_L2_CLKREQ_N_PK4,
  85. TEGRA_PIN_PEX_L2_RST_N_PK5,
  86. TEGRA_PIN_PEX_L3_CLKREQ_N_PK6,
  87. TEGRA_PIN_PEX_L3_RST_N_PK7,
  88. TEGRA_PIN_PEX_L4_CLKREQ_N_PL0,
  89. TEGRA_PIN_PEX_L4_RST_N_PL1,
  90. TEGRA_PIN_PEX_WAKE_N_PL2,
  91. TEGRA_PIN_SOC_GPIO34_PL3,
  92. TEGRA_PIN_DP_AUX_CH0_HPD_PM0,
  93. TEGRA_PIN_DP_AUX_CH1_HPD_PM1,
  94. TEGRA_PIN_DP_AUX_CH2_HPD_PM2,
  95. TEGRA_PIN_DP_AUX_CH3_HPD_PM3,
  96. TEGRA_PIN_SOC_GPIO55_PM4,
  97. TEGRA_PIN_SOC_GPIO36_PM5,
  98. TEGRA_PIN_SOC_GPIO53_PM6,
  99. TEGRA_PIN_SOC_GPIO38_PM7,
  100. TEGRA_PIN_DP_AUX_CH3_N_PN0,
  101. TEGRA_PIN_SOC_GPIO39_PN1,
  102. TEGRA_PIN_SOC_GPIO40_PN2,
  103. TEGRA_PIN_DP_AUX_CH1_P_PN3,
  104. TEGRA_PIN_DP_AUX_CH1_N_PN4,
  105. TEGRA_PIN_DP_AUX_CH2_P_PN5,
  106. TEGRA_PIN_DP_AUX_CH2_N_PN6,
  107. TEGRA_PIN_DP_AUX_CH3_P_PN7,
  108. TEGRA_PIN_EXTPERIPH1_CLK_PP0,
  109. TEGRA_PIN_EXTPERIPH2_CLK_PP1,
  110. TEGRA_PIN_CAM_I2C_SCL_PP2,
  111. TEGRA_PIN_CAM_I2C_SDA_PP3,
  112. TEGRA_PIN_SOC_GPIO23_PP4,
  113. TEGRA_PIN_SOC_GPIO24_PP5,
  114. TEGRA_PIN_SOC_GPIO25_PP6,
  115. TEGRA_PIN_PWR_I2C_SCL_PP7,
  116. TEGRA_PIN_PWR_I2C_SDA_PQ0,
  117. TEGRA_PIN_SOC_GPIO28_PQ1,
  118. TEGRA_PIN_SOC_GPIO29_PQ2,
  119. TEGRA_PIN_SOC_GPIO30_PQ3,
  120. TEGRA_PIN_SOC_GPIO31_PQ4,
  121. TEGRA_PIN_SOC_GPIO32_PQ5,
  122. TEGRA_PIN_SOC_GPIO33_PQ6,
  123. TEGRA_PIN_SOC_GPIO35_PQ7,
  124. TEGRA_PIN_SOC_GPIO37_PR0,
  125. TEGRA_PIN_SOC_GPIO56_PR1,
  126. TEGRA_PIN_UART1_TX_PR2,
  127. TEGRA_PIN_UART1_RX_PR3,
  128. TEGRA_PIN_UART1_RTS_PR4,
  129. TEGRA_PIN_UART1_CTS_PR5,
  130. TEGRA_PIN_GPU_PWR_REQ_PX0,
  131. TEGRA_PIN_CV_PWR_REQ_PX1,
  132. TEGRA_PIN_GP_PWM2_PX2,
  133. TEGRA_PIN_GP_PWM3_PX3,
  134. TEGRA_PIN_UART2_TX_PX4,
  135. TEGRA_PIN_UART2_RX_PX5,
  136. TEGRA_PIN_UART2_RTS_PX6,
  137. TEGRA_PIN_UART2_CTS_PX7,
  138. TEGRA_PIN_SPI3_SCK_PY0,
  139. TEGRA_PIN_SPI3_MISO_PY1,
  140. TEGRA_PIN_SPI3_MOSI_PY2,
  141. TEGRA_PIN_SPI3_CS0_PY3,
  142. TEGRA_PIN_SPI3_CS1_PY4,
  143. TEGRA_PIN_UART5_TX_PY5,
  144. TEGRA_PIN_UART5_RX_PY6,
  145. TEGRA_PIN_UART5_RTS_PY7,
  146. TEGRA_PIN_UART5_CTS_PZ0,
  147. TEGRA_PIN_USB_VBUS_EN0_PZ1,
  148. TEGRA_PIN_USB_VBUS_EN1_PZ2,
  149. TEGRA_PIN_SPI1_SCK_PZ3,
  150. TEGRA_PIN_SPI1_MISO_PZ4,
  151. TEGRA_PIN_SPI1_MOSI_PZ5,
  152. TEGRA_PIN_SPI1_CS0_PZ6,
  153. TEGRA_PIN_SPI1_CS1_PZ7,
  154. TEGRA_PIN_SPI5_SCK_PAC0,
  155. TEGRA_PIN_SPI5_MISO_PAC1,
  156. TEGRA_PIN_SPI5_MOSI_PAC2,
  157. TEGRA_PIN_SPI5_CS0_PAC3,
  158. TEGRA_PIN_SOC_GPIO57_PAC4,
  159. TEGRA_PIN_SOC_GPIO58_PAC5,
  160. TEGRA_PIN_SOC_GPIO59_PAC6,
  161. TEGRA_PIN_SOC_GPIO60_PAC7,
  162. TEGRA_PIN_SOC_GPIO45_PAD0,
  163. TEGRA_PIN_SOC_GPIO46_PAD1,
  164. TEGRA_PIN_SOC_GPIO47_PAD2,
  165. TEGRA_PIN_SOC_GPIO48_PAD3,
  166. TEGRA_PIN_UFS0_REF_CLK_PAE0,
  167. TEGRA_PIN_UFS0_RST_N_PAE1,
  168. TEGRA_PIN_PEX_L5_CLKREQ_N_PAF0,
  169. TEGRA_PIN_PEX_L5_RST_N_PAF1,
  170. TEGRA_PIN_PEX_L6_CLKREQ_N_PAF2,
  171. TEGRA_PIN_PEX_L6_RST_N_PAF3,
  172. TEGRA_PIN_PEX_L7_CLKREQ_N_PAG0,
  173. TEGRA_PIN_PEX_L7_RST_N_PAG1,
  174. TEGRA_PIN_PEX_L8_CLKREQ_N_PAG2,
  175. TEGRA_PIN_PEX_L8_RST_N_PAG3,
  176. TEGRA_PIN_PEX_L9_CLKREQ_N_PAG4,
  177. TEGRA_PIN_PEX_L9_RST_N_PAG5,
  178. TEGRA_PIN_PEX_L10_CLKREQ_N_PAG6,
  179. TEGRA_PIN_PEX_L10_RST_N_PAG7,
  180. TEGRA_PIN_EQOS_COMP,
  181. TEGRA_PIN_QSPI_COMP,
  182. TEGRA_PIN_SDMMC1_COMP,
  183. };
  184. enum {
  185. TEGRA_PIN_CAN0_DOUT_PAA0,
  186. TEGRA_PIN_CAN0_DIN_PAA1,
  187. TEGRA_PIN_CAN1_DOUT_PAA2,
  188. TEGRA_PIN_CAN1_DIN_PAA3,
  189. TEGRA_PIN_CAN0_STB_PAA4,
  190. TEGRA_PIN_CAN0_EN_PAA5,
  191. TEGRA_PIN_SOC_GPIO49_PAA6,
  192. TEGRA_PIN_CAN0_ERR_PAA7,
  193. TEGRA_PIN_CAN1_STB_PBB0,
  194. TEGRA_PIN_CAN1_EN_PBB1,
  195. TEGRA_PIN_SOC_GPIO50_PBB2,
  196. TEGRA_PIN_CAN1_ERR_PBB3,
  197. TEGRA_PIN_SPI2_SCK_PCC0,
  198. TEGRA_PIN_SPI2_MISO_PCC1,
  199. TEGRA_PIN_SPI2_MOSI_PCC2,
  200. TEGRA_PIN_SPI2_CS0_PCC3,
  201. TEGRA_PIN_TOUCH_CLK_PCC4,
  202. TEGRA_PIN_UART3_TX_PCC5,
  203. TEGRA_PIN_UART3_RX_PCC6,
  204. TEGRA_PIN_GEN2_I2C_SCL_PCC7,
  205. TEGRA_PIN_GEN2_I2C_SDA_PDD0,
  206. TEGRA_PIN_GEN8_I2C_SCL_PDD1,
  207. TEGRA_PIN_GEN8_I2C_SDA_PDD2,
  208. TEGRA_PIN_SCE_ERROR_PEE0,
  209. TEGRA_PIN_VCOMP_ALERT_PEE1,
  210. TEGRA_PIN_AO_RETENTION_N_PEE2,
  211. TEGRA_PIN_BATT_OC_PEE3,
  212. TEGRA_PIN_POWER_ON_PEE4,
  213. TEGRA_PIN_SOC_GPIO26_PEE5,
  214. TEGRA_PIN_SOC_GPIO27_PEE6,
  215. TEGRA_PIN_BOOTV_CTL_N_PEE7,
  216. TEGRA_PIN_HDMI_CEC_PGG0,
  217. };
  218. /* Table for pin descriptor */
  219. static const struct pinctrl_pin_desc tegra234_pins[] = {
  220. PINCTRL_PIN(TEGRA_PIN_DAP6_SCLK_PA0, "DAP6_SCLK_PA0"),
  221. PINCTRL_PIN(TEGRA_PIN_DAP6_DOUT_PA1, "DAP6_DOUT_PA1"),
  222. PINCTRL_PIN(TEGRA_PIN_DAP6_DIN_PA2, "DAP6_DIN_PA2"),
  223. PINCTRL_PIN(TEGRA_PIN_DAP6_FS_PA3, "DAP6_FS_PA3"),
  224. PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PA4, "DAP4_SCLK_PA4"),
  225. PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PA5, "DAP4_DOUT_PA5"),
  226. PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PA6, "DAP4_DIN_PA6"),
  227. PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PA7, "DAP4_FS_PA7"),
  228. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO08_PB0, "SOC_GPIO08_PB0"),
  229. PINCTRL_PIN(TEGRA_PIN_QSPI0_SCK_PC0, "QSPI0_SCK_PC0"),
  230. PINCTRL_PIN(TEGRA_PIN_QSPI0_CS_N_PC1, "QSPI0_CS_N_PC1"),
  231. PINCTRL_PIN(TEGRA_PIN_QSPI0_IO0_PC2, "QSPI0_IO0_PC2"),
  232. PINCTRL_PIN(TEGRA_PIN_QSPI0_IO1_PC3, "QSPI0_IO1_PC3"),
  233. PINCTRL_PIN(TEGRA_PIN_QSPI0_IO2_PC4, "QSPI0_IO2_PC4"),
  234. PINCTRL_PIN(TEGRA_PIN_QSPI0_IO3_PC5, "QSPI0_IO3_PC5"),
  235. PINCTRL_PIN(TEGRA_PIN_QSPI1_SCK_PC6, "QSPI1_SCK_PC6"),
  236. PINCTRL_PIN(TEGRA_PIN_QSPI1_CS_N_PC7, "QSPI1_CS_N_PC7"),
  237. PINCTRL_PIN(TEGRA_PIN_QSPI1_IO0_PD0, "QSPI1_IO0_PD0"),
  238. PINCTRL_PIN(TEGRA_PIN_QSPI1_IO1_PD1, "QSPI1_IO1_PD1"),
  239. PINCTRL_PIN(TEGRA_PIN_QSPI1_IO2_PD2, "QSPI1_IO2_PD2"),
  240. PINCTRL_PIN(TEGRA_PIN_QSPI1_IO3_PD3, "QSPI1_IO3_PD3"),
  241. PINCTRL_PIN(TEGRA_PIN_EQOS_TXC_PE0, "EQOS_TXC_PE0"),
  242. PINCTRL_PIN(TEGRA_PIN_EQOS_TD0_PE1, "EQOS_TD0_PE1"),
  243. PINCTRL_PIN(TEGRA_PIN_EQOS_TD1_PE2, "EQOS_TD1_PE2"),
  244. PINCTRL_PIN(TEGRA_PIN_EQOS_TD2_PE3, "EQOS_TD2_PE3"),
  245. PINCTRL_PIN(TEGRA_PIN_EQOS_TD3_PE4, "EQOS_TD3_PE4"),
  246. PINCTRL_PIN(TEGRA_PIN_EQOS_TX_CTL_PE5, "EQOS_TX_CTL_PE5"),
  247. PINCTRL_PIN(TEGRA_PIN_EQOS_RD0_PE6, "EQOS_RD0_PE6"),
  248. PINCTRL_PIN(TEGRA_PIN_EQOS_RD1_PE7, "EQOS_RD1_PE7"),
  249. PINCTRL_PIN(TEGRA_PIN_EQOS_RD2_PF0, "EQOS_RD2_PF0"),
  250. PINCTRL_PIN(TEGRA_PIN_EQOS_RD3_PF1, "EQOS_RD3_PF1"),
  251. PINCTRL_PIN(TEGRA_PIN_EQOS_RX_CTL_PF2, "EQOS_RX_CTL_PF2"),
  252. PINCTRL_PIN(TEGRA_PIN_EQOS_RXC_PF3, "EQOS_RXC_PF3"),
  253. PINCTRL_PIN(TEGRA_PIN_EQOS_SMA_MDIO_PF4, "EQOS_SMA_MDIO_PF4"),
  254. PINCTRL_PIN(TEGRA_PIN_EQOS_SMA_MDC_PF5, "EQOS_SMA_MDC_PF5"),
  255. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO13_PG0, "SOC_GPIO13_PG0"),
  256. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO14_PG1, "SOC_GPIO14_PG1"),
  257. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO15_PG2, "SOC_GPIO15_PG2"),
  258. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO16_PG3, "SOC_GPIO16_PG3"),
  259. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO17_PG4, "SOC_GPIO17_PG4"),
  260. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO18_PG5, "SOC_GPIO18_PG5"),
  261. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO19_PG6, "SOC_GPIO19_PG6"),
  262. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO20_PG7, "SOC_GPIO20_PG7"),
  263. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO21_PH0, "SOC_GPIO21_PH0"),
  264. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO22_PH1, "SOC_GPIO22_PH1"),
  265. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO06_PH2, "SOC_GPIO06_PH2"),
  266. PINCTRL_PIN(TEGRA_PIN_UART4_TX_PH3, "UART4_TX_PH3"),
  267. PINCTRL_PIN(TEGRA_PIN_UART4_RX_PH4, "UART4_RX_PH4"),
  268. PINCTRL_PIN(TEGRA_PIN_UART4_RTS_PH5, "UART4_RTS_PH5"),
  269. PINCTRL_PIN(TEGRA_PIN_UART4_CTS_PH6, "UART4_CTS_PH6"),
  270. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO41_PH7, "SOC_GPIO41_PH7"),
  271. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO42_PI0, "SOC_GPIO42_PI0"),
  272. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO43_PI1, "SOC_GPIO43_PI1"),
  273. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO44_PI2, "SOC_GPIO44_PI2"),
  274. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PI3, "GEN1_I2C_SCL_PI3"),
  275. PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PI4, "GEN1_I2C_SDA_PI4"),
  276. PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ_PI5, "CPU_PWR_REQ_PI5"),
  277. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO07_PI6, "SOC_GPIO07_PI6"),
  278. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CLK_PJ0, "SDMMC1_CLK_PJ0"),
  279. PINCTRL_PIN(TEGRA_PIN_SDMMC1_CMD_PJ1, "SDMMC1_CMD_PJ1"),
  280. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT0_PJ2, "SDMMC1_DAT0_PJ2"),
  281. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT1_PJ3, "SDMMC1_DAT1_PJ3"),
  282. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT2_PJ4, "SDMMC1_DAT2_PJ4"),
  283. PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT3_PJ5, "SDMMC1_DAT3_PJ5"),
  284. PINCTRL_PIN(TEGRA_PIN_PEX_L0_CLKREQ_N_PK0, "PEX_L0_CLKREQ_N_PK0"),
  285. PINCTRL_PIN(TEGRA_PIN_PEX_L0_RST_N_PK1, "PEX_L0_RST_N_PK1"),
  286. PINCTRL_PIN(TEGRA_PIN_PEX_L1_CLKREQ_N_PK2, "PEX_L1_CLKREQ_N_PK2"),
  287. PINCTRL_PIN(TEGRA_PIN_PEX_L1_RST_N_PK3, "PEX_L1_RST_N_PK3"),
  288. PINCTRL_PIN(TEGRA_PIN_PEX_L2_CLKREQ_N_PK4, "PEX_L2_CLKREQ_N_PK4"),
  289. PINCTRL_PIN(TEGRA_PIN_PEX_L2_RST_N_PK5, "PEX_L2_RST_N_PK5"),
  290. PINCTRL_PIN(TEGRA_PIN_PEX_L3_CLKREQ_N_PK6, "PEX_L3_CLKREQ_N_PK6"),
  291. PINCTRL_PIN(TEGRA_PIN_PEX_L3_RST_N_PK7, "PEX_L3_RST_N_PK7"),
  292. PINCTRL_PIN(TEGRA_PIN_PEX_L4_CLKREQ_N_PL0, "PEX_L4_CLKREQ_N_PL0"),
  293. PINCTRL_PIN(TEGRA_PIN_PEX_L4_RST_N_PL1, "PEX_L4_RST_N_PL1"),
  294. PINCTRL_PIN(TEGRA_PIN_PEX_WAKE_N_PL2, "PEX_WAKE_N_PL2"),
  295. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO34_PL3, "SOC_GPIO34_PL3"),
  296. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH0_HPD_PM0, "DP_AUX_CH0_HPD_PM0"),
  297. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH1_HPD_PM1, "DP_AUX_CH1_HPD_PM1"),
  298. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH2_HPD_PM2, "DP_AUX_CH2_HPD_PM2"),
  299. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH3_HPD_PM3, "DP_AUX_CH3_HPD_PM3"),
  300. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO55_PM4, "SOC_GPIO55_PM4"),
  301. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO36_PM5, "SOC_GPIO36_PM5"),
  302. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO53_PM6, "SOC_GPIO53_PM6"),
  303. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO38_PM7, "SOC_GPIO38_PM7"),
  304. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH3_N_PN0, "DP_AUX_CH3_N_PN0"),
  305. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO39_PN1, "SOC_GPIO39_PN1"),
  306. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO40_PN2, "SOC_GPIO40_PN2"),
  307. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH1_P_PN3, "DP_AUX_CH1_P_PN3"),
  308. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH1_N_PN4, "DP_AUX_CH1_N_PN4"),
  309. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH2_P_PN5, "DP_AUX_CH2_P_PN5"),
  310. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH2_N_PN6, "DP_AUX_CH2_N_PN6"),
  311. PINCTRL_PIN(TEGRA_PIN_DP_AUX_CH3_P_PN7, "DP_AUX_CH3_P_PN7"),
  312. PINCTRL_PIN(TEGRA_PIN_EXTPERIPH1_CLK_PP0, "EXTPERIPH1_CLK_PP0"),
  313. PINCTRL_PIN(TEGRA_PIN_EXTPERIPH2_CLK_PP1, "EXTPERIPH2_CLK_PP1"),
  314. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PP2, "CAM_I2C_SCL_PP2"),
  315. PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PP3, "CAM_I2C_SDA_PP3"),
  316. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO23_PP4, "SOC_GPIO23_PP4"),
  317. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO24_PP5, "SOC_GPIO24_PP5"),
  318. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO25_PP6, "SOC_GPIO25_PP6"),
  319. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PP7, "PWR_I2C_SCL_PP7"),
  320. PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PQ0, "PWR_I2C_SDA_PQ0"),
  321. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO28_PQ1, "SOC_GPIO28_PQ1"),
  322. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO29_PQ2, "SOC_GPIO29_PQ2"),
  323. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO30_PQ3, "SOC_GPIO30_PQ3"),
  324. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO31_PQ4, "SOC_GPIO31_PQ4"),
  325. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO32_PQ5, "SOC_GPIO32_PQ5"),
  326. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO33_PQ6, "SOC_GPIO33_PQ6"),
  327. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO35_PQ7, "SOC_GPIO35_PQ7"),
  328. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO37_PR0, "SOC_GPIO37_PR0"),
  329. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO56_PR1, "SOC_GPIO56_PR1"),
  330. PINCTRL_PIN(TEGRA_PIN_UART1_TX_PR2, "UART1_TX_PR2"),
  331. PINCTRL_PIN(TEGRA_PIN_UART1_RX_PR3, "UART1_RX_PR3"),
  332. PINCTRL_PIN(TEGRA_PIN_UART1_RTS_PR4, "UART1_RTS_PR4"),
  333. PINCTRL_PIN(TEGRA_PIN_UART1_CTS_PR5, "UART1_CTS_PR5"),
  334. PINCTRL_PIN(TEGRA_PIN_GPU_PWR_REQ_PX0, "GPU_PWR_REQ_PX0"),
  335. PINCTRL_PIN(TEGRA_PIN_CV_PWR_REQ_PX1, "CV_PWR_REQ_PX1"),
  336. PINCTRL_PIN(TEGRA_PIN_GP_PWM2_PX2, "GP_PWM2_PX2"),
  337. PINCTRL_PIN(TEGRA_PIN_GP_PWM3_PX3, "GP_PWM3_PX3"),
  338. PINCTRL_PIN(TEGRA_PIN_UART2_TX_PX4, "UART2_TX_PX4"),
  339. PINCTRL_PIN(TEGRA_PIN_UART2_RX_PX5, "UART2_RX_PX5"),
  340. PINCTRL_PIN(TEGRA_PIN_UART2_RTS_PX6, "UART2_RTS_PX6"),
  341. PINCTRL_PIN(TEGRA_PIN_UART2_CTS_PX7, "UART2_CTS_PX7"),
  342. PINCTRL_PIN(TEGRA_PIN_SPI3_SCK_PY0, "SPI3_SCK_PY0"),
  343. PINCTRL_PIN(TEGRA_PIN_SPI3_MISO_PY1, "SPI3_MISO_PY1"),
  344. PINCTRL_PIN(TEGRA_PIN_SPI3_MOSI_PY2, "SPI3_MOSI_PY2"),
  345. PINCTRL_PIN(TEGRA_PIN_SPI3_CS0_PY3, "SPI3_CS0_PY3"),
  346. PINCTRL_PIN(TEGRA_PIN_SPI3_CS1_PY4, "SPI3_CS1_PY4"),
  347. PINCTRL_PIN(TEGRA_PIN_UART5_TX_PY5, "UART5_TX_PY5"),
  348. PINCTRL_PIN(TEGRA_PIN_UART5_RX_PY6, "UART5_RX_PY6"),
  349. PINCTRL_PIN(TEGRA_PIN_UART5_RTS_PY7, "UART5_RTS_PY7"),
  350. PINCTRL_PIN(TEGRA_PIN_UART5_CTS_PZ0, "UART5_CTS_PZ0"),
  351. PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN0_PZ1, "USB_VBUS_EN0_PZ1"),
  352. PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN1_PZ2, "USB_VBUS_EN1_PZ2"),
  353. PINCTRL_PIN(TEGRA_PIN_SPI1_SCK_PZ3, "SPI1_SCK_PZ3"),
  354. PINCTRL_PIN(TEGRA_PIN_SPI1_MISO_PZ4, "SPI1_MISO_PZ4"),
  355. PINCTRL_PIN(TEGRA_PIN_SPI1_MOSI_PZ5, "SPI1_MOSI_PZ5"),
  356. PINCTRL_PIN(TEGRA_PIN_SPI1_CS0_PZ6, "SPI1_CS0_PZ6"),
  357. PINCTRL_PIN(TEGRA_PIN_SPI1_CS1_PZ7, "SPI1_CS1_PZ7"),
  358. PINCTRL_PIN(TEGRA_PIN_SPI5_SCK_PAC0, "SPI5_SCK_PAC0"),
  359. PINCTRL_PIN(TEGRA_PIN_SPI5_MISO_PAC1, "SPI5_MISO_PAC1"),
  360. PINCTRL_PIN(TEGRA_PIN_SPI5_MOSI_PAC2, "SPI5_MOSI_PAC2"),
  361. PINCTRL_PIN(TEGRA_PIN_SPI5_CS0_PAC3, "SPI5_CS0_PAC3"),
  362. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO57_PAC4, "SOC_GPIO57_PAC4"),
  363. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO58_PAC5, "SOC_GPIO58_PAC5"),
  364. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO59_PAC6, "SOC_GPIO59_PAC6"),
  365. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO60_PAC7, "SOC_GPIO60_PAC7"),
  366. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO45_PAD0, "SOC_GPIO45_PAD0"),
  367. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO46_PAD1, "SOC_GPIO46_PAD1"),
  368. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO47_PAD2, "SOC_GPIO47_PAD2"),
  369. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO48_PAD3, "SOC_GPIO48_PAD3"),
  370. PINCTRL_PIN(TEGRA_PIN_UFS0_REF_CLK_PAE0, "UFS0_REF_CLK_PAE0"),
  371. PINCTRL_PIN(TEGRA_PIN_UFS0_RST_N_PAE1, "UFS0_RST_N_PAE1"),
  372. PINCTRL_PIN(TEGRA_PIN_PEX_L5_CLKREQ_N_PAF0, "PEX_L5_CLKREQ_N_PAF0"),
  373. PINCTRL_PIN(TEGRA_PIN_PEX_L5_RST_N_PAF1, "PEX_L5_RST_N_PAF1"),
  374. PINCTRL_PIN(TEGRA_PIN_PEX_L6_CLKREQ_N_PAF2, "PEX_L6_CLKREQ_N_PAF2"),
  375. PINCTRL_PIN(TEGRA_PIN_PEX_L6_RST_N_PAF3, "PEX_L6_RST_N_PAF3"),
  376. PINCTRL_PIN(TEGRA_PIN_PEX_L7_CLKREQ_N_PAG0, "PEX_L7_CLKREQ_N_PAG0"),
  377. PINCTRL_PIN(TEGRA_PIN_PEX_L7_RST_N_PAG1, "PEX_L7_RST_N_PAG1"),
  378. PINCTRL_PIN(TEGRA_PIN_PEX_L8_CLKREQ_N_PAG2, "PEX_L8_CLKREQ_N_PAG2"),
  379. PINCTRL_PIN(TEGRA_PIN_PEX_L8_RST_N_PAG3, "PEX_L8_RST_N_PAG3"),
  380. PINCTRL_PIN(TEGRA_PIN_PEX_L9_CLKREQ_N_PAG4, "PEX_L9_CLKREQ_N_PAG4"),
  381. PINCTRL_PIN(TEGRA_PIN_PEX_L9_RST_N_PAG5, "PEX_L9_RST_N_PAG5"),
  382. PINCTRL_PIN(TEGRA_PIN_PEX_L10_CLKREQ_N_PAG6, "PEX_L10_CLKREQ_N_PAG6"),
  383. PINCTRL_PIN(TEGRA_PIN_PEX_L10_RST_N_PAG7, "PEX_L10_RST_N_PAG7"),
  384. PINCTRL_PIN(TEGRA_PIN_EQOS_COMP, "EQOS_COMP"),
  385. PINCTRL_PIN(TEGRA_PIN_QSPI_COMP, "QSPI_COMP"),
  386. PINCTRL_PIN(TEGRA_PIN_SDMMC1_COMP, "SDMMC1_COMP"),
  387. };
  388. static const unsigned int dap6_sclk_pa0_pins[] = {
  389. TEGRA_PIN_DAP6_SCLK_PA0,
  390. };
  391. static const unsigned int dap6_dout_pa1_pins[] = {
  392. TEGRA_PIN_DAP6_DOUT_PA1,
  393. };
  394. static const unsigned int dap6_din_pa2_pins[] = {
  395. TEGRA_PIN_DAP6_DIN_PA2,
  396. };
  397. static const unsigned int dap6_fs_pa3_pins[] = {
  398. TEGRA_PIN_DAP6_FS_PA3,
  399. };
  400. static const unsigned int dap4_sclk_pa4_pins[] = {
  401. TEGRA_PIN_DAP4_SCLK_PA4,
  402. };
  403. static const unsigned int dap4_dout_pa5_pins[] = {
  404. TEGRA_PIN_DAP4_DOUT_PA5,
  405. };
  406. static const unsigned int dap4_din_pa6_pins[] = {
  407. TEGRA_PIN_DAP4_DIN_PA6,
  408. };
  409. static const unsigned int dap4_fs_pa7_pins[] = {
  410. TEGRA_PIN_DAP4_FS_PA7,
  411. };
  412. static const unsigned int soc_gpio08_pb0_pins[] = {
  413. TEGRA_PIN_SOC_GPIO08_PB0,
  414. };
  415. static const unsigned int qspi0_sck_pc0_pins[] = {
  416. TEGRA_PIN_QSPI0_SCK_PC0,
  417. };
  418. static const unsigned int qspi0_cs_n_pc1_pins[] = {
  419. TEGRA_PIN_QSPI0_CS_N_PC1,
  420. };
  421. static const unsigned int qspi0_io0_pc2_pins[] = {
  422. TEGRA_PIN_QSPI0_IO0_PC2,
  423. };
  424. static const unsigned int qspi0_io1_pc3_pins[] = {
  425. TEGRA_PIN_QSPI0_IO1_PC3,
  426. };
  427. static const unsigned int qspi0_io2_pc4_pins[] = {
  428. TEGRA_PIN_QSPI0_IO2_PC4,
  429. };
  430. static const unsigned int qspi0_io3_pc5_pins[] = {
  431. TEGRA_PIN_QSPI0_IO3_PC5,
  432. };
  433. static const unsigned int qspi1_sck_pc6_pins[] = {
  434. TEGRA_PIN_QSPI1_SCK_PC6,
  435. };
  436. static const unsigned int qspi1_cs_n_pc7_pins[] = {
  437. TEGRA_PIN_QSPI1_CS_N_PC7,
  438. };
  439. static const unsigned int qspi1_io0_pd0_pins[] = {
  440. TEGRA_PIN_QSPI1_IO0_PD0,
  441. };
  442. static const unsigned int qspi1_io1_pd1_pins[] = {
  443. TEGRA_PIN_QSPI1_IO1_PD1,
  444. };
  445. static const unsigned int qspi1_io2_pd2_pins[] = {
  446. TEGRA_PIN_QSPI1_IO2_PD2,
  447. };
  448. static const unsigned int qspi1_io3_pd3_pins[] = {
  449. TEGRA_PIN_QSPI1_IO3_PD3,
  450. };
  451. static const unsigned int eqos_txc_pe0_pins[] = {
  452. TEGRA_PIN_EQOS_TXC_PE0,
  453. };
  454. static const unsigned int eqos_td0_pe1_pins[] = {
  455. TEGRA_PIN_EQOS_TD0_PE1,
  456. };
  457. static const unsigned int eqos_td1_pe2_pins[] = {
  458. TEGRA_PIN_EQOS_TD1_PE2,
  459. };
  460. static const unsigned int eqos_td2_pe3_pins[] = {
  461. TEGRA_PIN_EQOS_TD2_PE3,
  462. };
  463. static const unsigned int eqos_td3_pe4_pins[] = {
  464. TEGRA_PIN_EQOS_TD3_PE4,
  465. };
  466. static const unsigned int eqos_tx_ctl_pe5_pins[] = {
  467. TEGRA_PIN_EQOS_TX_CTL_PE5,
  468. };
  469. static const unsigned int eqos_rd0_pe6_pins[] = {
  470. TEGRA_PIN_EQOS_RD0_PE6,
  471. };
  472. static const unsigned int eqos_rd1_pe7_pins[] = {
  473. TEGRA_PIN_EQOS_RD1_PE7,
  474. };
  475. static const unsigned int eqos_rd2_pf0_pins[] = {
  476. TEGRA_PIN_EQOS_RD2_PF0,
  477. };
  478. static const unsigned int eqos_rd3_pf1_pins[] = {
  479. TEGRA_PIN_EQOS_RD3_PF1,
  480. };
  481. static const unsigned int eqos_rx_ctl_pf2_pins[] = {
  482. TEGRA_PIN_EQOS_RX_CTL_PF2,
  483. };
  484. static const unsigned int eqos_rxc_pf3_pins[] = {
  485. TEGRA_PIN_EQOS_RXC_PF3,
  486. };
  487. static const unsigned int eqos_sma_mdio_pf4_pins[] = {
  488. TEGRA_PIN_EQOS_SMA_MDIO_PF4,
  489. };
  490. static const unsigned int eqos_sma_mdc_pf5_pins[] = {
  491. TEGRA_PIN_EQOS_SMA_MDC_PF5,
  492. };
  493. static const unsigned int soc_gpio13_pg0_pins[] = {
  494. TEGRA_PIN_SOC_GPIO13_PG0,
  495. };
  496. static const unsigned int soc_gpio14_pg1_pins[] = {
  497. TEGRA_PIN_SOC_GPIO14_PG1,
  498. };
  499. static const unsigned int soc_gpio15_pg2_pins[] = {
  500. TEGRA_PIN_SOC_GPIO15_PG2,
  501. };
  502. static const unsigned int soc_gpio16_pg3_pins[] = {
  503. TEGRA_PIN_SOC_GPIO16_PG3,
  504. };
  505. static const unsigned int soc_gpio17_pg4_pins[] = {
  506. TEGRA_PIN_SOC_GPIO17_PG4,
  507. };
  508. static const unsigned int soc_gpio18_pg5_pins[] = {
  509. TEGRA_PIN_SOC_GPIO18_PG5,
  510. };
  511. static const unsigned int soc_gpio19_pg6_pins[] = {
  512. TEGRA_PIN_SOC_GPIO19_PG6,
  513. };
  514. static const unsigned int soc_gpio20_pg7_pins[] = {
  515. TEGRA_PIN_SOC_GPIO20_PG7,
  516. };
  517. static const unsigned int soc_gpio21_ph0_pins[] = {
  518. TEGRA_PIN_SOC_GPIO21_PH0,
  519. };
  520. static const unsigned int soc_gpio22_ph1_pins[] = {
  521. TEGRA_PIN_SOC_GPIO22_PH1,
  522. };
  523. static const unsigned int soc_gpio06_ph2_pins[] = {
  524. TEGRA_PIN_SOC_GPIO06_PH2,
  525. };
  526. static const unsigned int uart4_tx_ph3_pins[] = {
  527. TEGRA_PIN_UART4_TX_PH3,
  528. };
  529. static const unsigned int uart4_rx_ph4_pins[] = {
  530. TEGRA_PIN_UART4_RX_PH4,
  531. };
  532. static const unsigned int uart4_rts_ph5_pins[] = {
  533. TEGRA_PIN_UART4_RTS_PH5,
  534. };
  535. static const unsigned int uart4_cts_ph6_pins[] = {
  536. TEGRA_PIN_UART4_CTS_PH6,
  537. };
  538. static const unsigned int soc_gpio41_ph7_pins[] = {
  539. TEGRA_PIN_SOC_GPIO41_PH7,
  540. };
  541. static const unsigned int soc_gpio42_pi0_pins[] = {
  542. TEGRA_PIN_SOC_GPIO42_PI0,
  543. };
  544. static const unsigned int soc_gpio43_pi1_pins[] = {
  545. TEGRA_PIN_SOC_GPIO43_PI1,
  546. };
  547. static const unsigned int soc_gpio44_pi2_pins[] = {
  548. TEGRA_PIN_SOC_GPIO44_PI2,
  549. };
  550. static const unsigned int gen1_i2c_scl_pi3_pins[] = {
  551. TEGRA_PIN_GEN1_I2C_SCL_PI3,
  552. };
  553. static const unsigned int gen1_i2c_sda_pi4_pins[] = {
  554. TEGRA_PIN_GEN1_I2C_SDA_PI4,
  555. };
  556. static const unsigned int cpu_pwr_req_pi5_pins[] = {
  557. TEGRA_PIN_CPU_PWR_REQ_PI5,
  558. };
  559. static const unsigned int soc_gpio07_pi6_pins[] = {
  560. TEGRA_PIN_SOC_GPIO07_PI6,
  561. };
  562. static const unsigned int sdmmc1_clk_pj0_pins[] = {
  563. TEGRA_PIN_SDMMC1_CLK_PJ0,
  564. };
  565. static const unsigned int sdmmc1_cmd_pj1_pins[] = {
  566. TEGRA_PIN_SDMMC1_CMD_PJ1,
  567. };
  568. static const unsigned int sdmmc1_dat0_pj2_pins[] = {
  569. TEGRA_PIN_SDMMC1_DAT0_PJ2,
  570. };
  571. static const unsigned int sdmmc1_dat1_pj3_pins[] = {
  572. TEGRA_PIN_SDMMC1_DAT1_PJ3,
  573. };
  574. static const unsigned int sdmmc1_dat2_pj4_pins[] = {
  575. TEGRA_PIN_SDMMC1_DAT2_PJ4,
  576. };
  577. static const unsigned int sdmmc1_dat3_pj5_pins[] = {
  578. TEGRA_PIN_SDMMC1_DAT3_PJ5,
  579. };
  580. static const unsigned int pex_l0_clkreq_n_pk0_pins[] = {
  581. TEGRA_PIN_PEX_L0_CLKREQ_N_PK0,
  582. };
  583. static const unsigned int pex_l0_rst_n_pk1_pins[] = {
  584. TEGRA_PIN_PEX_L0_RST_N_PK1,
  585. };
  586. static const unsigned int pex_l1_clkreq_n_pk2_pins[] = {
  587. TEGRA_PIN_PEX_L1_CLKREQ_N_PK2,
  588. };
  589. static const unsigned int pex_l1_rst_n_pk3_pins[] = {
  590. TEGRA_PIN_PEX_L1_RST_N_PK3,
  591. };
  592. static const unsigned int pex_l2_clkreq_n_pk4_pins[] = {
  593. TEGRA_PIN_PEX_L2_CLKREQ_N_PK4,
  594. };
  595. static const unsigned int pex_l2_rst_n_pk5_pins[] = {
  596. TEGRA_PIN_PEX_L2_RST_N_PK5,
  597. };
  598. static const unsigned int pex_l3_clkreq_n_pk6_pins[] = {
  599. TEGRA_PIN_PEX_L3_CLKREQ_N_PK6,
  600. };
  601. static const unsigned int pex_l3_rst_n_pk7_pins[] = {
  602. TEGRA_PIN_PEX_L3_RST_N_PK7,
  603. };
  604. static const unsigned int pex_l4_clkreq_n_pl0_pins[] = {
  605. TEGRA_PIN_PEX_L4_CLKREQ_N_PL0,
  606. };
  607. static const unsigned int pex_l4_rst_n_pl1_pins[] = {
  608. TEGRA_PIN_PEX_L4_RST_N_PL1,
  609. };
  610. static const unsigned int pex_wake_n_pl2_pins[] = {
  611. TEGRA_PIN_PEX_WAKE_N_PL2,
  612. };
  613. static const unsigned int soc_gpio34_pl3_pins[] = {
  614. TEGRA_PIN_SOC_GPIO34_PL3,
  615. };
  616. static const unsigned int dp_aux_ch0_hpd_pm0_pins[] = {
  617. TEGRA_PIN_DP_AUX_CH0_HPD_PM0,
  618. };
  619. static const unsigned int dp_aux_ch1_hpd_pm1_pins[] = {
  620. TEGRA_PIN_DP_AUX_CH1_HPD_PM1,
  621. };
  622. static const unsigned int dp_aux_ch2_hpd_pm2_pins[] = {
  623. TEGRA_PIN_DP_AUX_CH2_HPD_PM2,
  624. };
  625. static const unsigned int dp_aux_ch3_hpd_pm3_pins[] = {
  626. TEGRA_PIN_DP_AUX_CH3_HPD_PM3,
  627. };
  628. static const unsigned int soc_gpio55_pm4_pins[] = {
  629. TEGRA_PIN_SOC_GPIO55_PM4,
  630. };
  631. static const unsigned int soc_gpio36_pm5_pins[] = {
  632. TEGRA_PIN_SOC_GPIO36_PM5,
  633. };
  634. static const unsigned int soc_gpio53_pm6_pins[] = {
  635. TEGRA_PIN_SOC_GPIO53_PM6,
  636. };
  637. static const unsigned int soc_gpio38_pm7_pins[] = {
  638. TEGRA_PIN_SOC_GPIO38_PM7,
  639. };
  640. static const unsigned int dp_aux_ch3_n_pn0_pins[] = {
  641. TEGRA_PIN_DP_AUX_CH3_N_PN0,
  642. };
  643. static const unsigned int soc_gpio39_pn1_pins[] = {
  644. TEGRA_PIN_SOC_GPIO39_PN1,
  645. };
  646. static const unsigned int soc_gpio40_pn2_pins[] = {
  647. TEGRA_PIN_SOC_GPIO40_PN2,
  648. };
  649. static const unsigned int dp_aux_ch1_p_pn3_pins[] = {
  650. TEGRA_PIN_DP_AUX_CH1_P_PN3,
  651. };
  652. static const unsigned int dp_aux_ch1_n_pn4_pins[] = {
  653. TEGRA_PIN_DP_AUX_CH1_N_PN4,
  654. };
  655. static const unsigned int dp_aux_ch2_p_pn5_pins[] = {
  656. TEGRA_PIN_DP_AUX_CH2_P_PN5,
  657. };
  658. static const unsigned int dp_aux_ch2_n_pn6_pins[] = {
  659. TEGRA_PIN_DP_AUX_CH2_N_PN6,
  660. };
  661. static const unsigned int dp_aux_ch3_p_pn7_pins[] = {
  662. TEGRA_PIN_DP_AUX_CH3_P_PN7,
  663. };
  664. static const unsigned int extperiph1_clk_pp0_pins[] = {
  665. TEGRA_PIN_EXTPERIPH1_CLK_PP0,
  666. };
  667. static const unsigned int extperiph2_clk_pp1_pins[] = {
  668. TEGRA_PIN_EXTPERIPH2_CLK_PP1,
  669. };
  670. static const unsigned int cam_i2c_scl_pp2_pins[] = {
  671. TEGRA_PIN_CAM_I2C_SCL_PP2,
  672. };
  673. static const unsigned int cam_i2c_sda_pp3_pins[] = {
  674. TEGRA_PIN_CAM_I2C_SDA_PP3,
  675. };
  676. static const unsigned int soc_gpio23_pp4_pins[] = {
  677. TEGRA_PIN_SOC_GPIO23_PP4,
  678. };
  679. static const unsigned int soc_gpio24_pp5_pins[] = {
  680. TEGRA_PIN_SOC_GPIO24_PP5,
  681. };
  682. static const unsigned int soc_gpio25_pp6_pins[] = {
  683. TEGRA_PIN_SOC_GPIO25_PP6,
  684. };
  685. static const unsigned int pwr_i2c_scl_pp7_pins[] = {
  686. TEGRA_PIN_PWR_I2C_SCL_PP7,
  687. };
  688. static const unsigned int pwr_i2c_sda_pq0_pins[] = {
  689. TEGRA_PIN_PWR_I2C_SDA_PQ0,
  690. };
  691. static const unsigned int soc_gpio28_pq1_pins[] = {
  692. TEGRA_PIN_SOC_GPIO28_PQ1,
  693. };
  694. static const unsigned int soc_gpio29_pq2_pins[] = {
  695. TEGRA_PIN_SOC_GPIO29_PQ2,
  696. };
  697. static const unsigned int soc_gpio30_pq3_pins[] = {
  698. TEGRA_PIN_SOC_GPIO30_PQ3,
  699. };
  700. static const unsigned int soc_gpio31_pq4_pins[] = {
  701. TEGRA_PIN_SOC_GPIO31_PQ4,
  702. };
  703. static const unsigned int soc_gpio32_pq5_pins[] = {
  704. TEGRA_PIN_SOC_GPIO32_PQ5,
  705. };
  706. static const unsigned int soc_gpio33_pq6_pins[] = {
  707. TEGRA_PIN_SOC_GPIO33_PQ6,
  708. };
  709. static const unsigned int soc_gpio35_pq7_pins[] = {
  710. TEGRA_PIN_SOC_GPIO35_PQ7,
  711. };
  712. static const unsigned int soc_gpio37_pr0_pins[] = {
  713. TEGRA_PIN_SOC_GPIO37_PR0,
  714. };
  715. static const unsigned int soc_gpio56_pr1_pins[] = {
  716. TEGRA_PIN_SOC_GPIO56_PR1,
  717. };
  718. static const unsigned int uart1_tx_pr2_pins[] = {
  719. TEGRA_PIN_UART1_TX_PR2,
  720. };
  721. static const unsigned int uart1_rx_pr3_pins[] = {
  722. TEGRA_PIN_UART1_RX_PR3,
  723. };
  724. static const unsigned int uart1_rts_pr4_pins[] = {
  725. TEGRA_PIN_UART1_RTS_PR4,
  726. };
  727. static const unsigned int uart1_cts_pr5_pins[] = {
  728. TEGRA_PIN_UART1_CTS_PR5,
  729. };
  730. static const unsigned int gpu_pwr_req_px0_pins[] = {
  731. TEGRA_PIN_GPU_PWR_REQ_PX0,
  732. };
  733. static const unsigned int cv_pwr_req_px1_pins[] = {
  734. TEGRA_PIN_CV_PWR_REQ_PX1,
  735. };
  736. static const unsigned int gp_pwm2_px2_pins[] = {
  737. TEGRA_PIN_GP_PWM2_PX2,
  738. };
  739. static const unsigned int gp_pwm3_px3_pins[] = {
  740. TEGRA_PIN_GP_PWM3_PX3,
  741. };
  742. static const unsigned int uart2_tx_px4_pins[] = {
  743. TEGRA_PIN_UART2_TX_PX4,
  744. };
  745. static const unsigned int uart2_rx_px5_pins[] = {
  746. TEGRA_PIN_UART2_RX_PX5,
  747. };
  748. static const unsigned int uart2_rts_px6_pins[] = {
  749. TEGRA_PIN_UART2_RTS_PX6,
  750. };
  751. static const unsigned int uart2_cts_px7_pins[] = {
  752. TEGRA_PIN_UART2_CTS_PX7,
  753. };
  754. static const unsigned int spi3_sck_py0_pins[] = {
  755. TEGRA_PIN_SPI3_SCK_PY0,
  756. };
  757. static const unsigned int spi3_miso_py1_pins[] = {
  758. TEGRA_PIN_SPI3_MISO_PY1,
  759. };
  760. static const unsigned int spi3_mosi_py2_pins[] = {
  761. TEGRA_PIN_SPI3_MOSI_PY2,
  762. };
  763. static const unsigned int spi3_cs0_py3_pins[] = {
  764. TEGRA_PIN_SPI3_CS0_PY3,
  765. };
  766. static const unsigned int spi3_cs1_py4_pins[] = {
  767. TEGRA_PIN_SPI3_CS1_PY4,
  768. };
  769. static const unsigned int uart5_tx_py5_pins[] = {
  770. TEGRA_PIN_UART5_TX_PY5,
  771. };
  772. static const unsigned int uart5_rx_py6_pins[] = {
  773. TEGRA_PIN_UART5_RX_PY6,
  774. };
  775. static const unsigned int uart5_rts_py7_pins[] = {
  776. TEGRA_PIN_UART5_RTS_PY7,
  777. };
  778. static const unsigned int uart5_cts_pz0_pins[] = {
  779. TEGRA_PIN_UART5_CTS_PZ0,
  780. };
  781. static const unsigned int usb_vbus_en0_pz1_pins[] = {
  782. TEGRA_PIN_USB_VBUS_EN0_PZ1,
  783. };
  784. static const unsigned int usb_vbus_en1_pz2_pins[] = {
  785. TEGRA_PIN_USB_VBUS_EN1_PZ2,
  786. };
  787. static const unsigned int spi1_sck_pz3_pins[] = {
  788. TEGRA_PIN_SPI1_SCK_PZ3,
  789. };
  790. static const unsigned int spi1_miso_pz4_pins[] = {
  791. TEGRA_PIN_SPI1_MISO_PZ4,
  792. };
  793. static const unsigned int spi1_mosi_pz5_pins[] = {
  794. TEGRA_PIN_SPI1_MOSI_PZ5,
  795. };
  796. static const unsigned int spi1_cs0_pz6_pins[] = {
  797. TEGRA_PIN_SPI1_CS0_PZ6,
  798. };
  799. static const unsigned int spi1_cs1_pz7_pins[] = {
  800. TEGRA_PIN_SPI1_CS1_PZ7,
  801. };
  802. static const unsigned int can0_dout_paa0_pins[] = {
  803. TEGRA_PIN_CAN0_DOUT_PAA0,
  804. };
  805. static const unsigned int can0_din_paa1_pins[] = {
  806. TEGRA_PIN_CAN0_DIN_PAA1,
  807. };
  808. static const unsigned int can1_dout_paa2_pins[] = {
  809. TEGRA_PIN_CAN1_DOUT_PAA2,
  810. };
  811. static const unsigned int can1_din_paa3_pins[] = {
  812. TEGRA_PIN_CAN1_DIN_PAA3,
  813. };
  814. static const unsigned int can0_stb_paa4_pins[] = {
  815. TEGRA_PIN_CAN0_STB_PAA4,
  816. };
  817. static const unsigned int can0_en_paa5_pins[] = {
  818. TEGRA_PIN_CAN0_EN_PAA5,
  819. };
  820. static const unsigned int soc_gpio49_paa6_pins[] = {
  821. TEGRA_PIN_SOC_GPIO49_PAA6,
  822. };
  823. static const unsigned int can0_err_paa7_pins[] = {
  824. TEGRA_PIN_CAN0_ERR_PAA7,
  825. };
  826. static const unsigned int spi5_sck_pac0_pins[] = {
  827. TEGRA_PIN_SPI5_SCK_PAC0,
  828. };
  829. static const unsigned int spi5_miso_pac1_pins[] = {
  830. TEGRA_PIN_SPI5_MISO_PAC1,
  831. };
  832. static const unsigned int spi5_mosi_pac2_pins[] = {
  833. TEGRA_PIN_SPI5_MOSI_PAC2,
  834. };
  835. static const unsigned int spi5_cs0_pac3_pins[] = {
  836. TEGRA_PIN_SPI5_CS0_PAC3,
  837. };
  838. static const unsigned int soc_gpio57_pac4_pins[] = {
  839. TEGRA_PIN_SOC_GPIO57_PAC4,
  840. };
  841. static const unsigned int soc_gpio58_pac5_pins[] = {
  842. TEGRA_PIN_SOC_GPIO58_PAC5,
  843. };
  844. static const unsigned int soc_gpio59_pac6_pins[] = {
  845. TEGRA_PIN_SOC_GPIO59_PAC6,
  846. };
  847. static const unsigned int soc_gpio60_pac7_pins[] = {
  848. TEGRA_PIN_SOC_GPIO60_PAC7,
  849. };
  850. static const unsigned int soc_gpio45_pad0_pins[] = {
  851. TEGRA_PIN_SOC_GPIO45_PAD0,
  852. };
  853. static const unsigned int soc_gpio46_pad1_pins[] = {
  854. TEGRA_PIN_SOC_GPIO46_PAD1,
  855. };
  856. static const unsigned int soc_gpio47_pad2_pins[] = {
  857. TEGRA_PIN_SOC_GPIO47_PAD2,
  858. };
  859. static const unsigned int soc_gpio48_pad3_pins[] = {
  860. TEGRA_PIN_SOC_GPIO48_PAD3,
  861. };
  862. static const unsigned int ufs0_ref_clk_pae0_pins[] = {
  863. TEGRA_PIN_UFS0_REF_CLK_PAE0,
  864. };
  865. static const unsigned int ufs0_rst_n_pae1_pins[] = {
  866. TEGRA_PIN_UFS0_RST_N_PAE1,
  867. };
  868. static const unsigned int pex_l5_clkreq_n_paf0_pins[] = {
  869. TEGRA_PIN_PEX_L5_CLKREQ_N_PAF0,
  870. };
  871. static const unsigned int pex_l5_rst_n_paf1_pins[] = {
  872. TEGRA_PIN_PEX_L5_RST_N_PAF1,
  873. };
  874. static const unsigned int pex_l6_clkreq_n_paf2_pins[] = {
  875. TEGRA_PIN_PEX_L6_CLKREQ_N_PAF2,
  876. };
  877. static const unsigned int pex_l6_rst_n_paf3_pins[] = {
  878. TEGRA_PIN_PEX_L6_RST_N_PAF3,
  879. };
  880. static const unsigned int pex_l7_clkreq_n_pag0_pins[] = {
  881. TEGRA_PIN_PEX_L7_CLKREQ_N_PAG0,
  882. };
  883. static const unsigned int pex_l7_rst_n_pag1_pins[] = {
  884. TEGRA_PIN_PEX_L7_RST_N_PAG1,
  885. };
  886. static const unsigned int pex_l8_clkreq_n_pag2_pins[] = {
  887. TEGRA_PIN_PEX_L8_CLKREQ_N_PAG2,
  888. };
  889. static const unsigned int pex_l8_rst_n_pag3_pins[] = {
  890. TEGRA_PIN_PEX_L8_RST_N_PAG3,
  891. };
  892. static const unsigned int pex_l9_clkreq_n_pag4_pins[] = {
  893. TEGRA_PIN_PEX_L9_CLKREQ_N_PAG4,
  894. };
  895. static const unsigned int pex_l9_rst_n_pag5_pins[] = {
  896. TEGRA_PIN_PEX_L9_RST_N_PAG5,
  897. };
  898. static const unsigned int pex_l10_clkreq_n_pag6_pins[] = {
  899. TEGRA_PIN_PEX_L10_CLKREQ_N_PAG6,
  900. };
  901. static const unsigned int pex_l10_rst_n_pag7_pins[] = {
  902. TEGRA_PIN_PEX_L10_RST_N_PAG7,
  903. };
  904. static const unsigned int can1_stb_pbb0_pins[] = {
  905. TEGRA_PIN_CAN1_STB_PBB0,
  906. };
  907. static const unsigned int can1_en_pbb1_pins[] = {
  908. TEGRA_PIN_CAN1_EN_PBB1,
  909. };
  910. static const unsigned int soc_gpio50_pbb2_pins[] = {
  911. TEGRA_PIN_SOC_GPIO50_PBB2,
  912. };
  913. static const unsigned int can1_err_pbb3_pins[] = {
  914. TEGRA_PIN_CAN1_ERR_PBB3,
  915. };
  916. static const unsigned int spi2_sck_pcc0_pins[] = {
  917. TEGRA_PIN_SPI2_SCK_PCC0,
  918. };
  919. static const unsigned int spi2_miso_pcc1_pins[] = {
  920. TEGRA_PIN_SPI2_MISO_PCC1,
  921. };
  922. static const unsigned int spi2_mosi_pcc2_pins[] = {
  923. TEGRA_PIN_SPI2_MOSI_PCC2,
  924. };
  925. static const unsigned int spi2_cs0_pcc3_pins[] = {
  926. TEGRA_PIN_SPI2_CS0_PCC3,
  927. };
  928. static const unsigned int touch_clk_pcc4_pins[] = {
  929. TEGRA_PIN_TOUCH_CLK_PCC4,
  930. };
  931. static const unsigned int uart3_tx_pcc5_pins[] = {
  932. TEGRA_PIN_UART3_TX_PCC5,
  933. };
  934. static const unsigned int uart3_rx_pcc6_pins[] = {
  935. TEGRA_PIN_UART3_RX_PCC6,
  936. };
  937. static const unsigned int gen2_i2c_scl_pcc7_pins[] = {
  938. TEGRA_PIN_GEN2_I2C_SCL_PCC7,
  939. };
  940. static const unsigned int gen2_i2c_sda_pdd0_pins[] = {
  941. TEGRA_PIN_GEN2_I2C_SDA_PDD0,
  942. };
  943. static const unsigned int gen8_i2c_scl_pdd1_pins[] = {
  944. TEGRA_PIN_GEN8_I2C_SCL_PDD1,
  945. };
  946. static const unsigned int gen8_i2c_sda_pdd2_pins[] = {
  947. TEGRA_PIN_GEN8_I2C_SDA_PDD2,
  948. };
  949. static const unsigned int sce_error_pee0_pins[] = {
  950. TEGRA_PIN_SCE_ERROR_PEE0,
  951. };
  952. static const unsigned int vcomp_alert_pee1_pins[] = {
  953. TEGRA_PIN_VCOMP_ALERT_PEE1,
  954. };
  955. static const unsigned int ao_retention_n_pee2_pins[] = {
  956. TEGRA_PIN_AO_RETENTION_N_PEE2,
  957. };
  958. static const unsigned int batt_oc_pee3_pins[] = {
  959. TEGRA_PIN_BATT_OC_PEE3,
  960. };
  961. static const unsigned int power_on_pee4_pins[] = {
  962. TEGRA_PIN_POWER_ON_PEE4,
  963. };
  964. static const unsigned int soc_gpio26_pee5_pins[] = {
  965. TEGRA_PIN_SOC_GPIO26_PEE5,
  966. };
  967. static const unsigned int soc_gpio27_pee6_pins[] = {
  968. TEGRA_PIN_SOC_GPIO27_PEE6,
  969. };
  970. static const unsigned int bootv_ctl_n_pee7_pins[] = {
  971. TEGRA_PIN_BOOTV_CTL_N_PEE7,
  972. };
  973. static const unsigned int hdmi_cec_pgg0_pins[] = {
  974. TEGRA_PIN_HDMI_CEC_PGG0,
  975. };
  976. static const unsigned int eqos_comp_pins[] = {
  977. TEGRA_PIN_EQOS_COMP,
  978. };
  979. static const unsigned int qspi_comp_pins[] = {
  980. TEGRA_PIN_QSPI_COMP,
  981. };
  982. static const unsigned int sdmmc1_comp_pins[] = {
  983. TEGRA_PIN_SDMMC1_COMP,
  984. };
  985. /* Define unique ID for each function */
  986. enum tegra_mux_dt {
  987. TEGRA_MUX_GP,
  988. TEGRA_MUX_UARTC,
  989. TEGRA_MUX_I2C8,
  990. TEGRA_MUX_SPI2,
  991. TEGRA_MUX_I2C2,
  992. TEGRA_MUX_CAN1,
  993. TEGRA_MUX_CAN0,
  994. TEGRA_MUX_RSVD0,
  995. TEGRA_MUX_ETH0,
  996. TEGRA_MUX_ETH2,
  997. TEGRA_MUX_ETH1,
  998. TEGRA_MUX_DP,
  999. TEGRA_MUX_ETH3,
  1000. TEGRA_MUX_I2C4,
  1001. TEGRA_MUX_I2C7,
  1002. TEGRA_MUX_I2C9,
  1003. TEGRA_MUX_EQOS,
  1004. TEGRA_MUX_PE2,
  1005. TEGRA_MUX_PE1,
  1006. TEGRA_MUX_PE0,
  1007. TEGRA_MUX_PE3,
  1008. TEGRA_MUX_PE4,
  1009. TEGRA_MUX_PE5,
  1010. TEGRA_MUX_PE6,
  1011. TEGRA_MUX_PE10,
  1012. TEGRA_MUX_PE7,
  1013. TEGRA_MUX_PE8,
  1014. TEGRA_MUX_PE9,
  1015. TEGRA_MUX_QSPI0,
  1016. TEGRA_MUX_QSPI1,
  1017. TEGRA_MUX_QSPI,
  1018. TEGRA_MUX_SDMMC1,
  1019. TEGRA_MUX_SCE,
  1020. TEGRA_MUX_SOC,
  1021. TEGRA_MUX_GPIO,
  1022. TEGRA_MUX_HDMI,
  1023. TEGRA_MUX_UFS0,
  1024. TEGRA_MUX_SPI3,
  1025. TEGRA_MUX_SPI1,
  1026. TEGRA_MUX_UARTB,
  1027. TEGRA_MUX_UARTE,
  1028. TEGRA_MUX_USB,
  1029. TEGRA_MUX_EXTPERIPH2,
  1030. TEGRA_MUX_EXTPERIPH1,
  1031. TEGRA_MUX_I2C3,
  1032. TEGRA_MUX_VI0,
  1033. TEGRA_MUX_I2C5,
  1034. TEGRA_MUX_UARTA,
  1035. TEGRA_MUX_UARTD,
  1036. TEGRA_MUX_I2C1,
  1037. TEGRA_MUX_I2S4,
  1038. TEGRA_MUX_I2S6,
  1039. TEGRA_MUX_AUD,
  1040. TEGRA_MUX_SPI5,
  1041. TEGRA_MUX_TOUCH,
  1042. TEGRA_MUX_UARTJ,
  1043. TEGRA_MUX_RSVD1,
  1044. TEGRA_MUX_WDT,
  1045. TEGRA_MUX_TSC,
  1046. TEGRA_MUX_DMIC3,
  1047. TEGRA_MUX_LED,
  1048. TEGRA_MUX_VI0_ALT,
  1049. TEGRA_MUX_I2S5,
  1050. TEGRA_MUX_NV,
  1051. TEGRA_MUX_EXTPERIPH3,
  1052. TEGRA_MUX_EXTPERIPH4,
  1053. TEGRA_MUX_SPI4,
  1054. TEGRA_MUX_CCLA,
  1055. TEGRA_MUX_I2S2,
  1056. TEGRA_MUX_I2S1,
  1057. TEGRA_MUX_I2S8,
  1058. TEGRA_MUX_I2S3,
  1059. TEGRA_MUX_RSVD2,
  1060. TEGRA_MUX_DMIC5,
  1061. TEGRA_MUX_DCA,
  1062. TEGRA_MUX_DISPLAYB,
  1063. TEGRA_MUX_DISPLAYA,
  1064. TEGRA_MUX_VI1,
  1065. TEGRA_MUX_DCB,
  1066. TEGRA_MUX_DMIC1,
  1067. TEGRA_MUX_DMIC4,
  1068. TEGRA_MUX_I2S7,
  1069. TEGRA_MUX_DMIC2,
  1070. TEGRA_MUX_DSPK0,
  1071. TEGRA_MUX_RSVD3,
  1072. TEGRA_MUX_TSC_ALT,
  1073. TEGRA_MUX_ISTCTRL,
  1074. TEGRA_MUX_VI1_ALT,
  1075. TEGRA_MUX_DSPK1,
  1076. TEGRA_MUX_IGPU,
  1077. };
  1078. /* Make list of each function name */
  1079. #define TEGRA_PIN_FUNCTION(lid) #lid
  1080. static const char * const tegra234_functions[] = {
  1081. TEGRA_PIN_FUNCTION(gp),
  1082. TEGRA_PIN_FUNCTION(uartc),
  1083. TEGRA_PIN_FUNCTION(i2c8),
  1084. TEGRA_PIN_FUNCTION(spi2),
  1085. TEGRA_PIN_FUNCTION(i2c2),
  1086. TEGRA_PIN_FUNCTION(can1),
  1087. TEGRA_PIN_FUNCTION(can0),
  1088. TEGRA_PIN_FUNCTION(rsvd0),
  1089. TEGRA_PIN_FUNCTION(eth0),
  1090. TEGRA_PIN_FUNCTION(eth2),
  1091. TEGRA_PIN_FUNCTION(eth1),
  1092. TEGRA_PIN_FUNCTION(dp),
  1093. TEGRA_PIN_FUNCTION(eth3),
  1094. TEGRA_PIN_FUNCTION(i2c4),
  1095. TEGRA_PIN_FUNCTION(i2c7),
  1096. TEGRA_PIN_FUNCTION(i2c9),
  1097. TEGRA_PIN_FUNCTION(eqos),
  1098. TEGRA_PIN_FUNCTION(pe2),
  1099. TEGRA_PIN_FUNCTION(pe1),
  1100. TEGRA_PIN_FUNCTION(pe0),
  1101. TEGRA_PIN_FUNCTION(pe3),
  1102. TEGRA_PIN_FUNCTION(pe4),
  1103. TEGRA_PIN_FUNCTION(pe5),
  1104. TEGRA_PIN_FUNCTION(pe6),
  1105. TEGRA_PIN_FUNCTION(pe10),
  1106. TEGRA_PIN_FUNCTION(pe7),
  1107. TEGRA_PIN_FUNCTION(pe8),
  1108. TEGRA_PIN_FUNCTION(pe9),
  1109. TEGRA_PIN_FUNCTION(qspi0),
  1110. TEGRA_PIN_FUNCTION(qspi1),
  1111. TEGRA_PIN_FUNCTION(qspi),
  1112. TEGRA_PIN_FUNCTION(sdmmc1),
  1113. TEGRA_PIN_FUNCTION(sce),
  1114. TEGRA_PIN_FUNCTION(soc),
  1115. TEGRA_PIN_FUNCTION(gpio),
  1116. TEGRA_PIN_FUNCTION(hdmi),
  1117. TEGRA_PIN_FUNCTION(ufs0),
  1118. TEGRA_PIN_FUNCTION(spi3),
  1119. TEGRA_PIN_FUNCTION(spi1),
  1120. TEGRA_PIN_FUNCTION(uartb),
  1121. TEGRA_PIN_FUNCTION(uarte),
  1122. TEGRA_PIN_FUNCTION(usb),
  1123. TEGRA_PIN_FUNCTION(extperiph2),
  1124. TEGRA_PIN_FUNCTION(extperiph1),
  1125. TEGRA_PIN_FUNCTION(i2c3),
  1126. TEGRA_PIN_FUNCTION(vi0),
  1127. TEGRA_PIN_FUNCTION(i2c5),
  1128. TEGRA_PIN_FUNCTION(uarta),
  1129. TEGRA_PIN_FUNCTION(uartd),
  1130. TEGRA_PIN_FUNCTION(i2c1),
  1131. TEGRA_PIN_FUNCTION(i2s4),
  1132. TEGRA_PIN_FUNCTION(i2s6),
  1133. TEGRA_PIN_FUNCTION(aud),
  1134. TEGRA_PIN_FUNCTION(spi5),
  1135. TEGRA_PIN_FUNCTION(touch),
  1136. TEGRA_PIN_FUNCTION(uartj),
  1137. TEGRA_PIN_FUNCTION(rsvd1),
  1138. TEGRA_PIN_FUNCTION(wdt),
  1139. TEGRA_PIN_FUNCTION(tsc),
  1140. TEGRA_PIN_FUNCTION(dmic3),
  1141. TEGRA_PIN_FUNCTION(led),
  1142. TEGRA_PIN_FUNCTION(vi0_alt),
  1143. TEGRA_PIN_FUNCTION(i2s5),
  1144. TEGRA_PIN_FUNCTION(nv),
  1145. TEGRA_PIN_FUNCTION(extperiph3),
  1146. TEGRA_PIN_FUNCTION(extperiph4),
  1147. TEGRA_PIN_FUNCTION(spi4),
  1148. TEGRA_PIN_FUNCTION(ccla),
  1149. TEGRA_PIN_FUNCTION(i2s2),
  1150. TEGRA_PIN_FUNCTION(i2s1),
  1151. TEGRA_PIN_FUNCTION(i2s8),
  1152. TEGRA_PIN_FUNCTION(i2s3),
  1153. TEGRA_PIN_FUNCTION(rsvd2),
  1154. TEGRA_PIN_FUNCTION(dmic5),
  1155. TEGRA_PIN_FUNCTION(dca),
  1156. TEGRA_PIN_FUNCTION(displayb),
  1157. TEGRA_PIN_FUNCTION(displaya),
  1158. TEGRA_PIN_FUNCTION(vi1),
  1159. TEGRA_PIN_FUNCTION(dcb),
  1160. TEGRA_PIN_FUNCTION(dmic1),
  1161. TEGRA_PIN_FUNCTION(dmic4),
  1162. TEGRA_PIN_FUNCTION(i2s7),
  1163. TEGRA_PIN_FUNCTION(dmic2),
  1164. TEGRA_PIN_FUNCTION(dspk0),
  1165. TEGRA_PIN_FUNCTION(rsvd3),
  1166. TEGRA_PIN_FUNCTION(tsc_alt),
  1167. TEGRA_PIN_FUNCTION(istctrl),
  1168. TEGRA_PIN_FUNCTION(vi1_alt),
  1169. TEGRA_PIN_FUNCTION(dspk1),
  1170. TEGRA_PIN_FUNCTION(igpu),
  1171. };
  1172. #define PINGROUP_REG_Y(r) ((r))
  1173. #define PINGROUP_REG_N(r) -1
  1174. #define DRV_PINGROUP_Y(r) ((r))
  1175. #define DRV_PINGROUP_N(r) -1
  1176. #define DRV_PINGROUP_ENTRY_N(pg_name) \
  1177. .drv_reg = -1, \
  1178. .drv_bank = -1, \
  1179. .drvdn_bit = -1, \
  1180. .drvup_bit = -1, \
  1181. .slwr_bit = -1, \
  1182. .slwf_bit = -1
  1183. #define DRV_PINGROUP_ENTRY_Y(r, drvdn_b, drvdn_w, drvup_b, \
  1184. drvup_w, slwr_b, slwr_w, slwf_b, \
  1185. slwf_w, bank) \
  1186. .drv_reg = DRV_PINGROUP_Y(r), \
  1187. .drv_bank = bank, \
  1188. .drvdn_bit = drvdn_b, \
  1189. .drvdn_width = drvdn_w, \
  1190. .drvup_bit = drvup_b, \
  1191. .drvup_width = drvup_w, \
  1192. .slwr_bit = slwr_b, \
  1193. .slwr_width = slwr_w, \
  1194. .slwf_bit = slwf_b, \
  1195. .slwf_width = slwf_w
  1196. #define PIN_PINGROUP_ENTRY_N(pg_name) \
  1197. .mux_reg = -1, \
  1198. .pupd_reg = -1, \
  1199. .tri_reg = -1, \
  1200. .einput_bit = -1, \
  1201. .e_io_hv_bit = -1, \
  1202. .odrain_bit = -1, \
  1203. .lock_bit = -1, \
  1204. .parked_bit = -1, \
  1205. .lpmd_bit = -1, \
  1206. .drvtype_bit = -1, \
  1207. .lpdr_bit = -1, \
  1208. .pbias_buf_bit = -1, \
  1209. .preemp_bit = -1, \
  1210. .rfu_in_bit = -1
  1211. #define PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, e_input, \
  1212. e_lpdr, e_pbias_buf, gpio_sfio_sel, \
  1213. schmitt_b) \
  1214. .mux_reg = PINGROUP_REG_Y(r), \
  1215. .lpmd_bit = -1, \
  1216. .lock_bit = -1, \
  1217. .hsm_bit = -1, \
  1218. .mux_bank = bank, \
  1219. .mux_bit = 0, \
  1220. .pupd_reg = PINGROUP_REG_##pupd(r), \
  1221. .pupd_bank = bank, \
  1222. .pupd_bit = 2, \
  1223. .tri_reg = PINGROUP_REG_Y(r), \
  1224. .tri_bank = bank, \
  1225. .tri_bit = 4, \
  1226. .einput_bit = e_input, \
  1227. .sfsel_bit = gpio_sfio_sel, \
  1228. .schmitt_bit = schmitt_b, \
  1229. .drvtype_bit = 13, \
  1230. .lpdr_bit = e_lpdr, \
  1231. /* main drive pin groups */
  1232. #define drive_soc_gpio08_pb0 DRV_PINGROUP_ENTRY_Y(0x500c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1233. #define drive_soc_gpio36_pm5 DRV_PINGROUP_ENTRY_Y(0x10004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1234. #define drive_soc_gpio53_pm6 DRV_PINGROUP_ENTRY_Y(0x1000c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1235. #define drive_soc_gpio55_pm4 DRV_PINGROUP_ENTRY_Y(0x10014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1236. #define drive_soc_gpio38_pm7 DRV_PINGROUP_ENTRY_Y(0x1001c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1237. #define drive_soc_gpio39_pn1 DRV_PINGROUP_ENTRY_Y(0x10024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1238. #define drive_soc_gpio40_pn2 DRV_PINGROUP_ENTRY_Y(0x1002c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1239. #define drive_dp_aux_ch0_hpd_pm0 DRV_PINGROUP_ENTRY_Y(0x10034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1240. #define drive_dp_aux_ch1_hpd_pm1 DRV_PINGROUP_ENTRY_Y(0x1003c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1241. #define drive_dp_aux_ch2_hpd_pm2 DRV_PINGROUP_ENTRY_Y(0x10044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1242. #define drive_dp_aux_ch3_hpd_pm3 DRV_PINGROUP_ENTRY_Y(0x1004c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1243. #define drive_dp_aux_ch1_p_pn3 DRV_PINGROUP_ENTRY_Y(0x10054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1244. #define drive_dp_aux_ch1_n_pn4 DRV_PINGROUP_ENTRY_Y(0x1005c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1245. #define drive_dp_aux_ch2_p_pn5 DRV_PINGROUP_ENTRY_Y(0x10064, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1246. #define drive_dp_aux_ch2_n_pn6 DRV_PINGROUP_ENTRY_Y(0x1006c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1247. #define drive_dp_aux_ch3_p_pn7 DRV_PINGROUP_ENTRY_Y(0x10074, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1248. #define drive_dp_aux_ch3_n_pn0 DRV_PINGROUP_ENTRY_Y(0x1007c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1249. #define drive_pex_l2_clkreq_n_pk4 DRV_PINGROUP_ENTRY_Y(0x7004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1250. #define drive_pex_wake_n_pl2 DRV_PINGROUP_ENTRY_Y(0x700c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1251. #define drive_pex_l1_clkreq_n_pk2 DRV_PINGROUP_ENTRY_Y(0x7014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1252. #define drive_pex_l1_rst_n_pk3 DRV_PINGROUP_ENTRY_Y(0x701c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1253. #define drive_pex_l0_clkreq_n_pk0 DRV_PINGROUP_ENTRY_Y(0x7024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1254. #define drive_pex_l0_rst_n_pk1 DRV_PINGROUP_ENTRY_Y(0x702c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1255. #define drive_pex_l2_rst_n_pk5 DRV_PINGROUP_ENTRY_Y(0x7034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1256. #define drive_pex_l3_clkreq_n_pk6 DRV_PINGROUP_ENTRY_Y(0x703c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1257. #define drive_pex_l3_rst_n_pk7 DRV_PINGROUP_ENTRY_Y(0x7044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1258. #define drive_pex_l4_clkreq_n_pl0 DRV_PINGROUP_ENTRY_Y(0x704c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1259. #define drive_pex_l4_rst_n_pl1 DRV_PINGROUP_ENTRY_Y(0x7054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1260. #define drive_soc_gpio34_pl3 DRV_PINGROUP_ENTRY_Y(0x705c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1261. #define drive_pex_l5_clkreq_n_paf0 DRV_PINGROUP_ENTRY_Y(0x14004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1262. #define drive_pex_l5_rst_n_paf1 DRV_PINGROUP_ENTRY_Y(0x1400c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1263. #define drive_pex_l6_clkreq_n_paf2 DRV_PINGROUP_ENTRY_Y(0x14014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1264. #define drive_pex_l6_rst_n_paf3 DRV_PINGROUP_ENTRY_Y(0x1401c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1265. #define drive_pex_l10_clkreq_n_pag6 DRV_PINGROUP_ENTRY_Y(0x19004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1266. #define drive_pex_l10_rst_n_pag7 DRV_PINGROUP_ENTRY_Y(0x1900c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1267. #define drive_pex_l7_clkreq_n_pag0 DRV_PINGROUP_ENTRY_Y(0x19014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1268. #define drive_pex_l7_rst_n_pag1 DRV_PINGROUP_ENTRY_Y(0x1901c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1269. #define drive_pex_l8_clkreq_n_pag2 DRV_PINGROUP_ENTRY_Y(0x19024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1270. #define drive_pex_l8_rst_n_pag3 DRV_PINGROUP_ENTRY_Y(0x1902c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1271. #define drive_pex_l9_clkreq_n_pag4 DRV_PINGROUP_ENTRY_Y(0x19034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1272. #define drive_pex_l9_rst_n_pag5 DRV_PINGROUP_ENTRY_Y(0x1903c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1273. #define drive_sdmmc1_clk_pj0 DRV_PINGROUP_ENTRY_Y(0x8004, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1274. #define drive_sdmmc1_cmd_pj1 DRV_PINGROUP_ENTRY_Y(0x800c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1275. #define drive_sdmmc1_dat3_pj5 DRV_PINGROUP_ENTRY_Y(0x801c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1276. #define drive_sdmmc1_dat2_pj4 DRV_PINGROUP_ENTRY_Y(0x8024, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1277. #define drive_sdmmc1_dat1_pj3 DRV_PINGROUP_ENTRY_Y(0x802c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1278. #define drive_sdmmc1_dat0_pj2 DRV_PINGROUP_ENTRY_Y(0x8034, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1279. #define drive_ufs0_rst_n_pae1 DRV_PINGROUP_ENTRY_Y(0x11004, 12, 5, 24, 5, -1, -1, -1, -1, 0)
  1280. #define drive_ufs0_ref_clk_pae0 DRV_PINGROUP_ENTRY_Y(0x1100c, 12, 5, 24, 5, -1, -1, -1, -1, 0)
  1281. #define drive_spi3_miso_py1 DRV_PINGROUP_ENTRY_Y(0xd004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1282. #define drive_spi1_cs0_pz6 DRV_PINGROUP_ENTRY_Y(0xd00c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1283. #define drive_spi3_cs0_py3 DRV_PINGROUP_ENTRY_Y(0xd014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1284. #define drive_spi1_miso_pz4 DRV_PINGROUP_ENTRY_Y(0xd01c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1285. #define drive_spi3_cs1_py4 DRV_PINGROUP_ENTRY_Y(0xd024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1286. #define drive_spi1_sck_pz3 DRV_PINGROUP_ENTRY_Y(0xd02c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1287. #define drive_spi3_sck_py0 DRV_PINGROUP_ENTRY_Y(0xd034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1288. #define drive_spi1_cs1_pz7 DRV_PINGROUP_ENTRY_Y(0xd03c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1289. #define drive_spi1_mosi_pz5 DRV_PINGROUP_ENTRY_Y(0xd044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1290. #define drive_spi3_mosi_py2 DRV_PINGROUP_ENTRY_Y(0xd04c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1291. #define drive_uart2_tx_px4 DRV_PINGROUP_ENTRY_Y(0xd054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1292. #define drive_uart2_rx_px5 DRV_PINGROUP_ENTRY_Y(0xd05c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1293. #define drive_uart2_rts_px6 DRV_PINGROUP_ENTRY_Y(0xd064, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1294. #define drive_uart2_cts_px7 DRV_PINGROUP_ENTRY_Y(0xd06c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1295. #define drive_uart5_tx_py5 DRV_PINGROUP_ENTRY_Y(0xd074, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1296. #define drive_uart5_rx_py6 DRV_PINGROUP_ENTRY_Y(0xd07c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1297. #define drive_uart5_rts_py7 DRV_PINGROUP_ENTRY_Y(0xd084, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1298. #define drive_uart5_cts_pz0 DRV_PINGROUP_ENTRY_Y(0xd08c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1299. #define drive_gpu_pwr_req_px0 DRV_PINGROUP_ENTRY_Y(0xd094, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1300. #define drive_gp_pwm3_px3 DRV_PINGROUP_ENTRY_Y(0xd09c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1301. #define drive_gp_pwm2_px2 DRV_PINGROUP_ENTRY_Y(0xd0a4, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1302. #define drive_cv_pwr_req_px1 DRV_PINGROUP_ENTRY_Y(0xd0ac, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1303. #define drive_usb_vbus_en0_pz1 DRV_PINGROUP_ENTRY_Y(0xd0b4, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1304. #define drive_usb_vbus_en1_pz2 DRV_PINGROUP_ENTRY_Y(0xd0bc, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1305. #define drive_extperiph2_clk_pp1 DRV_PINGROUP_ENTRY_Y(0x0004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1306. #define drive_extperiph1_clk_pp0 DRV_PINGROUP_ENTRY_Y(0x000c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1307. #define drive_cam_i2c_sda_pp3 DRV_PINGROUP_ENTRY_Y(0x0014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1308. #define drive_cam_i2c_scl_pp2 DRV_PINGROUP_ENTRY_Y(0x001c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1309. #define drive_soc_gpio23_pp4 DRV_PINGROUP_ENTRY_Y(0x0024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1310. #define drive_soc_gpio24_pp5 DRV_PINGROUP_ENTRY_Y(0x002c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1311. #define drive_soc_gpio25_pp6 DRV_PINGROUP_ENTRY_Y(0x0034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1312. #define drive_pwr_i2c_scl_pp7 DRV_PINGROUP_ENTRY_Y(0x003c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1313. #define drive_pwr_i2c_sda_pq0 DRV_PINGROUP_ENTRY_Y(0x0044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1314. #define drive_soc_gpio28_pq1 DRV_PINGROUP_ENTRY_Y(0x004c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1315. #define drive_soc_gpio29_pq2 DRV_PINGROUP_ENTRY_Y(0x0054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1316. #define drive_soc_gpio30_pq3 DRV_PINGROUP_ENTRY_Y(0x005c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1317. #define drive_soc_gpio31_pq4 DRV_PINGROUP_ENTRY_Y(0x0064, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1318. #define drive_soc_gpio32_pq5 DRV_PINGROUP_ENTRY_Y(0x006c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1319. #define drive_soc_gpio33_pq6 DRV_PINGROUP_ENTRY_Y(0x0074, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1320. #define drive_soc_gpio35_pq7 DRV_PINGROUP_ENTRY_Y(0x007c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1321. #define drive_soc_gpio37_pr0 DRV_PINGROUP_ENTRY_Y(0x0084, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1322. #define drive_soc_gpio56_pr1 DRV_PINGROUP_ENTRY_Y(0x008c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1323. #define drive_uart1_cts_pr5 DRV_PINGROUP_ENTRY_Y(0x0094, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1324. #define drive_uart1_rts_pr4 DRV_PINGROUP_ENTRY_Y(0x009c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1325. #define drive_uart1_rx_pr3 DRV_PINGROUP_ENTRY_Y(0x00a4, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1326. #define drive_uart1_tx_pr2 DRV_PINGROUP_ENTRY_Y(0x00ac, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1327. #define drive_cpu_pwr_req_pi5 DRV_PINGROUP_ENTRY_Y(0x4004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1328. #define drive_uart4_cts_ph6 DRV_PINGROUP_ENTRY_Y(0x400c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1329. #define drive_uart4_rts_ph5 DRV_PINGROUP_ENTRY_Y(0x4014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1330. #define drive_uart4_rx_ph4 DRV_PINGROUP_ENTRY_Y(0x401c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1331. #define drive_uart4_tx_ph3 DRV_PINGROUP_ENTRY_Y(0x4024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1332. #define drive_gen1_i2c_scl_pi3 DRV_PINGROUP_ENTRY_Y(0x402c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1333. #define drive_gen1_i2c_sda_pi4 DRV_PINGROUP_ENTRY_Y(0x4034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1334. #define drive_soc_gpio20_pg7 DRV_PINGROUP_ENTRY_Y(0x403c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1335. #define drive_soc_gpio21_ph0 DRV_PINGROUP_ENTRY_Y(0x4044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1336. #define drive_soc_gpio22_ph1 DRV_PINGROUP_ENTRY_Y(0x404c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1337. #define drive_soc_gpio13_pg0 DRV_PINGROUP_ENTRY_Y(0x4054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1338. #define drive_soc_gpio14_pg1 DRV_PINGROUP_ENTRY_Y(0x405c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1339. #define drive_soc_gpio15_pg2 DRV_PINGROUP_ENTRY_Y(0x4064, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1340. #define drive_soc_gpio16_pg3 DRV_PINGROUP_ENTRY_Y(0x406c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1341. #define drive_soc_gpio17_pg4 DRV_PINGROUP_ENTRY_Y(0x4074, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1342. #define drive_soc_gpio18_pg5 DRV_PINGROUP_ENTRY_Y(0x407c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1343. #define drive_soc_gpio19_pg6 DRV_PINGROUP_ENTRY_Y(0x4084, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1344. #define drive_soc_gpio41_ph7 DRV_PINGROUP_ENTRY_Y(0x408c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1345. #define drive_soc_gpio42_pi0 DRV_PINGROUP_ENTRY_Y(0x4094, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1346. #define drive_soc_gpio43_pi1 DRV_PINGROUP_ENTRY_Y(0x409c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1347. #define drive_soc_gpio44_pi2 DRV_PINGROUP_ENTRY_Y(0x40a4, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1348. #define drive_soc_gpio06_ph2 DRV_PINGROUP_ENTRY_Y(0x40ac, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1349. #define drive_soc_gpio07_pi6 DRV_PINGROUP_ENTRY_Y(0x40b4, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1350. #define drive_dap4_sclk_pa4 DRV_PINGROUP_ENTRY_Y(0x2004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1351. #define drive_dap4_dout_pa5 DRV_PINGROUP_ENTRY_Y(0x200c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1352. #define drive_dap4_din_pa6 DRV_PINGROUP_ENTRY_Y(0x2014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1353. #define drive_dap4_fs_pa7 DRV_PINGROUP_ENTRY_Y(0x201c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1354. #define drive_dap6_sclk_pa0 DRV_PINGROUP_ENTRY_Y(0x2024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1355. #define drive_dap6_dout_pa1 DRV_PINGROUP_ENTRY_Y(0x202c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1356. #define drive_dap6_din_pa2 DRV_PINGROUP_ENTRY_Y(0x2034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1357. #define drive_dap6_fs_pa3 DRV_PINGROUP_ENTRY_Y(0x203c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1358. #define drive_soc_gpio45_pad0 DRV_PINGROUP_ENTRY_Y(0x18004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1359. #define drive_soc_gpio46_pad1 DRV_PINGROUP_ENTRY_Y(0x1800c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1360. #define drive_soc_gpio47_pad2 DRV_PINGROUP_ENTRY_Y(0x18014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1361. #define drive_soc_gpio48_pad3 DRV_PINGROUP_ENTRY_Y(0x1801c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1362. #define drive_soc_gpio57_pac4 DRV_PINGROUP_ENTRY_Y(0x18024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1363. #define drive_soc_gpio58_pac5 DRV_PINGROUP_ENTRY_Y(0x1802c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1364. #define drive_soc_gpio59_pac6 DRV_PINGROUP_ENTRY_Y(0x18034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1365. #define drive_soc_gpio60_pac7 DRV_PINGROUP_ENTRY_Y(0x1803c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1366. #define drive_spi5_cs0_pac3 DRV_PINGROUP_ENTRY_Y(0x18044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1367. #define drive_spi5_miso_pac1 DRV_PINGROUP_ENTRY_Y(0x1804c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1368. #define drive_spi5_mosi_pac2 DRV_PINGROUP_ENTRY_Y(0x18054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1369. #define drive_spi5_sck_pac0 DRV_PINGROUP_ENTRY_Y(0x1805c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1370. #define drive_eqos_td3_pe4 DRV_PINGROUP_ENTRY_N(no_entry)
  1371. #define drive_eqos_td2_pe3 DRV_PINGROUP_ENTRY_N(no_entry)
  1372. #define drive_eqos_td1_pe2 DRV_PINGROUP_ENTRY_N(no_entry)
  1373. #define drive_eqos_td0_pe1 DRV_PINGROUP_ENTRY_N(no_entry)
  1374. #define drive_eqos_rd3_pf1 DRV_PINGROUP_ENTRY_N(no_entry)
  1375. #define drive_eqos_rd2_pf0 DRV_PINGROUP_ENTRY_N(no_entry)
  1376. #define drive_eqos_rd1_pe7 DRV_PINGROUP_ENTRY_N(no_entry)
  1377. #define drive_eqos_sma_mdio_pf4 DRV_PINGROUP_ENTRY_N(no_entry)
  1378. #define drive_eqos_rd0_pe6 DRV_PINGROUP_ENTRY_N(no_entry)
  1379. #define drive_eqos_sma_mdc_pf5 DRV_PINGROUP_ENTRY_N(no_entry)
  1380. #define drive_eqos_comp DRV_PINGROUP_ENTRY_N(no_entry)
  1381. #define drive_eqos_txc_pe0 DRV_PINGROUP_ENTRY_N(no_entry)
  1382. #define drive_eqos_rxc_pf3 DRV_PINGROUP_ENTRY_N(no_entry)
  1383. #define drive_eqos_tx_ctl_pe5 DRV_PINGROUP_ENTRY_N(no_entry)
  1384. #define drive_eqos_rx_ctl_pf2 DRV_PINGROUP_ENTRY_N(no_entry)
  1385. #define drive_qspi0_io3_pc5 DRV_PINGROUP_ENTRY_N(no_entry)
  1386. #define drive_qspi0_io2_pc4 DRV_PINGROUP_ENTRY_N(no_entry)
  1387. #define drive_qspi0_io1_pc3 DRV_PINGROUP_ENTRY_N(no_entry)
  1388. #define drive_qspi0_io0_pc2 DRV_PINGROUP_ENTRY_N(no_entry)
  1389. #define drive_qspi0_sck_pc0 DRV_PINGROUP_ENTRY_N(no_entry)
  1390. #define drive_qspi0_cs_n_pc1 DRV_PINGROUP_ENTRY_N(no_entry)
  1391. #define drive_qspi1_io3_pd3 DRV_PINGROUP_ENTRY_N(no_entry)
  1392. #define drive_qspi1_io2_pd2 DRV_PINGROUP_ENTRY_N(no_entry)
  1393. #define drive_qspi1_io1_pd1 DRV_PINGROUP_ENTRY_N(no_entry)
  1394. #define drive_qspi1_io0_pd0 DRV_PINGROUP_ENTRY_N(no_entry)
  1395. #define drive_qspi1_sck_pc6 DRV_PINGROUP_ENTRY_N(no_entry)
  1396. #define drive_qspi1_cs_n_pc7 DRV_PINGROUP_ENTRY_N(no_entry)
  1397. #define drive_qspi_comp DRV_PINGROUP_ENTRY_N(no_entry)
  1398. #define drive_sdmmc1_comp DRV_PINGROUP_ENTRY_N(no_entry)
  1399. #define PINGROUP(pg_name, f0, f1, f2, f3, r, bank, pupd, e_io_hv, e_lpbk, e_input, e_lpdr, e_pbias_buf, \
  1400. gpio_sfio_sel, schmitt_b) \
  1401. { \
  1402. .name = #pg_name, \
  1403. .pins = pg_name##_pins, \
  1404. .npins = ARRAY_SIZE(pg_name##_pins), \
  1405. .funcs = { \
  1406. TEGRA_MUX_##f0, \
  1407. TEGRA_MUX_##f1, \
  1408. TEGRA_MUX_##f2, \
  1409. TEGRA_MUX_##f3, \
  1410. }, \
  1411. PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, \
  1412. e_input, e_lpdr, e_pbias_buf, \
  1413. gpio_sfio_sel, schmitt_b) \
  1414. drive_##pg_name, \
  1415. }
  1416. static const struct tegra_pingroup tegra234_groups[] = {
  1417. PINGROUP(soc_gpio08_pb0, RSVD0, RSVD1, RSVD2, RSVD3, 0x5008, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1418. PINGROUP(soc_gpio36_pm5, ETH0, RSVD1, DCA, RSVD3, 0x10000, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1419. PINGROUP(soc_gpio53_pm6, ETH0, RSVD1, DCA, RSVD3, 0x10008, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1420. PINGROUP(soc_gpio55_pm4, ETH2, RSVD1, RSVD2, RSVD3, 0x10010, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1421. PINGROUP(soc_gpio38_pm7, ETH1, RSVD1, RSVD2, RSVD3, 0x10018, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1422. PINGROUP(soc_gpio39_pn1, GP, RSVD1, RSVD2, RSVD3, 0x10020, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1423. PINGROUP(soc_gpio40_pn2, ETH1, RSVD1, RSVD2, RSVD3, 0x10028, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1424. PINGROUP(dp_aux_ch0_hpd_pm0, DP, RSVD1, RSVD2, RSVD3, 0x10030, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1425. PINGROUP(dp_aux_ch1_hpd_pm1, ETH3, RSVD1, RSVD2, RSVD3, 0x10038, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1426. PINGROUP(dp_aux_ch2_hpd_pm2, ETH3, RSVD1, DISPLAYB, RSVD3, 0x10040, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1427. PINGROUP(dp_aux_ch3_hpd_pm3, ETH2, RSVD1, DISPLAYA, RSVD3, 0x10048, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1428. PINGROUP(dp_aux_ch1_p_pn3, I2C4, RSVD1, RSVD2, RSVD3, 0x10050, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1429. PINGROUP(dp_aux_ch1_n_pn4, I2C4, RSVD1, RSVD2, RSVD3, 0x10058, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1430. PINGROUP(dp_aux_ch2_p_pn5, I2C7, RSVD1, RSVD2, RSVD3, 0x10060, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1431. PINGROUP(dp_aux_ch2_n_pn6, I2C7, RSVD1, RSVD2, RSVD3, 0x10068, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1432. PINGROUP(dp_aux_ch3_p_pn7, I2C9, RSVD1, RSVD2, RSVD3, 0x10070, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1433. PINGROUP(dp_aux_ch3_n_pn0, I2C9, RSVD1, RSVD2, RSVD3, 0x10078, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1434. PINGROUP(eqos_td3_pe4, EQOS, RSVD1, RSVD2, RSVD3, 0x15000, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1435. PINGROUP(eqos_td2_pe3, EQOS, RSVD1, RSVD2, RSVD3, 0x15008, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1436. PINGROUP(eqos_td1_pe2, EQOS, RSVD1, RSVD2, RSVD3, 0x15010, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1437. PINGROUP(eqos_td0_pe1, EQOS, RSVD1, RSVD2, RSVD3, 0x15018, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1438. PINGROUP(eqos_rd3_pf1, EQOS, RSVD1, RSVD2, RSVD3, 0x15020, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1439. PINGROUP(eqos_rd2_pf0, EQOS, RSVD1, RSVD2, RSVD3, 0x15028, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1440. PINGROUP(eqos_rd1_pe7, EQOS, RSVD1, RSVD2, RSVD3, 0x15030, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1441. PINGROUP(eqos_sma_mdio_pf4, EQOS, RSVD1, RSVD2, RSVD3, 0x15038, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1442. PINGROUP(eqos_rd0_pe6, EQOS, RSVD1, RSVD2, RSVD3, 0x15040, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1443. PINGROUP(eqos_sma_mdc_pf5, EQOS, RSVD1, RSVD2, RSVD3, 0x15048, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1444. PINGROUP(eqos_comp, EQOS, RSVD1, RSVD2, RSVD3, 0x15050, 0, N, -1, -1, -1, -1, -1, -1, -1),
  1445. PINGROUP(eqos_txc_pe0, EQOS, RSVD1, RSVD2, RSVD3, 0x15058, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1446. PINGROUP(eqos_rxc_pf3, EQOS, RSVD1, RSVD2, RSVD3, 0x15060, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1447. PINGROUP(eqos_tx_ctl_pe5, EQOS, RSVD1, RSVD2, RSVD3, 0x15068, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1448. PINGROUP(eqos_rx_ctl_pf2, EQOS, RSVD1, RSVD2, RSVD3, 0x15070, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1449. PINGROUP(pex_l2_clkreq_n_pk4, PE2, RSVD1, RSVD2, RSVD3, 0x7000, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1450. PINGROUP(pex_wake_n_pl2, RSVD0, RSVD1, RSVD2, RSVD3, 0x7008, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1451. PINGROUP(pex_l1_clkreq_n_pk2, PE1, RSVD1, RSVD2, RSVD3, 0x7010, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1452. PINGROUP(pex_l1_rst_n_pk3, PE1, RSVD1, RSVD2, RSVD3, 0x7018, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1453. PINGROUP(pex_l0_clkreq_n_pk0, PE0, RSVD1, RSVD2, RSVD3, 0x7020, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1454. PINGROUP(pex_l0_rst_n_pk1, PE0, RSVD1, RSVD2, RSVD3, 0x7028, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1455. PINGROUP(pex_l2_rst_n_pk5, PE2, RSVD1, RSVD2, RSVD3, 0x7030, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1456. PINGROUP(pex_l3_clkreq_n_pk6, PE3, RSVD1, RSVD2, RSVD3, 0x7038, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1457. PINGROUP(pex_l3_rst_n_pk7, PE3, RSVD1, RSVD2, RSVD3, 0x7040, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1458. PINGROUP(pex_l4_clkreq_n_pl0, PE4, RSVD1, RSVD2, RSVD3, 0x7048, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1459. PINGROUP(pex_l4_rst_n_pl1, PE4, RSVD1, RSVD2, RSVD3, 0x7050, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1460. PINGROUP(soc_gpio34_pl3, RSVD0, RSVD1, RSVD2, RSVD3, 0x7058, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1461. PINGROUP(pex_l5_clkreq_n_paf0, PE5, RSVD1, RSVD2, RSVD3, 0x14000, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1462. PINGROUP(pex_l5_rst_n_paf1, PE5, RSVD1, RSVD2, RSVD3, 0x14008, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1463. PINGROUP(pex_l6_clkreq_n_paf2, PE6, RSVD1, RSVD2, RSVD3, 0x14010, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1464. PINGROUP(pex_l6_rst_n_paf3, PE6, RSVD1, RSVD2, RSVD3, 0x14018, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1465. PINGROUP(pex_l10_clkreq_n_pag6, PE10, RSVD1, RSVD2, RSVD3, 0x19000, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1466. PINGROUP(pex_l10_rst_n_pag7, PE10, RSVD1, RSVD2, RSVD3, 0x19008, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1467. PINGROUP(pex_l7_clkreq_n_pag0, PE7, RSVD1, RSVD2, RSVD3, 0x19010, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1468. PINGROUP(pex_l7_rst_n_pag1, PE7, RSVD1, RSVD2, RSVD3, 0x19018, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1469. PINGROUP(pex_l8_clkreq_n_pag2, PE8, RSVD1, RSVD2, RSVD3, 0x19020, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1470. PINGROUP(pex_l8_rst_n_pag3, PE8, RSVD1, RSVD2, RSVD3, 0x19028, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1471. PINGROUP(pex_l9_clkreq_n_pag4, PE9, RSVD1, RSVD2, RSVD3, 0x19030, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1472. PINGROUP(pex_l9_rst_n_pag5, PE9, RSVD1, RSVD2, RSVD3, 0x19038, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1473. PINGROUP(qspi0_io3_pc5, QSPI0, RSVD1, RSVD2, RSVD3, 0xB000, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1474. PINGROUP(qspi0_io2_pc4, QSPI0, RSVD1, RSVD2, RSVD3, 0xB008, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1475. PINGROUP(qspi0_io1_pc3, QSPI0, RSVD1, RSVD2, RSVD3, 0xB010, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1476. PINGROUP(qspi0_io0_pc2, QSPI0, RSVD1, RSVD2, RSVD3, 0xB018, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1477. PINGROUP(qspi0_sck_pc0, QSPI0, RSVD1, RSVD2, RSVD3, 0xB020, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1478. PINGROUP(qspi0_cs_n_pc1, QSPI0, RSVD1, RSVD2, RSVD3, 0xB028, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1479. PINGROUP(qspi1_io3_pd3, QSPI1, RSVD1, RSVD2, RSVD3, 0xB030, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1480. PINGROUP(qspi1_io2_pd2, QSPI1, RSVD1, RSVD2, RSVD3, 0xB038, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1481. PINGROUP(qspi1_io1_pd1, QSPI1, RSVD1, RSVD2, RSVD3, 0xB040, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1482. PINGROUP(qspi1_io0_pd0, QSPI1, RSVD1, RSVD2, RSVD3, 0xB048, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1483. PINGROUP(qspi1_sck_pc6, QSPI1, RSVD1, RSVD2, RSVD3, 0xB050, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1484. PINGROUP(qspi1_cs_n_pc7, QSPI1, RSVD1, RSVD2, RSVD3, 0xB058, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1485. PINGROUP(qspi_comp, QSPI, RSVD1, RSVD2, RSVD3, 0xB060, 0, N, -1, -1, -1, -1, -1, -1, -1),
  1486. PINGROUP(sdmmc1_clk_pj0, SDMMC1, RSVD1, RSVD2, RSVD3, 0x8000, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1487. PINGROUP(sdmmc1_cmd_pj1, SDMMC1, RSVD1, RSVD2, RSVD3, 0x8008, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1488. PINGROUP(sdmmc1_comp, SDMMC1, RSVD1, RSVD2, RSVD3, 0x8010, 0, N, -1, -1, -1, -1, -1, -1, -1),
  1489. PINGROUP(sdmmc1_dat3_pj5, SDMMC1, RSVD1, RSVD2, RSVD3, 0x8018, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1490. PINGROUP(sdmmc1_dat2_pj4, SDMMC1, RSVD1, RSVD2, RSVD3, 0x8020, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1491. PINGROUP(sdmmc1_dat1_pj3, SDMMC1, RSVD1, RSVD2, RSVD3, 0x8028, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1492. PINGROUP(sdmmc1_dat0_pj2, SDMMC1, RSVD1, RSVD2, RSVD3, 0x8030, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1493. PINGROUP(ufs0_rst_n_pae1, UFS0, RSVD1, RSVD2, RSVD3, 0x11000, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1494. PINGROUP(ufs0_ref_clk_pae0, UFS0, RSVD1, RSVD2, RSVD3, 0x11008, 0, Y, -1, 5, 6, -1, -1, 10, 12),
  1495. PINGROUP(spi3_miso_py1, SPI3, RSVD1, RSVD2, RSVD3, 0xD000, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1496. PINGROUP(spi1_cs0_pz6, SPI1, RSVD1, RSVD2, RSVD3, 0xD008, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1497. PINGROUP(spi3_cs0_py3, SPI3, RSVD1, RSVD2, RSVD3, 0xD010, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1498. PINGROUP(spi1_miso_pz4, SPI1, RSVD1, RSVD2, RSVD3, 0xD018, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1499. PINGROUP(spi3_cs1_py4, SPI3, RSVD1, RSVD2, RSVD3, 0xD020, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1500. PINGROUP(spi1_sck_pz3, SPI1, RSVD1, RSVD2, RSVD3, 0xD028, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1501. PINGROUP(spi3_sck_py0, SPI3, RSVD1, RSVD2, RSVD3, 0xD030, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1502. PINGROUP(spi1_cs1_pz7, SPI1, RSVD1, RSVD2, RSVD3, 0xD038, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1503. PINGROUP(spi1_mosi_pz5, SPI1, RSVD1, RSVD2, RSVD3, 0xD040, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1504. PINGROUP(spi3_mosi_py2, SPI3, RSVD1, RSVD2, RSVD3, 0xD048, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1505. PINGROUP(uart2_tx_px4, UARTB, RSVD1, RSVD2, RSVD3, 0xD050, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1506. PINGROUP(uart2_rx_px5, UARTB, RSVD1, RSVD2, RSVD3, 0xD058, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1507. PINGROUP(uart2_rts_px6, UARTB, RSVD1, RSVD2, RSVD3, 0xD060, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1508. PINGROUP(uart2_cts_px7, UARTB, RSVD1, RSVD2, RSVD3, 0xD068, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1509. PINGROUP(uart5_tx_py5, UARTE, RSVD1, RSVD2, RSVD3, 0xD070, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1510. PINGROUP(uart5_rx_py6, UARTE, RSVD1, RSVD2, RSVD3, 0xD078, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1511. PINGROUP(uart5_rts_py7, UARTE, RSVD1, RSVD2, RSVD3, 0xD080, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1512. PINGROUP(uart5_cts_pz0, UARTE, RSVD1, RSVD2, RSVD3, 0xD088, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1513. PINGROUP(gpu_pwr_req_px0, RSVD0, RSVD1, RSVD2, RSVD3, 0xD090, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1514. PINGROUP(gp_pwm3_px3, GP, RSVD1, RSVD2, RSVD3, 0xD098, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1515. PINGROUP(gp_pwm2_px2, GP, RSVD1, RSVD2, RSVD3, 0xD0A0, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1516. PINGROUP(cv_pwr_req_px1, RSVD0, RSVD1, RSVD2, RSVD3, 0xD0A8, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1517. PINGROUP(usb_vbus_en0_pz1, USB, RSVD1, RSVD2, RSVD3, 0xD0B0, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1518. PINGROUP(usb_vbus_en1_pz2, USB, RSVD1, RSVD2, RSVD3, 0xD0B8, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1519. PINGROUP(extperiph2_clk_pp1, EXTPERIPH2, RSVD1, RSVD2, RSVD3, 0x0000, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1520. PINGROUP(extperiph1_clk_pp0, EXTPERIPH1, RSVD1, RSVD2, RSVD3, 0x0008, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1521. PINGROUP(cam_i2c_sda_pp3, I2C3, VI0, RSVD2, VI1, 0x0010, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1522. PINGROUP(cam_i2c_scl_pp2, I2C3, VI0, VI0_ALT, VI1, 0x0018, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1523. PINGROUP(soc_gpio23_pp4, VI0, VI0_ALT, VI1, VI1_ALT, 0x0020, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1524. PINGROUP(soc_gpio24_pp5, VI0, SOC, VI1, VI1_ALT, 0x0028, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1525. PINGROUP(soc_gpio25_pp6, VI0, I2S5, VI1, DMIC1, 0x0030, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1526. PINGROUP(pwr_i2c_scl_pp7, I2C5, RSVD1, RSVD2, RSVD3, 0x0038, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1527. PINGROUP(pwr_i2c_sda_pq0, I2C5, RSVD1, RSVD2, RSVD3, 0x0040, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1528. PINGROUP(soc_gpio28_pq1, VI0, RSVD1, VI1, RSVD3, 0x0048, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1529. PINGROUP(soc_gpio29_pq2, RSVD0, NV, RSVD2, RSVD3, 0x0050, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1530. PINGROUP(soc_gpio30_pq3, RSVD0, WDT, RSVD2, RSVD3, 0x0058, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1531. PINGROUP(soc_gpio31_pq4, RSVD0, RSVD1, RSVD2, RSVD3, 0x0060, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1532. PINGROUP(soc_gpio32_pq5, RSVD0, EXTPERIPH3, DCB, RSVD3, 0x0068, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1533. PINGROUP(soc_gpio33_pq6, RSVD0, EXTPERIPH4, DCB, RSVD3, 0x0070, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1534. PINGROUP(soc_gpio35_pq7, RSVD0, I2S5, DMIC1, RSVD3, 0x0078, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1535. PINGROUP(soc_gpio37_pr0, GP, I2S5, DMIC4, DSPK1, 0x0080, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1536. PINGROUP(soc_gpio56_pr1, RSVD0, I2S5, DMIC4, DSPK1, 0x0088, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1537. PINGROUP(uart1_cts_pr5, UARTA, RSVD1, RSVD2, RSVD3, 0x0090, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1538. PINGROUP(uart1_rts_pr4, UARTA, RSVD1, RSVD2, RSVD3, 0x0098, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1539. PINGROUP(uart1_rx_pr3, UARTA, RSVD1, RSVD2, RSVD3, 0x00A0, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1540. PINGROUP(uart1_tx_pr2, UARTA, RSVD1, RSVD2, RSVD3, 0x00A8, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1541. PINGROUP(cpu_pwr_req_pi5, RSVD0, RSVD1, RSVD2, RSVD3, 0x4000, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1542. PINGROUP(uart4_cts_ph6, UARTD, RSVD1, I2S7, RSVD3, 0x4008, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1543. PINGROUP(uart4_rts_ph5, UARTD, SPI4, RSVD2, RSVD3, 0x4010, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1544. PINGROUP(uart4_rx_ph4, UARTD, RSVD1, I2S7, RSVD3, 0x4018, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1545. PINGROUP(uart4_tx_ph3, UARTD, SPI4, RSVD2, RSVD3, 0x4020, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1546. PINGROUP(gen1_i2c_scl_pi3, I2C1, RSVD1, RSVD2, RSVD3, 0x4028, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1547. PINGROUP(gen1_i2c_sda_pi4, I2C1, RSVD1, RSVD2, RSVD3, 0x4030, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1548. PINGROUP(soc_gpio20_pg7, RSVD0, SDMMC1, RSVD2, RSVD3, 0x4038, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1549. PINGROUP(soc_gpio21_ph0, RSVD0, GP, I2S7, RSVD3, 0x4040, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1550. PINGROUP(soc_gpio22_ph1, RSVD0, RSVD1, I2S7, RSVD3, 0x4048, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1551. PINGROUP(soc_gpio13_pg0, RSVD0, RSVD1, RSVD2, RSVD3, 0x4050, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1552. PINGROUP(soc_gpio14_pg1, RSVD0, SPI4, RSVD2, RSVD3, 0x4058, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1553. PINGROUP(soc_gpio15_pg2, RSVD0, SPI4, RSVD2, RSVD3, 0x4060, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1554. PINGROUP(soc_gpio16_pg3, RSVD0, SPI4, RSVD2, RSVD3, 0x4068, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1555. PINGROUP(soc_gpio17_pg4, RSVD0, CCLA, RSVD2, RSVD3, 0x4070, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1556. PINGROUP(soc_gpio18_pg5, RSVD0, RSVD1, RSVD2, RSVD3, 0x4078, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1557. PINGROUP(soc_gpio19_pg6, GP, RSVD1, RSVD2, RSVD3, 0x4080, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1558. PINGROUP(soc_gpio41_ph7, RSVD0, I2S2, RSVD2, RSVD3, 0x4088, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1559. PINGROUP(soc_gpio42_pi0, RSVD0, I2S2, RSVD2, RSVD3, 0x4090, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1560. PINGROUP(soc_gpio43_pi1, RSVD0, I2S2, RSVD2, RSVD3, 0x4098, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1561. PINGROUP(soc_gpio44_pi2, RSVD0, I2S2, RSVD2, RSVD3, 0x40A0, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1562. PINGROUP(soc_gpio06_ph2, RSVD0, RSVD1, RSVD2, RSVD3, 0x40A8, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1563. PINGROUP(soc_gpio07_pi6, GP, RSVD1, RSVD2, RSVD3, 0x40B0, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1564. PINGROUP(dap4_sclk_pa4, I2S4, RSVD1, RSVD2, RSVD3, 0x2000, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1565. PINGROUP(dap4_dout_pa5, I2S4, RSVD1, RSVD2, RSVD3, 0x2008, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1566. PINGROUP(dap4_din_pa6, I2S4, RSVD1, RSVD2, RSVD3, 0x2010, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1567. PINGROUP(dap4_fs_pa7, I2S4, RSVD1, RSVD2, RSVD3, 0x2018, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1568. PINGROUP(dap6_sclk_pa0, I2S6, RSVD1, RSVD2, RSVD3, 0x2020, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1569. PINGROUP(dap6_dout_pa1, I2S6, RSVD1, RSVD2, RSVD3, 0x2028, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1570. PINGROUP(dap6_din_pa2, I2S6, RSVD1, RSVD2, RSVD3, 0x2030, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1571. PINGROUP(dap6_fs_pa3, I2S6, RSVD1, RSVD2, RSVD3, 0x2038, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1572. PINGROUP(soc_gpio45_pad0, RSVD0, I2S1, RSVD2, RSVD3, 0x18000, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1573. PINGROUP(soc_gpio46_pad1, RSVD0, I2S1, RSVD2, RSVD3, 0x18008, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1574. PINGROUP(soc_gpio47_pad2, RSVD0, I2S1, RSVD2, RSVD3, 0x18010, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1575. PINGROUP(soc_gpio48_pad3, RSVD0, I2S1, RSVD2, RSVD3, 0x18018, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1576. PINGROUP(soc_gpio57_pac4, RSVD0, I2S8, RSVD2, SDMMC1, 0x18020, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1577. PINGROUP(soc_gpio58_pac5, RSVD0, I2S8, RSVD2, SDMMC1, 0x18028, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1578. PINGROUP(soc_gpio59_pac6, AUD, I2S8, RSVD2, RSVD3, 0x18030, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1579. PINGROUP(soc_gpio60_pac7, RSVD0, I2S8, NV, IGPU, 0x18038, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1580. PINGROUP(spi5_cs0_pac3, SPI5, I2S3, DMIC2, RSVD3, 0x18040, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1581. PINGROUP(spi5_miso_pac1, SPI5, I2S3, DSPK0, RSVD3, 0x18048, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1582. PINGROUP(spi5_mosi_pac2, SPI5, I2S3, DMIC2, RSVD3, 0x18050, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1583. PINGROUP(spi5_sck_pac0, SPI5, I2S3, DSPK0, RSVD3, 0x18058, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1584. };
  1585. static const struct tegra_pinctrl_soc_data tegra234_pinctrl = {
  1586. .pins = tegra234_pins,
  1587. .npins = ARRAY_SIZE(tegra234_pins),
  1588. .functions = tegra234_functions,
  1589. .nfunctions = ARRAY_SIZE(tegra234_functions),
  1590. .groups = tegra234_groups,
  1591. .ngroups = ARRAY_SIZE(tegra234_groups),
  1592. .hsm_in_mux = false,
  1593. .schmitt_in_mux = true,
  1594. .drvtype_in_mux = true,
  1595. .sfsel_in_mux = true,
  1596. };
  1597. static const struct pinctrl_pin_desc tegra234_aon_pins[] = {
  1598. PINCTRL_PIN(TEGRA_PIN_CAN0_DOUT_PAA0, "CAN0_DOUT_PAA0"),
  1599. PINCTRL_PIN(TEGRA_PIN_CAN0_DIN_PAA1, "CAN0_DIN_PAA1"),
  1600. PINCTRL_PIN(TEGRA_PIN_CAN1_DOUT_PAA2, "CAN1_DOUT_PAA2"),
  1601. PINCTRL_PIN(TEGRA_PIN_CAN1_DIN_PAA3, "CAN1_DIN_PAA3"),
  1602. PINCTRL_PIN(TEGRA_PIN_CAN0_STB_PAA4, "CAN0_STB_PAA4"),
  1603. PINCTRL_PIN(TEGRA_PIN_CAN0_EN_PAA5, "CAN0_EN_PAA5"),
  1604. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO49_PAA6, "SOC_GPIO49_PAA6"),
  1605. PINCTRL_PIN(TEGRA_PIN_CAN0_ERR_PAA7, "CAN0_ERR_PAA7"),
  1606. PINCTRL_PIN(TEGRA_PIN_CAN1_STB_PBB0, "CAN1_STB_PBB0"),
  1607. PINCTRL_PIN(TEGRA_PIN_CAN1_EN_PBB1, "CAN1_EN_PBB1"),
  1608. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO50_PBB2, "SOC_GPIO50_PBB2"),
  1609. PINCTRL_PIN(TEGRA_PIN_CAN1_ERR_PBB3, "CAN1_ERR_PBB3"),
  1610. PINCTRL_PIN(TEGRA_PIN_SPI2_SCK_PCC0, "SPI2_SCK_PCC0"),
  1611. PINCTRL_PIN(TEGRA_PIN_SPI2_MISO_PCC1, "SPI2_MISO_PCC1"),
  1612. PINCTRL_PIN(TEGRA_PIN_SPI2_MOSI_PCC2, "SPI2_MOSI_PCC2"),
  1613. PINCTRL_PIN(TEGRA_PIN_SPI2_CS0_PCC3, "SPI2_CS0_PCC3"),
  1614. PINCTRL_PIN(TEGRA_PIN_TOUCH_CLK_PCC4, "TOUCH_CLK_PCC4"),
  1615. PINCTRL_PIN(TEGRA_PIN_UART3_TX_PCC5, "UART3_TX_PCC5"),
  1616. PINCTRL_PIN(TEGRA_PIN_UART3_RX_PCC6, "UART3_RX_PCC6"),
  1617. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PCC7, "GEN2_I2C_SCL_PCC7"),
  1618. PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PDD0, "GEN2_I2C_SDA_PDD0"),
  1619. PINCTRL_PIN(TEGRA_PIN_GEN8_I2C_SCL_PDD1, "GEN8_I2C_SCL_PDD1"),
  1620. PINCTRL_PIN(TEGRA_PIN_GEN8_I2C_SDA_PDD2, "GEN8_I2C_SDA_PDD2"),
  1621. PINCTRL_PIN(TEGRA_PIN_SCE_ERROR_PEE0, "SCE_ERROR_PEE0"),
  1622. PINCTRL_PIN(TEGRA_PIN_VCOMP_ALERT_PEE1, "VCOMP_ALERT_PEE1"),
  1623. PINCTRL_PIN(TEGRA_PIN_AO_RETENTION_N_PEE2, "AO_RETENTION_N_PEE2"),
  1624. PINCTRL_PIN(TEGRA_PIN_BATT_OC_PEE3, "BATT_OC_PEE3"),
  1625. PINCTRL_PIN(TEGRA_PIN_POWER_ON_PEE4, "POWER_ON_PEE4"),
  1626. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO26_PEE5, "SOC_GPIO26_PEE5"),
  1627. PINCTRL_PIN(TEGRA_PIN_SOC_GPIO27_PEE6, "SOC_GPIO27_PEE6"),
  1628. PINCTRL_PIN(TEGRA_PIN_BOOTV_CTL_N_PEE7, "BOOTV_CTL_N_PEE7"),
  1629. PINCTRL_PIN(TEGRA_PIN_HDMI_CEC_PGG0, "HDMI_CEC_PGG0"),
  1630. };
  1631. /* AON drive pin groups */
  1632. #define drive_touch_clk_pcc4 DRV_PINGROUP_ENTRY_Y(0x2004, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1633. #define drive_uart3_rx_pcc6 DRV_PINGROUP_ENTRY_Y(0x200c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1634. #define drive_uart3_tx_pcc5 DRV_PINGROUP_ENTRY_Y(0x2014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1635. #define drive_gen8_i2c_sda_pdd2 DRV_PINGROUP_ENTRY_Y(0x201c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1636. #define drive_gen8_i2c_scl_pdd1 DRV_PINGROUP_ENTRY_Y(0x2024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1637. #define drive_spi2_mosi_pcc2 DRV_PINGROUP_ENTRY_Y(0x202c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1638. #define drive_gen2_i2c_scl_pcc7 DRV_PINGROUP_ENTRY_Y(0x2034, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1639. #define drive_spi2_cs0_pcc3 DRV_PINGROUP_ENTRY_Y(0x203c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1640. #define drive_gen2_i2c_sda_pdd0 DRV_PINGROUP_ENTRY_Y(0x2044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1641. #define drive_spi2_sck_pcc0 DRV_PINGROUP_ENTRY_Y(0x204c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1642. #define drive_spi2_miso_pcc1 DRV_PINGROUP_ENTRY_Y(0x2054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1643. #define drive_can1_dout_paa2 DRV_PINGROUP_ENTRY_Y(0x3004, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1644. #define drive_can1_din_paa3 DRV_PINGROUP_ENTRY_Y(0x300c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1645. #define drive_can0_dout_paa0 DRV_PINGROUP_ENTRY_Y(0x3014, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1646. #define drive_can0_din_paa1 DRV_PINGROUP_ENTRY_Y(0x301c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1647. #define drive_can0_stb_paa4 DRV_PINGROUP_ENTRY_Y(0x3024, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1648. #define drive_can0_en_paa5 DRV_PINGROUP_ENTRY_Y(0x302c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1649. #define drive_soc_gpio49_paa6 DRV_PINGROUP_ENTRY_Y(0x3034, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1650. #define drive_can0_err_paa7 DRV_PINGROUP_ENTRY_Y(0x303c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1651. #define drive_can1_stb_pbb0 DRV_PINGROUP_ENTRY_Y(0x3044, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1652. #define drive_can1_en_pbb1 DRV_PINGROUP_ENTRY_Y(0x304c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1653. #define drive_soc_gpio50_pbb2 DRV_PINGROUP_ENTRY_Y(0x3054, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1654. #define drive_can1_err_pbb3 DRV_PINGROUP_ENTRY_Y(0x305c, 28, 2, 30, 2, -1, -1, -1, -1, 0)
  1655. #define drive_sce_error_pee0 DRV_PINGROUP_ENTRY_Y(0x1014, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1656. #define drive_batt_oc_pee3 DRV_PINGROUP_ENTRY_Y(0x1024, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1657. #define drive_bootv_ctl_n_pee7 DRV_PINGROUP_ENTRY_Y(0x102c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1658. #define drive_power_on_pee4 DRV_PINGROUP_ENTRY_Y(0x103c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1659. #define drive_soc_gpio26_pee5 DRV_PINGROUP_ENTRY_Y(0x1044, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1660. #define drive_soc_gpio27_pee6 DRV_PINGROUP_ENTRY_Y(0x104c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1661. #define drive_ao_retention_n_pee2 DRV_PINGROUP_ENTRY_Y(0x1054, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1662. #define drive_vcomp_alert_pee1 DRV_PINGROUP_ENTRY_Y(0x105c, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1663. #define drive_hdmi_cec_pgg0 DRV_PINGROUP_ENTRY_Y(0x1064, 12, 5, 20, 5, -1, -1, -1, -1, 0)
  1664. static const struct tegra_pingroup tegra234_aon_groups[] = {
  1665. PINGROUP(touch_clk_pcc4, GP, TOUCH, RSVD2, RSVD3, 0x2000, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1666. PINGROUP(uart3_rx_pcc6, UARTC, UARTJ, RSVD2, RSVD3, 0x2008, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1667. PINGROUP(uart3_tx_pcc5, UARTC, UARTJ, RSVD2, RSVD3, 0x2010, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1668. PINGROUP(gen8_i2c_sda_pdd2, I2C8, RSVD1, RSVD2, RSVD3, 0x2018, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1669. PINGROUP(gen8_i2c_scl_pdd1, I2C8, RSVD1, RSVD2, RSVD3, 0x2020, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1670. PINGROUP(spi2_mosi_pcc2, SPI2, RSVD1, RSVD2, RSVD3, 0x2028, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1671. PINGROUP(gen2_i2c_scl_pcc7, I2C2, RSVD1, RSVD2, RSVD3, 0x2030, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1672. PINGROUP(spi2_cs0_pcc3, SPI2, RSVD1, RSVD2, RSVD3, 0x2038, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1673. PINGROUP(gen2_i2c_sda_pdd0, I2C2, RSVD1, RSVD2, RSVD3, 0x2040, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1674. PINGROUP(spi2_sck_pcc0, SPI2, RSVD1, RSVD2, RSVD3, 0x2048, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1675. PINGROUP(spi2_miso_pcc1, SPI2, RSVD1, RSVD2, RSVD3, 0x2050, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1676. PINGROUP(can1_dout_paa2, CAN1, RSVD1, RSVD2, RSVD3, 0x3000, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1677. PINGROUP(can1_din_paa3, CAN1, RSVD1, RSVD2, RSVD3, 0x3008, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1678. PINGROUP(can0_dout_paa0, CAN0, RSVD1, RSVD2, RSVD3, 0x3010, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1679. PINGROUP(can0_din_paa1, CAN0, RSVD1, RSVD2, RSVD3, 0x3018, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1680. PINGROUP(can0_stb_paa4, RSVD0, WDT, TSC, TSC_ALT, 0x3020, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1681. PINGROUP(can0_en_paa5, RSVD0, RSVD1, RSVD2, RSVD3, 0x3028, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1682. PINGROUP(soc_gpio49_paa6, RSVD0, RSVD1, RSVD2, RSVD3, 0x3030, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1683. PINGROUP(can0_err_paa7, RSVD0, TSC, RSVD2, TSC_ALT, 0x3038, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1684. PINGROUP(can1_stb_pbb0, RSVD0, DMIC3, DMIC5, RSVD3, 0x3040, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1685. PINGROUP(can1_en_pbb1, RSVD0, DMIC3, DMIC5, RSVD3, 0x3048, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1686. PINGROUP(soc_gpio50_pbb2, RSVD0, TSC, RSVD2, TSC_ALT, 0x3050, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1687. PINGROUP(can1_err_pbb3, RSVD0, TSC, RSVD2, TSC_ALT, 0x3058, 0, Y, -1, 5, 6, -1, 9, 10, 12),
  1688. PINGROUP(sce_error_pee0, SCE, RSVD1, RSVD2, RSVD3, 0x1010, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1689. PINGROUP(batt_oc_pee3, SOC, RSVD1, RSVD2, RSVD3, 0x1020, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1690. PINGROUP(bootv_ctl_n_pee7, RSVD0, RSVD1, RSVD2, RSVD3, 0x1028, 0, Y, -1, 7, 6, 8, -1, 10, 12),
  1691. PINGROUP(power_on_pee4, RSVD0, RSVD1, RSVD2, RSVD3, 0x1038, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1692. PINGROUP(soc_gpio26_pee5, RSVD0, RSVD1, RSVD2, RSVD3, 0x1040, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1693. PINGROUP(soc_gpio27_pee6, RSVD0, RSVD1, RSVD2, RSVD3, 0x1048, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1694. PINGROUP(ao_retention_n_pee2, GPIO, LED, RSVD2, ISTCTRL, 0x1050, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1695. PINGROUP(vcomp_alert_pee1, SOC, RSVD1, RSVD2, RSVD3, 0x1058, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1696. PINGROUP(hdmi_cec_pgg0, HDMI, RSVD1, RSVD2, RSVD3, 0x1060, 0, Y, 5, 7, 6, 8, -1, 10, 12),
  1697. };
  1698. static const struct tegra_pinctrl_soc_data tegra234_pinctrl_aon = {
  1699. .pins = tegra234_aon_pins,
  1700. .npins = ARRAY_SIZE(tegra234_aon_pins),
  1701. .functions = tegra234_functions,
  1702. .nfunctions = ARRAY_SIZE(tegra234_functions),
  1703. .groups = tegra234_aon_groups,
  1704. .ngroups = ARRAY_SIZE(tegra234_aon_groups),
  1705. .hsm_in_mux = false,
  1706. .schmitt_in_mux = true,
  1707. .drvtype_in_mux = true,
  1708. .sfsel_in_mux = true,
  1709. };
  1710. static int tegra234_pinctrl_probe(struct platform_device *pdev)
  1711. {
  1712. const struct tegra_pinctrl_soc_data *soc = device_get_match_data(&pdev->dev);
  1713. return tegra_pinctrl_probe(pdev, soc);
  1714. }
  1715. static const struct of_device_id tegra234_pinctrl_of_match[] = {
  1716. { .compatible = "nvidia,tegra234-pinmux", .data = &tegra234_pinctrl},
  1717. { .compatible = "nvidia,tegra234-pinmux-aon", .data = &tegra234_pinctrl_aon },
  1718. { }
  1719. };
  1720. MODULE_DEVICE_TABLE(of, tegra234_pinctrl_of_match);
  1721. static struct platform_driver tegra234_pinctrl_driver = {
  1722. .driver = {
  1723. .name = "tegra234-pinctrl",
  1724. .of_match_table = tegra234_pinctrl_of_match,
  1725. },
  1726. .probe = tegra234_pinctrl_probe,
  1727. };
  1728. static int __init tegra234_pinctrl_init(void)
  1729. {
  1730. return platform_driver_register(&tegra234_pinctrl_driver);
  1731. }
  1732. arch_initcall(tegra234_pinctrl_init);