18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Pinctrl data for the NVIDIA Tegra20 pinmux
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Author: Stephen Warren <swarren@nvidia.com>
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (c) 2011-2012, NVIDIA CORPORATION.  All rights reserved.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * Derived from code:
108c2ecf20Sopenharmony_ci * Copyright (C) 2010 Google, Inc.
118c2ecf20Sopenharmony_ci * Copyright (C) 2010 NVIDIA Corporation
128c2ecf20Sopenharmony_ci */
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#include <linux/clk-provider.h>
158c2ecf20Sopenharmony_ci#include <linux/init.h>
168c2ecf20Sopenharmony_ci#include <linux/of.h>
178c2ecf20Sopenharmony_ci#include <linux/platform_device.h>
188c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
198c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinmux.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#include "pinctrl-tegra.h"
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/*
248c2ecf20Sopenharmony_ci * Most pins affected by the pinmux can also be GPIOs. Define these first.
258c2ecf20Sopenharmony_ci * These must match how the GPIO driver names/numbers its pins.
268c2ecf20Sopenharmony_ci */
278c2ecf20Sopenharmony_ci#define _GPIO(offset)			(offset)
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_GP6_PA0		_GPIO(0)
308c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART3_CTS_N_PA1	_GPIO(1)
318c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP2_FS_PA2		_GPIO(2)
328c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP2_SCLK_PA3		_GPIO(3)
338c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP2_DIN_PA4		_GPIO(4)
348c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP2_DOUT_PA5		_GPIO(5)
358c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_CLK_PA6		_GPIO(6)
368c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_CMD_PA7		_GPIO(7)
378c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD17_PB0		_GPIO(8)
388c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD18_PB1		_GPIO(9)
398c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_PWR0_PB2		_GPIO(10)
408c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_PCLK_PB3		_GPIO(11)
418c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT3_PB4	_GPIO(12)
428c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT2_PB5	_GPIO(13)
438c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT1_PB6	_GPIO(14)
448c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT0_PB7	_GPIO(15)
458c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART3_RTS_N_PC0	_GPIO(16)
468c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_PWR1_PC1		_GPIO(17)
478c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART2_TXD_PC2		_GPIO(18)
488c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART2_RXD_PC3		_GPIO(19)
498c2ecf20Sopenharmony_ci#define TEGRA_PIN_GEN1_I2C_SCL_PC4	_GPIO(20)
508c2ecf20Sopenharmony_ci#define TEGRA_PIN_GEN1_I2C_SDA_PC5	_GPIO(21)
518c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_PWR2_PC6		_GPIO(22)
528c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_WP_N_PC7		_GPIO(23)
538c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT5_PD0	_GPIO(24)
548c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT4_PD1	_GPIO(25)
558c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_GP5_PD2		_GPIO(26)
568c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT6_PD3	_GPIO(27)
578c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT7_PD4	_GPIO(28)
588c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D1_PD5		_GPIO(29)
598c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_VSYNC_PD6		_GPIO(30)
608c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_HSYNC_PD7		_GPIO(31)
618c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D0_PE0		_GPIO(32)
628c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D1_PE1		_GPIO(33)
638c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D2_PE2		_GPIO(34)
648c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D3_PE3		_GPIO(35)
658c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D4_PE4		_GPIO(36)
668c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D5_PE5		_GPIO(37)
678c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D6_PE6		_GPIO(38)
688c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D7_PE7		_GPIO(39)
698c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D8_PF0		_GPIO(40)
708c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D9_PF1		_GPIO(41)
718c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D10_PF2		_GPIO(42)
728c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D11_PF3		_GPIO(43)
738c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D12_PF4		_GPIO(44)
748c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D13_PF5		_GPIO(45)
758c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D14_PF6		_GPIO(46)
768c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D15_PF7		_GPIO(47)
778c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD0_PG0		_GPIO(48)
788c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD1_PG1		_GPIO(49)
798c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD2_PG2		_GPIO(50)
808c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD3_PG3		_GPIO(51)
818c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD4_PG4		_GPIO(52)
828c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD5_PG5		_GPIO(53)
838c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD6_PG6		_GPIO(54)
848c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD7_PG7		_GPIO(55)
858c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD8_PH0		_GPIO(56)
868c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD9_PH1		_GPIO(57)
878c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD10_PH2		_GPIO(58)
888c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD11_PH3		_GPIO(59)
898c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD12_PH4		_GPIO(60)
908c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD13_PH5		_GPIO(61)
918c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD14_PH6		_GPIO(62)
928c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD15_PH7		_GPIO(63)
938c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_HIOW_N_PI0	_GPIO(64)
948c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_HIOR_N_PI1	_GPIO(65)
958c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS5_N_PI2		_GPIO(66)
968c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS6_N_PI3		_GPIO(67)
978c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_RST_N_PI4		_GPIO(68)
988c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_IORDY_PI5		_GPIO(69)
998c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS7_N_PI6		_GPIO(70)
1008c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_WAIT_PI7		_GPIO(71)
1018c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS0_N_PJ0		_GPIO(72)
1028c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_DE_PJ1		_GPIO(73)
1038c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS1_N_PJ2		_GPIO(74)
1048c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_HSYNC_PJ3		_GPIO(75)
1058c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_VSYNC_PJ4		_GPIO(76)
1068c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART2_CTS_N_PJ5	_GPIO(77)
1078c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART2_RTS_N_PJ6	_GPIO(78)
1088c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD16_PJ7		_GPIO(79)
1098c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_ADV_N_PK0		_GPIO(80)
1108c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CLK_PK1		_GPIO(81)
1118c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS4_N_PK2		_GPIO(82)
1128c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS2_N_PK3		_GPIO(83)
1138c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_CS3_N_PK4		_GPIO(84)
1148c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPDIF_OUT_PK5		_GPIO(85)
1158c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPDIF_IN_PK6		_GPIO(86)
1168c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD19_PK7		_GPIO(87)
1178c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D2_PL0		_GPIO(88)
1188c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D3_PL1		_GPIO(89)
1198c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D4_PL2		_GPIO(90)
1208c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D5_PL3		_GPIO(91)
1218c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D6_PL4		_GPIO(92)
1228c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D7_PL5		_GPIO(93)
1238c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D8_PL6		_GPIO(94)
1248c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D9_PL7		_GPIO(95)
1258c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D16_PM0		_GPIO(96)
1268c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D17_PM1		_GPIO(97)
1278c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D18_PM2		_GPIO(98)
1288c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D19_PM3		_GPIO(99)
1298c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D20_PM4		_GPIO(100)
1308c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D21_PM5		_GPIO(101)
1318c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D22_PM6		_GPIO(102)
1328c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_D23_PM7		_GPIO(103)
1338c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP1_FS_PN0		_GPIO(104)
1348c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP1_DIN_PN1		_GPIO(105)
1358c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP1_DOUT_PN2		_GPIO(106)
1368c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP1_SCLK_PN3		_GPIO(107)
1378c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_CS0_N_PN4		_GPIO(108)
1388c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_SDOUT_PN5		_GPIO(109)
1398c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_DC0_PN6		_GPIO(110)
1408c2ecf20Sopenharmony_ci#define TEGRA_PIN_HDMI_INT_N_PN7	_GPIO(111)
1418c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA7_PO0	_GPIO(112)
1428c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA0_PO1	_GPIO(113)
1438c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA1_PO2	_GPIO(114)
1448c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA2_PO3	_GPIO(115)
1458c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA3_PO4	_GPIO(116)
1468c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA4_PO5	_GPIO(117)
1478c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA5_PO6	_GPIO(118)
1488c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA6_PO7	_GPIO(119)
1498c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP3_FS_PP0		_GPIO(120)
1508c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP3_DIN_PP1		_GPIO(121)
1518c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP3_DOUT_PP2		_GPIO(122)
1528c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP3_SCLK_PP3		_GPIO(123)
1538c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP4_FS_PP4		_GPIO(124)
1548c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP4_DIN_PP5		_GPIO(125)
1558c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP4_DOUT_PP6		_GPIO(126)
1568c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP4_SCLK_PP7		_GPIO(127)
1578c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL0_PQ0		_GPIO(128)
1588c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL1_PQ1		_GPIO(129)
1598c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL2_PQ2		_GPIO(130)
1608c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL3_PQ3		_GPIO(131)
1618c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL4_PQ4		_GPIO(132)
1628c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL5_PQ5		_GPIO(133)
1638c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL6_PQ6		_GPIO(134)
1648c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_COL7_PQ7		_GPIO(135)
1658c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW0_PR0		_GPIO(136)
1668c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW1_PR1		_GPIO(137)
1678c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW2_PR2		_GPIO(138)
1688c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW3_PR3		_GPIO(139)
1698c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW4_PR4		_GPIO(140)
1708c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW5_PR5		_GPIO(141)
1718c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW6_PR6		_GPIO(142)
1728c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW7_PR7		_GPIO(143)
1738c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW8_PS0		_GPIO(144)
1748c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW9_PS1		_GPIO(145)
1758c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW10_PS2		_GPIO(146)
1768c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW11_PS3		_GPIO(147)
1778c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW12_PS4		_GPIO(148)
1788c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW13_PS5		_GPIO(149)
1798c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW14_PS6		_GPIO(150)
1808c2ecf20Sopenharmony_ci#define TEGRA_PIN_KB_ROW15_PS7		_GPIO(151)
1818c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_PCLK_PT0		_GPIO(152)
1828c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_MCLK_PT1		_GPIO(153)
1838c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D10_PT2		_GPIO(154)
1848c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D11_PT3		_GPIO(155)
1858c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_D0_PT4		_GPIO(156)
1868c2ecf20Sopenharmony_ci#define TEGRA_PIN_GEN2_I2C_SCL_PT5	_GPIO(157)
1878c2ecf20Sopenharmony_ci#define TEGRA_PIN_GEN2_I2C_SDA_PT6	_GPIO(158)
1888c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_DPD_PT7		_GPIO(159)
1898c2ecf20Sopenharmony_ci#define TEGRA_PIN_PU0			_GPIO(160)
1908c2ecf20Sopenharmony_ci#define TEGRA_PIN_PU1			_GPIO(161)
1918c2ecf20Sopenharmony_ci#define TEGRA_PIN_PU2			_GPIO(162)
1928c2ecf20Sopenharmony_ci#define TEGRA_PIN_PU3			_GPIO(163)
1938c2ecf20Sopenharmony_ci#define TEGRA_PIN_PU4			_GPIO(164)
1948c2ecf20Sopenharmony_ci#define TEGRA_PIN_PU5			_GPIO(165)
1958c2ecf20Sopenharmony_ci#define TEGRA_PIN_PU6			_GPIO(166)
1968c2ecf20Sopenharmony_ci#define TEGRA_PIN_JTAG_RTCK_PU7		_GPIO(167)
1978c2ecf20Sopenharmony_ci#define TEGRA_PIN_PV0			_GPIO(168)
1988c2ecf20Sopenharmony_ci#define TEGRA_PIN_PV1			_GPIO(169)
1998c2ecf20Sopenharmony_ci#define TEGRA_PIN_PV2			_GPIO(170)
2008c2ecf20Sopenharmony_ci#define TEGRA_PIN_PV3			_GPIO(171)
2018c2ecf20Sopenharmony_ci#define TEGRA_PIN_PV4			_GPIO(172)
2028c2ecf20Sopenharmony_ci#define TEGRA_PIN_PV5			_GPIO(173)
2038c2ecf20Sopenharmony_ci#define TEGRA_PIN_PV6			_GPIO(174)
2048c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_DC1_PV7		_GPIO(175)
2058c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_CS1_N_PW0		_GPIO(176)
2068c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_M1_PW1		_GPIO(177)
2078c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI2_CS1_N_PW2	_GPIO(178)
2088c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI2_CS2_N_PW3	_GPIO(179)
2098c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP_MCLK1_PW4		_GPIO(180)
2108c2ecf20Sopenharmony_ci#define TEGRA_PIN_DAP_MCLK2_PW5		_GPIO(181)
2118c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART3_TXD_PW6		_GPIO(182)
2128c2ecf20Sopenharmony_ci#define TEGRA_PIN_UART3_RXD_PW7		_GPIO(183)
2138c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI2_MOSI_PX0		_GPIO(184)
2148c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI2_MISO_PX1		_GPIO(185)
2158c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI2_SCK_PX2		_GPIO(186)
2168c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI2_CS0_N_PX3	_GPIO(187)
2178c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI1_MOSI_PX4		_GPIO(188)
2188c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI1_SCK_PX5		_GPIO(189)
2198c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI1_CS0_N_PX6	_GPIO(190)
2208c2ecf20Sopenharmony_ci#define TEGRA_PIN_SPI1_MISO_PX7		_GPIO(191)
2218c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_CLK_PY0		_GPIO(192)
2228c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_DIR_PY1		_GPIO(193)
2238c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_NXT_PY2		_GPIO(194)
2248c2ecf20Sopenharmony_ci#define TEGRA_PIN_ULPI_STP_PY3		_GPIO(195)
2258c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT3_PY4	_GPIO(196)
2268c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT2_PY5	_GPIO(197)
2278c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT1_PY6	_GPIO(198)
2288c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT0_PY7	_GPIO(199)
2298c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO1_CLK_PZ0		_GPIO(200)
2308c2ecf20Sopenharmony_ci#define TEGRA_PIN_SDIO1_CMD_PZ1		_GPIO(201)
2318c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_SDIN_PZ2		_GPIO(202)
2328c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_WR_N_PZ3		_GPIO(203)
2338c2ecf20Sopenharmony_ci#define TEGRA_PIN_LCD_SCK_PZ4		_GPIO(204)
2348c2ecf20Sopenharmony_ci#define TEGRA_PIN_SYS_CLK_REQ_PZ5	_GPIO(205)
2358c2ecf20Sopenharmony_ci#define TEGRA_PIN_PWR_I2C_SCL_PZ6	_GPIO(206)
2368c2ecf20Sopenharmony_ci#define TEGRA_PIN_PWR_I2C_SDA_PZ7	_GPIO(207)
2378c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD20_PAA0		_GPIO(208)
2388c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD21_PAA1		_GPIO(209)
2398c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD22_PAA2		_GPIO(210)
2408c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD23_PAA3		_GPIO(211)
2418c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD24_PAA4		_GPIO(212)
2428c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD25_PAA5		_GPIO(213)
2438c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD26_PAA6		_GPIO(214)
2448c2ecf20Sopenharmony_ci#define TEGRA_PIN_GMI_AD27_PAA7		_GPIO(215)
2458c2ecf20Sopenharmony_ci#define TEGRA_PIN_LED_BLINK_PBB0	_GPIO(216)
2468c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_GP0_PBB1		_GPIO(217)
2478c2ecf20Sopenharmony_ci#define TEGRA_PIN_CAM_I2C_SCL_PBB2	_GPIO(218)
2488c2ecf20Sopenharmony_ci#define TEGRA_PIN_CAM_I2C_SDA_PBB3	_GPIO(219)
2498c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_GP3_PBB4		_GPIO(220)
2508c2ecf20Sopenharmony_ci#define TEGRA_PIN_VI_GP4_PBB5		_GPIO(221)
2518c2ecf20Sopenharmony_ci#define TEGRA_PIN_PBB6			_GPIO(222)
2528c2ecf20Sopenharmony_ci#define TEGRA_PIN_PBB7			_GPIO(223)
2538c2ecf20Sopenharmony_ci
2548c2ecf20Sopenharmony_ci/* All non-GPIO pins follow */
2558c2ecf20Sopenharmony_ci#define NUM_GPIOS			(TEGRA_PIN_PBB7 + 1)
2568c2ecf20Sopenharmony_ci#define _PIN(offset)			(NUM_GPIOS + (offset))
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_ci#define TEGRA_PIN_CRT_HSYNC		_PIN(30)
2598c2ecf20Sopenharmony_ci#define TEGRA_PIN_CRT_VSYNC		_PIN(31)
2608c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDC_SCL		_PIN(32)
2618c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDC_SDA		_PIN(33)
2628c2ecf20Sopenharmony_ci#define TEGRA_PIN_OWC			_PIN(34)
2638c2ecf20Sopenharmony_ci#define TEGRA_PIN_CORE_PWR_REQ		_PIN(35)
2648c2ecf20Sopenharmony_ci#define TEGRA_PIN_CPU_PWR_REQ		_PIN(36)
2658c2ecf20Sopenharmony_ci#define TEGRA_PIN_PWR_INT_N		_PIN(37)
2668c2ecf20Sopenharmony_ci#define TEGRA_PIN_CLK_32_K_IN		_PIN(38)
2678c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_COMP_PD		_PIN(39)
2688c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_COMP_PU		_PIN(40)
2698c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A0		_PIN(41)
2708c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A1		_PIN(42)
2718c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A2		_PIN(43)
2728c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A3		_PIN(44)
2738c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A4		_PIN(45)
2748c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A5		_PIN(46)
2758c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A6		_PIN(47)
2768c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A7		_PIN(48)
2778c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A8		_PIN(49)
2788c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A9		_PIN(50)
2798c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A10		_PIN(51)
2808c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A11		_PIN(52)
2818c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A12		_PIN(53)
2828c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A13		_PIN(54)
2838c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_A14		_PIN(55)
2848c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_CAS_N		_PIN(56)
2858c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_BA0		_PIN(57)
2868c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_BA1		_PIN(58)
2878c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_BA2		_PIN(59)
2888c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS0P		_PIN(60)
2898c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS0N		_PIN(61)
2908c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS1P		_PIN(62)
2918c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS1N		_PIN(63)
2928c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS2P		_PIN(64)
2938c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS2N		_PIN(65)
2948c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS3P		_PIN(66)
2958c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQS3N		_PIN(67)
2968c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_CKE0		_PIN(68)
2978c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_CKE1		_PIN(69)
2988c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_CLK		_PIN(70)
2998c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_CLK_N		_PIN(71)
3008c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DM0		_PIN(72)
3018c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DM1		_PIN(73)
3028c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DM2		_PIN(74)
3038c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DM3		_PIN(75)
3048c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_ODT		_PIN(76)
3058c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE0		_PIN(77)
3068c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE1		_PIN(78)
3078c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE2		_PIN(79)
3088c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE3		_PIN(80)
3098c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_RAS_N		_PIN(81)
3108c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_WE_N		_PIN(82)
3118c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ0		_PIN(83)
3128c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ1		_PIN(84)
3138c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ2		_PIN(85)
3148c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ3		_PIN(86)
3158c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ4		_PIN(87)
3168c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ5		_PIN(88)
3178c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ6		_PIN(89)
3188c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ7		_PIN(90)
3198c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ8		_PIN(91)
3208c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ9		_PIN(92)
3218c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ10		_PIN(93)
3228c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ11		_PIN(94)
3238c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ12		_PIN(95)
3248c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ13		_PIN(96)
3258c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ14		_PIN(97)
3268c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ15		_PIN(98)
3278c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ16		_PIN(99)
3288c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ17		_PIN(100)
3298c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ18		_PIN(101)
3308c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ19		_PIN(102)
3318c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ20		_PIN(103)
3328c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ21		_PIN(104)
3338c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ22		_PIN(105)
3348c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ23		_PIN(106)
3358c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ24		_PIN(107)
3368c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ25		_PIN(108)
3378c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ26		_PIN(109)
3388c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ27		_PIN(110)
3398c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ28		_PIN(111)
3408c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ29		_PIN(112)
3418c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ30		_PIN(113)
3428c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_DQ31		_PIN(114)
3438c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_CS0_N		_PIN(115)
3448c2ecf20Sopenharmony_ci#define TEGRA_PIN_DDR_CS1_N		_PIN(116)
3458c2ecf20Sopenharmony_ci#define TEGRA_PIN_SYS_RESET		_PIN(117)
3468c2ecf20Sopenharmony_ci#define TEGRA_PIN_JTAG_TRST_N		_PIN(118)
3478c2ecf20Sopenharmony_ci#define TEGRA_PIN_JTAG_TDO		_PIN(119)
3488c2ecf20Sopenharmony_ci#define TEGRA_PIN_JTAG_TMS		_PIN(120)
3498c2ecf20Sopenharmony_ci#define TEGRA_PIN_JTAG_TCK		_PIN(121)
3508c2ecf20Sopenharmony_ci#define TEGRA_PIN_JTAG_TDI		_PIN(122)
3518c2ecf20Sopenharmony_ci#define TEGRA_PIN_TEST_MODE_EN		_PIN(123)
3528c2ecf20Sopenharmony_ci
3538c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc tegra20_pins[] = {
3548c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP6_PA0, "VI_GP6 PA0"),
3558c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_CTS_N_PA1, "UART3_CTS_N PA1"),
3568c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_FS_PA2, "DAP2_FS PA2"),
3578c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_SCLK_PA3, "DAP2_SCLK PA3"),
3588c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_DIN_PA4, "DAP2_DIN PA4"),
3598c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_DOUT_PA5, "DAP2_DOUT PA5"),
3608c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_CLK_PA6, "SDIO3_CLK PA6"),
3618c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_CMD_PA7, "SDIO3_CMD PA7"),
3628c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD17_PB0, "GMI_AD17 PB0"),
3638c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD18_PB1, "GMI_AD18 PB1"),
3648c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PWR0_PB2, "LCD_PWR0 PB2"),
3658c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PCLK_PB3, "LCD_PCLK PB3"),
3668c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT3_PB4, "SDIO3_DAT3 PB4"),
3678c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT2_PB5, "SDIO3_DAT2 PB5"),
3688c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT1_PB6, "SDIO3_DAT1 PB6"),
3698c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT0_PB7, "SDIO3_DAT0 PB7"),
3708c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_RTS_N_PC0, "UART3_RTS_N PC0"),
3718c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PWR1_PC1, "LCD_PWR1 PC1"),
3728c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_TXD_PC2, "UART2_TXD PC2"),
3738c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_RXD_PC3, "UART2_RXD PC3"),
3748c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PC4, "GEN1_I2C_SCL PC4"),
3758c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PC5, "GEN1_I2C_SDA PC5"),
3768c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PWR2_PC6, "LCD_PWR2 PC6"),
3778c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_WP_N_PC7, "GMI_WP_N PC7"),
3788c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT5_PD0, "SDIO3_DAT5 PD0"),
3798c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT4_PD1, "SDIO3_DAT4 PD1"),
3808c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP5_PD2, "VI_GP5 PD2"),
3818c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT6_PD3, "SDIO3_DAT6 PD3"),
3828c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT7_PD4, "SDIO3_DAT7 PD4"),
3838c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D1_PD5, "VI_D1 PD5"),
3848c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_VSYNC_PD6, "VI_VSYNC PD6"),
3858c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_HSYNC_PD7, "VI_HSYNC PD7"),
3868c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D0_PE0, "LCD_D0 PE0"),
3878c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D1_PE1, "LCD_D1 PE1"),
3888c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D2_PE2, "LCD_D2 PE2"),
3898c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D3_PE3, "LCD_D3 PE3"),
3908c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D4_PE4, "LCD_D4 PE4"),
3918c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D5_PE5, "LCD_D5 PE5"),
3928c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D6_PE6, "LCD_D6 PE6"),
3938c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D7_PE7, "LCD_D7 PE7"),
3948c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D8_PF0, "LCD_D8 PF0"),
3958c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D9_PF1, "LCD_D9 PF1"),
3968c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D10_PF2, "LCD_D10 PF2"),
3978c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D11_PF3, "LCD_D11 PF3"),
3988c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D12_PF4, "LCD_D12 PF4"),
3998c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D13_PF5, "LCD_D13 PF5"),
4008c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D14_PF6, "LCD_D14 PF6"),
4018c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D15_PF7, "LCD_D15 PF7"),
4028c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD0_PG0, "GMI_AD0 PG0"),
4038c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD1_PG1, "GMI_AD1 PG1"),
4048c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD2_PG2, "GMI_AD2 PG2"),
4058c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD3_PG3, "GMI_AD3 PG3"),
4068c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD4_PG4, "GMI_AD4 PG4"),
4078c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD5_PG5, "GMI_AD5 PG5"),
4088c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD6_PG6, "GMI_AD6 PG6"),
4098c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD7_PG7, "GMI_AD7 PG7"),
4108c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD8_PH0, "GMI_AD8 PH0"),
4118c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD9_PH1, "GMI_AD9 PH1"),
4128c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD10_PH2, "GMI_AD10 PH2"),
4138c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD11_PH3, "GMI_AD11 PH3"),
4148c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD12_PH4, "GMI_AD12 PH4"),
4158c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD13_PH5, "GMI_AD13 PH5"),
4168c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD14_PH6, "GMI_AD14 PH6"),
4178c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD15_PH7, "GMI_AD15 PH7"),
4188c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_HIOW_N_PI0, "GMI_HIOW_N PI0"),
4198c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_HIOR_N_PI1, "GMI_HIOR_N PI1"),
4208c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS5_N_PI2, "GMI_CS5_N PI2"),
4218c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS6_N_PI3, "GMI_CS6_N PI3"),
4228c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_RST_N_PI4, "GMI_RST_N PI4"),
4238c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_IORDY_PI5, "GMI_IORDY PI5"),
4248c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS7_N_PI6, "GMI_CS7_N PI6"),
4258c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_WAIT_PI7, "GMI_WAIT PI7"),
4268c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS0_N_PJ0, "GMI_CS0_N PJ0"),
4278c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_DE_PJ1, "LCD_DE PJ1"),
4288c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS1_N_PJ2, "GMI_CS1_N PJ2"),
4298c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_HSYNC_PJ3, "LCD_HSYNC PJ3"),
4308c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_VSYNC_PJ4, "LCD_VSYNC PJ4"),
4318c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_CTS_N_PJ5, "UART2_CTS_N PJ5"),
4328c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_RTS_N_PJ6, "UART2_RTS_N PJ6"),
4338c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD16_PJ7, "GMI_AD16 PJ7"),
4348c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_ADV_N_PK0, "GMI_ADV_N PK0"),
4358c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CLK_PK1, "GMI_CLK PK1"),
4368c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS4_N_PK2, "GMI_CS4_N PK2"),
4378c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS2_N_PK3, "GMI_CS2_N PK3"),
4388c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS3_N_PK4, "GMI_CS3_N PK4"),
4398c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPDIF_OUT_PK5, "SPDIF_OUT PK5"),
4408c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPDIF_IN_PK6, "SPDIF_IN PK6"),
4418c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD19_PK7, "GMI_AD19 PK7"),
4428c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D2_PL0, "VI_D2 PL0"),
4438c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D3_PL1, "VI_D3 PL1"),
4448c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D4_PL2, "VI_D4 PL2"),
4458c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D5_PL3, "VI_D5 PL3"),
4468c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D6_PL4, "VI_D6 PL4"),
4478c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D7_PL5, "VI_D7 PL5"),
4488c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D8_PL6, "VI_D8 PL6"),
4498c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D9_PL7, "VI_D9 PL7"),
4508c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D16_PM0, "LCD_D16 PM0"),
4518c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D17_PM1, "LCD_D17 PM1"),
4528c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D18_PM2, "LCD_D18 PM2"),
4538c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D19_PM3, "LCD_D19 PM3"),
4548c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D20_PM4, "LCD_D20 PM4"),
4558c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D21_PM5, "LCD_D21 PM5"),
4568c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D22_PM6, "LCD_D22 PM6"),
4578c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D23_PM7, "LCD_D23 PM7"),
4588c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_FS_PN0, "DAP1_FS PN0"),
4598c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_DIN_PN1, "DAP1_DIN PN1"),
4608c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_DOUT_PN2, "DAP1_DOUT PN2"),
4618c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_SCLK_PN3, "DAP1_SCLK PN3"),
4628c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_CS0_N_PN4, "LCD_CS0_N PN4"),
4638c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_SDOUT_PN5, "LCD_SDOUT PN5"),
4648c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_DC0_PN6, "LCD_DC0 PN6"),
4658c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_HDMI_INT_N_PN7, "HDMI_INT_N PN7"),
4668c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA7_PO0, "ULPI_DATA7 PO0"),
4678c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA0_PO1, "ULPI_DATA0 PO1"),
4688c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA1_PO2, "ULPI_DATA1 PO2"),
4698c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA2_PO3, "ULPI_DATA2 PO3"),
4708c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA3_PO4, "ULPI_DATA3 PO4"),
4718c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA4_PO5, "ULPI_DATA4 PO5"),
4728c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA5_PO6, "ULPI_DATA5 PO6"),
4738c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA6_PO7, "ULPI_DATA6 PO7"),
4748c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_FS_PP0, "DAP3_FS PP0"),
4758c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_DIN_PP1, "DAP3_DIN PP1"),
4768c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_DOUT_PP2, "DAP3_DOUT PP2"),
4778c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_SCLK_PP3, "DAP3_SCLK PP3"),
4788c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PP4, "DAP4_FS PP4"),
4798c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PP5, "DAP4_DIN PP5"),
4808c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PP6, "DAP4_DOUT PP6"),
4818c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PP7, "DAP4_SCLK PP7"),
4828c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL0_PQ0, "KB_COL0 PQ0"),
4838c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL1_PQ1, "KB_COL1 PQ1"),
4848c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL2_PQ2, "KB_COL2 PQ2"),
4858c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL3_PQ3, "KB_COL3 PQ3"),
4868c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL4_PQ4, "KB_COL4 PQ4"),
4878c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL5_PQ5, "KB_COL5 PQ5"),
4888c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL6_PQ6, "KB_COL6 PQ6"),
4898c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL7_PQ7, "KB_COL7 PQ7"),
4908c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW0_PR0, "KB_ROW0 PR0"),
4918c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW1_PR1, "KB_ROW1 PR1"),
4928c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW2_PR2, "KB_ROW2 PR2"),
4938c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW3_PR3, "KB_ROW3 PR3"),
4948c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW4_PR4, "KB_ROW4 PR4"),
4958c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW5_PR5, "KB_ROW5 PR5"),
4968c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW6_PR6, "KB_ROW6 PR6"),
4978c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW7_PR7, "KB_ROW7 PR7"),
4988c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW8_PS0, "KB_ROW8 PS0"),
4998c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW9_PS1, "KB_ROW9 PS1"),
5008c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW10_PS2, "KB_ROW10 PS2"),
5018c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW11_PS3, "KB_ROW11 PS3"),
5028c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW12_PS4, "KB_ROW12 PS4"),
5038c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW13_PS5, "KB_ROW13 PS5"),
5048c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW14_PS6, "KB_ROW14 PS6"),
5058c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW15_PS7, "KB_ROW15 PS7"),
5068c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_PCLK_PT0, "VI_PCLK PT0"),
5078c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_MCLK_PT1, "VI_MCLK PT1"),
5088c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D10_PT2, "VD_D10 PT2"),
5098c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D11_PT3, "VI_D11 PT3"),
5108c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D0_PT4, "VI_D0 PT4"),
5118c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PT5, "GEN2_I2C_SCL PT5"),
5128c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PT6, "GEN2_I2C_SDA PT6"),
5138c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_DPD_PT7, "GMI_DPD PT7"),
5148c2ecf20Sopenharmony_ci	/* PU0..6: GPIO only */
5158c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU0, "PU0"),
5168c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU1, "PU1"),
5178c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU2, "PU2"),
5188c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU3, "PU3"),
5198c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU4, "PU4"),
5208c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU5, "PU5"),
5218c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU6, "PU6"),
5228c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_RTCK_PU7, "JTAG_RTCK PU7"),
5238c2ecf20Sopenharmony_ci	/* PV0..1: GPIO only */
5248c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV0, "PV0"),
5258c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV1, "PV1"),
5268c2ecf20Sopenharmony_ci	/* PV2..3: Balls are named after GPIO not function */
5278c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV2, "PV2"),
5288c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV3, "PV3"),
5298c2ecf20Sopenharmony_ci	/* PV4..6: GPIO only */
5308c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV4, "PV4"),
5318c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV5, "PV5"),
5328c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV6, "PV6"),
5338c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_DC1_PV7, "LCD_DC1 PV7"),
5348c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_CS1_N_PW0, "LCD_CS1_N PW0"),
5358c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_M1_PW1, "LCD_M1 PW1"),
5368c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_CS1_N_PW2, "SPI2_CS1_N PW2"),
5378c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_CS2_N_PW3, "SPI2_CS2_N PW3"),
5388c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP_MCLK1_PW4, "DAP_MCLK1 PW4"),
5398c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP_MCLK2_PW5, "DAP_MCLK2 PW5"),
5408c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_TXD_PW6, "UART3_TXD PW6"),
5418c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_RXD_PW7, "UART3_RXD PW7"),
5428c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_MOSI_PX0, "SPI2_MOSI PX0"),
5438c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_MISO_PX1, "SPI2_MISO PX1"),
5448c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_SCK_PX2, "SPI2_SCK PX2"),
5458c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_CS0_N_PX3, "SPI2_CS0_N PX3"),
5468c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_MOSI_PX4, "SPI1_MOSI PX4"),
5478c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_SCK_PX5, "SPI1_SCK PX5"),
5488c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_CS0_N_PX6, "SPI1_CS0_N PX6"),
5498c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_MISO_PX7, "SPI1_MISO PX7"),
5508c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_CLK_PY0, "ULPI_CLK PY0"),
5518c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DIR_PY1, "ULPI_DIR PY1"),
5528c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_NXT_PY2, "ULPI_NXT PY2"),
5538c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_STP_PY3, "ULPI_STP PY3"),
5548c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT3_PY4, "SDIO1_DAT3 PY4"),
5558c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT2_PY5, "SDIO1_DAT2 PY5"),
5568c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT1_PY6, "SDIO1_DAT1 PY6"),
5578c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT0_PY7, "SDIO1_DAT0 PY7"),
5588c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_CLK_PZ0, "SDIO1_CLK PZ0"),
5598c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_CMD_PZ1, "SDIO1_CMD PZ1"),
5608c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_SDIN_PZ2, "LCD_SDIN PZ2"),
5618c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_WR_N_PZ3, "LCD_WR_N PZ3"),
5628c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_SCK_PZ4, "LCD_SCK PZ4"),
5638c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SYS_CLK_REQ_PZ5, "SYS_CLK_REQ PZ5"),
5648c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PZ6, "PWR_I2C_SCL PZ6"),
5658c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PZ7, "PWR_I2C_SDA PZ7"),
5668c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD20_PAA0, "GMI_AD20 PAA0"),
5678c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD21_PAA1, "GMI_AD21 PAA1"),
5688c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD22_PAA2, "GMI_AD22 PAA2"),
5698c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD23_PAA3, "GMI_AD23 PAA3"),
5708c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD24_PAA4, "GMI_AD24 PAA4"),
5718c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD25_PAA5, "GMI_AD25 PAA5"),
5728c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD26_PAA6, "GMI_AD26 PAA6"),
5738c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD27_PAA7, "GMI_AD27 PAA7"),
5748c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LED_BLINK_PBB0, "LED_BLINK PBB0"),
5758c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP0_PBB1, "VI_GP0 PBB1"),
5768c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PBB2, "CAM_I2C_SCL PBB2"),
5778c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PBB3, "CAM_I2C_SDA PBB3"),
5788c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP3_PBB4, "VI_GP3 PBB4"),
5798c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP4_PBB5, "VI_GP4 PBB5"),
5808c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PBB6, "PBB6"),
5818c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PBB7, "PBB7"),
5828c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CRT_HSYNC, "CRT_HSYNC"),
5838c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CRT_VSYNC, "CRT_VSYNC"),
5848c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDC_SCL, "DDC_SCL"),
5858c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDC_SDA, "DDC_SDA"),
5868c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_OWC, "OWC"),
5878c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CORE_PWR_REQ, "CORE_PWR_REQ"),
5888c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ, "CPU_PWR_REQ"),
5898c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PWR_INT_N, "PWR_INT_N"),
5908c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CLK_32_K_IN, "CLK_32_K_IN"),
5918c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_COMP_PD, "DDR_COMP_PD"),
5928c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_COMP_PU, "DDR_COMP_PU"),
5938c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A0, "DDR_A0"),
5948c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A1, "DDR_A1"),
5958c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A2, "DDR_A2"),
5968c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A3, "DDR_A3"),
5978c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A4, "DDR_A4"),
5988c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A5, "DDR_A5"),
5998c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A6, "DDR_A6"),
6008c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A7, "DDR_A7"),
6018c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A8, "DDR_A8"),
6028c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A9, "DDR_A9"),
6038c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A10, "DDR_A10"),
6048c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A11, "DDR_A11"),
6058c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A12, "DDR_A12"),
6068c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A13, "DDR_A13"),
6078c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A14, "DDR_A14"),
6088c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CAS_N, "DDR_CAS_N"),
6098c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_BA0, "DDR_BA0"),
6108c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_BA1, "DDR_BA1"),
6118c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_BA2, "DDR_BA2"),
6128c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS0P, "DDR_DQS0P"),
6138c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS0N, "DDR_DQS0N"),
6148c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS1P, "DDR_DQS1P"),
6158c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS1N, "DDR_DQS1N"),
6168c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS2P, "DDR_DQS2P"),
6178c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS2N, "DDR_DQS2N"),
6188c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS3P, "DDR_DQS3P"),
6198c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS3N, "DDR_DQS3N"),
6208c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CKE0, "DDR_CKE0"),
6218c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CKE1, "DDR_CKE1"),
6228c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CLK, "DDR_CLK"),
6238c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CLK_N, "DDR_CLK_N"),
6248c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM0, "DDR_DM0"),
6258c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM1, "DDR_DM1"),
6268c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM2, "DDR_DM2"),
6278c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM3, "DDR_DM3"),
6288c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_ODT, "DDR_ODT"),
6298c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE0, "DDR_QUSE0"),
6308c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE1, "DDR_QUSE1"),
6318c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE2, "DDR_QUSE2"),
6328c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE3, "DDR_QUSE3"),
6338c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_RAS_N, "DDR_RAS_N"),
6348c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_WE_N, "DDR_WE_N"),
6358c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ0, "DDR_DQ0"),
6368c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ1, "DDR_DQ1"),
6378c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ2, "DDR_DQ2"),
6388c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ3, "DDR_DQ3"),
6398c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ4, "DDR_DQ4"),
6408c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ5, "DDR_DQ5"),
6418c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ6, "DDR_DQ6"),
6428c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ7, "DDR_DQ7"),
6438c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ8, "DDR_DQ8"),
6448c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ9, "DDR_DQ9"),
6458c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ10, "DDR_DQ10"),
6468c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ11, "DDR_DQ11"),
6478c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ12, "DDR_DQ12"),
6488c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ13, "DDR_DQ13"),
6498c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ14, "DDR_DQ14"),
6508c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ15, "DDR_DQ15"),
6518c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ16, "DDR_DQ16"),
6528c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ17, "DDR_DQ17"),
6538c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ18, "DDR_DQ18"),
6548c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ19, "DDR_DQ19"),
6558c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ20, "DDR_DQ20"),
6568c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ21, "DDR_DQ21"),
6578c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ22, "DDR_DQ22"),
6588c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ23, "DDR_DQ23"),
6598c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ24, "DDR_DQ24"),
6608c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ25, "DDR_DQ25"),
6618c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ26, "DDR_DQ26"),
6628c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ27, "DDR_DQ27"),
6638c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ28, "DDR_DQ28"),
6648c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ29, "DDR_DQ29"),
6658c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ30, "DDR_DQ30"),
6668c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ31, "DDR_DQ31"),
6678c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CS0_N, "DDR_CS0_N"),
6688c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CS1_N, "DDR_CS1_N"),
6698c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SYS_RESET, "SYS_RESET"),
6708c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TRST_N, "JTAG_TRST_N"),
6718c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TDO, "JTAG_TDO"),
6728c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TMS, "JTAG_TMS"),
6738c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TCK, "JTAG_TCK"),
6748c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TDI, "JTAG_TDI"),
6758c2ecf20Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_TEST_MODE_EN, "TEST_MODE_EN"),
6768c2ecf20Sopenharmony_ci};
6778c2ecf20Sopenharmony_ci
6788c2ecf20Sopenharmony_cistatic const unsigned ata_pins[] = {
6798c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS6_N_PI3,
6808c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS7_N_PI6,
6818c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_RST_N_PI4,
6828c2ecf20Sopenharmony_ci};
6838c2ecf20Sopenharmony_ci
6848c2ecf20Sopenharmony_cistatic const unsigned atb_pins[] = {
6858c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS5_N_PI2,
6868c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_DPD_PT7,
6878c2ecf20Sopenharmony_ci};
6888c2ecf20Sopenharmony_ci
6898c2ecf20Sopenharmony_cistatic const unsigned atc_pins[] = {
6908c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_IORDY_PI5,
6918c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_WAIT_PI7,
6928c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_ADV_N_PK0,
6938c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CLK_PK1,
6948c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS2_N_PK3,
6958c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS3_N_PK4,
6968c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS4_N_PK2,
6978c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD0_PG0,
6988c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD1_PG1,
6998c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD2_PG2,
7008c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD3_PG3,
7018c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD4_PG4,
7028c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD5_PG5,
7038c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD6_PG6,
7048c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD7_PG7,
7058c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_HIOW_N_PI0,
7068c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_HIOR_N_PI1,
7078c2ecf20Sopenharmony_ci};
7088c2ecf20Sopenharmony_ci
7098c2ecf20Sopenharmony_cistatic const unsigned atd_pins[] = {
7108c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD8_PH0,
7118c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD9_PH1,
7128c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD10_PH2,
7138c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD11_PH3,
7148c2ecf20Sopenharmony_ci};
7158c2ecf20Sopenharmony_ci
7168c2ecf20Sopenharmony_cistatic const unsigned ate_pins[] = {
7178c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD12_PH4,
7188c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD13_PH5,
7198c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD14_PH6,
7208c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD15_PH7,
7218c2ecf20Sopenharmony_ci};
7228c2ecf20Sopenharmony_ci
7238c2ecf20Sopenharmony_cistatic const unsigned cdev1_pins[] = {
7248c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP_MCLK1_PW4,
7258c2ecf20Sopenharmony_ci};
7268c2ecf20Sopenharmony_ci
7278c2ecf20Sopenharmony_cistatic const unsigned cdev2_pins[] = {
7288c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP_MCLK2_PW5,
7298c2ecf20Sopenharmony_ci};
7308c2ecf20Sopenharmony_ci
7318c2ecf20Sopenharmony_cistatic const unsigned crtp_pins[] = {
7328c2ecf20Sopenharmony_ci	TEGRA_PIN_CRT_HSYNC,
7338c2ecf20Sopenharmony_ci	TEGRA_PIN_CRT_VSYNC,
7348c2ecf20Sopenharmony_ci};
7358c2ecf20Sopenharmony_ci
7368c2ecf20Sopenharmony_cistatic const unsigned csus_pins[] = {
7378c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_MCLK_PT1,
7388c2ecf20Sopenharmony_ci};
7398c2ecf20Sopenharmony_ci
7408c2ecf20Sopenharmony_cistatic const unsigned dap1_pins[] = {
7418c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_FS_PN0,
7428c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_DIN_PN1,
7438c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_DOUT_PN2,
7448c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_SCLK_PN3,
7458c2ecf20Sopenharmony_ci};
7468c2ecf20Sopenharmony_ci
7478c2ecf20Sopenharmony_cistatic const unsigned dap2_pins[] = {
7488c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_FS_PA2,
7498c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_SCLK_PA3,
7508c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_DIN_PA4,
7518c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_DOUT_PA5,
7528c2ecf20Sopenharmony_ci};
7538c2ecf20Sopenharmony_ci
7548c2ecf20Sopenharmony_cistatic const unsigned dap3_pins[] = {
7558c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_FS_PP0,
7568c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_DIN_PP1,
7578c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_DOUT_PP2,
7588c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_SCLK_PP3,
7598c2ecf20Sopenharmony_ci};
7608c2ecf20Sopenharmony_ci
7618c2ecf20Sopenharmony_cistatic const unsigned dap4_pins[] = {
7628c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_FS_PP4,
7638c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_DIN_PP5,
7648c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_DOUT_PP6,
7658c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_SCLK_PP7,
7668c2ecf20Sopenharmony_ci};
7678c2ecf20Sopenharmony_ci
7688c2ecf20Sopenharmony_cistatic const unsigned ddc_pins[] = {
7698c2ecf20Sopenharmony_ci	TEGRA_PIN_DDC_SCL,
7708c2ecf20Sopenharmony_ci	TEGRA_PIN_DDC_SDA,
7718c2ecf20Sopenharmony_ci};
7728c2ecf20Sopenharmony_ci
7738c2ecf20Sopenharmony_cistatic const unsigned dta_pins[] = {
7748c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D0_PT4,
7758c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D1_PD5,
7768c2ecf20Sopenharmony_ci};
7778c2ecf20Sopenharmony_ci
7788c2ecf20Sopenharmony_cistatic const unsigned dtb_pins[] = {
7798c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D10_PT2,
7808c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D11_PT3,
7818c2ecf20Sopenharmony_ci};
7828c2ecf20Sopenharmony_ci
7838c2ecf20Sopenharmony_cistatic const unsigned dtc_pins[] = {
7848c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_HSYNC_PD7,
7858c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_VSYNC_PD6,
7868c2ecf20Sopenharmony_ci};
7878c2ecf20Sopenharmony_ci
7888c2ecf20Sopenharmony_cistatic const unsigned dtd_pins[] = {
7898c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_PCLK_PT0,
7908c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D2_PL0,
7918c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D3_PL1,
7928c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D4_PL2,
7938c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D5_PL3,
7948c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D6_PL4,
7958c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D7_PL5,
7968c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D8_PL6,
7978c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D9_PL7,
7988c2ecf20Sopenharmony_ci};
7998c2ecf20Sopenharmony_ci
8008c2ecf20Sopenharmony_cistatic const unsigned dte_pins[] = {
8018c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP0_PBB1,
8028c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP3_PBB4,
8038c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP4_PBB5,
8048c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP5_PD2,
8058c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP6_PA0,
8068c2ecf20Sopenharmony_ci};
8078c2ecf20Sopenharmony_ci
8088c2ecf20Sopenharmony_cistatic const unsigned dtf_pins[] = {
8098c2ecf20Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SCL_PBB2,
8108c2ecf20Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SDA_PBB3,
8118c2ecf20Sopenharmony_ci};
8128c2ecf20Sopenharmony_ci
8138c2ecf20Sopenharmony_cistatic const unsigned gma_pins[] = {
8148c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD20_PAA0,
8158c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD21_PAA1,
8168c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD22_PAA2,
8178c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD23_PAA3,
8188c2ecf20Sopenharmony_ci};
8198c2ecf20Sopenharmony_ci
8208c2ecf20Sopenharmony_cistatic const unsigned gmb_pins[] = {
8218c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_WP_N_PC7,
8228c2ecf20Sopenharmony_ci};
8238c2ecf20Sopenharmony_ci
8248c2ecf20Sopenharmony_cistatic const unsigned gmc_pins[] = {
8258c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD16_PJ7,
8268c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD17_PB0,
8278c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD18_PB1,
8288c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD19_PK7,
8298c2ecf20Sopenharmony_ci};
8308c2ecf20Sopenharmony_ci
8318c2ecf20Sopenharmony_cistatic const unsigned gmd_pins[] = {
8328c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS0_N_PJ0,
8338c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS1_N_PJ2,
8348c2ecf20Sopenharmony_ci};
8358c2ecf20Sopenharmony_ci
8368c2ecf20Sopenharmony_cistatic const unsigned gme_pins[] = {
8378c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD24_PAA4,
8388c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD25_PAA5,
8398c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD26_PAA6,
8408c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD27_PAA7,
8418c2ecf20Sopenharmony_ci};
8428c2ecf20Sopenharmony_ci
8438c2ecf20Sopenharmony_cistatic const unsigned gpu_pins[] = {
8448c2ecf20Sopenharmony_ci	TEGRA_PIN_PU0,
8458c2ecf20Sopenharmony_ci	TEGRA_PIN_PU1,
8468c2ecf20Sopenharmony_ci	TEGRA_PIN_PU2,
8478c2ecf20Sopenharmony_ci	TEGRA_PIN_PU3,
8488c2ecf20Sopenharmony_ci	TEGRA_PIN_PU4,
8498c2ecf20Sopenharmony_ci	TEGRA_PIN_PU5,
8508c2ecf20Sopenharmony_ci	TEGRA_PIN_PU6,
8518c2ecf20Sopenharmony_ci};
8528c2ecf20Sopenharmony_ci
8538c2ecf20Sopenharmony_cistatic const unsigned gpu7_pins[] = {
8548c2ecf20Sopenharmony_ci	TEGRA_PIN_JTAG_RTCK_PU7,
8558c2ecf20Sopenharmony_ci};
8568c2ecf20Sopenharmony_ci
8578c2ecf20Sopenharmony_cistatic const unsigned gpv_pins[] = {
8588c2ecf20Sopenharmony_ci	TEGRA_PIN_PV4,
8598c2ecf20Sopenharmony_ci	TEGRA_PIN_PV5,
8608c2ecf20Sopenharmony_ci	TEGRA_PIN_PV6,
8618c2ecf20Sopenharmony_ci};
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_cistatic const unsigned hdint_pins[] = {
8648c2ecf20Sopenharmony_ci	TEGRA_PIN_HDMI_INT_N_PN7,
8658c2ecf20Sopenharmony_ci};
8668c2ecf20Sopenharmony_ci
8678c2ecf20Sopenharmony_cistatic const unsigned i2cp_pins[] = {
8688c2ecf20Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SCL_PZ6,
8698c2ecf20Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SDA_PZ7,
8708c2ecf20Sopenharmony_ci};
8718c2ecf20Sopenharmony_ci
8728c2ecf20Sopenharmony_cistatic const unsigned irrx_pins[] = {
8738c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_RTS_N_PJ6,
8748c2ecf20Sopenharmony_ci};
8758c2ecf20Sopenharmony_ci
8768c2ecf20Sopenharmony_cistatic const unsigned irtx_pins[] = {
8778c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_CTS_N_PJ5,
8788c2ecf20Sopenharmony_ci};
8798c2ecf20Sopenharmony_ci
8808c2ecf20Sopenharmony_cistatic const unsigned kbca_pins[] = {
8818c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW0_PR0,
8828c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW1_PR1,
8838c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW2_PR2,
8848c2ecf20Sopenharmony_ci};
8858c2ecf20Sopenharmony_ci
8868c2ecf20Sopenharmony_cistatic const unsigned kbcb_pins[] = {
8878c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW7_PR7,
8888c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW8_PS0,
8898c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW9_PS1,
8908c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW10_PS2,
8918c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW11_PS3,
8928c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW12_PS4,
8938c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW13_PS5,
8948c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW14_PS6,
8958c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW15_PS7,
8968c2ecf20Sopenharmony_ci};
8978c2ecf20Sopenharmony_ci
8988c2ecf20Sopenharmony_cistatic const unsigned kbcc_pins[] = {
8998c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL0_PQ0,
9008c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL1_PQ1,
9018c2ecf20Sopenharmony_ci};
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_cistatic const unsigned kbcd_pins[] = {
9048c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW3_PR3,
9058c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW4_PR4,
9068c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW5_PR5,
9078c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW6_PR6,
9088c2ecf20Sopenharmony_ci};
9098c2ecf20Sopenharmony_ci
9108c2ecf20Sopenharmony_cistatic const unsigned kbce_pins[] = {
9118c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL7_PQ7,
9128c2ecf20Sopenharmony_ci};
9138c2ecf20Sopenharmony_ci
9148c2ecf20Sopenharmony_cistatic const unsigned kbcf_pins[] = {
9158c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL2_PQ2,
9168c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL3_PQ3,
9178c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL4_PQ4,
9188c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL5_PQ5,
9198c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL6_PQ6,
9208c2ecf20Sopenharmony_ci};
9218c2ecf20Sopenharmony_ci
9228c2ecf20Sopenharmony_cistatic const unsigned lcsn_pins[] = {
9238c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_CS0_N_PN4,
9248c2ecf20Sopenharmony_ci};
9258c2ecf20Sopenharmony_ci
9268c2ecf20Sopenharmony_cistatic const unsigned ld0_pins[] = {
9278c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D0_PE0,
9288c2ecf20Sopenharmony_ci};
9298c2ecf20Sopenharmony_ci
9308c2ecf20Sopenharmony_cistatic const unsigned ld1_pins[] = {
9318c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D1_PE1,
9328c2ecf20Sopenharmony_ci};
9338c2ecf20Sopenharmony_ci
9348c2ecf20Sopenharmony_cistatic const unsigned ld2_pins[] = {
9358c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D2_PE2,
9368c2ecf20Sopenharmony_ci};
9378c2ecf20Sopenharmony_ci
9388c2ecf20Sopenharmony_cistatic const unsigned ld3_pins[] = {
9398c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D3_PE3,
9408c2ecf20Sopenharmony_ci};
9418c2ecf20Sopenharmony_ci
9428c2ecf20Sopenharmony_cistatic const unsigned ld4_pins[] = {
9438c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D4_PE4,
9448c2ecf20Sopenharmony_ci};
9458c2ecf20Sopenharmony_ci
9468c2ecf20Sopenharmony_cistatic const unsigned ld5_pins[] = {
9478c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D5_PE5,
9488c2ecf20Sopenharmony_ci};
9498c2ecf20Sopenharmony_ci
9508c2ecf20Sopenharmony_cistatic const unsigned ld6_pins[] = {
9518c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D6_PE6,
9528c2ecf20Sopenharmony_ci};
9538c2ecf20Sopenharmony_ci
9548c2ecf20Sopenharmony_cistatic const unsigned ld7_pins[] = {
9558c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D7_PE7,
9568c2ecf20Sopenharmony_ci};
9578c2ecf20Sopenharmony_ci
9588c2ecf20Sopenharmony_cistatic const unsigned ld8_pins[] = {
9598c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D8_PF0,
9608c2ecf20Sopenharmony_ci};
9618c2ecf20Sopenharmony_ci
9628c2ecf20Sopenharmony_cistatic const unsigned ld9_pins[] = {
9638c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D9_PF1,
9648c2ecf20Sopenharmony_ci};
9658c2ecf20Sopenharmony_ci
9668c2ecf20Sopenharmony_cistatic const unsigned ld10_pins[] = {
9678c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D10_PF2,
9688c2ecf20Sopenharmony_ci};
9698c2ecf20Sopenharmony_ci
9708c2ecf20Sopenharmony_cistatic const unsigned ld11_pins[] = {
9718c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D11_PF3,
9728c2ecf20Sopenharmony_ci};
9738c2ecf20Sopenharmony_ci
9748c2ecf20Sopenharmony_cistatic const unsigned ld12_pins[] = {
9758c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D12_PF4,
9768c2ecf20Sopenharmony_ci};
9778c2ecf20Sopenharmony_ci
9788c2ecf20Sopenharmony_cistatic const unsigned ld13_pins[] = {
9798c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D13_PF5,
9808c2ecf20Sopenharmony_ci};
9818c2ecf20Sopenharmony_ci
9828c2ecf20Sopenharmony_cistatic const unsigned ld14_pins[] = {
9838c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D14_PF6,
9848c2ecf20Sopenharmony_ci};
9858c2ecf20Sopenharmony_ci
9868c2ecf20Sopenharmony_cistatic const unsigned ld15_pins[] = {
9878c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D15_PF7,
9888c2ecf20Sopenharmony_ci};
9898c2ecf20Sopenharmony_ci
9908c2ecf20Sopenharmony_cistatic const unsigned ld16_pins[] = {
9918c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D16_PM0,
9928c2ecf20Sopenharmony_ci};
9938c2ecf20Sopenharmony_ci
9948c2ecf20Sopenharmony_cistatic const unsigned ld17_pins[] = {
9958c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D17_PM1,
9968c2ecf20Sopenharmony_ci};
9978c2ecf20Sopenharmony_ci
9988c2ecf20Sopenharmony_cistatic const unsigned ldc_pins[] = {
9998c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DC0_PN6,
10008c2ecf20Sopenharmony_ci};
10018c2ecf20Sopenharmony_ci
10028c2ecf20Sopenharmony_cistatic const unsigned ldi_pins[] = {
10038c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D22_PM6,
10048c2ecf20Sopenharmony_ci};
10058c2ecf20Sopenharmony_ci
10068c2ecf20Sopenharmony_cistatic const unsigned lhp0_pins[] = {
10078c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D21_PM5,
10088c2ecf20Sopenharmony_ci};
10098c2ecf20Sopenharmony_ci
10108c2ecf20Sopenharmony_cistatic const unsigned lhp1_pins[] = {
10118c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D18_PM2,
10128c2ecf20Sopenharmony_ci};
10138c2ecf20Sopenharmony_ci
10148c2ecf20Sopenharmony_cistatic const unsigned lhp2_pins[] = {
10158c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D19_PM3,
10168c2ecf20Sopenharmony_ci};
10178c2ecf20Sopenharmony_ci
10188c2ecf20Sopenharmony_cistatic const unsigned lhs_pins[] = {
10198c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_HSYNC_PJ3,
10208c2ecf20Sopenharmony_ci};
10218c2ecf20Sopenharmony_ci
10228c2ecf20Sopenharmony_cistatic const unsigned lm0_pins[] = {
10238c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_CS1_N_PW0,
10248c2ecf20Sopenharmony_ci};
10258c2ecf20Sopenharmony_ci
10268c2ecf20Sopenharmony_cistatic const unsigned lm1_pins[] = {
10278c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_M1_PW1,
10288c2ecf20Sopenharmony_ci};
10298c2ecf20Sopenharmony_ci
10308c2ecf20Sopenharmony_cistatic const unsigned lpp_pins[] = {
10318c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D23_PM7,
10328c2ecf20Sopenharmony_ci};
10338c2ecf20Sopenharmony_ci
10348c2ecf20Sopenharmony_cistatic const unsigned lpw0_pins[] = {
10358c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR0_PB2,
10368c2ecf20Sopenharmony_ci};
10378c2ecf20Sopenharmony_ci
10388c2ecf20Sopenharmony_cistatic const unsigned lpw1_pins[] = {
10398c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR1_PC1,
10408c2ecf20Sopenharmony_ci};
10418c2ecf20Sopenharmony_ci
10428c2ecf20Sopenharmony_cistatic const unsigned lpw2_pins[] = {
10438c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR2_PC6,
10448c2ecf20Sopenharmony_ci};
10458c2ecf20Sopenharmony_ci
10468c2ecf20Sopenharmony_cistatic const unsigned lsc0_pins[] = {
10478c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PCLK_PB3,
10488c2ecf20Sopenharmony_ci};
10498c2ecf20Sopenharmony_ci
10508c2ecf20Sopenharmony_cistatic const unsigned lsc1_pins[] = {
10518c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_WR_N_PZ3,
10528c2ecf20Sopenharmony_ci};
10538c2ecf20Sopenharmony_ci
10548c2ecf20Sopenharmony_cistatic const unsigned lsck_pins[] = {
10558c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SCK_PZ4,
10568c2ecf20Sopenharmony_ci};
10578c2ecf20Sopenharmony_ci
10588c2ecf20Sopenharmony_cistatic const unsigned lsda_pins[] = {
10598c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SDOUT_PN5,
10608c2ecf20Sopenharmony_ci};
10618c2ecf20Sopenharmony_ci
10628c2ecf20Sopenharmony_cistatic const unsigned lsdi_pins[] = {
10638c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SDIN_PZ2,
10648c2ecf20Sopenharmony_ci};
10658c2ecf20Sopenharmony_ci
10668c2ecf20Sopenharmony_cistatic const unsigned lspi_pins[] = {
10678c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DE_PJ1,
10688c2ecf20Sopenharmony_ci};
10698c2ecf20Sopenharmony_ci
10708c2ecf20Sopenharmony_cistatic const unsigned lvp0_pins[] = {
10718c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DC1_PV7,
10728c2ecf20Sopenharmony_ci};
10738c2ecf20Sopenharmony_ci
10748c2ecf20Sopenharmony_cistatic const unsigned lvp1_pins[] = {
10758c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D20_PM4,
10768c2ecf20Sopenharmony_ci};
10778c2ecf20Sopenharmony_ci
10788c2ecf20Sopenharmony_cistatic const unsigned lvs_pins[] = {
10798c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_VSYNC_PJ4,
10808c2ecf20Sopenharmony_ci};
10818c2ecf20Sopenharmony_ci
10828c2ecf20Sopenharmony_cistatic const unsigned ls_pins[] = {
10838c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR0_PB2,
10848c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR1_PC1,
10858c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR2_PC6,
10868c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SDIN_PZ2,
10878c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SDOUT_PN5,
10888c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_WR_N_PZ3,
10898c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_CS0_N_PN4,
10908c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DC0_PN6,
10918c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SCK_PZ4,
10928c2ecf20Sopenharmony_ci};
10938c2ecf20Sopenharmony_ci
10948c2ecf20Sopenharmony_cistatic const unsigned lc_pins[] = {
10958c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PCLK_PB3,
10968c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DE_PJ1,
10978c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_HSYNC_PJ3,
10988c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_VSYNC_PJ4,
10998c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_CS1_N_PW0,
11008c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_M1_PW1,
11018c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DC1_PV7,
11028c2ecf20Sopenharmony_ci	TEGRA_PIN_HDMI_INT_N_PN7,
11038c2ecf20Sopenharmony_ci};
11048c2ecf20Sopenharmony_ci
11058c2ecf20Sopenharmony_cistatic const unsigned ld17_0_pins[] = {
11068c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D0_PE0,
11078c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D1_PE1,
11088c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D2_PE2,
11098c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D3_PE3,
11108c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D4_PE4,
11118c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D5_PE5,
11128c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D6_PE6,
11138c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D7_PE7,
11148c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D8_PF0,
11158c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D9_PF1,
11168c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D10_PF2,
11178c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D11_PF3,
11188c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D12_PF4,
11198c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D13_PF5,
11208c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D14_PF6,
11218c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D15_PF7,
11228c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D16_PM0,
11238c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D17_PM1,
11248c2ecf20Sopenharmony_ci};
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_cistatic const unsigned ld19_18_pins[] = {
11278c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D18_PM2,
11288c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D19_PM3,
11298c2ecf20Sopenharmony_ci};
11308c2ecf20Sopenharmony_ci
11318c2ecf20Sopenharmony_cistatic const unsigned ld21_20_pins[] = {
11328c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D20_PM4,
11338c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D21_PM5,
11348c2ecf20Sopenharmony_ci};
11358c2ecf20Sopenharmony_ci
11368c2ecf20Sopenharmony_cistatic const unsigned ld23_22_pins[] = {
11378c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D22_PM6,
11388c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D23_PM7,
11398c2ecf20Sopenharmony_ci};
11408c2ecf20Sopenharmony_ci
11418c2ecf20Sopenharmony_cistatic const unsigned owc_pins[] = {
11428c2ecf20Sopenharmony_ci	TEGRA_PIN_OWC,
11438c2ecf20Sopenharmony_ci};
11448c2ecf20Sopenharmony_ci
11458c2ecf20Sopenharmony_cistatic const unsigned pmc_pins[] = {
11468c2ecf20Sopenharmony_ci	TEGRA_PIN_LED_BLINK_PBB0,
11478c2ecf20Sopenharmony_ci	TEGRA_PIN_SYS_CLK_REQ_PZ5,
11488c2ecf20Sopenharmony_ci	TEGRA_PIN_CORE_PWR_REQ,
11498c2ecf20Sopenharmony_ci	TEGRA_PIN_CPU_PWR_REQ,
11508c2ecf20Sopenharmony_ci	TEGRA_PIN_PWR_INT_N,
11518c2ecf20Sopenharmony_ci};
11528c2ecf20Sopenharmony_ci
11538c2ecf20Sopenharmony_cistatic const unsigned pta_pins[] = {
11548c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SCL_PT5,
11558c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SDA_PT6,
11568c2ecf20Sopenharmony_ci};
11578c2ecf20Sopenharmony_ci
11588c2ecf20Sopenharmony_cistatic const unsigned rm_pins[] = {
11598c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SCL_PC4,
11608c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SDA_PC5,
11618c2ecf20Sopenharmony_ci};
11628c2ecf20Sopenharmony_ci
11638c2ecf20Sopenharmony_cistatic const unsigned sdb_pins[] = {
11648c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_CMD_PA7,
11658c2ecf20Sopenharmony_ci};
11668c2ecf20Sopenharmony_ci
11678c2ecf20Sopenharmony_cistatic const unsigned sdc_pins[] = {
11688c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT0_PB7,
11698c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT1_PB6,
11708c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT2_PB5,
11718c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT3_PB4,
11728c2ecf20Sopenharmony_ci};
11738c2ecf20Sopenharmony_ci
11748c2ecf20Sopenharmony_cistatic const unsigned sdd_pins[] = {
11758c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_CLK_PA6,
11768c2ecf20Sopenharmony_ci};
11778c2ecf20Sopenharmony_ci
11788c2ecf20Sopenharmony_cistatic const unsigned sdio1_pins[] = {
11798c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_CLK_PZ0,
11808c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_CMD_PZ1,
11818c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT0_PY7,
11828c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT1_PY6,
11838c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT2_PY5,
11848c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT3_PY4,
11858c2ecf20Sopenharmony_ci};
11868c2ecf20Sopenharmony_ci
11878c2ecf20Sopenharmony_cistatic const unsigned slxa_pins[] = {
11888c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT4_PD1,
11898c2ecf20Sopenharmony_ci};
11908c2ecf20Sopenharmony_ci
11918c2ecf20Sopenharmony_cistatic const unsigned slxc_pins[] = {
11928c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT6_PD3,
11938c2ecf20Sopenharmony_ci};
11948c2ecf20Sopenharmony_ci
11958c2ecf20Sopenharmony_cistatic const unsigned slxd_pins[] = {
11968c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT7_PD4,
11978c2ecf20Sopenharmony_ci};
11988c2ecf20Sopenharmony_ci
11998c2ecf20Sopenharmony_cistatic const unsigned slxk_pins[] = {
12008c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT5_PD0,
12018c2ecf20Sopenharmony_ci};
12028c2ecf20Sopenharmony_ci
12038c2ecf20Sopenharmony_cistatic const unsigned spdi_pins[] = {
12048c2ecf20Sopenharmony_ci	TEGRA_PIN_SPDIF_IN_PK6,
12058c2ecf20Sopenharmony_ci};
12068c2ecf20Sopenharmony_ci
12078c2ecf20Sopenharmony_cistatic const unsigned spdo_pins[] = {
12088c2ecf20Sopenharmony_ci	TEGRA_PIN_SPDIF_OUT_PK5,
12098c2ecf20Sopenharmony_ci};
12108c2ecf20Sopenharmony_ci
12118c2ecf20Sopenharmony_cistatic const unsigned spia_pins[] = {
12128c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_MOSI_PX0,
12138c2ecf20Sopenharmony_ci};
12148c2ecf20Sopenharmony_ci
12158c2ecf20Sopenharmony_cistatic const unsigned spib_pins[] = {
12168c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_MISO_PX1,
12178c2ecf20Sopenharmony_ci};
12188c2ecf20Sopenharmony_ci
12198c2ecf20Sopenharmony_cistatic const unsigned spic_pins[] = {
12208c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_CS0_N_PX3,
12218c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_SCK_PX2,
12228c2ecf20Sopenharmony_ci};
12238c2ecf20Sopenharmony_ci
12248c2ecf20Sopenharmony_cistatic const unsigned spid_pins[] = {
12258c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_MOSI_PX4,
12268c2ecf20Sopenharmony_ci};
12278c2ecf20Sopenharmony_ci
12288c2ecf20Sopenharmony_cistatic const unsigned spie_pins[] = {
12298c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_CS0_N_PX6,
12308c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_SCK_PX5,
12318c2ecf20Sopenharmony_ci};
12328c2ecf20Sopenharmony_ci
12338c2ecf20Sopenharmony_cistatic const unsigned spif_pins[] = {
12348c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_MISO_PX7,
12358c2ecf20Sopenharmony_ci};
12368c2ecf20Sopenharmony_ci
12378c2ecf20Sopenharmony_cistatic const unsigned spig_pins[] = {
12388c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_CS1_N_PW2,
12398c2ecf20Sopenharmony_ci};
12408c2ecf20Sopenharmony_ci
12418c2ecf20Sopenharmony_cistatic const unsigned spih_pins[] = {
12428c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_CS2_N_PW3,
12438c2ecf20Sopenharmony_ci};
12448c2ecf20Sopenharmony_ci
12458c2ecf20Sopenharmony_cistatic const unsigned uaa_pins[] = {
12468c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA0_PO1,
12478c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA1_PO2,
12488c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA2_PO3,
12498c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA3_PO4,
12508c2ecf20Sopenharmony_ci};
12518c2ecf20Sopenharmony_ci
12528c2ecf20Sopenharmony_cistatic const unsigned uab_pins[] = {
12538c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA4_PO5,
12548c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA5_PO6,
12558c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA6_PO7,
12568c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA7_PO0,
12578c2ecf20Sopenharmony_ci};
12588c2ecf20Sopenharmony_ci
12598c2ecf20Sopenharmony_cistatic const unsigned uac_pins[] = {
12608c2ecf20Sopenharmony_ci	TEGRA_PIN_PV0,
12618c2ecf20Sopenharmony_ci	TEGRA_PIN_PV1,
12628c2ecf20Sopenharmony_ci	TEGRA_PIN_PV2,
12638c2ecf20Sopenharmony_ci	TEGRA_PIN_PV3,
12648c2ecf20Sopenharmony_ci};
12658c2ecf20Sopenharmony_ci
12668c2ecf20Sopenharmony_cistatic const unsigned ck32_pins[] = {
12678c2ecf20Sopenharmony_ci	TEGRA_PIN_CLK_32_K_IN,
12688c2ecf20Sopenharmony_ci};
12698c2ecf20Sopenharmony_ci
12708c2ecf20Sopenharmony_cistatic const unsigned uad_pins[] = {
12718c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_RXD_PC3,
12728c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_TXD_PC2,
12738c2ecf20Sopenharmony_ci};
12748c2ecf20Sopenharmony_ci
12758c2ecf20Sopenharmony_cistatic const unsigned uca_pins[] = {
12768c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_RXD_PW7,
12778c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_TXD_PW6,
12788c2ecf20Sopenharmony_ci};
12798c2ecf20Sopenharmony_ci
12808c2ecf20Sopenharmony_cistatic const unsigned ucb_pins[] = {
12818c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_CTS_N_PA1,
12828c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_RTS_N_PC0,
12838c2ecf20Sopenharmony_ci};
12848c2ecf20Sopenharmony_ci
12858c2ecf20Sopenharmony_cistatic const unsigned uda_pins[] = {
12868c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_CLK_PY0,
12878c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DIR_PY1,
12888c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_NXT_PY2,
12898c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_STP_PY3,
12908c2ecf20Sopenharmony_ci};
12918c2ecf20Sopenharmony_ci
12928c2ecf20Sopenharmony_cistatic const unsigned ddrc_pins[] = {
12938c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_COMP_PD,
12948c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_COMP_PU,
12958c2ecf20Sopenharmony_ci};
12968c2ecf20Sopenharmony_ci
12978c2ecf20Sopenharmony_cistatic const unsigned pmca_pins[] = {
12988c2ecf20Sopenharmony_ci	TEGRA_PIN_LED_BLINK_PBB0,
12998c2ecf20Sopenharmony_ci};
13008c2ecf20Sopenharmony_ci
13018c2ecf20Sopenharmony_cistatic const unsigned pmcb_pins[] = {
13028c2ecf20Sopenharmony_ci	TEGRA_PIN_SYS_CLK_REQ_PZ5,
13038c2ecf20Sopenharmony_ci};
13048c2ecf20Sopenharmony_ci
13058c2ecf20Sopenharmony_cistatic const unsigned pmcc_pins[] = {
13068c2ecf20Sopenharmony_ci	TEGRA_PIN_CORE_PWR_REQ,
13078c2ecf20Sopenharmony_ci};
13088c2ecf20Sopenharmony_ci
13098c2ecf20Sopenharmony_cistatic const unsigned pmcd_pins[] = {
13108c2ecf20Sopenharmony_ci	TEGRA_PIN_CPU_PWR_REQ,
13118c2ecf20Sopenharmony_ci};
13128c2ecf20Sopenharmony_ci
13138c2ecf20Sopenharmony_cistatic const unsigned pmce_pins[] = {
13148c2ecf20Sopenharmony_ci	TEGRA_PIN_PWR_INT_N,
13158c2ecf20Sopenharmony_ci};
13168c2ecf20Sopenharmony_ci
13178c2ecf20Sopenharmony_cistatic const unsigned xm2c_pins[] = {
13188c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A0,
13198c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A1,
13208c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A2,
13218c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A3,
13228c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A4,
13238c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A5,
13248c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A6,
13258c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A7,
13268c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A8,
13278c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A9,
13288c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A10,
13298c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A11,
13308c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A12,
13318c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A13,
13328c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A14,
13338c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CAS_N,
13348c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_BA0,
13358c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_BA1,
13368c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_BA2,
13378c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS0P,
13388c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS0N,
13398c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS1P,
13408c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS1N,
13418c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS2P,
13428c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS2N,
13438c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS3P,
13448c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS3N,
13458c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CS0_N,
13468c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CS1_N,
13478c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CKE0,
13488c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CKE1,
13498c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CLK,
13508c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CLK_N,
13518c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM0,
13528c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM1,
13538c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM2,
13548c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM3,
13558c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_ODT,
13568c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_RAS_N,
13578c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_WE_N,
13588c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE0,
13598c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE1,
13608c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE2,
13618c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE3,
13628c2ecf20Sopenharmony_ci};
13638c2ecf20Sopenharmony_ci
13648c2ecf20Sopenharmony_cistatic const unsigned xm2d_pins[] = {
13658c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ0,
13668c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ1,
13678c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ2,
13688c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ3,
13698c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ4,
13708c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ5,
13718c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ6,
13728c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ7,
13738c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ8,
13748c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ9,
13758c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ10,
13768c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ11,
13778c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ12,
13788c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ13,
13798c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ14,
13808c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ15,
13818c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ16,
13828c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ17,
13838c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ18,
13848c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ19,
13858c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ20,
13868c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ21,
13878c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ22,
13888c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ23,
13898c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ24,
13908c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ25,
13918c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ26,
13928c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ27,
13938c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ28,
13948c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ29,
13958c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ30,
13968c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ31,
13978c2ecf20Sopenharmony_ci};
13988c2ecf20Sopenharmony_ci
13998c2ecf20Sopenharmony_cistatic const unsigned drive_ao1_pins[] = {
14008c2ecf20Sopenharmony_ci	TEGRA_PIN_SYS_RESET,
14018c2ecf20Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SCL_PZ6,
14028c2ecf20Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SDA_PZ7,
14038c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW0_PR0,
14048c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW1_PR1,
14058c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW2_PR2,
14068c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW3_PR3,
14078c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW4_PR4,
14088c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW5_PR5,
14098c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW6_PR6,
14108c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW7_PR7,
14118c2ecf20Sopenharmony_ci};
14128c2ecf20Sopenharmony_ci
14138c2ecf20Sopenharmony_cistatic const unsigned drive_ao2_pins[] = {
14148c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW8_PS0,
14158c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW9_PS1,
14168c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW10_PS2,
14178c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW11_PS3,
14188c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW12_PS4,
14198c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW13_PS5,
14208c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW14_PS6,
14218c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_ROW15_PS7,
14228c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL0_PQ0,
14238c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL1_PQ1,
14248c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL2_PQ2,
14258c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL3_PQ3,
14268c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL4_PQ4,
14278c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL5_PQ5,
14288c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL6_PQ6,
14298c2ecf20Sopenharmony_ci	TEGRA_PIN_KB_COL7_PQ7,
14308c2ecf20Sopenharmony_ci	TEGRA_PIN_LED_BLINK_PBB0,
14318c2ecf20Sopenharmony_ci	TEGRA_PIN_SYS_CLK_REQ_PZ5,
14328c2ecf20Sopenharmony_ci	TEGRA_PIN_CORE_PWR_REQ,
14338c2ecf20Sopenharmony_ci	TEGRA_PIN_CPU_PWR_REQ,
14348c2ecf20Sopenharmony_ci	TEGRA_PIN_PWR_INT_N,
14358c2ecf20Sopenharmony_ci	TEGRA_PIN_CLK_32_K_IN,
14368c2ecf20Sopenharmony_ci};
14378c2ecf20Sopenharmony_ci
14388c2ecf20Sopenharmony_cistatic const unsigned drive_at1_pins[] = {
14398c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_IORDY_PI5,
14408c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD8_PH0,
14418c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD9_PH1,
14428c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD10_PH2,
14438c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD11_PH3,
14448c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD12_PH4,
14458c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD13_PH5,
14468c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD14_PH6,
14478c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD15_PH7,
14488c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS7_N_PI6,
14498c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_DPD_PT7,
14508c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SCL_PT5,
14518c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SDA_PT6,
14528c2ecf20Sopenharmony_ci};
14538c2ecf20Sopenharmony_ci
14548c2ecf20Sopenharmony_cistatic const unsigned drive_at2_pins[] = {
14558c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_WAIT_PI7,
14568c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_ADV_N_PK0,
14578c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CLK_PK1,
14588c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS6_N_PI3,
14598c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS5_N_PI2,
14608c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS4_N_PK2,
14618c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS3_N_PK4,
14628c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS2_N_PK3,
14638c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD0_PG0,
14648c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD1_PG1,
14658c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD2_PG2,
14668c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD3_PG3,
14678c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD4_PG4,
14688c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD5_PG5,
14698c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD6_PG6,
14708c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD7_PG7,
14718c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_HIOW_N_PI0,
14728c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_HIOR_N_PI1,
14738c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_RST_N_PI4,
14748c2ecf20Sopenharmony_ci};
14758c2ecf20Sopenharmony_ci
14768c2ecf20Sopenharmony_cistatic const unsigned drive_cdev1_pins[] = {
14778c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP_MCLK1_PW4,
14788c2ecf20Sopenharmony_ci};
14798c2ecf20Sopenharmony_ci
14808c2ecf20Sopenharmony_cistatic const unsigned drive_cdev2_pins[] = {
14818c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP_MCLK2_PW5,
14828c2ecf20Sopenharmony_ci};
14838c2ecf20Sopenharmony_ci
14848c2ecf20Sopenharmony_cistatic const unsigned drive_csus_pins[] = {
14858c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_MCLK_PT1,
14868c2ecf20Sopenharmony_ci};
14878c2ecf20Sopenharmony_ci
14888c2ecf20Sopenharmony_cistatic const unsigned drive_dap1_pins[] = {
14898c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_FS_PN0,
14908c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_DIN_PN1,
14918c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_DOUT_PN2,
14928c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP1_SCLK_PN3,
14938c2ecf20Sopenharmony_ci	TEGRA_PIN_SPDIF_OUT_PK5,
14948c2ecf20Sopenharmony_ci	TEGRA_PIN_SPDIF_IN_PK6,
14958c2ecf20Sopenharmony_ci};
14968c2ecf20Sopenharmony_ci
14978c2ecf20Sopenharmony_cistatic const unsigned drive_dap2_pins[] = {
14988c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_FS_PA2,
14998c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_SCLK_PA3,
15008c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_DIN_PA4,
15018c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP2_DOUT_PA5,
15028c2ecf20Sopenharmony_ci};
15038c2ecf20Sopenharmony_ci
15048c2ecf20Sopenharmony_cistatic const unsigned drive_dap3_pins[] = {
15058c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_FS_PP0,
15068c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_DIN_PP1,
15078c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_DOUT_PP2,
15088c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP3_SCLK_PP3,
15098c2ecf20Sopenharmony_ci};
15108c2ecf20Sopenharmony_ci
15118c2ecf20Sopenharmony_cistatic const unsigned drive_dap4_pins[] = {
15128c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_FS_PP4,
15138c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_DIN_PP5,
15148c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_DOUT_PP6,
15158c2ecf20Sopenharmony_ci	TEGRA_PIN_DAP4_SCLK_PP7,
15168c2ecf20Sopenharmony_ci};
15178c2ecf20Sopenharmony_ci
15188c2ecf20Sopenharmony_cistatic const unsigned drive_dbg_pins[] = {
15198c2ecf20Sopenharmony_ci	TEGRA_PIN_PU0,
15208c2ecf20Sopenharmony_ci	TEGRA_PIN_PU1,
15218c2ecf20Sopenharmony_ci	TEGRA_PIN_PU2,
15228c2ecf20Sopenharmony_ci	TEGRA_PIN_PU3,
15238c2ecf20Sopenharmony_ci	TEGRA_PIN_PU4,
15248c2ecf20Sopenharmony_ci	TEGRA_PIN_PU5,
15258c2ecf20Sopenharmony_ci	TEGRA_PIN_PU6,
15268c2ecf20Sopenharmony_ci	TEGRA_PIN_JTAG_RTCK_PU7,
15278c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SDA_PC5,
15288c2ecf20Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SCL_PC4,
15298c2ecf20Sopenharmony_ci	TEGRA_PIN_JTAG_TRST_N,
15308c2ecf20Sopenharmony_ci	TEGRA_PIN_JTAG_TDO,
15318c2ecf20Sopenharmony_ci	TEGRA_PIN_JTAG_TMS,
15328c2ecf20Sopenharmony_ci	TEGRA_PIN_JTAG_TCK,
15338c2ecf20Sopenharmony_ci	TEGRA_PIN_JTAG_TDI,
15348c2ecf20Sopenharmony_ci	TEGRA_PIN_TEST_MODE_EN,
15358c2ecf20Sopenharmony_ci};
15368c2ecf20Sopenharmony_ci
15378c2ecf20Sopenharmony_cistatic const unsigned drive_lcd1_pins[] = {
15388c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR1_PC1,
15398c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR2_PC6,
15408c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SDIN_PZ2,
15418c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SDOUT_PN5,
15428c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_WR_N_PZ3,
15438c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_CS0_N_PN4,
15448c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DC0_PN6,
15458c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_SCK_PZ4,
15468c2ecf20Sopenharmony_ci};
15478c2ecf20Sopenharmony_ci
15488c2ecf20Sopenharmony_cistatic const unsigned drive_lcd2_pins[] = {
15498c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PWR0_PB2,
15508c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_PCLK_PB3,
15518c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DE_PJ1,
15528c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_HSYNC_PJ3,
15538c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_VSYNC_PJ4,
15548c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D0_PE0,
15558c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D1_PE1,
15568c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D2_PE2,
15578c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D3_PE3,
15588c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D4_PE4,
15598c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D5_PE5,
15608c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D6_PE6,
15618c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D7_PE7,
15628c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D8_PF0,
15638c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D9_PF1,
15648c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D10_PF2,
15658c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D11_PF3,
15668c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D12_PF4,
15678c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D13_PF5,
15688c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D14_PF6,
15698c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D15_PF7,
15708c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D16_PM0,
15718c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D17_PM1,
15728c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D18_PM2,
15738c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D19_PM3,
15748c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D20_PM4,
15758c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D21_PM5,
15768c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D22_PM6,
15778c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_D23_PM7,
15788c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_CS1_N_PW0,
15798c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_M1_PW1,
15808c2ecf20Sopenharmony_ci	TEGRA_PIN_LCD_DC1_PV7,
15818c2ecf20Sopenharmony_ci	TEGRA_PIN_HDMI_INT_N_PN7,
15828c2ecf20Sopenharmony_ci};
15838c2ecf20Sopenharmony_ci
15848c2ecf20Sopenharmony_cistatic const unsigned drive_sdmmc2_pins[] = {
15858c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT4_PD1,
15868c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT5_PD0,
15878c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT6_PD3,
15888c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT7_PD4,
15898c2ecf20Sopenharmony_ci};
15908c2ecf20Sopenharmony_ci
15918c2ecf20Sopenharmony_cistatic const unsigned drive_sdmmc3_pins[] = {
15928c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_CLK_PA6,
15938c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_CMD_PA7,
15948c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT0_PB7,
15958c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT1_PB6,
15968c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT2_PB5,
15978c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT3_PB4,
15988c2ecf20Sopenharmony_ci	TEGRA_PIN_PV4,
15998c2ecf20Sopenharmony_ci	TEGRA_PIN_PV5,
16008c2ecf20Sopenharmony_ci	TEGRA_PIN_PV6,
16018c2ecf20Sopenharmony_ci};
16028c2ecf20Sopenharmony_ci
16038c2ecf20Sopenharmony_cistatic const unsigned drive_spi_pins[] = {
16048c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_MOSI_PX0,
16058c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_MISO_PX1,
16068c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_SCK_PX2,
16078c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_CS0_N_PX3,
16088c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_MOSI_PX4,
16098c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_SCK_PX5,
16108c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_CS0_N_PX6,
16118c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI1_MISO_PX7,
16128c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_CS1_N_PW2,
16138c2ecf20Sopenharmony_ci	TEGRA_PIN_SPI2_CS2_N_PW3,
16148c2ecf20Sopenharmony_ci};
16158c2ecf20Sopenharmony_ci
16168c2ecf20Sopenharmony_cistatic const unsigned drive_uaa_pins[] = {
16178c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA0_PO1,
16188c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA1_PO2,
16198c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA2_PO3,
16208c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA3_PO4,
16218c2ecf20Sopenharmony_ci};
16228c2ecf20Sopenharmony_ci
16238c2ecf20Sopenharmony_cistatic const unsigned drive_uab_pins[] = {
16248c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA4_PO5,
16258c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA5_PO6,
16268c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA6_PO7,
16278c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DATA7_PO0,
16288c2ecf20Sopenharmony_ci	TEGRA_PIN_PV0,
16298c2ecf20Sopenharmony_ci	TEGRA_PIN_PV1,
16308c2ecf20Sopenharmony_ci	TEGRA_PIN_PV2,
16318c2ecf20Sopenharmony_ci	TEGRA_PIN_PV3,
16328c2ecf20Sopenharmony_ci};
16338c2ecf20Sopenharmony_ci
16348c2ecf20Sopenharmony_cistatic const unsigned drive_uart2_pins[] = {
16358c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_TXD_PC2,
16368c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_RXD_PC3,
16378c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_RTS_N_PJ6,
16388c2ecf20Sopenharmony_ci	TEGRA_PIN_UART2_CTS_N_PJ5,
16398c2ecf20Sopenharmony_ci};
16408c2ecf20Sopenharmony_ci
16418c2ecf20Sopenharmony_cistatic const unsigned drive_uart3_pins[] = {
16428c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_TXD_PW6,
16438c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_RXD_PW7,
16448c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_RTS_N_PC0,
16458c2ecf20Sopenharmony_ci	TEGRA_PIN_UART3_CTS_N_PA1,
16468c2ecf20Sopenharmony_ci};
16478c2ecf20Sopenharmony_ci
16488c2ecf20Sopenharmony_cistatic const unsigned drive_vi1_pins[] = {
16498c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D0_PT4,
16508c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D1_PD5,
16518c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D2_PL0,
16528c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D3_PL1,
16538c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D4_PL2,
16548c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D5_PL3,
16558c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D6_PL4,
16568c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D7_PL5,
16578c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D8_PL6,
16588c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D9_PL7,
16598c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D10_PT2,
16608c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_D11_PT3,
16618c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_PCLK_PT0,
16628c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_VSYNC_PD6,
16638c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_HSYNC_PD7,
16648c2ecf20Sopenharmony_ci};
16658c2ecf20Sopenharmony_ci
16668c2ecf20Sopenharmony_cistatic const unsigned drive_vi2_pins[] = {
16678c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP0_PBB1,
16688c2ecf20Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SCL_PBB2,
16698c2ecf20Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SDA_PBB3,
16708c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP3_PBB4,
16718c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP4_PBB5,
16728c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP5_PD2,
16738c2ecf20Sopenharmony_ci	TEGRA_PIN_VI_GP6_PA0,
16748c2ecf20Sopenharmony_ci};
16758c2ecf20Sopenharmony_ci
16768c2ecf20Sopenharmony_cistatic const unsigned drive_xm2a_pins[] = {
16778c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A0,
16788c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A1,
16798c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A2,
16808c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A3,
16818c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A4,
16828c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A5,
16838c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A6,
16848c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A7,
16858c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A8,
16868c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A9,
16878c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A10,
16888c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A11,
16898c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A12,
16908c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A13,
16918c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_A14,
16928c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_BA0,
16938c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_BA1,
16948c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_BA2,
16958c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CS0_N,
16968c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CS1_N,
16978c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_ODT,
16988c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_RAS_N,
16998c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CAS_N,
17008c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_WE_N,
17018c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CKE0,
17028c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CKE1,
17038c2ecf20Sopenharmony_ci};
17048c2ecf20Sopenharmony_ci
17058c2ecf20Sopenharmony_cistatic const unsigned drive_xm2c_pins[] = {
17068c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS0P,
17078c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS0N,
17088c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS1P,
17098c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS1N,
17108c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS2P,
17118c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS2N,
17128c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS3P,
17138c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQS3N,
17148c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE0,
17158c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE1,
17168c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE2,
17178c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_QUSE3,
17188c2ecf20Sopenharmony_ci};
17198c2ecf20Sopenharmony_ci
17208c2ecf20Sopenharmony_cistatic const unsigned drive_xm2d_pins[] = {
17218c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ0,
17228c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ1,
17238c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ2,
17248c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ3,
17258c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ4,
17268c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ5,
17278c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ6,
17288c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ7,
17298c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ8,
17308c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ9,
17318c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ10,
17328c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ11,
17338c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ12,
17348c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ13,
17358c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ14,
17368c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ15,
17378c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ16,
17388c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ17,
17398c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ18,
17408c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ19,
17418c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ20,
17428c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ21,
17438c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ22,
17448c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ23,
17458c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ24,
17468c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ25,
17478c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ26,
17488c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ27,
17498c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ28,
17508c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ29,
17518c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ30,
17528c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DQ31,
17538c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM0,
17548c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM1,
17558c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM2,
17568c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_DM3,
17578c2ecf20Sopenharmony_ci};
17588c2ecf20Sopenharmony_ci
17598c2ecf20Sopenharmony_cistatic const unsigned drive_xm2clk_pins[] = {
17608c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CLK,
17618c2ecf20Sopenharmony_ci	TEGRA_PIN_DDR_CLK_N,
17628c2ecf20Sopenharmony_ci};
17638c2ecf20Sopenharmony_ci
17648c2ecf20Sopenharmony_cistatic const unsigned drive_sdio1_pins[] = {
17658c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_CLK_PZ0,
17668c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_CMD_PZ1,
17678c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT0_PY7,
17688c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT1_PY6,
17698c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT2_PY5,
17708c2ecf20Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT3_PY4,
17718c2ecf20Sopenharmony_ci};
17728c2ecf20Sopenharmony_ci
17738c2ecf20Sopenharmony_cistatic const unsigned drive_crt_pins[] = {
17748c2ecf20Sopenharmony_ci	TEGRA_PIN_CRT_HSYNC,
17758c2ecf20Sopenharmony_ci	TEGRA_PIN_CRT_VSYNC,
17768c2ecf20Sopenharmony_ci};
17778c2ecf20Sopenharmony_ci
17788c2ecf20Sopenharmony_cistatic const unsigned drive_ddc_pins[] = {
17798c2ecf20Sopenharmony_ci	TEGRA_PIN_DDC_SCL,
17808c2ecf20Sopenharmony_ci	TEGRA_PIN_DDC_SDA,
17818c2ecf20Sopenharmony_ci};
17828c2ecf20Sopenharmony_ci
17838c2ecf20Sopenharmony_cistatic const unsigned drive_gma_pins[] = {
17848c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD20_PAA0,
17858c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD21_PAA1,
17868c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD22_PAA2,
17878c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD23_PAA3,
17888c2ecf20Sopenharmony_ci};
17898c2ecf20Sopenharmony_ci
17908c2ecf20Sopenharmony_cistatic const unsigned drive_gmb_pins[] = {
17918c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_WP_N_PC7,
17928c2ecf20Sopenharmony_ci};
17938c2ecf20Sopenharmony_ci
17948c2ecf20Sopenharmony_cistatic const unsigned drive_gmc_pins[] = {
17958c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD16_PJ7,
17968c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD17_PB0,
17978c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD18_PB1,
17988c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD19_PK7,
17998c2ecf20Sopenharmony_ci};
18008c2ecf20Sopenharmony_ci
18018c2ecf20Sopenharmony_cistatic const unsigned drive_gmd_pins[] = {
18028c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS0_N_PJ0,
18038c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_CS1_N_PJ2,
18048c2ecf20Sopenharmony_ci};
18058c2ecf20Sopenharmony_ci
18068c2ecf20Sopenharmony_cistatic const unsigned drive_gme_pins[] = {
18078c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD24_PAA4,
18088c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD25_PAA5,
18098c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD26_PAA6,
18108c2ecf20Sopenharmony_ci	TEGRA_PIN_GMI_AD27_PAA7,
18118c2ecf20Sopenharmony_ci};
18128c2ecf20Sopenharmony_ci
18138c2ecf20Sopenharmony_cistatic const unsigned drive_owr_pins[] = {
18148c2ecf20Sopenharmony_ci	TEGRA_PIN_OWC,
18158c2ecf20Sopenharmony_ci};
18168c2ecf20Sopenharmony_ci
18178c2ecf20Sopenharmony_cistatic const unsigned drive_uda_pins[] = {
18188c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_CLK_PY0,
18198c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_DIR_PY1,
18208c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_NXT_PY2,
18218c2ecf20Sopenharmony_ci	TEGRA_PIN_ULPI_STP_PY3,
18228c2ecf20Sopenharmony_ci};
18238c2ecf20Sopenharmony_ci
18248c2ecf20Sopenharmony_cienum tegra_mux {
18258c2ecf20Sopenharmony_ci	TEGRA_MUX_AHB_CLK,
18268c2ecf20Sopenharmony_ci	TEGRA_MUX_APB_CLK,
18278c2ecf20Sopenharmony_ci	TEGRA_MUX_AUDIO_SYNC,
18288c2ecf20Sopenharmony_ci	TEGRA_MUX_CRT,
18298c2ecf20Sopenharmony_ci	TEGRA_MUX_DAP1,
18308c2ecf20Sopenharmony_ci	TEGRA_MUX_DAP2,
18318c2ecf20Sopenharmony_ci	TEGRA_MUX_DAP3,
18328c2ecf20Sopenharmony_ci	TEGRA_MUX_DAP4,
18338c2ecf20Sopenharmony_ci	TEGRA_MUX_DAP5,
18348c2ecf20Sopenharmony_ci	TEGRA_MUX_DISPLAYA,
18358c2ecf20Sopenharmony_ci	TEGRA_MUX_DISPLAYB,
18368c2ecf20Sopenharmony_ci	TEGRA_MUX_EMC_TEST0_DLL,
18378c2ecf20Sopenharmony_ci	TEGRA_MUX_EMC_TEST1_DLL,
18388c2ecf20Sopenharmony_ci	TEGRA_MUX_GMI,
18398c2ecf20Sopenharmony_ci	TEGRA_MUX_GMI_INT,
18408c2ecf20Sopenharmony_ci	TEGRA_MUX_HDMI,
18418c2ecf20Sopenharmony_ci	TEGRA_MUX_I2CP,
18428c2ecf20Sopenharmony_ci	TEGRA_MUX_I2C1,
18438c2ecf20Sopenharmony_ci	TEGRA_MUX_I2C2,
18448c2ecf20Sopenharmony_ci	TEGRA_MUX_I2C3,
18458c2ecf20Sopenharmony_ci	TEGRA_MUX_IDE,
18468c2ecf20Sopenharmony_ci	TEGRA_MUX_IRDA,
18478c2ecf20Sopenharmony_ci	TEGRA_MUX_KBC,
18488c2ecf20Sopenharmony_ci	TEGRA_MUX_MIO,
18498c2ecf20Sopenharmony_ci	TEGRA_MUX_MIPI_HS,
18508c2ecf20Sopenharmony_ci	TEGRA_MUX_NAND,
18518c2ecf20Sopenharmony_ci	TEGRA_MUX_OSC,
18528c2ecf20Sopenharmony_ci	TEGRA_MUX_OWR,
18538c2ecf20Sopenharmony_ci	TEGRA_MUX_PCIE,
18548c2ecf20Sopenharmony_ci	TEGRA_MUX_PLLA_OUT,
18558c2ecf20Sopenharmony_ci	TEGRA_MUX_PLLC_OUT1,
18568c2ecf20Sopenharmony_ci	TEGRA_MUX_PLLM_OUT1,
18578c2ecf20Sopenharmony_ci	TEGRA_MUX_PLLP_OUT2,
18588c2ecf20Sopenharmony_ci	TEGRA_MUX_PLLP_OUT3,
18598c2ecf20Sopenharmony_ci	TEGRA_MUX_PLLP_OUT4,
18608c2ecf20Sopenharmony_ci	TEGRA_MUX_PWM,
18618c2ecf20Sopenharmony_ci	TEGRA_MUX_PWR_INTR,
18628c2ecf20Sopenharmony_ci	TEGRA_MUX_PWR_ON,
18638c2ecf20Sopenharmony_ci	TEGRA_MUX_RSVD1,
18648c2ecf20Sopenharmony_ci	TEGRA_MUX_RSVD2,
18658c2ecf20Sopenharmony_ci	TEGRA_MUX_RSVD3,
18668c2ecf20Sopenharmony_ci	TEGRA_MUX_RSVD4,
18678c2ecf20Sopenharmony_ci	TEGRA_MUX_RTCK,
18688c2ecf20Sopenharmony_ci	TEGRA_MUX_SDIO1,
18698c2ecf20Sopenharmony_ci	TEGRA_MUX_SDIO2,
18708c2ecf20Sopenharmony_ci	TEGRA_MUX_SDIO3,
18718c2ecf20Sopenharmony_ci	TEGRA_MUX_SDIO4,
18728c2ecf20Sopenharmony_ci	TEGRA_MUX_SFLASH,
18738c2ecf20Sopenharmony_ci	TEGRA_MUX_SPDIF,
18748c2ecf20Sopenharmony_ci	TEGRA_MUX_SPI1,
18758c2ecf20Sopenharmony_ci	TEGRA_MUX_SPI2,
18768c2ecf20Sopenharmony_ci	TEGRA_MUX_SPI2_ALT,
18778c2ecf20Sopenharmony_ci	TEGRA_MUX_SPI3,
18788c2ecf20Sopenharmony_ci	TEGRA_MUX_SPI4,
18798c2ecf20Sopenharmony_ci	TEGRA_MUX_TRACE,
18808c2ecf20Sopenharmony_ci	TEGRA_MUX_TWC,
18818c2ecf20Sopenharmony_ci	TEGRA_MUX_UARTA,
18828c2ecf20Sopenharmony_ci	TEGRA_MUX_UARTB,
18838c2ecf20Sopenharmony_ci	TEGRA_MUX_UARTC,
18848c2ecf20Sopenharmony_ci	TEGRA_MUX_UARTD,
18858c2ecf20Sopenharmony_ci	TEGRA_MUX_UARTE,
18868c2ecf20Sopenharmony_ci	TEGRA_MUX_ULPI,
18878c2ecf20Sopenharmony_ci	TEGRA_MUX_VI,
18888c2ecf20Sopenharmony_ci	TEGRA_MUX_VI_SENSOR_CLK,
18898c2ecf20Sopenharmony_ci	TEGRA_MUX_XIO,
18908c2ecf20Sopenharmony_ci};
18918c2ecf20Sopenharmony_ci
18928c2ecf20Sopenharmony_ci#define FUNCTION(fname)					\
18938c2ecf20Sopenharmony_ci	{						\
18948c2ecf20Sopenharmony_ci		.name = #fname,				\
18958c2ecf20Sopenharmony_ci	}
18968c2ecf20Sopenharmony_ci
18978c2ecf20Sopenharmony_cistatic struct tegra_function tegra20_functions[] = {
18988c2ecf20Sopenharmony_ci	FUNCTION(ahb_clk),
18998c2ecf20Sopenharmony_ci	FUNCTION(apb_clk),
19008c2ecf20Sopenharmony_ci	FUNCTION(audio_sync),
19018c2ecf20Sopenharmony_ci	FUNCTION(crt),
19028c2ecf20Sopenharmony_ci	FUNCTION(dap1),
19038c2ecf20Sopenharmony_ci	FUNCTION(dap2),
19048c2ecf20Sopenharmony_ci	FUNCTION(dap3),
19058c2ecf20Sopenharmony_ci	FUNCTION(dap4),
19068c2ecf20Sopenharmony_ci	FUNCTION(dap5),
19078c2ecf20Sopenharmony_ci	FUNCTION(displaya),
19088c2ecf20Sopenharmony_ci	FUNCTION(displayb),
19098c2ecf20Sopenharmony_ci	FUNCTION(emc_test0_dll),
19108c2ecf20Sopenharmony_ci	FUNCTION(emc_test1_dll),
19118c2ecf20Sopenharmony_ci	FUNCTION(gmi),
19128c2ecf20Sopenharmony_ci	FUNCTION(gmi_int),
19138c2ecf20Sopenharmony_ci	FUNCTION(hdmi),
19148c2ecf20Sopenharmony_ci	FUNCTION(i2cp),
19158c2ecf20Sopenharmony_ci	FUNCTION(i2c1),
19168c2ecf20Sopenharmony_ci	FUNCTION(i2c2),
19178c2ecf20Sopenharmony_ci	FUNCTION(i2c3),
19188c2ecf20Sopenharmony_ci	FUNCTION(ide),
19198c2ecf20Sopenharmony_ci	FUNCTION(irda),
19208c2ecf20Sopenharmony_ci	FUNCTION(kbc),
19218c2ecf20Sopenharmony_ci	FUNCTION(mio),
19228c2ecf20Sopenharmony_ci	FUNCTION(mipi_hs),
19238c2ecf20Sopenharmony_ci	FUNCTION(nand),
19248c2ecf20Sopenharmony_ci	FUNCTION(osc),
19258c2ecf20Sopenharmony_ci	FUNCTION(owr),
19268c2ecf20Sopenharmony_ci	FUNCTION(pcie),
19278c2ecf20Sopenharmony_ci	FUNCTION(plla_out),
19288c2ecf20Sopenharmony_ci	FUNCTION(pllc_out1),
19298c2ecf20Sopenharmony_ci	FUNCTION(pllm_out1),
19308c2ecf20Sopenharmony_ci	FUNCTION(pllp_out2),
19318c2ecf20Sopenharmony_ci	FUNCTION(pllp_out3),
19328c2ecf20Sopenharmony_ci	FUNCTION(pllp_out4),
19338c2ecf20Sopenharmony_ci	FUNCTION(pwm),
19348c2ecf20Sopenharmony_ci	FUNCTION(pwr_intr),
19358c2ecf20Sopenharmony_ci	FUNCTION(pwr_on),
19368c2ecf20Sopenharmony_ci	FUNCTION(rsvd1),
19378c2ecf20Sopenharmony_ci	FUNCTION(rsvd2),
19388c2ecf20Sopenharmony_ci	FUNCTION(rsvd3),
19398c2ecf20Sopenharmony_ci	FUNCTION(rsvd4),
19408c2ecf20Sopenharmony_ci	FUNCTION(rtck),
19418c2ecf20Sopenharmony_ci	FUNCTION(sdio1),
19428c2ecf20Sopenharmony_ci	FUNCTION(sdio2),
19438c2ecf20Sopenharmony_ci	FUNCTION(sdio3),
19448c2ecf20Sopenharmony_ci	FUNCTION(sdio4),
19458c2ecf20Sopenharmony_ci	FUNCTION(sflash),
19468c2ecf20Sopenharmony_ci	FUNCTION(spdif),
19478c2ecf20Sopenharmony_ci	FUNCTION(spi1),
19488c2ecf20Sopenharmony_ci	FUNCTION(spi2),
19498c2ecf20Sopenharmony_ci	FUNCTION(spi2_alt),
19508c2ecf20Sopenharmony_ci	FUNCTION(spi3),
19518c2ecf20Sopenharmony_ci	FUNCTION(spi4),
19528c2ecf20Sopenharmony_ci	FUNCTION(trace),
19538c2ecf20Sopenharmony_ci	FUNCTION(twc),
19548c2ecf20Sopenharmony_ci	FUNCTION(uarta),
19558c2ecf20Sopenharmony_ci	FUNCTION(uartb),
19568c2ecf20Sopenharmony_ci	FUNCTION(uartc),
19578c2ecf20Sopenharmony_ci	FUNCTION(uartd),
19588c2ecf20Sopenharmony_ci	FUNCTION(uarte),
19598c2ecf20Sopenharmony_ci	FUNCTION(ulpi),
19608c2ecf20Sopenharmony_ci	FUNCTION(vi),
19618c2ecf20Sopenharmony_ci	FUNCTION(vi_sensor_clk),
19628c2ecf20Sopenharmony_ci	FUNCTION(xio),
19638c2ecf20Sopenharmony_ci};
19648c2ecf20Sopenharmony_ci
19658c2ecf20Sopenharmony_ci#define TRISTATE_REG_A		0x14
19668c2ecf20Sopenharmony_ci#define PIN_MUX_CTL_REG_A	0x80
19678c2ecf20Sopenharmony_ci#define PULLUPDOWN_REG_A	0xa0
19688c2ecf20Sopenharmony_ci#define PINGROUP_REG_A		0x868
19698c2ecf20Sopenharmony_ci
19708c2ecf20Sopenharmony_ci/* Pin group with mux control, and typically tri-state and pull-up/down too */
19718c2ecf20Sopenharmony_ci#define MUX_PG(pg_name, f0, f1, f2, f3,				\
19728c2ecf20Sopenharmony_ci	       tri_r, tri_b, mux_r, mux_b, pupd_r, pupd_b)	\
19738c2ecf20Sopenharmony_ci	{							\
19748c2ecf20Sopenharmony_ci		.name = #pg_name,				\
19758c2ecf20Sopenharmony_ci		.pins = pg_name##_pins,				\
19768c2ecf20Sopenharmony_ci		.npins = ARRAY_SIZE(pg_name##_pins),		\
19778c2ecf20Sopenharmony_ci		.funcs = {					\
19788c2ecf20Sopenharmony_ci			TEGRA_MUX_ ## f0,			\
19798c2ecf20Sopenharmony_ci			TEGRA_MUX_ ## f1,			\
19808c2ecf20Sopenharmony_ci			TEGRA_MUX_ ## f2,			\
19818c2ecf20Sopenharmony_ci			TEGRA_MUX_ ## f3,			\
19828c2ecf20Sopenharmony_ci		},						\
19838c2ecf20Sopenharmony_ci		.mux_reg = ((mux_r) - PIN_MUX_CTL_REG_A),	\
19848c2ecf20Sopenharmony_ci		.mux_bank = 1,					\
19858c2ecf20Sopenharmony_ci		.mux_bit = mux_b,				\
19868c2ecf20Sopenharmony_ci		.pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A),	\
19878c2ecf20Sopenharmony_ci		.pupd_bank = 2,					\
19888c2ecf20Sopenharmony_ci		.pupd_bit = pupd_b,				\
19898c2ecf20Sopenharmony_ci		.tri_reg = ((tri_r) - TRISTATE_REG_A),		\
19908c2ecf20Sopenharmony_ci		.tri_bank = 0,					\
19918c2ecf20Sopenharmony_ci		.tri_bit = tri_b,				\
19928c2ecf20Sopenharmony_ci		.einput_bit = -1,				\
19938c2ecf20Sopenharmony_ci		.odrain_bit = -1,				\
19948c2ecf20Sopenharmony_ci		.lock_bit = -1,					\
19958c2ecf20Sopenharmony_ci		.ioreset_bit = -1,				\
19968c2ecf20Sopenharmony_ci		.rcv_sel_bit = -1,				\
19978c2ecf20Sopenharmony_ci		.drv_reg = -1,					\
19988c2ecf20Sopenharmony_ci		.parked_bitmask = 0,				\
19998c2ecf20Sopenharmony_ci	}
20008c2ecf20Sopenharmony_ci
20018c2ecf20Sopenharmony_ci/* Pin groups with only pull up and pull down control */
20028c2ecf20Sopenharmony_ci#define PULL_PG(pg_name, pupd_r, pupd_b)			\
20038c2ecf20Sopenharmony_ci	{							\
20048c2ecf20Sopenharmony_ci		.name = #pg_name,				\
20058c2ecf20Sopenharmony_ci		.pins = pg_name##_pins,				\
20068c2ecf20Sopenharmony_ci		.npins = ARRAY_SIZE(pg_name##_pins),		\
20078c2ecf20Sopenharmony_ci		.mux_reg = -1,					\
20088c2ecf20Sopenharmony_ci		.pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A),	\
20098c2ecf20Sopenharmony_ci		.pupd_bank = 2,					\
20108c2ecf20Sopenharmony_ci		.pupd_bit = pupd_b,				\
20118c2ecf20Sopenharmony_ci		.drv_reg = -1,					\
20128c2ecf20Sopenharmony_ci		.parked_bitmask = 0,				\
20138c2ecf20Sopenharmony_ci	}
20148c2ecf20Sopenharmony_ci
20158c2ecf20Sopenharmony_ci/* Pin groups for drive strength registers (configurable version) */
20168c2ecf20Sopenharmony_ci#define DRV_PG_EXT(pg_name, r, hsm_b, schmitt_b, lpmd_b,	\
20178c2ecf20Sopenharmony_ci		   drvdn_b, drvup_b,				\
20188c2ecf20Sopenharmony_ci		   slwr_b, slwr_w, slwf_b, slwf_w)		\
20198c2ecf20Sopenharmony_ci	{							\
20208c2ecf20Sopenharmony_ci		.name = "drive_" #pg_name,			\
20218c2ecf20Sopenharmony_ci		.pins = drive_##pg_name##_pins,			\
20228c2ecf20Sopenharmony_ci		.npins = ARRAY_SIZE(drive_##pg_name##_pins),	\
20238c2ecf20Sopenharmony_ci		.mux_reg = -1,					\
20248c2ecf20Sopenharmony_ci		.pupd_reg = -1,					\
20258c2ecf20Sopenharmony_ci		.tri_reg = -1,					\
20268c2ecf20Sopenharmony_ci		.drv_reg = ((r) - PINGROUP_REG_A),		\
20278c2ecf20Sopenharmony_ci		.drv_bank = 3,					\
20288c2ecf20Sopenharmony_ci		.parked_bitmask = 0,				\
20298c2ecf20Sopenharmony_ci		.hsm_bit = hsm_b,				\
20308c2ecf20Sopenharmony_ci		.schmitt_bit = schmitt_b,			\
20318c2ecf20Sopenharmony_ci		.lpmd_bit = lpmd_b,				\
20328c2ecf20Sopenharmony_ci		.drvdn_bit = drvdn_b,				\
20338c2ecf20Sopenharmony_ci		.drvdn_width = 5,				\
20348c2ecf20Sopenharmony_ci		.drvup_bit = drvup_b,				\
20358c2ecf20Sopenharmony_ci		.drvup_width = 5,				\
20368c2ecf20Sopenharmony_ci		.slwr_bit = slwr_b,				\
20378c2ecf20Sopenharmony_ci		.slwr_width = slwr_w,				\
20388c2ecf20Sopenharmony_ci		.slwf_bit = slwf_b,				\
20398c2ecf20Sopenharmony_ci		.slwf_width = slwf_w,				\
20408c2ecf20Sopenharmony_ci		.drvtype_bit = -1,				\
20418c2ecf20Sopenharmony_ci	}
20428c2ecf20Sopenharmony_ci
20438c2ecf20Sopenharmony_ci/* Pin groups for drive strength registers (simple version) */
20448c2ecf20Sopenharmony_ci#define DRV_PG(pg_name, r) \
20458c2ecf20Sopenharmony_ci	DRV_PG_EXT(pg_name, r, 2,  3,  4, 12, 20, 28, 2, 30, 2)
20468c2ecf20Sopenharmony_ci
20478c2ecf20Sopenharmony_cistatic const struct tegra_pingroup tegra20_groups[] = {
20488c2ecf20Sopenharmony_ci	/*     name,   f0,        f1,        f2,        f3,            tri r/b,  mux r/b,  pupd r/b */
20498c2ecf20Sopenharmony_ci	MUX_PG(ata,    IDE,       NAND,      GMI,       RSVD4,         0x14, 0,  0x80, 24, 0xa0, 0),
20508c2ecf20Sopenharmony_ci	MUX_PG(atb,    IDE,       NAND,      GMI,       SDIO4,         0x14, 1,  0x80, 16, 0xa0, 2),
20518c2ecf20Sopenharmony_ci	MUX_PG(atc,    IDE,       NAND,      GMI,       SDIO4,         0x14, 2,  0x80, 22, 0xa0, 4),
20528c2ecf20Sopenharmony_ci	MUX_PG(atd,    IDE,       NAND,      GMI,       SDIO4,         0x14, 3,  0x80, 20, 0xa0, 6),
20538c2ecf20Sopenharmony_ci	MUX_PG(ate,    IDE,       NAND,      GMI,       RSVD4,         0x18, 25, 0x80, 12, 0xa0, 8),
20548c2ecf20Sopenharmony_ci	MUX_PG(cdev1,  OSC,       PLLA_OUT,  PLLM_OUT1, AUDIO_SYNC,    0x14, 4,  0x88, 2,  0xa8, 0),
20558c2ecf20Sopenharmony_ci	MUX_PG(cdev2,  OSC,       AHB_CLK,   APB_CLK,   PLLP_OUT4,     0x14, 5,  0x88, 4,  0xa8, 2),
20568c2ecf20Sopenharmony_ci	MUX_PG(crtp,   CRT,       RSVD2,     RSVD3,     RSVD4,         0x20, 14, 0x98, 20, 0xa4, 24),
20578c2ecf20Sopenharmony_ci	MUX_PG(csus,   PLLC_OUT1, PLLP_OUT2, PLLP_OUT3, VI_SENSOR_CLK, 0x14, 6,  0x88, 6,  0xac, 24),
20588c2ecf20Sopenharmony_ci	MUX_PG(dap1,   DAP1,      RSVD2,     GMI,       SDIO2,         0x14, 7,  0x88, 20, 0xa0, 10),
20598c2ecf20Sopenharmony_ci	MUX_PG(dap2,   DAP2,      TWC,       RSVD3,     GMI,           0x14, 8,  0x88, 22, 0xa0, 12),
20608c2ecf20Sopenharmony_ci	MUX_PG(dap3,   DAP3,      RSVD2,     RSVD3,     RSVD4,         0x14, 9,  0x88, 24, 0xa0, 14),
20618c2ecf20Sopenharmony_ci	MUX_PG(dap4,   DAP4,      RSVD2,     GMI,       RSVD4,         0x14, 10, 0x88, 26, 0xa0, 16),
20628c2ecf20Sopenharmony_ci	MUX_PG(ddc,    I2C2,      RSVD2,     RSVD3,     RSVD4,         0x18, 31, 0x88, 0,  0xb0, 28),
20638c2ecf20Sopenharmony_ci	MUX_PG(dta,    RSVD1,     SDIO2,     VI,        RSVD4,         0x14, 11, 0x84, 20, 0xa0, 18),
20648c2ecf20Sopenharmony_ci	MUX_PG(dtb,    RSVD1,     RSVD2,     VI,        SPI1,          0x14, 12, 0x84, 22, 0xa0, 20),
20658c2ecf20Sopenharmony_ci	MUX_PG(dtc,    RSVD1,     RSVD2,     VI,        RSVD4,         0x14, 13, 0x84, 26, 0xa0, 22),
20668c2ecf20Sopenharmony_ci	MUX_PG(dtd,    RSVD1,     SDIO2,     VI,        RSVD4,         0x14, 14, 0x84, 28, 0xa0, 24),
20678c2ecf20Sopenharmony_ci	MUX_PG(dte,    RSVD1,     RSVD2,     VI,        SPI1,          0x14, 15, 0x84, 30, 0xa0, 26),
20688c2ecf20Sopenharmony_ci	MUX_PG(dtf,    I2C3,      RSVD2,     VI,        RSVD4,         0x20, 12, 0x98, 30, 0xa0, 28),
20698c2ecf20Sopenharmony_ci	MUX_PG(gma,    UARTE,     SPI3,      GMI,       SDIO4,         0x14, 28, 0x84, 0,  0xb0, 20),
20708c2ecf20Sopenharmony_ci	MUX_PG(gmb,    IDE,       NAND,      GMI,       GMI_INT,       0x18, 29, 0x88, 28, 0xb0, 22),
20718c2ecf20Sopenharmony_ci	MUX_PG(gmc,    UARTD,     SPI4,      GMI,       SFLASH,        0x14, 29, 0x84, 2,  0xb0, 24),
20728c2ecf20Sopenharmony_ci	MUX_PG(gmd,    RSVD1,     NAND,      GMI,       SFLASH,        0x18, 30, 0x88, 30, 0xb0, 26),
20738c2ecf20Sopenharmony_ci	MUX_PG(gme,    RSVD1,     DAP5,      GMI,       SDIO4,         0x18, 0,  0x8c, 0,  0xa8, 24),
20748c2ecf20Sopenharmony_ci	MUX_PG(gpu,    PWM,       UARTA,     GMI,       RSVD4,         0x14, 16, 0x8c, 4,  0xa4, 20),
20758c2ecf20Sopenharmony_ci	MUX_PG(gpu7,   RTCK,      RSVD2,     RSVD3,     RSVD4,         0x20, 11, 0x98, 28, 0xa4, 6),
20768c2ecf20Sopenharmony_ci	MUX_PG(gpv,    PCIE,      RSVD2,     RSVD3,     RSVD4,         0x14, 17, 0x8c, 2,  0xa0, 30),
20778c2ecf20Sopenharmony_ci	MUX_PG(hdint,  HDMI,      RSVD2,     RSVD3,     RSVD4,         0x1c, 23, 0x84, 4,  -1,   -1),
20788c2ecf20Sopenharmony_ci	MUX_PG(i2cp,   I2CP,      RSVD2,     RSVD3,     RSVD4,         0x14, 18, 0x88, 8,  0xa4, 2),
20798c2ecf20Sopenharmony_ci	MUX_PG(irrx,   UARTA,     UARTB,     GMI,       SPI4,          0x14, 20, 0x88, 18, 0xa8, 22),
20808c2ecf20Sopenharmony_ci	MUX_PG(irtx,   UARTA,     UARTB,     GMI,       SPI4,          0x14, 19, 0x88, 16, 0xa8, 20),
20818c2ecf20Sopenharmony_ci	MUX_PG(kbca,   KBC,       NAND,      SDIO2,     EMC_TEST0_DLL, 0x14, 22, 0x88, 10, 0xa4, 8),
20828c2ecf20Sopenharmony_ci	MUX_PG(kbcb,   KBC,       NAND,      SDIO2,     MIO,           0x14, 21, 0x88, 12, 0xa4, 10),
20838c2ecf20Sopenharmony_ci	MUX_PG(kbcc,   KBC,       NAND,      TRACE,     EMC_TEST1_DLL, 0x18, 26, 0x88, 14, 0xa4, 12),
20848c2ecf20Sopenharmony_ci	MUX_PG(kbcd,   KBC,       NAND,      SDIO2,     MIO,           0x20, 10, 0x98, 26, 0xa4, 14),
20858c2ecf20Sopenharmony_ci	MUX_PG(kbce,   KBC,       NAND,      OWR,       RSVD4,         0x14, 26, 0x80, 28, 0xb0, 2),
20868c2ecf20Sopenharmony_ci	MUX_PG(kbcf,   KBC,       NAND,      TRACE,     MIO,           0x14, 27, 0x80, 26, 0xb0, 0),
20878c2ecf20Sopenharmony_ci	MUX_PG(lcsn,   DISPLAYA,  DISPLAYB,  SPI3,      RSVD4,         0x1c, 31, 0x90, 12, -1,   -1),
20888c2ecf20Sopenharmony_ci	MUX_PG(ld0,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 0,  0x94, 0,  -1,   -1),
20898c2ecf20Sopenharmony_ci	MUX_PG(ld1,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 1,  0x94, 2,  -1,   -1),
20908c2ecf20Sopenharmony_ci	MUX_PG(ld2,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 2,  0x94, 4,  -1,   -1),
20918c2ecf20Sopenharmony_ci	MUX_PG(ld3,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 3,  0x94, 6,  -1,   -1),
20928c2ecf20Sopenharmony_ci	MUX_PG(ld4,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 4,  0x94, 8,  -1,   -1),
20938c2ecf20Sopenharmony_ci	MUX_PG(ld5,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 5,  0x94, 10, -1,   -1),
20948c2ecf20Sopenharmony_ci	MUX_PG(ld6,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 6,  0x94, 12, -1,   -1),
20958c2ecf20Sopenharmony_ci	MUX_PG(ld7,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 7,  0x94, 14, -1,   -1),
20968c2ecf20Sopenharmony_ci	MUX_PG(ld8,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 8,  0x94, 16, -1,   -1),
20978c2ecf20Sopenharmony_ci	MUX_PG(ld9,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 9,  0x94, 18, -1,   -1),
20988c2ecf20Sopenharmony_ci	MUX_PG(ld10,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 10, 0x94, 20, -1,   -1),
20998c2ecf20Sopenharmony_ci	MUX_PG(ld11,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 11, 0x94, 22, -1,   -1),
21008c2ecf20Sopenharmony_ci	MUX_PG(ld12,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 12, 0x94, 24, -1,   -1),
21018c2ecf20Sopenharmony_ci	MUX_PG(ld13,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 13, 0x94, 26, -1,   -1),
21028c2ecf20Sopenharmony_ci	MUX_PG(ld14,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 14, 0x94, 28, -1,   -1),
21038c2ecf20Sopenharmony_ci	MUX_PG(ld15,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 15, 0x94, 30, -1,   -1),
21048c2ecf20Sopenharmony_ci	MUX_PG(ld16,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 16, 0x98, 0,  -1,   -1),
21058c2ecf20Sopenharmony_ci	MUX_PG(ld17,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 17, 0x98, 2,  -1,   -1),
21068c2ecf20Sopenharmony_ci	MUX_PG(ldc,    DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 30, 0x90, 14, -1,   -1),
21078c2ecf20Sopenharmony_ci	MUX_PG(ldi,    DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x20, 6,  0x98, 16, -1,   -1),
21088c2ecf20Sopenharmony_ci	MUX_PG(lhp0,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 18, 0x98, 10, -1,   -1),
21098c2ecf20Sopenharmony_ci	MUX_PG(lhp1,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 19, 0x98, 4,  -1,   -1),
21108c2ecf20Sopenharmony_ci	MUX_PG(lhp2,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 20, 0x98, 6,  -1,   -1),
21118c2ecf20Sopenharmony_ci	MUX_PG(lhs,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x20, 7,  0x90, 22, -1,   -1),
21128c2ecf20Sopenharmony_ci	MUX_PG(lm0,    DISPLAYA,  DISPLAYB,  SPI3,      RSVD4,         0x1c, 24, 0x90, 26, -1,   -1),
21138c2ecf20Sopenharmony_ci	MUX_PG(lm1,    DISPLAYA,  DISPLAYB,  RSVD3,     CRT,           0x1c, 25, 0x90, 28, -1,   -1),
21148c2ecf20Sopenharmony_ci	MUX_PG(lpp,    DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x20, 8,  0x98, 14, -1,   -1),
21158c2ecf20Sopenharmony_ci	MUX_PG(lpw0,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x20, 3,  0x90, 0,  -1,   -1),
21168c2ecf20Sopenharmony_ci	MUX_PG(lpw1,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x20, 4,  0x90, 2,  -1,   -1),
21178c2ecf20Sopenharmony_ci	MUX_PG(lpw2,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x20, 5,  0x90, 4,  -1,   -1),
21188c2ecf20Sopenharmony_ci	MUX_PG(lsc0,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 27, 0x90, 18, -1,   -1),
21198c2ecf20Sopenharmony_ci	MUX_PG(lsc1,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x1c, 28, 0x90, 20, -1,   -1),
21208c2ecf20Sopenharmony_ci	MUX_PG(lsck,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x1c, 29, 0x90, 16, -1,   -1),
21218c2ecf20Sopenharmony_ci	MUX_PG(lsda,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x20, 1,  0x90, 8,  -1,   -1),
21228c2ecf20Sopenharmony_ci	MUX_PG(lsdi,   DISPLAYA,  DISPLAYB,  SPI3,      RSVD4,         0x20, 2,  0x90, 6,  -1,   -1),
21238c2ecf20Sopenharmony_ci	MUX_PG(lspi,   DISPLAYA,  DISPLAYB,  XIO,       HDMI,          0x20, 0,  0x90, 10, -1,   -1),
21248c2ecf20Sopenharmony_ci	MUX_PG(lvp0,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 21, 0x90, 30, -1,   -1),
21258c2ecf20Sopenharmony_ci	MUX_PG(lvp1,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 22, 0x98, 8,  -1,   -1),
21268c2ecf20Sopenharmony_ci	MUX_PG(lvs,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 26, 0x90, 24, -1,   -1),
21278c2ecf20Sopenharmony_ci	MUX_PG(owc,    OWR,       RSVD2,     RSVD3,     RSVD4,         0x14, 31, 0x84, 8,  0xb0, 30),
21288c2ecf20Sopenharmony_ci	MUX_PG(pmc,    PWR_ON,    PWR_INTR,  RSVD3,     RSVD4,         0x14, 23, 0x98, 18, -1,   -1),
21298c2ecf20Sopenharmony_ci	MUX_PG(pta,    I2C2,      HDMI,      GMI,       RSVD4,         0x14, 24, 0x98, 22, 0xa4, 4),
21308c2ecf20Sopenharmony_ci	MUX_PG(rm,     I2C1,      RSVD2,     RSVD3,     RSVD4,         0x14, 25, 0x80, 14, 0xa4, 0),
21318c2ecf20Sopenharmony_ci	MUX_PG(sdb,    UARTA,     PWM,       SDIO3,     SPI2,          0x20, 15, 0x8c, 10, -1,   -1),
21328c2ecf20Sopenharmony_ci	MUX_PG(sdc,    PWM,       TWC,       SDIO3,     SPI3,          0x18, 1,  0x8c, 12, 0xac, 28),
21338c2ecf20Sopenharmony_ci	MUX_PG(sdd,    UARTA,     PWM,       SDIO3,     SPI3,          0x18, 2,  0x8c, 14, 0xac, 30),
21348c2ecf20Sopenharmony_ci	MUX_PG(sdio1,  SDIO1,     RSVD2,     UARTE,     UARTA,         0x14, 30, 0x80, 30, 0xb0, 18),
21358c2ecf20Sopenharmony_ci	MUX_PG(slxa,   PCIE,      SPI4,      SDIO3,     SPI2,          0x18, 3,  0x84, 6,  0xa4, 22),
21368c2ecf20Sopenharmony_ci	MUX_PG(slxc,   SPDIF,     SPI4,      SDIO3,     SPI2,          0x18, 5,  0x84, 10, 0xa4, 26),
21378c2ecf20Sopenharmony_ci	MUX_PG(slxd,   SPDIF,     SPI4,      SDIO3,     SPI2,          0x18, 6,  0x84, 12, 0xa4, 28),
21388c2ecf20Sopenharmony_ci	MUX_PG(slxk,   PCIE,      SPI4,      SDIO3,     SPI2,          0x18, 7,  0x84, 14, 0xa4, 30),
21398c2ecf20Sopenharmony_ci	MUX_PG(spdi,   SPDIF,     RSVD2,     I2C1,      SDIO2,         0x18, 8,  0x8c, 8,  0xa4, 16),
21408c2ecf20Sopenharmony_ci	MUX_PG(spdo,   SPDIF,     RSVD2,     I2C1,      SDIO2,         0x18, 9,  0x8c, 6,  0xa4, 18),
21418c2ecf20Sopenharmony_ci	MUX_PG(spia,   SPI1,      SPI2,      SPI3,      GMI,           0x18, 10, 0x8c, 30, 0xa8, 4),
21428c2ecf20Sopenharmony_ci	MUX_PG(spib,   SPI1,      SPI2,      SPI3,      GMI,           0x18, 11, 0x8c, 28, 0xa8, 6),
21438c2ecf20Sopenharmony_ci	MUX_PG(spic,   SPI1,      SPI2,      SPI3,      GMI,           0x18, 12, 0x8c, 26, 0xa8, 8),
21448c2ecf20Sopenharmony_ci	MUX_PG(spid,   SPI2,      SPI1,      SPI2_ALT,  GMI,           0x18, 13, 0x8c, 24, 0xa8, 10),
21458c2ecf20Sopenharmony_ci	MUX_PG(spie,   SPI2,      SPI1,      SPI2_ALT,  GMI,           0x18, 14, 0x8c, 22, 0xa8, 12),
21468c2ecf20Sopenharmony_ci	MUX_PG(spif,   SPI3,      SPI1,      SPI2,      RSVD4,         0x18, 15, 0x8c, 20, 0xa8, 14),
21478c2ecf20Sopenharmony_ci	MUX_PG(spig,   SPI3,      SPI2,      SPI2_ALT,  I2C1,          0x18, 16, 0x8c, 18, 0xa8, 16),
21488c2ecf20Sopenharmony_ci	MUX_PG(spih,   SPI3,      SPI2,      SPI2_ALT,  I2C1,          0x18, 17, 0x8c, 16, 0xa8, 18),
21498c2ecf20Sopenharmony_ci	MUX_PG(uaa,    SPI3,      MIPI_HS,   UARTA,     ULPI,          0x18, 18, 0x80, 0,  0xac, 0),
21508c2ecf20Sopenharmony_ci	MUX_PG(uab,    SPI2,      MIPI_HS,   UARTA,     ULPI,          0x18, 19, 0x80, 2,  0xac, 2),
21518c2ecf20Sopenharmony_ci	MUX_PG(uac,    OWR,       RSVD2,     RSVD3,     RSVD4,         0x18, 20, 0x80, 4,  0xac, 4),
21528c2ecf20Sopenharmony_ci	MUX_PG(uad,    IRDA,      SPDIF,     UARTA,     SPI4,          0x18, 21, 0x80, 6,  0xac, 6),
21538c2ecf20Sopenharmony_ci	MUX_PG(uca,    UARTC,     RSVD2,     GMI,       RSVD4,         0x18, 22, 0x84, 16, 0xac, 8),
21548c2ecf20Sopenharmony_ci	MUX_PG(ucb,    UARTC,     PWM,       GMI,       RSVD4,         0x18, 23, 0x84, 18, 0xac, 10),
21558c2ecf20Sopenharmony_ci	MUX_PG(uda,    SPI1,      RSVD2,     UARTD,     ULPI,          0x20, 13, 0x80, 8,  0xb0, 16),
21568c2ecf20Sopenharmony_ci	/*      pg_name, pupd_r/b */
21578c2ecf20Sopenharmony_ci	PULL_PG(ck32,    0xb0, 14),
21588c2ecf20Sopenharmony_ci	PULL_PG(ddrc,    0xac, 26),
21598c2ecf20Sopenharmony_ci	PULL_PG(pmca,    0xb0, 4),
21608c2ecf20Sopenharmony_ci	PULL_PG(pmcb,    0xb0, 6),
21618c2ecf20Sopenharmony_ci	PULL_PG(pmcc,    0xb0, 8),
21628c2ecf20Sopenharmony_ci	PULL_PG(pmcd,    0xb0, 10),
21638c2ecf20Sopenharmony_ci	PULL_PG(pmce,    0xb0, 12),
21648c2ecf20Sopenharmony_ci	PULL_PG(xm2c,    0xa8, 30),
21658c2ecf20Sopenharmony_ci	PULL_PG(xm2d,    0xa8, 28),
21668c2ecf20Sopenharmony_ci	PULL_PG(ls,      0xac, 20),
21678c2ecf20Sopenharmony_ci	PULL_PG(lc,      0xac, 22),
21688c2ecf20Sopenharmony_ci	PULL_PG(ld17_0,  0xac, 12),
21698c2ecf20Sopenharmony_ci	PULL_PG(ld19_18, 0xac, 14),
21708c2ecf20Sopenharmony_ci	PULL_PG(ld21_20, 0xac, 16),
21718c2ecf20Sopenharmony_ci	PULL_PG(ld23_22, 0xac, 18),
21728c2ecf20Sopenharmony_ci	/*     pg_name,    r */
21738c2ecf20Sopenharmony_ci	DRV_PG(ao1,        0x868),
21748c2ecf20Sopenharmony_ci	DRV_PG(ao2,        0x86c),
21758c2ecf20Sopenharmony_ci	DRV_PG(at1,        0x870),
21768c2ecf20Sopenharmony_ci	DRV_PG(at2,        0x874),
21778c2ecf20Sopenharmony_ci	DRV_PG(cdev1,      0x878),
21788c2ecf20Sopenharmony_ci	DRV_PG(cdev2,      0x87c),
21798c2ecf20Sopenharmony_ci	DRV_PG(csus,       0x880),
21808c2ecf20Sopenharmony_ci	DRV_PG(dap1,       0x884),
21818c2ecf20Sopenharmony_ci	DRV_PG(dap2,       0x888),
21828c2ecf20Sopenharmony_ci	DRV_PG(dap3,       0x88c),
21838c2ecf20Sopenharmony_ci	DRV_PG(dap4,       0x890),
21848c2ecf20Sopenharmony_ci	DRV_PG(dbg,        0x894),
21858c2ecf20Sopenharmony_ci	DRV_PG(lcd1,       0x898),
21868c2ecf20Sopenharmony_ci	DRV_PG(lcd2,       0x89c),
21878c2ecf20Sopenharmony_ci	DRV_PG(sdmmc2,     0x8a0),
21888c2ecf20Sopenharmony_ci	DRV_PG(sdmmc3,     0x8a4),
21898c2ecf20Sopenharmony_ci	DRV_PG(spi,        0x8a8),
21908c2ecf20Sopenharmony_ci	DRV_PG(uaa,        0x8ac),
21918c2ecf20Sopenharmony_ci	DRV_PG(uab,        0x8b0),
21928c2ecf20Sopenharmony_ci	DRV_PG(uart2,      0x8b4),
21938c2ecf20Sopenharmony_ci	DRV_PG(uart3,      0x8b8),
21948c2ecf20Sopenharmony_ci	DRV_PG(vi1,        0x8bc),
21958c2ecf20Sopenharmony_ci	DRV_PG(vi2,        0x8c0),
21968c2ecf20Sopenharmony_ci	/*         pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, drvup_b, slwr_b, slwr_w, slwf_b, slwf_w */
21978c2ecf20Sopenharmony_ci	DRV_PG_EXT(xm2a,   0x8c4, -1, -1,  4, 14, 19, 24, 4, 28, 4),
21988c2ecf20Sopenharmony_ci	DRV_PG_EXT(xm2c,   0x8c8, -1,  3, -1, 14, 19, 24, 4, 28, 4),
21998c2ecf20Sopenharmony_ci	DRV_PG_EXT(xm2d,   0x8cc, -1,  3, -1, 14, 19, 24, 4, 28, 4),
22008c2ecf20Sopenharmony_ci	DRV_PG_EXT(xm2clk, 0x8d0, -1, -1, -1, 14, 19, 24, 4, 28, 4),
22018c2ecf20Sopenharmony_ci	/*     pg_name,    r */
22028c2ecf20Sopenharmony_ci	DRV_PG(sdio1,      0x8e0),
22038c2ecf20Sopenharmony_ci	DRV_PG(crt,        0x8ec),
22048c2ecf20Sopenharmony_ci	DRV_PG(ddc,        0x8f0),
22058c2ecf20Sopenharmony_ci	DRV_PG(gma,        0x8f4),
22068c2ecf20Sopenharmony_ci	DRV_PG(gmb,        0x8f8),
22078c2ecf20Sopenharmony_ci	DRV_PG(gmc,        0x8fc),
22088c2ecf20Sopenharmony_ci	DRV_PG(gmd,        0x900),
22098c2ecf20Sopenharmony_ci	DRV_PG(gme,        0x904),
22108c2ecf20Sopenharmony_ci	DRV_PG(owr,        0x908),
22118c2ecf20Sopenharmony_ci	DRV_PG(uda,        0x90c),
22128c2ecf20Sopenharmony_ci};
22138c2ecf20Sopenharmony_ci
22148c2ecf20Sopenharmony_cistatic const struct tegra_pinctrl_soc_data tegra20_pinctrl = {
22158c2ecf20Sopenharmony_ci	.ngpios = NUM_GPIOS,
22168c2ecf20Sopenharmony_ci	.gpio_compatible = "nvidia,tegra20-gpio",
22178c2ecf20Sopenharmony_ci	.pins = tegra20_pins,
22188c2ecf20Sopenharmony_ci	.npins = ARRAY_SIZE(tegra20_pins),
22198c2ecf20Sopenharmony_ci	.functions = tegra20_functions,
22208c2ecf20Sopenharmony_ci	.nfunctions = ARRAY_SIZE(tegra20_functions),
22218c2ecf20Sopenharmony_ci	.groups = tegra20_groups,
22228c2ecf20Sopenharmony_ci	.ngroups = ARRAY_SIZE(tegra20_groups),
22238c2ecf20Sopenharmony_ci	.hsm_in_mux = false,
22248c2ecf20Sopenharmony_ci	.schmitt_in_mux = false,
22258c2ecf20Sopenharmony_ci	.drvtype_in_mux = false,
22268c2ecf20Sopenharmony_ci};
22278c2ecf20Sopenharmony_ci
22288c2ecf20Sopenharmony_cistatic const char *cdev1_parents[] = {
22298c2ecf20Sopenharmony_ci	"dev1_osc_div", "pll_a_out0", "pll_m_out1", "audio",
22308c2ecf20Sopenharmony_ci};
22318c2ecf20Sopenharmony_ci
22328c2ecf20Sopenharmony_cistatic const char *cdev2_parents[] = {
22338c2ecf20Sopenharmony_ci	"dev2_osc_div", "hclk", "pclk", "pll_p_out4",
22348c2ecf20Sopenharmony_ci};
22358c2ecf20Sopenharmony_ci
22368c2ecf20Sopenharmony_cistatic void tegra20_pinctrl_register_clock_muxes(struct platform_device *pdev)
22378c2ecf20Sopenharmony_ci{
22388c2ecf20Sopenharmony_ci	struct tegra_pmx *pmx = platform_get_drvdata(pdev);
22398c2ecf20Sopenharmony_ci
22408c2ecf20Sopenharmony_ci	clk_register_mux(NULL, "cdev1_mux", cdev1_parents, 4, 0,
22418c2ecf20Sopenharmony_ci			 pmx->regs[1] + 0x8, 2, 2, CLK_MUX_READ_ONLY, NULL);
22428c2ecf20Sopenharmony_ci
22438c2ecf20Sopenharmony_ci	clk_register_mux(NULL, "cdev2_mux", cdev2_parents, 4, 0,
22448c2ecf20Sopenharmony_ci			 pmx->regs[1] + 0x8, 4, 2, CLK_MUX_READ_ONLY, NULL);
22458c2ecf20Sopenharmony_ci}
22468c2ecf20Sopenharmony_ci
22478c2ecf20Sopenharmony_cistatic int tegra20_pinctrl_probe(struct platform_device *pdev)
22488c2ecf20Sopenharmony_ci{
22498c2ecf20Sopenharmony_ci	int err;
22508c2ecf20Sopenharmony_ci
22518c2ecf20Sopenharmony_ci	err = tegra_pinctrl_probe(pdev, &tegra20_pinctrl);
22528c2ecf20Sopenharmony_ci	if (err)
22538c2ecf20Sopenharmony_ci		return err;
22548c2ecf20Sopenharmony_ci
22558c2ecf20Sopenharmony_ci	tegra20_pinctrl_register_clock_muxes(pdev);
22568c2ecf20Sopenharmony_ci
22578c2ecf20Sopenharmony_ci	return 0;
22588c2ecf20Sopenharmony_ci}
22598c2ecf20Sopenharmony_ci
22608c2ecf20Sopenharmony_cistatic const struct of_device_id tegra20_pinctrl_of_match[] = {
22618c2ecf20Sopenharmony_ci	{ .compatible = "nvidia,tegra20-pinmux", },
22628c2ecf20Sopenharmony_ci	{ },
22638c2ecf20Sopenharmony_ci};
22648c2ecf20Sopenharmony_ci
22658c2ecf20Sopenharmony_cistatic struct platform_driver tegra20_pinctrl_driver = {
22668c2ecf20Sopenharmony_ci	.driver = {
22678c2ecf20Sopenharmony_ci		.name = "tegra20-pinctrl",
22688c2ecf20Sopenharmony_ci		.of_match_table = tegra20_pinctrl_of_match,
22698c2ecf20Sopenharmony_ci	},
22708c2ecf20Sopenharmony_ci	.probe = tegra20_pinctrl_probe,
22718c2ecf20Sopenharmony_ci};
22728c2ecf20Sopenharmony_ci
22738c2ecf20Sopenharmony_cistatic int __init tegra20_pinctrl_init(void)
22748c2ecf20Sopenharmony_ci{
22758c2ecf20Sopenharmony_ci	return platform_driver_register(&tegra20_pinctrl_driver);
22768c2ecf20Sopenharmony_ci}
22778c2ecf20Sopenharmony_ciarch_initcall(tegra20_pinctrl_init);
2278