162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Pinctrl data for the NVIDIA Tegra20 pinmux
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Author: Stephen Warren <swarren@nvidia.com>
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Copyright (c) 2011-2012, NVIDIA CORPORATION.  All rights reserved.
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci * Derived from code:
1062306a36Sopenharmony_ci * Copyright (C) 2010 Google, Inc.
1162306a36Sopenharmony_ci * Copyright (C) 2010 NVIDIA Corporation
1262306a36Sopenharmony_ci */
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#include <linux/clk-provider.h>
1562306a36Sopenharmony_ci#include <linux/init.h>
1662306a36Sopenharmony_ci#include <linux/of.h>
1762306a36Sopenharmony_ci#include <linux/platform_device.h>
1862306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
1962306a36Sopenharmony_ci#include <linux/pinctrl/pinmux.h>
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#include "pinctrl-tegra.h"
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci/*
2462306a36Sopenharmony_ci * Most pins affected by the pinmux can also be GPIOs. Define these first.
2562306a36Sopenharmony_ci * These must match how the GPIO driver names/numbers its pins.
2662306a36Sopenharmony_ci */
2762306a36Sopenharmony_ci#define _GPIO(offset)			(offset)
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci#define TEGRA_PIN_VI_GP6_PA0		_GPIO(0)
3062306a36Sopenharmony_ci#define TEGRA_PIN_UART3_CTS_N_PA1	_GPIO(1)
3162306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_FS_PA2		_GPIO(2)
3262306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_SCLK_PA3		_GPIO(3)
3362306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_DIN_PA4		_GPIO(4)
3462306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_DOUT_PA5		_GPIO(5)
3562306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_CLK_PA6		_GPIO(6)
3662306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_CMD_PA7		_GPIO(7)
3762306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD17_PB0		_GPIO(8)
3862306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD18_PB1		_GPIO(9)
3962306a36Sopenharmony_ci#define TEGRA_PIN_LCD_PWR0_PB2		_GPIO(10)
4062306a36Sopenharmony_ci#define TEGRA_PIN_LCD_PCLK_PB3		_GPIO(11)
4162306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT3_PB4	_GPIO(12)
4262306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT2_PB5	_GPIO(13)
4362306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT1_PB6	_GPIO(14)
4462306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT0_PB7	_GPIO(15)
4562306a36Sopenharmony_ci#define TEGRA_PIN_UART3_RTS_N_PC0	_GPIO(16)
4662306a36Sopenharmony_ci#define TEGRA_PIN_LCD_PWR1_PC1		_GPIO(17)
4762306a36Sopenharmony_ci#define TEGRA_PIN_UART2_TXD_PC2		_GPIO(18)
4862306a36Sopenharmony_ci#define TEGRA_PIN_UART2_RXD_PC3		_GPIO(19)
4962306a36Sopenharmony_ci#define TEGRA_PIN_GEN1_I2C_SCL_PC4	_GPIO(20)
5062306a36Sopenharmony_ci#define TEGRA_PIN_GEN1_I2C_SDA_PC5	_GPIO(21)
5162306a36Sopenharmony_ci#define TEGRA_PIN_LCD_PWR2_PC6		_GPIO(22)
5262306a36Sopenharmony_ci#define TEGRA_PIN_GMI_WP_N_PC7		_GPIO(23)
5362306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT5_PD0	_GPIO(24)
5462306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT4_PD1	_GPIO(25)
5562306a36Sopenharmony_ci#define TEGRA_PIN_VI_GP5_PD2		_GPIO(26)
5662306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT6_PD3	_GPIO(27)
5762306a36Sopenharmony_ci#define TEGRA_PIN_SDIO3_DAT7_PD4	_GPIO(28)
5862306a36Sopenharmony_ci#define TEGRA_PIN_VI_D1_PD5		_GPIO(29)
5962306a36Sopenharmony_ci#define TEGRA_PIN_VI_VSYNC_PD6		_GPIO(30)
6062306a36Sopenharmony_ci#define TEGRA_PIN_VI_HSYNC_PD7		_GPIO(31)
6162306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D0_PE0		_GPIO(32)
6262306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D1_PE1		_GPIO(33)
6362306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D2_PE2		_GPIO(34)
6462306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D3_PE3		_GPIO(35)
6562306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D4_PE4		_GPIO(36)
6662306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D5_PE5		_GPIO(37)
6762306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D6_PE6		_GPIO(38)
6862306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D7_PE7		_GPIO(39)
6962306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D8_PF0		_GPIO(40)
7062306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D9_PF1		_GPIO(41)
7162306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D10_PF2		_GPIO(42)
7262306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D11_PF3		_GPIO(43)
7362306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D12_PF4		_GPIO(44)
7462306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D13_PF5		_GPIO(45)
7562306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D14_PF6		_GPIO(46)
7662306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D15_PF7		_GPIO(47)
7762306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD0_PG0		_GPIO(48)
7862306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD1_PG1		_GPIO(49)
7962306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD2_PG2		_GPIO(50)
8062306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD3_PG3		_GPIO(51)
8162306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD4_PG4		_GPIO(52)
8262306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD5_PG5		_GPIO(53)
8362306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD6_PG6		_GPIO(54)
8462306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD7_PG7		_GPIO(55)
8562306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD8_PH0		_GPIO(56)
8662306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD9_PH1		_GPIO(57)
8762306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD10_PH2		_GPIO(58)
8862306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD11_PH3		_GPIO(59)
8962306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD12_PH4		_GPIO(60)
9062306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD13_PH5		_GPIO(61)
9162306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD14_PH6		_GPIO(62)
9262306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD15_PH7		_GPIO(63)
9362306a36Sopenharmony_ci#define TEGRA_PIN_GMI_HIOW_N_PI0	_GPIO(64)
9462306a36Sopenharmony_ci#define TEGRA_PIN_GMI_HIOR_N_PI1	_GPIO(65)
9562306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS5_N_PI2		_GPIO(66)
9662306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS6_N_PI3		_GPIO(67)
9762306a36Sopenharmony_ci#define TEGRA_PIN_GMI_RST_N_PI4		_GPIO(68)
9862306a36Sopenharmony_ci#define TEGRA_PIN_GMI_IORDY_PI5		_GPIO(69)
9962306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS7_N_PI6		_GPIO(70)
10062306a36Sopenharmony_ci#define TEGRA_PIN_GMI_WAIT_PI7		_GPIO(71)
10162306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS0_N_PJ0		_GPIO(72)
10262306a36Sopenharmony_ci#define TEGRA_PIN_LCD_DE_PJ1		_GPIO(73)
10362306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS1_N_PJ2		_GPIO(74)
10462306a36Sopenharmony_ci#define TEGRA_PIN_LCD_HSYNC_PJ3		_GPIO(75)
10562306a36Sopenharmony_ci#define TEGRA_PIN_LCD_VSYNC_PJ4		_GPIO(76)
10662306a36Sopenharmony_ci#define TEGRA_PIN_UART2_CTS_N_PJ5	_GPIO(77)
10762306a36Sopenharmony_ci#define TEGRA_PIN_UART2_RTS_N_PJ6	_GPIO(78)
10862306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD16_PJ7		_GPIO(79)
10962306a36Sopenharmony_ci#define TEGRA_PIN_GMI_ADV_N_PK0		_GPIO(80)
11062306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CLK_PK1		_GPIO(81)
11162306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS4_N_PK2		_GPIO(82)
11262306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS2_N_PK3		_GPIO(83)
11362306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CS3_N_PK4		_GPIO(84)
11462306a36Sopenharmony_ci#define TEGRA_PIN_SPDIF_OUT_PK5		_GPIO(85)
11562306a36Sopenharmony_ci#define TEGRA_PIN_SPDIF_IN_PK6		_GPIO(86)
11662306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD19_PK7		_GPIO(87)
11762306a36Sopenharmony_ci#define TEGRA_PIN_VI_D2_PL0		_GPIO(88)
11862306a36Sopenharmony_ci#define TEGRA_PIN_VI_D3_PL1		_GPIO(89)
11962306a36Sopenharmony_ci#define TEGRA_PIN_VI_D4_PL2		_GPIO(90)
12062306a36Sopenharmony_ci#define TEGRA_PIN_VI_D5_PL3		_GPIO(91)
12162306a36Sopenharmony_ci#define TEGRA_PIN_VI_D6_PL4		_GPIO(92)
12262306a36Sopenharmony_ci#define TEGRA_PIN_VI_D7_PL5		_GPIO(93)
12362306a36Sopenharmony_ci#define TEGRA_PIN_VI_D8_PL6		_GPIO(94)
12462306a36Sopenharmony_ci#define TEGRA_PIN_VI_D9_PL7		_GPIO(95)
12562306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D16_PM0		_GPIO(96)
12662306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D17_PM1		_GPIO(97)
12762306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D18_PM2		_GPIO(98)
12862306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D19_PM3		_GPIO(99)
12962306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D20_PM4		_GPIO(100)
13062306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D21_PM5		_GPIO(101)
13162306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D22_PM6		_GPIO(102)
13262306a36Sopenharmony_ci#define TEGRA_PIN_LCD_D23_PM7		_GPIO(103)
13362306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_FS_PN0		_GPIO(104)
13462306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_DIN_PN1		_GPIO(105)
13562306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_DOUT_PN2		_GPIO(106)
13662306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_SCLK_PN3		_GPIO(107)
13762306a36Sopenharmony_ci#define TEGRA_PIN_LCD_CS0_N_PN4		_GPIO(108)
13862306a36Sopenharmony_ci#define TEGRA_PIN_LCD_SDOUT_PN5		_GPIO(109)
13962306a36Sopenharmony_ci#define TEGRA_PIN_LCD_DC0_PN6		_GPIO(110)
14062306a36Sopenharmony_ci#define TEGRA_PIN_HDMI_INT_N_PN7	_GPIO(111)
14162306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA7_PO0	_GPIO(112)
14262306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA0_PO1	_GPIO(113)
14362306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA1_PO2	_GPIO(114)
14462306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA2_PO3	_GPIO(115)
14562306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA3_PO4	_GPIO(116)
14662306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA4_PO5	_GPIO(117)
14762306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA5_PO6	_GPIO(118)
14862306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA6_PO7	_GPIO(119)
14962306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_FS_PP0		_GPIO(120)
15062306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_DIN_PP1		_GPIO(121)
15162306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_DOUT_PP2		_GPIO(122)
15262306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_SCLK_PP3		_GPIO(123)
15362306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_FS_PP4		_GPIO(124)
15462306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_DIN_PP5		_GPIO(125)
15562306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_DOUT_PP6		_GPIO(126)
15662306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_SCLK_PP7		_GPIO(127)
15762306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL0_PQ0		_GPIO(128)
15862306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL1_PQ1		_GPIO(129)
15962306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL2_PQ2		_GPIO(130)
16062306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL3_PQ3		_GPIO(131)
16162306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL4_PQ4		_GPIO(132)
16262306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL5_PQ5		_GPIO(133)
16362306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL6_PQ6		_GPIO(134)
16462306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL7_PQ7		_GPIO(135)
16562306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW0_PR0		_GPIO(136)
16662306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW1_PR1		_GPIO(137)
16762306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW2_PR2		_GPIO(138)
16862306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW3_PR3		_GPIO(139)
16962306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW4_PR4		_GPIO(140)
17062306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW5_PR5		_GPIO(141)
17162306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW6_PR6		_GPIO(142)
17262306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW7_PR7		_GPIO(143)
17362306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW8_PS0		_GPIO(144)
17462306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW9_PS1		_GPIO(145)
17562306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW10_PS2		_GPIO(146)
17662306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW11_PS3		_GPIO(147)
17762306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW12_PS4		_GPIO(148)
17862306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW13_PS5		_GPIO(149)
17962306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW14_PS6		_GPIO(150)
18062306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW15_PS7		_GPIO(151)
18162306a36Sopenharmony_ci#define TEGRA_PIN_VI_PCLK_PT0		_GPIO(152)
18262306a36Sopenharmony_ci#define TEGRA_PIN_VI_MCLK_PT1		_GPIO(153)
18362306a36Sopenharmony_ci#define TEGRA_PIN_VI_D10_PT2		_GPIO(154)
18462306a36Sopenharmony_ci#define TEGRA_PIN_VI_D11_PT3		_GPIO(155)
18562306a36Sopenharmony_ci#define TEGRA_PIN_VI_D0_PT4		_GPIO(156)
18662306a36Sopenharmony_ci#define TEGRA_PIN_GEN2_I2C_SCL_PT5	_GPIO(157)
18762306a36Sopenharmony_ci#define TEGRA_PIN_GEN2_I2C_SDA_PT6	_GPIO(158)
18862306a36Sopenharmony_ci#define TEGRA_PIN_GMI_DPD_PT7		_GPIO(159)
18962306a36Sopenharmony_ci#define TEGRA_PIN_PU0			_GPIO(160)
19062306a36Sopenharmony_ci#define TEGRA_PIN_PU1			_GPIO(161)
19162306a36Sopenharmony_ci#define TEGRA_PIN_PU2			_GPIO(162)
19262306a36Sopenharmony_ci#define TEGRA_PIN_PU3			_GPIO(163)
19362306a36Sopenharmony_ci#define TEGRA_PIN_PU4			_GPIO(164)
19462306a36Sopenharmony_ci#define TEGRA_PIN_PU5			_GPIO(165)
19562306a36Sopenharmony_ci#define TEGRA_PIN_PU6			_GPIO(166)
19662306a36Sopenharmony_ci#define TEGRA_PIN_JTAG_RTCK_PU7		_GPIO(167)
19762306a36Sopenharmony_ci#define TEGRA_PIN_PV0			_GPIO(168)
19862306a36Sopenharmony_ci#define TEGRA_PIN_PV1			_GPIO(169)
19962306a36Sopenharmony_ci#define TEGRA_PIN_PV2			_GPIO(170)
20062306a36Sopenharmony_ci#define TEGRA_PIN_PV3			_GPIO(171)
20162306a36Sopenharmony_ci#define TEGRA_PIN_PV4			_GPIO(172)
20262306a36Sopenharmony_ci#define TEGRA_PIN_PV5			_GPIO(173)
20362306a36Sopenharmony_ci#define TEGRA_PIN_PV6			_GPIO(174)
20462306a36Sopenharmony_ci#define TEGRA_PIN_LCD_DC1_PV7		_GPIO(175)
20562306a36Sopenharmony_ci#define TEGRA_PIN_LCD_CS1_N_PW0		_GPIO(176)
20662306a36Sopenharmony_ci#define TEGRA_PIN_LCD_M1_PW1		_GPIO(177)
20762306a36Sopenharmony_ci#define TEGRA_PIN_SPI2_CS1_N_PW2	_GPIO(178)
20862306a36Sopenharmony_ci#define TEGRA_PIN_SPI2_CS2_N_PW3	_GPIO(179)
20962306a36Sopenharmony_ci#define TEGRA_PIN_DAP_MCLK1_PW4		_GPIO(180)
21062306a36Sopenharmony_ci#define TEGRA_PIN_DAP_MCLK2_PW5		_GPIO(181)
21162306a36Sopenharmony_ci#define TEGRA_PIN_UART3_TXD_PW6		_GPIO(182)
21262306a36Sopenharmony_ci#define TEGRA_PIN_UART3_RXD_PW7		_GPIO(183)
21362306a36Sopenharmony_ci#define TEGRA_PIN_SPI2_MOSI_PX0		_GPIO(184)
21462306a36Sopenharmony_ci#define TEGRA_PIN_SPI2_MISO_PX1		_GPIO(185)
21562306a36Sopenharmony_ci#define TEGRA_PIN_SPI2_SCK_PX2		_GPIO(186)
21662306a36Sopenharmony_ci#define TEGRA_PIN_SPI2_CS0_N_PX3	_GPIO(187)
21762306a36Sopenharmony_ci#define TEGRA_PIN_SPI1_MOSI_PX4		_GPIO(188)
21862306a36Sopenharmony_ci#define TEGRA_PIN_SPI1_SCK_PX5		_GPIO(189)
21962306a36Sopenharmony_ci#define TEGRA_PIN_SPI1_CS0_N_PX6	_GPIO(190)
22062306a36Sopenharmony_ci#define TEGRA_PIN_SPI1_MISO_PX7		_GPIO(191)
22162306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_CLK_PY0		_GPIO(192)
22262306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DIR_PY1		_GPIO(193)
22362306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_NXT_PY2		_GPIO(194)
22462306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_STP_PY3		_GPIO(195)
22562306a36Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT3_PY4	_GPIO(196)
22662306a36Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT2_PY5	_GPIO(197)
22762306a36Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT1_PY6	_GPIO(198)
22862306a36Sopenharmony_ci#define TEGRA_PIN_SDIO1_DAT0_PY7	_GPIO(199)
22962306a36Sopenharmony_ci#define TEGRA_PIN_SDIO1_CLK_PZ0		_GPIO(200)
23062306a36Sopenharmony_ci#define TEGRA_PIN_SDIO1_CMD_PZ1		_GPIO(201)
23162306a36Sopenharmony_ci#define TEGRA_PIN_LCD_SDIN_PZ2		_GPIO(202)
23262306a36Sopenharmony_ci#define TEGRA_PIN_LCD_WR_N_PZ3		_GPIO(203)
23362306a36Sopenharmony_ci#define TEGRA_PIN_LCD_SCK_PZ4		_GPIO(204)
23462306a36Sopenharmony_ci#define TEGRA_PIN_SYS_CLK_REQ_PZ5	_GPIO(205)
23562306a36Sopenharmony_ci#define TEGRA_PIN_PWR_I2C_SCL_PZ6	_GPIO(206)
23662306a36Sopenharmony_ci#define TEGRA_PIN_PWR_I2C_SDA_PZ7	_GPIO(207)
23762306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD20_PAA0		_GPIO(208)
23862306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD21_PAA1		_GPIO(209)
23962306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD22_PAA2		_GPIO(210)
24062306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD23_PAA3		_GPIO(211)
24162306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD24_PAA4		_GPIO(212)
24262306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD25_PAA5		_GPIO(213)
24362306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD26_PAA6		_GPIO(214)
24462306a36Sopenharmony_ci#define TEGRA_PIN_GMI_AD27_PAA7		_GPIO(215)
24562306a36Sopenharmony_ci#define TEGRA_PIN_LED_BLINK_PBB0	_GPIO(216)
24662306a36Sopenharmony_ci#define TEGRA_PIN_VI_GP0_PBB1		_GPIO(217)
24762306a36Sopenharmony_ci#define TEGRA_PIN_CAM_I2C_SCL_PBB2	_GPIO(218)
24862306a36Sopenharmony_ci#define TEGRA_PIN_CAM_I2C_SDA_PBB3	_GPIO(219)
24962306a36Sopenharmony_ci#define TEGRA_PIN_VI_GP3_PBB4		_GPIO(220)
25062306a36Sopenharmony_ci#define TEGRA_PIN_VI_GP4_PBB5		_GPIO(221)
25162306a36Sopenharmony_ci#define TEGRA_PIN_PBB6			_GPIO(222)
25262306a36Sopenharmony_ci#define TEGRA_PIN_PBB7			_GPIO(223)
25362306a36Sopenharmony_ci
25462306a36Sopenharmony_ci/* All non-GPIO pins follow */
25562306a36Sopenharmony_ci#define NUM_GPIOS			(TEGRA_PIN_PBB7 + 1)
25662306a36Sopenharmony_ci#define _PIN(offset)			(NUM_GPIOS + (offset))
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ci#define TEGRA_PIN_CRT_HSYNC		_PIN(30)
25962306a36Sopenharmony_ci#define TEGRA_PIN_CRT_VSYNC		_PIN(31)
26062306a36Sopenharmony_ci#define TEGRA_PIN_DDC_SCL		_PIN(32)
26162306a36Sopenharmony_ci#define TEGRA_PIN_DDC_SDA		_PIN(33)
26262306a36Sopenharmony_ci#define TEGRA_PIN_OWC			_PIN(34)
26362306a36Sopenharmony_ci#define TEGRA_PIN_CORE_PWR_REQ		_PIN(35)
26462306a36Sopenharmony_ci#define TEGRA_PIN_CPU_PWR_REQ		_PIN(36)
26562306a36Sopenharmony_ci#define TEGRA_PIN_PWR_INT_N		_PIN(37)
26662306a36Sopenharmony_ci#define TEGRA_PIN_CLK_32_K_IN		_PIN(38)
26762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_COMP_PD		_PIN(39)
26862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_COMP_PU		_PIN(40)
26962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A0		_PIN(41)
27062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A1		_PIN(42)
27162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A2		_PIN(43)
27262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A3		_PIN(44)
27362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A4		_PIN(45)
27462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A5		_PIN(46)
27562306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A6		_PIN(47)
27662306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A7		_PIN(48)
27762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A8		_PIN(49)
27862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A9		_PIN(50)
27962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A10		_PIN(51)
28062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A11		_PIN(52)
28162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A12		_PIN(53)
28262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A13		_PIN(54)
28362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_A14		_PIN(55)
28462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_CAS_N		_PIN(56)
28562306a36Sopenharmony_ci#define TEGRA_PIN_DDR_BA0		_PIN(57)
28662306a36Sopenharmony_ci#define TEGRA_PIN_DDR_BA1		_PIN(58)
28762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_BA2		_PIN(59)
28862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS0P		_PIN(60)
28962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS0N		_PIN(61)
29062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS1P		_PIN(62)
29162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS1N		_PIN(63)
29262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS2P		_PIN(64)
29362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS2N		_PIN(65)
29462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS3P		_PIN(66)
29562306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQS3N		_PIN(67)
29662306a36Sopenharmony_ci#define TEGRA_PIN_DDR_CKE0		_PIN(68)
29762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_CKE1		_PIN(69)
29862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_CLK		_PIN(70)
29962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_CLK_N		_PIN(71)
30062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DM0		_PIN(72)
30162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DM1		_PIN(73)
30262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DM2		_PIN(74)
30362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DM3		_PIN(75)
30462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_ODT		_PIN(76)
30562306a36Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE0		_PIN(77)
30662306a36Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE1		_PIN(78)
30762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE2		_PIN(79)
30862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_QUSE3		_PIN(80)
30962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_RAS_N		_PIN(81)
31062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_WE_N		_PIN(82)
31162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ0		_PIN(83)
31262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ1		_PIN(84)
31362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ2		_PIN(85)
31462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ3		_PIN(86)
31562306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ4		_PIN(87)
31662306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ5		_PIN(88)
31762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ6		_PIN(89)
31862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ7		_PIN(90)
31962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ8		_PIN(91)
32062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ9		_PIN(92)
32162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ10		_PIN(93)
32262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ11		_PIN(94)
32362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ12		_PIN(95)
32462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ13		_PIN(96)
32562306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ14		_PIN(97)
32662306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ15		_PIN(98)
32762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ16		_PIN(99)
32862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ17		_PIN(100)
32962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ18		_PIN(101)
33062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ19		_PIN(102)
33162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ20		_PIN(103)
33262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ21		_PIN(104)
33362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ22		_PIN(105)
33462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ23		_PIN(106)
33562306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ24		_PIN(107)
33662306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ25		_PIN(108)
33762306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ26		_PIN(109)
33862306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ27		_PIN(110)
33962306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ28		_PIN(111)
34062306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ29		_PIN(112)
34162306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ30		_PIN(113)
34262306a36Sopenharmony_ci#define TEGRA_PIN_DDR_DQ31		_PIN(114)
34362306a36Sopenharmony_ci#define TEGRA_PIN_DDR_CS0_N		_PIN(115)
34462306a36Sopenharmony_ci#define TEGRA_PIN_DDR_CS1_N		_PIN(116)
34562306a36Sopenharmony_ci#define TEGRA_PIN_SYS_RESET		_PIN(117)
34662306a36Sopenharmony_ci#define TEGRA_PIN_JTAG_TRST_N		_PIN(118)
34762306a36Sopenharmony_ci#define TEGRA_PIN_JTAG_TDO		_PIN(119)
34862306a36Sopenharmony_ci#define TEGRA_PIN_JTAG_TMS		_PIN(120)
34962306a36Sopenharmony_ci#define TEGRA_PIN_JTAG_TCK		_PIN(121)
35062306a36Sopenharmony_ci#define TEGRA_PIN_JTAG_TDI		_PIN(122)
35162306a36Sopenharmony_ci#define TEGRA_PIN_TEST_MODE_EN		_PIN(123)
35262306a36Sopenharmony_ci
35362306a36Sopenharmony_cistatic const struct pinctrl_pin_desc tegra20_pins[] = {
35462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP6_PA0, "VI_GP6 PA0"),
35562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_CTS_N_PA1, "UART3_CTS_N PA1"),
35662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_FS_PA2, "DAP2_FS PA2"),
35762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_SCLK_PA3, "DAP2_SCLK PA3"),
35862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_DIN_PA4, "DAP2_DIN PA4"),
35962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP2_DOUT_PA5, "DAP2_DOUT PA5"),
36062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_CLK_PA6, "SDIO3_CLK PA6"),
36162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_CMD_PA7, "SDIO3_CMD PA7"),
36262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD17_PB0, "GMI_AD17 PB0"),
36362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD18_PB1, "GMI_AD18 PB1"),
36462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PWR0_PB2, "LCD_PWR0 PB2"),
36562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PCLK_PB3, "LCD_PCLK PB3"),
36662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT3_PB4, "SDIO3_DAT3 PB4"),
36762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT2_PB5, "SDIO3_DAT2 PB5"),
36862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT1_PB6, "SDIO3_DAT1 PB6"),
36962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT0_PB7, "SDIO3_DAT0 PB7"),
37062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_RTS_N_PC0, "UART3_RTS_N PC0"),
37162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PWR1_PC1, "LCD_PWR1 PC1"),
37262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_TXD_PC2, "UART2_TXD PC2"),
37362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_RXD_PC3, "UART2_RXD PC3"),
37462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PC4, "GEN1_I2C_SCL PC4"),
37562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PC5, "GEN1_I2C_SDA PC5"),
37662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_PWR2_PC6, "LCD_PWR2 PC6"),
37762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_WP_N_PC7, "GMI_WP_N PC7"),
37862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT5_PD0, "SDIO3_DAT5 PD0"),
37962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT4_PD1, "SDIO3_DAT4 PD1"),
38062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP5_PD2, "VI_GP5 PD2"),
38162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT6_PD3, "SDIO3_DAT6 PD3"),
38262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO3_DAT7_PD4, "SDIO3_DAT7 PD4"),
38362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D1_PD5, "VI_D1 PD5"),
38462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_VSYNC_PD6, "VI_VSYNC PD6"),
38562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_HSYNC_PD7, "VI_HSYNC PD7"),
38662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D0_PE0, "LCD_D0 PE0"),
38762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D1_PE1, "LCD_D1 PE1"),
38862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D2_PE2, "LCD_D2 PE2"),
38962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D3_PE3, "LCD_D3 PE3"),
39062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D4_PE4, "LCD_D4 PE4"),
39162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D5_PE5, "LCD_D5 PE5"),
39262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D6_PE6, "LCD_D6 PE6"),
39362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D7_PE7, "LCD_D7 PE7"),
39462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D8_PF0, "LCD_D8 PF0"),
39562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D9_PF1, "LCD_D9 PF1"),
39662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D10_PF2, "LCD_D10 PF2"),
39762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D11_PF3, "LCD_D11 PF3"),
39862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D12_PF4, "LCD_D12 PF4"),
39962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D13_PF5, "LCD_D13 PF5"),
40062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D14_PF6, "LCD_D14 PF6"),
40162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D15_PF7, "LCD_D15 PF7"),
40262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD0_PG0, "GMI_AD0 PG0"),
40362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD1_PG1, "GMI_AD1 PG1"),
40462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD2_PG2, "GMI_AD2 PG2"),
40562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD3_PG3, "GMI_AD3 PG3"),
40662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD4_PG4, "GMI_AD4 PG4"),
40762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD5_PG5, "GMI_AD5 PG5"),
40862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD6_PG6, "GMI_AD6 PG6"),
40962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD7_PG7, "GMI_AD7 PG7"),
41062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD8_PH0, "GMI_AD8 PH0"),
41162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD9_PH1, "GMI_AD9 PH1"),
41262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD10_PH2, "GMI_AD10 PH2"),
41362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD11_PH3, "GMI_AD11 PH3"),
41462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD12_PH4, "GMI_AD12 PH4"),
41562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD13_PH5, "GMI_AD13 PH5"),
41662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD14_PH6, "GMI_AD14 PH6"),
41762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD15_PH7, "GMI_AD15 PH7"),
41862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_HIOW_N_PI0, "GMI_HIOW_N PI0"),
41962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_HIOR_N_PI1, "GMI_HIOR_N PI1"),
42062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS5_N_PI2, "GMI_CS5_N PI2"),
42162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS6_N_PI3, "GMI_CS6_N PI3"),
42262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_RST_N_PI4, "GMI_RST_N PI4"),
42362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_IORDY_PI5, "GMI_IORDY PI5"),
42462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS7_N_PI6, "GMI_CS7_N PI6"),
42562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_WAIT_PI7, "GMI_WAIT PI7"),
42662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS0_N_PJ0, "GMI_CS0_N PJ0"),
42762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_DE_PJ1, "LCD_DE PJ1"),
42862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS1_N_PJ2, "GMI_CS1_N PJ2"),
42962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_HSYNC_PJ3, "LCD_HSYNC PJ3"),
43062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_VSYNC_PJ4, "LCD_VSYNC PJ4"),
43162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_CTS_N_PJ5, "UART2_CTS_N PJ5"),
43262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART2_RTS_N_PJ6, "UART2_RTS_N PJ6"),
43362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD16_PJ7, "GMI_AD16 PJ7"),
43462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_ADV_N_PK0, "GMI_ADV_N PK0"),
43562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CLK_PK1, "GMI_CLK PK1"),
43662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS4_N_PK2, "GMI_CS4_N PK2"),
43762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS2_N_PK3, "GMI_CS2_N PK3"),
43862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_CS3_N_PK4, "GMI_CS3_N PK4"),
43962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPDIF_OUT_PK5, "SPDIF_OUT PK5"),
44062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPDIF_IN_PK6, "SPDIF_IN PK6"),
44162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD19_PK7, "GMI_AD19 PK7"),
44262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D2_PL0, "VI_D2 PL0"),
44362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D3_PL1, "VI_D3 PL1"),
44462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D4_PL2, "VI_D4 PL2"),
44562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D5_PL3, "VI_D5 PL3"),
44662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D6_PL4, "VI_D6 PL4"),
44762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D7_PL5, "VI_D7 PL5"),
44862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D8_PL6, "VI_D8 PL6"),
44962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D9_PL7, "VI_D9 PL7"),
45062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D16_PM0, "LCD_D16 PM0"),
45162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D17_PM1, "LCD_D17 PM1"),
45262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D18_PM2, "LCD_D18 PM2"),
45362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D19_PM3, "LCD_D19 PM3"),
45462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D20_PM4, "LCD_D20 PM4"),
45562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D21_PM5, "LCD_D21 PM5"),
45662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D22_PM6, "LCD_D22 PM6"),
45762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_D23_PM7, "LCD_D23 PM7"),
45862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_FS_PN0, "DAP1_FS PN0"),
45962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_DIN_PN1, "DAP1_DIN PN1"),
46062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_DOUT_PN2, "DAP1_DOUT PN2"),
46162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP1_SCLK_PN3, "DAP1_SCLK PN3"),
46262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_CS0_N_PN4, "LCD_CS0_N PN4"),
46362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_SDOUT_PN5, "LCD_SDOUT PN5"),
46462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_DC0_PN6, "LCD_DC0 PN6"),
46562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_HDMI_INT_N_PN7, "HDMI_INT_N PN7"),
46662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA7_PO0, "ULPI_DATA7 PO0"),
46762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA0_PO1, "ULPI_DATA0 PO1"),
46862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA1_PO2, "ULPI_DATA1 PO2"),
46962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA2_PO3, "ULPI_DATA2 PO3"),
47062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA3_PO4, "ULPI_DATA3 PO4"),
47162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA4_PO5, "ULPI_DATA4 PO5"),
47262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA5_PO6, "ULPI_DATA5 PO6"),
47362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DATA6_PO7, "ULPI_DATA6 PO7"),
47462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_FS_PP0, "DAP3_FS PP0"),
47562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_DIN_PP1, "DAP3_DIN PP1"),
47662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_DOUT_PP2, "DAP3_DOUT PP2"),
47762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP3_SCLK_PP3, "DAP3_SCLK PP3"),
47862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PP4, "DAP4_FS PP4"),
47962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PP5, "DAP4_DIN PP5"),
48062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PP6, "DAP4_DOUT PP6"),
48162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PP7, "DAP4_SCLK PP7"),
48262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL0_PQ0, "KB_COL0 PQ0"),
48362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL1_PQ1, "KB_COL1 PQ1"),
48462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL2_PQ2, "KB_COL2 PQ2"),
48562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL3_PQ3, "KB_COL3 PQ3"),
48662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL4_PQ4, "KB_COL4 PQ4"),
48762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL5_PQ5, "KB_COL5 PQ5"),
48862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL6_PQ6, "KB_COL6 PQ6"),
48962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_COL7_PQ7, "KB_COL7 PQ7"),
49062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW0_PR0, "KB_ROW0 PR0"),
49162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW1_PR1, "KB_ROW1 PR1"),
49262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW2_PR2, "KB_ROW2 PR2"),
49362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW3_PR3, "KB_ROW3 PR3"),
49462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW4_PR4, "KB_ROW4 PR4"),
49562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW5_PR5, "KB_ROW5 PR5"),
49662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW6_PR6, "KB_ROW6 PR6"),
49762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW7_PR7, "KB_ROW7 PR7"),
49862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW8_PS0, "KB_ROW8 PS0"),
49962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW9_PS1, "KB_ROW9 PS1"),
50062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW10_PS2, "KB_ROW10 PS2"),
50162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW11_PS3, "KB_ROW11 PS3"),
50262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW12_PS4, "KB_ROW12 PS4"),
50362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW13_PS5, "KB_ROW13 PS5"),
50462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW14_PS6, "KB_ROW14 PS6"),
50562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_KB_ROW15_PS7, "KB_ROW15 PS7"),
50662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_PCLK_PT0, "VI_PCLK PT0"),
50762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_MCLK_PT1, "VI_MCLK PT1"),
50862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D10_PT2, "VD_D10 PT2"),
50962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D11_PT3, "VI_D11 PT3"),
51062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_D0_PT4, "VI_D0 PT4"),
51162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PT5, "GEN2_I2C_SCL PT5"),
51262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PT6, "GEN2_I2C_SDA PT6"),
51362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_DPD_PT7, "GMI_DPD PT7"),
51462306a36Sopenharmony_ci	/* PU0..6: GPIO only */
51562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU0, "PU0"),
51662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU1, "PU1"),
51762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU2, "PU2"),
51862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU3, "PU3"),
51962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU4, "PU4"),
52062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU5, "PU5"),
52162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PU6, "PU6"),
52262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_RTCK_PU7, "JTAG_RTCK PU7"),
52362306a36Sopenharmony_ci	/* PV0..1: GPIO only */
52462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV0, "PV0"),
52562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV1, "PV1"),
52662306a36Sopenharmony_ci	/* PV2..3: Balls are named after GPIO not function */
52762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV2, "PV2"),
52862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV3, "PV3"),
52962306a36Sopenharmony_ci	/* PV4..6: GPIO only */
53062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV4, "PV4"),
53162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV5, "PV5"),
53262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PV6, "PV6"),
53362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_DC1_PV7, "LCD_DC1 PV7"),
53462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_CS1_N_PW0, "LCD_CS1_N PW0"),
53562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_M1_PW1, "LCD_M1 PW1"),
53662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_CS1_N_PW2, "SPI2_CS1_N PW2"),
53762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_CS2_N_PW3, "SPI2_CS2_N PW3"),
53862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP_MCLK1_PW4, "DAP_MCLK1 PW4"),
53962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DAP_MCLK2_PW5, "DAP_MCLK2 PW5"),
54062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_TXD_PW6, "UART3_TXD PW6"),
54162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_UART3_RXD_PW7, "UART3_RXD PW7"),
54262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_MOSI_PX0, "SPI2_MOSI PX0"),
54362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_MISO_PX1, "SPI2_MISO PX1"),
54462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_SCK_PX2, "SPI2_SCK PX2"),
54562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI2_CS0_N_PX3, "SPI2_CS0_N PX3"),
54662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_MOSI_PX4, "SPI1_MOSI PX4"),
54762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_SCK_PX5, "SPI1_SCK PX5"),
54862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_CS0_N_PX6, "SPI1_CS0_N PX6"),
54962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SPI1_MISO_PX7, "SPI1_MISO PX7"),
55062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_CLK_PY0, "ULPI_CLK PY0"),
55162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_DIR_PY1, "ULPI_DIR PY1"),
55262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_NXT_PY2, "ULPI_NXT PY2"),
55362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_ULPI_STP_PY3, "ULPI_STP PY3"),
55462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT3_PY4, "SDIO1_DAT3 PY4"),
55562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT2_PY5, "SDIO1_DAT2 PY5"),
55662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT1_PY6, "SDIO1_DAT1 PY6"),
55762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_DAT0_PY7, "SDIO1_DAT0 PY7"),
55862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_CLK_PZ0, "SDIO1_CLK PZ0"),
55962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SDIO1_CMD_PZ1, "SDIO1_CMD PZ1"),
56062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_SDIN_PZ2, "LCD_SDIN PZ2"),
56162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_WR_N_PZ3, "LCD_WR_N PZ3"),
56262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LCD_SCK_PZ4, "LCD_SCK PZ4"),
56362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SYS_CLK_REQ_PZ5, "SYS_CLK_REQ PZ5"),
56462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PZ6, "PWR_I2C_SCL PZ6"),
56562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PZ7, "PWR_I2C_SDA PZ7"),
56662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD20_PAA0, "GMI_AD20 PAA0"),
56762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD21_PAA1, "GMI_AD21 PAA1"),
56862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD22_PAA2, "GMI_AD22 PAA2"),
56962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD23_PAA3, "GMI_AD23 PAA3"),
57062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD24_PAA4, "GMI_AD24 PAA4"),
57162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD25_PAA5, "GMI_AD25 PAA5"),
57262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD26_PAA6, "GMI_AD26 PAA6"),
57362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_GMI_AD27_PAA7, "GMI_AD27 PAA7"),
57462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_LED_BLINK_PBB0, "LED_BLINK PBB0"),
57562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP0_PBB1, "VI_GP0 PBB1"),
57662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PBB2, "CAM_I2C_SCL PBB2"),
57762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PBB3, "CAM_I2C_SDA PBB3"),
57862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP3_PBB4, "VI_GP3 PBB4"),
57962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_VI_GP4_PBB5, "VI_GP4 PBB5"),
58062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PBB6, "PBB6"),
58162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PBB7, "PBB7"),
58262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CRT_HSYNC, "CRT_HSYNC"),
58362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CRT_VSYNC, "CRT_VSYNC"),
58462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDC_SCL, "DDC_SCL"),
58562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDC_SDA, "DDC_SDA"),
58662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_OWC, "OWC"),
58762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CORE_PWR_REQ, "CORE_PWR_REQ"),
58862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ, "CPU_PWR_REQ"),
58962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_PWR_INT_N, "PWR_INT_N"),
59062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_CLK_32_K_IN, "CLK_32_K_IN"),
59162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_COMP_PD, "DDR_COMP_PD"),
59262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_COMP_PU, "DDR_COMP_PU"),
59362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A0, "DDR_A0"),
59462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A1, "DDR_A1"),
59562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A2, "DDR_A2"),
59662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A3, "DDR_A3"),
59762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A4, "DDR_A4"),
59862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A5, "DDR_A5"),
59962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A6, "DDR_A6"),
60062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A7, "DDR_A7"),
60162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A8, "DDR_A8"),
60262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A9, "DDR_A9"),
60362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A10, "DDR_A10"),
60462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A11, "DDR_A11"),
60562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A12, "DDR_A12"),
60662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A13, "DDR_A13"),
60762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_A14, "DDR_A14"),
60862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CAS_N, "DDR_CAS_N"),
60962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_BA0, "DDR_BA0"),
61062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_BA1, "DDR_BA1"),
61162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_BA2, "DDR_BA2"),
61262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS0P, "DDR_DQS0P"),
61362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS0N, "DDR_DQS0N"),
61462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS1P, "DDR_DQS1P"),
61562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS1N, "DDR_DQS1N"),
61662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS2P, "DDR_DQS2P"),
61762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS2N, "DDR_DQS2N"),
61862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS3P, "DDR_DQS3P"),
61962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQS3N, "DDR_DQS3N"),
62062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CKE0, "DDR_CKE0"),
62162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CKE1, "DDR_CKE1"),
62262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CLK, "DDR_CLK"),
62362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CLK_N, "DDR_CLK_N"),
62462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM0, "DDR_DM0"),
62562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM1, "DDR_DM1"),
62662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM2, "DDR_DM2"),
62762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DM3, "DDR_DM3"),
62862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_ODT, "DDR_ODT"),
62962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE0, "DDR_QUSE0"),
63062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE1, "DDR_QUSE1"),
63162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE2, "DDR_QUSE2"),
63262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_QUSE3, "DDR_QUSE3"),
63362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_RAS_N, "DDR_RAS_N"),
63462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_WE_N, "DDR_WE_N"),
63562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ0, "DDR_DQ0"),
63662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ1, "DDR_DQ1"),
63762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ2, "DDR_DQ2"),
63862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ3, "DDR_DQ3"),
63962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ4, "DDR_DQ4"),
64062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ5, "DDR_DQ5"),
64162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ6, "DDR_DQ6"),
64262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ7, "DDR_DQ7"),
64362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ8, "DDR_DQ8"),
64462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ9, "DDR_DQ9"),
64562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ10, "DDR_DQ10"),
64662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ11, "DDR_DQ11"),
64762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ12, "DDR_DQ12"),
64862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ13, "DDR_DQ13"),
64962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ14, "DDR_DQ14"),
65062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ15, "DDR_DQ15"),
65162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ16, "DDR_DQ16"),
65262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ17, "DDR_DQ17"),
65362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ18, "DDR_DQ18"),
65462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ19, "DDR_DQ19"),
65562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ20, "DDR_DQ20"),
65662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ21, "DDR_DQ21"),
65762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ22, "DDR_DQ22"),
65862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ23, "DDR_DQ23"),
65962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ24, "DDR_DQ24"),
66062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ25, "DDR_DQ25"),
66162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ26, "DDR_DQ26"),
66262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ27, "DDR_DQ27"),
66362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ28, "DDR_DQ28"),
66462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ29, "DDR_DQ29"),
66562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ30, "DDR_DQ30"),
66662306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_DQ31, "DDR_DQ31"),
66762306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CS0_N, "DDR_CS0_N"),
66862306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_DDR_CS1_N, "DDR_CS1_N"),
66962306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_SYS_RESET, "SYS_RESET"),
67062306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TRST_N, "JTAG_TRST_N"),
67162306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TDO, "JTAG_TDO"),
67262306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TMS, "JTAG_TMS"),
67362306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TCK, "JTAG_TCK"),
67462306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_JTAG_TDI, "JTAG_TDI"),
67562306a36Sopenharmony_ci	PINCTRL_PIN(TEGRA_PIN_TEST_MODE_EN, "TEST_MODE_EN"),
67662306a36Sopenharmony_ci};
67762306a36Sopenharmony_ci
67862306a36Sopenharmony_cistatic const unsigned ata_pins[] = {
67962306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS6_N_PI3,
68062306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS7_N_PI6,
68162306a36Sopenharmony_ci	TEGRA_PIN_GMI_RST_N_PI4,
68262306a36Sopenharmony_ci};
68362306a36Sopenharmony_ci
68462306a36Sopenharmony_cistatic const unsigned atb_pins[] = {
68562306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS5_N_PI2,
68662306a36Sopenharmony_ci	TEGRA_PIN_GMI_DPD_PT7,
68762306a36Sopenharmony_ci};
68862306a36Sopenharmony_ci
68962306a36Sopenharmony_cistatic const unsigned atc_pins[] = {
69062306a36Sopenharmony_ci	TEGRA_PIN_GMI_IORDY_PI5,
69162306a36Sopenharmony_ci	TEGRA_PIN_GMI_WAIT_PI7,
69262306a36Sopenharmony_ci	TEGRA_PIN_GMI_ADV_N_PK0,
69362306a36Sopenharmony_ci	TEGRA_PIN_GMI_CLK_PK1,
69462306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS2_N_PK3,
69562306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS3_N_PK4,
69662306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS4_N_PK2,
69762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD0_PG0,
69862306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD1_PG1,
69962306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD2_PG2,
70062306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD3_PG3,
70162306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD4_PG4,
70262306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD5_PG5,
70362306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD6_PG6,
70462306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD7_PG7,
70562306a36Sopenharmony_ci	TEGRA_PIN_GMI_HIOW_N_PI0,
70662306a36Sopenharmony_ci	TEGRA_PIN_GMI_HIOR_N_PI1,
70762306a36Sopenharmony_ci};
70862306a36Sopenharmony_ci
70962306a36Sopenharmony_cistatic const unsigned atd_pins[] = {
71062306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD8_PH0,
71162306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD9_PH1,
71262306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD10_PH2,
71362306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD11_PH3,
71462306a36Sopenharmony_ci};
71562306a36Sopenharmony_ci
71662306a36Sopenharmony_cistatic const unsigned ate_pins[] = {
71762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD12_PH4,
71862306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD13_PH5,
71962306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD14_PH6,
72062306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD15_PH7,
72162306a36Sopenharmony_ci};
72262306a36Sopenharmony_ci
72362306a36Sopenharmony_cistatic const unsigned cdev1_pins[] = {
72462306a36Sopenharmony_ci	TEGRA_PIN_DAP_MCLK1_PW4,
72562306a36Sopenharmony_ci};
72662306a36Sopenharmony_ci
72762306a36Sopenharmony_cistatic const unsigned cdev2_pins[] = {
72862306a36Sopenharmony_ci	TEGRA_PIN_DAP_MCLK2_PW5,
72962306a36Sopenharmony_ci};
73062306a36Sopenharmony_ci
73162306a36Sopenharmony_cistatic const unsigned crtp_pins[] = {
73262306a36Sopenharmony_ci	TEGRA_PIN_CRT_HSYNC,
73362306a36Sopenharmony_ci	TEGRA_PIN_CRT_VSYNC,
73462306a36Sopenharmony_ci};
73562306a36Sopenharmony_ci
73662306a36Sopenharmony_cistatic const unsigned csus_pins[] = {
73762306a36Sopenharmony_ci	TEGRA_PIN_VI_MCLK_PT1,
73862306a36Sopenharmony_ci};
73962306a36Sopenharmony_ci
74062306a36Sopenharmony_cistatic const unsigned dap1_pins[] = {
74162306a36Sopenharmony_ci	TEGRA_PIN_DAP1_FS_PN0,
74262306a36Sopenharmony_ci	TEGRA_PIN_DAP1_DIN_PN1,
74362306a36Sopenharmony_ci	TEGRA_PIN_DAP1_DOUT_PN2,
74462306a36Sopenharmony_ci	TEGRA_PIN_DAP1_SCLK_PN3,
74562306a36Sopenharmony_ci};
74662306a36Sopenharmony_ci
74762306a36Sopenharmony_cistatic const unsigned dap2_pins[] = {
74862306a36Sopenharmony_ci	TEGRA_PIN_DAP2_FS_PA2,
74962306a36Sopenharmony_ci	TEGRA_PIN_DAP2_SCLK_PA3,
75062306a36Sopenharmony_ci	TEGRA_PIN_DAP2_DIN_PA4,
75162306a36Sopenharmony_ci	TEGRA_PIN_DAP2_DOUT_PA5,
75262306a36Sopenharmony_ci};
75362306a36Sopenharmony_ci
75462306a36Sopenharmony_cistatic const unsigned dap3_pins[] = {
75562306a36Sopenharmony_ci	TEGRA_PIN_DAP3_FS_PP0,
75662306a36Sopenharmony_ci	TEGRA_PIN_DAP3_DIN_PP1,
75762306a36Sopenharmony_ci	TEGRA_PIN_DAP3_DOUT_PP2,
75862306a36Sopenharmony_ci	TEGRA_PIN_DAP3_SCLK_PP3,
75962306a36Sopenharmony_ci};
76062306a36Sopenharmony_ci
76162306a36Sopenharmony_cistatic const unsigned dap4_pins[] = {
76262306a36Sopenharmony_ci	TEGRA_PIN_DAP4_FS_PP4,
76362306a36Sopenharmony_ci	TEGRA_PIN_DAP4_DIN_PP5,
76462306a36Sopenharmony_ci	TEGRA_PIN_DAP4_DOUT_PP6,
76562306a36Sopenharmony_ci	TEGRA_PIN_DAP4_SCLK_PP7,
76662306a36Sopenharmony_ci};
76762306a36Sopenharmony_ci
76862306a36Sopenharmony_cistatic const unsigned ddc_pins[] = {
76962306a36Sopenharmony_ci	TEGRA_PIN_DDC_SCL,
77062306a36Sopenharmony_ci	TEGRA_PIN_DDC_SDA,
77162306a36Sopenharmony_ci};
77262306a36Sopenharmony_ci
77362306a36Sopenharmony_cistatic const unsigned dta_pins[] = {
77462306a36Sopenharmony_ci	TEGRA_PIN_VI_D0_PT4,
77562306a36Sopenharmony_ci	TEGRA_PIN_VI_D1_PD5,
77662306a36Sopenharmony_ci};
77762306a36Sopenharmony_ci
77862306a36Sopenharmony_cistatic const unsigned dtb_pins[] = {
77962306a36Sopenharmony_ci	TEGRA_PIN_VI_D10_PT2,
78062306a36Sopenharmony_ci	TEGRA_PIN_VI_D11_PT3,
78162306a36Sopenharmony_ci};
78262306a36Sopenharmony_ci
78362306a36Sopenharmony_cistatic const unsigned dtc_pins[] = {
78462306a36Sopenharmony_ci	TEGRA_PIN_VI_HSYNC_PD7,
78562306a36Sopenharmony_ci	TEGRA_PIN_VI_VSYNC_PD6,
78662306a36Sopenharmony_ci};
78762306a36Sopenharmony_ci
78862306a36Sopenharmony_cistatic const unsigned dtd_pins[] = {
78962306a36Sopenharmony_ci	TEGRA_PIN_VI_PCLK_PT0,
79062306a36Sopenharmony_ci	TEGRA_PIN_VI_D2_PL0,
79162306a36Sopenharmony_ci	TEGRA_PIN_VI_D3_PL1,
79262306a36Sopenharmony_ci	TEGRA_PIN_VI_D4_PL2,
79362306a36Sopenharmony_ci	TEGRA_PIN_VI_D5_PL3,
79462306a36Sopenharmony_ci	TEGRA_PIN_VI_D6_PL4,
79562306a36Sopenharmony_ci	TEGRA_PIN_VI_D7_PL5,
79662306a36Sopenharmony_ci	TEGRA_PIN_VI_D8_PL6,
79762306a36Sopenharmony_ci	TEGRA_PIN_VI_D9_PL7,
79862306a36Sopenharmony_ci};
79962306a36Sopenharmony_ci
80062306a36Sopenharmony_cistatic const unsigned dte_pins[] = {
80162306a36Sopenharmony_ci	TEGRA_PIN_VI_GP0_PBB1,
80262306a36Sopenharmony_ci	TEGRA_PIN_VI_GP3_PBB4,
80362306a36Sopenharmony_ci	TEGRA_PIN_VI_GP4_PBB5,
80462306a36Sopenharmony_ci	TEGRA_PIN_VI_GP5_PD2,
80562306a36Sopenharmony_ci	TEGRA_PIN_VI_GP6_PA0,
80662306a36Sopenharmony_ci};
80762306a36Sopenharmony_ci
80862306a36Sopenharmony_cistatic const unsigned dtf_pins[] = {
80962306a36Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SCL_PBB2,
81062306a36Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SDA_PBB3,
81162306a36Sopenharmony_ci};
81262306a36Sopenharmony_ci
81362306a36Sopenharmony_cistatic const unsigned gma_pins[] = {
81462306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD20_PAA0,
81562306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD21_PAA1,
81662306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD22_PAA2,
81762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD23_PAA3,
81862306a36Sopenharmony_ci};
81962306a36Sopenharmony_ci
82062306a36Sopenharmony_cistatic const unsigned gmb_pins[] = {
82162306a36Sopenharmony_ci	TEGRA_PIN_GMI_WP_N_PC7,
82262306a36Sopenharmony_ci};
82362306a36Sopenharmony_ci
82462306a36Sopenharmony_cistatic const unsigned gmc_pins[] = {
82562306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD16_PJ7,
82662306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD17_PB0,
82762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD18_PB1,
82862306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD19_PK7,
82962306a36Sopenharmony_ci};
83062306a36Sopenharmony_ci
83162306a36Sopenharmony_cistatic const unsigned gmd_pins[] = {
83262306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS0_N_PJ0,
83362306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS1_N_PJ2,
83462306a36Sopenharmony_ci};
83562306a36Sopenharmony_ci
83662306a36Sopenharmony_cistatic const unsigned gme_pins[] = {
83762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD24_PAA4,
83862306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD25_PAA5,
83962306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD26_PAA6,
84062306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD27_PAA7,
84162306a36Sopenharmony_ci};
84262306a36Sopenharmony_ci
84362306a36Sopenharmony_cistatic const unsigned gpu_pins[] = {
84462306a36Sopenharmony_ci	TEGRA_PIN_PU0,
84562306a36Sopenharmony_ci	TEGRA_PIN_PU1,
84662306a36Sopenharmony_ci	TEGRA_PIN_PU2,
84762306a36Sopenharmony_ci	TEGRA_PIN_PU3,
84862306a36Sopenharmony_ci	TEGRA_PIN_PU4,
84962306a36Sopenharmony_ci	TEGRA_PIN_PU5,
85062306a36Sopenharmony_ci	TEGRA_PIN_PU6,
85162306a36Sopenharmony_ci};
85262306a36Sopenharmony_ci
85362306a36Sopenharmony_cistatic const unsigned gpu7_pins[] = {
85462306a36Sopenharmony_ci	TEGRA_PIN_JTAG_RTCK_PU7,
85562306a36Sopenharmony_ci};
85662306a36Sopenharmony_ci
85762306a36Sopenharmony_cistatic const unsigned gpv_pins[] = {
85862306a36Sopenharmony_ci	TEGRA_PIN_PV4,
85962306a36Sopenharmony_ci	TEGRA_PIN_PV5,
86062306a36Sopenharmony_ci	TEGRA_PIN_PV6,
86162306a36Sopenharmony_ci};
86262306a36Sopenharmony_ci
86362306a36Sopenharmony_cistatic const unsigned hdint_pins[] = {
86462306a36Sopenharmony_ci	TEGRA_PIN_HDMI_INT_N_PN7,
86562306a36Sopenharmony_ci};
86662306a36Sopenharmony_ci
86762306a36Sopenharmony_cistatic const unsigned i2cp_pins[] = {
86862306a36Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SCL_PZ6,
86962306a36Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SDA_PZ7,
87062306a36Sopenharmony_ci};
87162306a36Sopenharmony_ci
87262306a36Sopenharmony_cistatic const unsigned irrx_pins[] = {
87362306a36Sopenharmony_ci	TEGRA_PIN_UART2_RTS_N_PJ6,
87462306a36Sopenharmony_ci};
87562306a36Sopenharmony_ci
87662306a36Sopenharmony_cistatic const unsigned irtx_pins[] = {
87762306a36Sopenharmony_ci	TEGRA_PIN_UART2_CTS_N_PJ5,
87862306a36Sopenharmony_ci};
87962306a36Sopenharmony_ci
88062306a36Sopenharmony_cistatic const unsigned kbca_pins[] = {
88162306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW0_PR0,
88262306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW1_PR1,
88362306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW2_PR2,
88462306a36Sopenharmony_ci};
88562306a36Sopenharmony_ci
88662306a36Sopenharmony_cistatic const unsigned kbcb_pins[] = {
88762306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW7_PR7,
88862306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW8_PS0,
88962306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW9_PS1,
89062306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW10_PS2,
89162306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW11_PS3,
89262306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW12_PS4,
89362306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW13_PS5,
89462306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW14_PS6,
89562306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW15_PS7,
89662306a36Sopenharmony_ci};
89762306a36Sopenharmony_ci
89862306a36Sopenharmony_cistatic const unsigned kbcc_pins[] = {
89962306a36Sopenharmony_ci	TEGRA_PIN_KB_COL0_PQ0,
90062306a36Sopenharmony_ci	TEGRA_PIN_KB_COL1_PQ1,
90162306a36Sopenharmony_ci};
90262306a36Sopenharmony_ci
90362306a36Sopenharmony_cistatic const unsigned kbcd_pins[] = {
90462306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW3_PR3,
90562306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW4_PR4,
90662306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW5_PR5,
90762306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW6_PR6,
90862306a36Sopenharmony_ci};
90962306a36Sopenharmony_ci
91062306a36Sopenharmony_cistatic const unsigned kbce_pins[] = {
91162306a36Sopenharmony_ci	TEGRA_PIN_KB_COL7_PQ7,
91262306a36Sopenharmony_ci};
91362306a36Sopenharmony_ci
91462306a36Sopenharmony_cistatic const unsigned kbcf_pins[] = {
91562306a36Sopenharmony_ci	TEGRA_PIN_KB_COL2_PQ2,
91662306a36Sopenharmony_ci	TEGRA_PIN_KB_COL3_PQ3,
91762306a36Sopenharmony_ci	TEGRA_PIN_KB_COL4_PQ4,
91862306a36Sopenharmony_ci	TEGRA_PIN_KB_COL5_PQ5,
91962306a36Sopenharmony_ci	TEGRA_PIN_KB_COL6_PQ6,
92062306a36Sopenharmony_ci};
92162306a36Sopenharmony_ci
92262306a36Sopenharmony_cistatic const unsigned lcsn_pins[] = {
92362306a36Sopenharmony_ci	TEGRA_PIN_LCD_CS0_N_PN4,
92462306a36Sopenharmony_ci};
92562306a36Sopenharmony_ci
92662306a36Sopenharmony_cistatic const unsigned ld0_pins[] = {
92762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D0_PE0,
92862306a36Sopenharmony_ci};
92962306a36Sopenharmony_ci
93062306a36Sopenharmony_cistatic const unsigned ld1_pins[] = {
93162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D1_PE1,
93262306a36Sopenharmony_ci};
93362306a36Sopenharmony_ci
93462306a36Sopenharmony_cistatic const unsigned ld2_pins[] = {
93562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D2_PE2,
93662306a36Sopenharmony_ci};
93762306a36Sopenharmony_ci
93862306a36Sopenharmony_cistatic const unsigned ld3_pins[] = {
93962306a36Sopenharmony_ci	TEGRA_PIN_LCD_D3_PE3,
94062306a36Sopenharmony_ci};
94162306a36Sopenharmony_ci
94262306a36Sopenharmony_cistatic const unsigned ld4_pins[] = {
94362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D4_PE4,
94462306a36Sopenharmony_ci};
94562306a36Sopenharmony_ci
94662306a36Sopenharmony_cistatic const unsigned ld5_pins[] = {
94762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D5_PE5,
94862306a36Sopenharmony_ci};
94962306a36Sopenharmony_ci
95062306a36Sopenharmony_cistatic const unsigned ld6_pins[] = {
95162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D6_PE6,
95262306a36Sopenharmony_ci};
95362306a36Sopenharmony_ci
95462306a36Sopenharmony_cistatic const unsigned ld7_pins[] = {
95562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D7_PE7,
95662306a36Sopenharmony_ci};
95762306a36Sopenharmony_ci
95862306a36Sopenharmony_cistatic const unsigned ld8_pins[] = {
95962306a36Sopenharmony_ci	TEGRA_PIN_LCD_D8_PF0,
96062306a36Sopenharmony_ci};
96162306a36Sopenharmony_ci
96262306a36Sopenharmony_cistatic const unsigned ld9_pins[] = {
96362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D9_PF1,
96462306a36Sopenharmony_ci};
96562306a36Sopenharmony_ci
96662306a36Sopenharmony_cistatic const unsigned ld10_pins[] = {
96762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D10_PF2,
96862306a36Sopenharmony_ci};
96962306a36Sopenharmony_ci
97062306a36Sopenharmony_cistatic const unsigned ld11_pins[] = {
97162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D11_PF3,
97262306a36Sopenharmony_ci};
97362306a36Sopenharmony_ci
97462306a36Sopenharmony_cistatic const unsigned ld12_pins[] = {
97562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D12_PF4,
97662306a36Sopenharmony_ci};
97762306a36Sopenharmony_ci
97862306a36Sopenharmony_cistatic const unsigned ld13_pins[] = {
97962306a36Sopenharmony_ci	TEGRA_PIN_LCD_D13_PF5,
98062306a36Sopenharmony_ci};
98162306a36Sopenharmony_ci
98262306a36Sopenharmony_cistatic const unsigned ld14_pins[] = {
98362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D14_PF6,
98462306a36Sopenharmony_ci};
98562306a36Sopenharmony_ci
98662306a36Sopenharmony_cistatic const unsigned ld15_pins[] = {
98762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D15_PF7,
98862306a36Sopenharmony_ci};
98962306a36Sopenharmony_ci
99062306a36Sopenharmony_cistatic const unsigned ld16_pins[] = {
99162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D16_PM0,
99262306a36Sopenharmony_ci};
99362306a36Sopenharmony_ci
99462306a36Sopenharmony_cistatic const unsigned ld17_pins[] = {
99562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D17_PM1,
99662306a36Sopenharmony_ci};
99762306a36Sopenharmony_ci
99862306a36Sopenharmony_cistatic const unsigned ldc_pins[] = {
99962306a36Sopenharmony_ci	TEGRA_PIN_LCD_DC0_PN6,
100062306a36Sopenharmony_ci};
100162306a36Sopenharmony_ci
100262306a36Sopenharmony_cistatic const unsigned ldi_pins[] = {
100362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D22_PM6,
100462306a36Sopenharmony_ci};
100562306a36Sopenharmony_ci
100662306a36Sopenharmony_cistatic const unsigned lhp0_pins[] = {
100762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D21_PM5,
100862306a36Sopenharmony_ci};
100962306a36Sopenharmony_ci
101062306a36Sopenharmony_cistatic const unsigned lhp1_pins[] = {
101162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D18_PM2,
101262306a36Sopenharmony_ci};
101362306a36Sopenharmony_ci
101462306a36Sopenharmony_cistatic const unsigned lhp2_pins[] = {
101562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D19_PM3,
101662306a36Sopenharmony_ci};
101762306a36Sopenharmony_ci
101862306a36Sopenharmony_cistatic const unsigned lhs_pins[] = {
101962306a36Sopenharmony_ci	TEGRA_PIN_LCD_HSYNC_PJ3,
102062306a36Sopenharmony_ci};
102162306a36Sopenharmony_ci
102262306a36Sopenharmony_cistatic const unsigned lm0_pins[] = {
102362306a36Sopenharmony_ci	TEGRA_PIN_LCD_CS1_N_PW0,
102462306a36Sopenharmony_ci};
102562306a36Sopenharmony_ci
102662306a36Sopenharmony_cistatic const unsigned lm1_pins[] = {
102762306a36Sopenharmony_ci	TEGRA_PIN_LCD_M1_PW1,
102862306a36Sopenharmony_ci};
102962306a36Sopenharmony_ci
103062306a36Sopenharmony_cistatic const unsigned lpp_pins[] = {
103162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D23_PM7,
103262306a36Sopenharmony_ci};
103362306a36Sopenharmony_ci
103462306a36Sopenharmony_cistatic const unsigned lpw0_pins[] = {
103562306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR0_PB2,
103662306a36Sopenharmony_ci};
103762306a36Sopenharmony_ci
103862306a36Sopenharmony_cistatic const unsigned lpw1_pins[] = {
103962306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR1_PC1,
104062306a36Sopenharmony_ci};
104162306a36Sopenharmony_ci
104262306a36Sopenharmony_cistatic const unsigned lpw2_pins[] = {
104362306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR2_PC6,
104462306a36Sopenharmony_ci};
104562306a36Sopenharmony_ci
104662306a36Sopenharmony_cistatic const unsigned lsc0_pins[] = {
104762306a36Sopenharmony_ci	TEGRA_PIN_LCD_PCLK_PB3,
104862306a36Sopenharmony_ci};
104962306a36Sopenharmony_ci
105062306a36Sopenharmony_cistatic const unsigned lsc1_pins[] = {
105162306a36Sopenharmony_ci	TEGRA_PIN_LCD_WR_N_PZ3,
105262306a36Sopenharmony_ci};
105362306a36Sopenharmony_ci
105462306a36Sopenharmony_cistatic const unsigned lsck_pins[] = {
105562306a36Sopenharmony_ci	TEGRA_PIN_LCD_SCK_PZ4,
105662306a36Sopenharmony_ci};
105762306a36Sopenharmony_ci
105862306a36Sopenharmony_cistatic const unsigned lsda_pins[] = {
105962306a36Sopenharmony_ci	TEGRA_PIN_LCD_SDOUT_PN5,
106062306a36Sopenharmony_ci};
106162306a36Sopenharmony_ci
106262306a36Sopenharmony_cistatic const unsigned lsdi_pins[] = {
106362306a36Sopenharmony_ci	TEGRA_PIN_LCD_SDIN_PZ2,
106462306a36Sopenharmony_ci};
106562306a36Sopenharmony_ci
106662306a36Sopenharmony_cistatic const unsigned lspi_pins[] = {
106762306a36Sopenharmony_ci	TEGRA_PIN_LCD_DE_PJ1,
106862306a36Sopenharmony_ci};
106962306a36Sopenharmony_ci
107062306a36Sopenharmony_cistatic const unsigned lvp0_pins[] = {
107162306a36Sopenharmony_ci	TEGRA_PIN_LCD_DC1_PV7,
107262306a36Sopenharmony_ci};
107362306a36Sopenharmony_ci
107462306a36Sopenharmony_cistatic const unsigned lvp1_pins[] = {
107562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D20_PM4,
107662306a36Sopenharmony_ci};
107762306a36Sopenharmony_ci
107862306a36Sopenharmony_cistatic const unsigned lvs_pins[] = {
107962306a36Sopenharmony_ci	TEGRA_PIN_LCD_VSYNC_PJ4,
108062306a36Sopenharmony_ci};
108162306a36Sopenharmony_ci
108262306a36Sopenharmony_cistatic const unsigned ls_pins[] = {
108362306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR0_PB2,
108462306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR1_PC1,
108562306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR2_PC6,
108662306a36Sopenharmony_ci	TEGRA_PIN_LCD_SDIN_PZ2,
108762306a36Sopenharmony_ci	TEGRA_PIN_LCD_SDOUT_PN5,
108862306a36Sopenharmony_ci	TEGRA_PIN_LCD_WR_N_PZ3,
108962306a36Sopenharmony_ci	TEGRA_PIN_LCD_CS0_N_PN4,
109062306a36Sopenharmony_ci	TEGRA_PIN_LCD_DC0_PN6,
109162306a36Sopenharmony_ci	TEGRA_PIN_LCD_SCK_PZ4,
109262306a36Sopenharmony_ci};
109362306a36Sopenharmony_ci
109462306a36Sopenharmony_cistatic const unsigned lc_pins[] = {
109562306a36Sopenharmony_ci	TEGRA_PIN_LCD_PCLK_PB3,
109662306a36Sopenharmony_ci	TEGRA_PIN_LCD_DE_PJ1,
109762306a36Sopenharmony_ci	TEGRA_PIN_LCD_HSYNC_PJ3,
109862306a36Sopenharmony_ci	TEGRA_PIN_LCD_VSYNC_PJ4,
109962306a36Sopenharmony_ci	TEGRA_PIN_LCD_CS1_N_PW0,
110062306a36Sopenharmony_ci	TEGRA_PIN_LCD_M1_PW1,
110162306a36Sopenharmony_ci	TEGRA_PIN_LCD_DC1_PV7,
110262306a36Sopenharmony_ci	TEGRA_PIN_HDMI_INT_N_PN7,
110362306a36Sopenharmony_ci};
110462306a36Sopenharmony_ci
110562306a36Sopenharmony_cistatic const unsigned ld17_0_pins[] = {
110662306a36Sopenharmony_ci	TEGRA_PIN_LCD_D0_PE0,
110762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D1_PE1,
110862306a36Sopenharmony_ci	TEGRA_PIN_LCD_D2_PE2,
110962306a36Sopenharmony_ci	TEGRA_PIN_LCD_D3_PE3,
111062306a36Sopenharmony_ci	TEGRA_PIN_LCD_D4_PE4,
111162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D5_PE5,
111262306a36Sopenharmony_ci	TEGRA_PIN_LCD_D6_PE6,
111362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D7_PE7,
111462306a36Sopenharmony_ci	TEGRA_PIN_LCD_D8_PF0,
111562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D9_PF1,
111662306a36Sopenharmony_ci	TEGRA_PIN_LCD_D10_PF2,
111762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D11_PF3,
111862306a36Sopenharmony_ci	TEGRA_PIN_LCD_D12_PF4,
111962306a36Sopenharmony_ci	TEGRA_PIN_LCD_D13_PF5,
112062306a36Sopenharmony_ci	TEGRA_PIN_LCD_D14_PF6,
112162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D15_PF7,
112262306a36Sopenharmony_ci	TEGRA_PIN_LCD_D16_PM0,
112362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D17_PM1,
112462306a36Sopenharmony_ci};
112562306a36Sopenharmony_ci
112662306a36Sopenharmony_cistatic const unsigned ld19_18_pins[] = {
112762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D18_PM2,
112862306a36Sopenharmony_ci	TEGRA_PIN_LCD_D19_PM3,
112962306a36Sopenharmony_ci};
113062306a36Sopenharmony_ci
113162306a36Sopenharmony_cistatic const unsigned ld21_20_pins[] = {
113262306a36Sopenharmony_ci	TEGRA_PIN_LCD_D20_PM4,
113362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D21_PM5,
113462306a36Sopenharmony_ci};
113562306a36Sopenharmony_ci
113662306a36Sopenharmony_cistatic const unsigned ld23_22_pins[] = {
113762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D22_PM6,
113862306a36Sopenharmony_ci	TEGRA_PIN_LCD_D23_PM7,
113962306a36Sopenharmony_ci};
114062306a36Sopenharmony_ci
114162306a36Sopenharmony_cistatic const unsigned owc_pins[] = {
114262306a36Sopenharmony_ci	TEGRA_PIN_OWC,
114362306a36Sopenharmony_ci};
114462306a36Sopenharmony_ci
114562306a36Sopenharmony_cistatic const unsigned pmc_pins[] = {
114662306a36Sopenharmony_ci	TEGRA_PIN_LED_BLINK_PBB0,
114762306a36Sopenharmony_ci	TEGRA_PIN_SYS_CLK_REQ_PZ5,
114862306a36Sopenharmony_ci	TEGRA_PIN_CORE_PWR_REQ,
114962306a36Sopenharmony_ci	TEGRA_PIN_CPU_PWR_REQ,
115062306a36Sopenharmony_ci	TEGRA_PIN_PWR_INT_N,
115162306a36Sopenharmony_ci};
115262306a36Sopenharmony_ci
115362306a36Sopenharmony_cistatic const unsigned pta_pins[] = {
115462306a36Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SCL_PT5,
115562306a36Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SDA_PT6,
115662306a36Sopenharmony_ci};
115762306a36Sopenharmony_ci
115862306a36Sopenharmony_cistatic const unsigned rm_pins[] = {
115962306a36Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SCL_PC4,
116062306a36Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SDA_PC5,
116162306a36Sopenharmony_ci};
116262306a36Sopenharmony_ci
116362306a36Sopenharmony_cistatic const unsigned sdb_pins[] = {
116462306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_CMD_PA7,
116562306a36Sopenharmony_ci};
116662306a36Sopenharmony_ci
116762306a36Sopenharmony_cistatic const unsigned sdc_pins[] = {
116862306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT0_PB7,
116962306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT1_PB6,
117062306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT2_PB5,
117162306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT3_PB4,
117262306a36Sopenharmony_ci};
117362306a36Sopenharmony_ci
117462306a36Sopenharmony_cistatic const unsigned sdd_pins[] = {
117562306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_CLK_PA6,
117662306a36Sopenharmony_ci};
117762306a36Sopenharmony_ci
117862306a36Sopenharmony_cistatic const unsigned sdio1_pins[] = {
117962306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_CLK_PZ0,
118062306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_CMD_PZ1,
118162306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT0_PY7,
118262306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT1_PY6,
118362306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT2_PY5,
118462306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT3_PY4,
118562306a36Sopenharmony_ci};
118662306a36Sopenharmony_ci
118762306a36Sopenharmony_cistatic const unsigned slxa_pins[] = {
118862306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT4_PD1,
118962306a36Sopenharmony_ci};
119062306a36Sopenharmony_ci
119162306a36Sopenharmony_cistatic const unsigned slxc_pins[] = {
119262306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT6_PD3,
119362306a36Sopenharmony_ci};
119462306a36Sopenharmony_ci
119562306a36Sopenharmony_cistatic const unsigned slxd_pins[] = {
119662306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT7_PD4,
119762306a36Sopenharmony_ci};
119862306a36Sopenharmony_ci
119962306a36Sopenharmony_cistatic const unsigned slxk_pins[] = {
120062306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT5_PD0,
120162306a36Sopenharmony_ci};
120262306a36Sopenharmony_ci
120362306a36Sopenharmony_cistatic const unsigned spdi_pins[] = {
120462306a36Sopenharmony_ci	TEGRA_PIN_SPDIF_IN_PK6,
120562306a36Sopenharmony_ci};
120662306a36Sopenharmony_ci
120762306a36Sopenharmony_cistatic const unsigned spdo_pins[] = {
120862306a36Sopenharmony_ci	TEGRA_PIN_SPDIF_OUT_PK5,
120962306a36Sopenharmony_ci};
121062306a36Sopenharmony_ci
121162306a36Sopenharmony_cistatic const unsigned spia_pins[] = {
121262306a36Sopenharmony_ci	TEGRA_PIN_SPI2_MOSI_PX0,
121362306a36Sopenharmony_ci};
121462306a36Sopenharmony_ci
121562306a36Sopenharmony_cistatic const unsigned spib_pins[] = {
121662306a36Sopenharmony_ci	TEGRA_PIN_SPI2_MISO_PX1,
121762306a36Sopenharmony_ci};
121862306a36Sopenharmony_ci
121962306a36Sopenharmony_cistatic const unsigned spic_pins[] = {
122062306a36Sopenharmony_ci	TEGRA_PIN_SPI2_CS0_N_PX3,
122162306a36Sopenharmony_ci	TEGRA_PIN_SPI2_SCK_PX2,
122262306a36Sopenharmony_ci};
122362306a36Sopenharmony_ci
122462306a36Sopenharmony_cistatic const unsigned spid_pins[] = {
122562306a36Sopenharmony_ci	TEGRA_PIN_SPI1_MOSI_PX4,
122662306a36Sopenharmony_ci};
122762306a36Sopenharmony_ci
122862306a36Sopenharmony_cistatic const unsigned spie_pins[] = {
122962306a36Sopenharmony_ci	TEGRA_PIN_SPI1_CS0_N_PX6,
123062306a36Sopenharmony_ci	TEGRA_PIN_SPI1_SCK_PX5,
123162306a36Sopenharmony_ci};
123262306a36Sopenharmony_ci
123362306a36Sopenharmony_cistatic const unsigned spif_pins[] = {
123462306a36Sopenharmony_ci	TEGRA_PIN_SPI1_MISO_PX7,
123562306a36Sopenharmony_ci};
123662306a36Sopenharmony_ci
123762306a36Sopenharmony_cistatic const unsigned spig_pins[] = {
123862306a36Sopenharmony_ci	TEGRA_PIN_SPI2_CS1_N_PW2,
123962306a36Sopenharmony_ci};
124062306a36Sopenharmony_ci
124162306a36Sopenharmony_cistatic const unsigned spih_pins[] = {
124262306a36Sopenharmony_ci	TEGRA_PIN_SPI2_CS2_N_PW3,
124362306a36Sopenharmony_ci};
124462306a36Sopenharmony_ci
124562306a36Sopenharmony_cistatic const unsigned uaa_pins[] = {
124662306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA0_PO1,
124762306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA1_PO2,
124862306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA2_PO3,
124962306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA3_PO4,
125062306a36Sopenharmony_ci};
125162306a36Sopenharmony_ci
125262306a36Sopenharmony_cistatic const unsigned uab_pins[] = {
125362306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA4_PO5,
125462306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA5_PO6,
125562306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA6_PO7,
125662306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA7_PO0,
125762306a36Sopenharmony_ci};
125862306a36Sopenharmony_ci
125962306a36Sopenharmony_cistatic const unsigned uac_pins[] = {
126062306a36Sopenharmony_ci	TEGRA_PIN_PV0,
126162306a36Sopenharmony_ci	TEGRA_PIN_PV1,
126262306a36Sopenharmony_ci	TEGRA_PIN_PV2,
126362306a36Sopenharmony_ci	TEGRA_PIN_PV3,
126462306a36Sopenharmony_ci};
126562306a36Sopenharmony_ci
126662306a36Sopenharmony_cistatic const unsigned ck32_pins[] = {
126762306a36Sopenharmony_ci	TEGRA_PIN_CLK_32_K_IN,
126862306a36Sopenharmony_ci};
126962306a36Sopenharmony_ci
127062306a36Sopenharmony_cistatic const unsigned uad_pins[] = {
127162306a36Sopenharmony_ci	TEGRA_PIN_UART2_RXD_PC3,
127262306a36Sopenharmony_ci	TEGRA_PIN_UART2_TXD_PC2,
127362306a36Sopenharmony_ci};
127462306a36Sopenharmony_ci
127562306a36Sopenharmony_cistatic const unsigned uca_pins[] = {
127662306a36Sopenharmony_ci	TEGRA_PIN_UART3_RXD_PW7,
127762306a36Sopenharmony_ci	TEGRA_PIN_UART3_TXD_PW6,
127862306a36Sopenharmony_ci};
127962306a36Sopenharmony_ci
128062306a36Sopenharmony_cistatic const unsigned ucb_pins[] = {
128162306a36Sopenharmony_ci	TEGRA_PIN_UART3_CTS_N_PA1,
128262306a36Sopenharmony_ci	TEGRA_PIN_UART3_RTS_N_PC0,
128362306a36Sopenharmony_ci};
128462306a36Sopenharmony_ci
128562306a36Sopenharmony_cistatic const unsigned uda_pins[] = {
128662306a36Sopenharmony_ci	TEGRA_PIN_ULPI_CLK_PY0,
128762306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DIR_PY1,
128862306a36Sopenharmony_ci	TEGRA_PIN_ULPI_NXT_PY2,
128962306a36Sopenharmony_ci	TEGRA_PIN_ULPI_STP_PY3,
129062306a36Sopenharmony_ci};
129162306a36Sopenharmony_ci
129262306a36Sopenharmony_cistatic const unsigned ddrc_pins[] = {
129362306a36Sopenharmony_ci	TEGRA_PIN_DDR_COMP_PD,
129462306a36Sopenharmony_ci	TEGRA_PIN_DDR_COMP_PU,
129562306a36Sopenharmony_ci};
129662306a36Sopenharmony_ci
129762306a36Sopenharmony_cistatic const unsigned pmca_pins[] = {
129862306a36Sopenharmony_ci	TEGRA_PIN_LED_BLINK_PBB0,
129962306a36Sopenharmony_ci};
130062306a36Sopenharmony_ci
130162306a36Sopenharmony_cistatic const unsigned pmcb_pins[] = {
130262306a36Sopenharmony_ci	TEGRA_PIN_SYS_CLK_REQ_PZ5,
130362306a36Sopenharmony_ci};
130462306a36Sopenharmony_ci
130562306a36Sopenharmony_cistatic const unsigned pmcc_pins[] = {
130662306a36Sopenharmony_ci	TEGRA_PIN_CORE_PWR_REQ,
130762306a36Sopenharmony_ci};
130862306a36Sopenharmony_ci
130962306a36Sopenharmony_cistatic const unsigned pmcd_pins[] = {
131062306a36Sopenharmony_ci	TEGRA_PIN_CPU_PWR_REQ,
131162306a36Sopenharmony_ci};
131262306a36Sopenharmony_ci
131362306a36Sopenharmony_cistatic const unsigned pmce_pins[] = {
131462306a36Sopenharmony_ci	TEGRA_PIN_PWR_INT_N,
131562306a36Sopenharmony_ci};
131662306a36Sopenharmony_ci
131762306a36Sopenharmony_cistatic const unsigned xm2c_pins[] = {
131862306a36Sopenharmony_ci	TEGRA_PIN_DDR_A0,
131962306a36Sopenharmony_ci	TEGRA_PIN_DDR_A1,
132062306a36Sopenharmony_ci	TEGRA_PIN_DDR_A2,
132162306a36Sopenharmony_ci	TEGRA_PIN_DDR_A3,
132262306a36Sopenharmony_ci	TEGRA_PIN_DDR_A4,
132362306a36Sopenharmony_ci	TEGRA_PIN_DDR_A5,
132462306a36Sopenharmony_ci	TEGRA_PIN_DDR_A6,
132562306a36Sopenharmony_ci	TEGRA_PIN_DDR_A7,
132662306a36Sopenharmony_ci	TEGRA_PIN_DDR_A8,
132762306a36Sopenharmony_ci	TEGRA_PIN_DDR_A9,
132862306a36Sopenharmony_ci	TEGRA_PIN_DDR_A10,
132962306a36Sopenharmony_ci	TEGRA_PIN_DDR_A11,
133062306a36Sopenharmony_ci	TEGRA_PIN_DDR_A12,
133162306a36Sopenharmony_ci	TEGRA_PIN_DDR_A13,
133262306a36Sopenharmony_ci	TEGRA_PIN_DDR_A14,
133362306a36Sopenharmony_ci	TEGRA_PIN_DDR_CAS_N,
133462306a36Sopenharmony_ci	TEGRA_PIN_DDR_BA0,
133562306a36Sopenharmony_ci	TEGRA_PIN_DDR_BA1,
133662306a36Sopenharmony_ci	TEGRA_PIN_DDR_BA2,
133762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS0P,
133862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS0N,
133962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS1P,
134062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS1N,
134162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS2P,
134262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS2N,
134362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS3P,
134462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS3N,
134562306a36Sopenharmony_ci	TEGRA_PIN_DDR_CS0_N,
134662306a36Sopenharmony_ci	TEGRA_PIN_DDR_CS1_N,
134762306a36Sopenharmony_ci	TEGRA_PIN_DDR_CKE0,
134862306a36Sopenharmony_ci	TEGRA_PIN_DDR_CKE1,
134962306a36Sopenharmony_ci	TEGRA_PIN_DDR_CLK,
135062306a36Sopenharmony_ci	TEGRA_PIN_DDR_CLK_N,
135162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM0,
135262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM1,
135362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM2,
135462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM3,
135562306a36Sopenharmony_ci	TEGRA_PIN_DDR_ODT,
135662306a36Sopenharmony_ci	TEGRA_PIN_DDR_RAS_N,
135762306a36Sopenharmony_ci	TEGRA_PIN_DDR_WE_N,
135862306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE0,
135962306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE1,
136062306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE2,
136162306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE3,
136262306a36Sopenharmony_ci};
136362306a36Sopenharmony_ci
136462306a36Sopenharmony_cistatic const unsigned xm2d_pins[] = {
136562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ0,
136662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ1,
136762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ2,
136862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ3,
136962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ4,
137062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ5,
137162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ6,
137262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ7,
137362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ8,
137462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ9,
137562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ10,
137662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ11,
137762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ12,
137862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ13,
137962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ14,
138062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ15,
138162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ16,
138262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ17,
138362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ18,
138462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ19,
138562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ20,
138662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ21,
138762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ22,
138862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ23,
138962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ24,
139062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ25,
139162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ26,
139262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ27,
139362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ28,
139462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ29,
139562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ30,
139662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ31,
139762306a36Sopenharmony_ci};
139862306a36Sopenharmony_ci
139962306a36Sopenharmony_cistatic const unsigned drive_ao1_pins[] = {
140062306a36Sopenharmony_ci	TEGRA_PIN_SYS_RESET,
140162306a36Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SCL_PZ6,
140262306a36Sopenharmony_ci	TEGRA_PIN_PWR_I2C_SDA_PZ7,
140362306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW0_PR0,
140462306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW1_PR1,
140562306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW2_PR2,
140662306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW3_PR3,
140762306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW4_PR4,
140862306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW5_PR5,
140962306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW6_PR6,
141062306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW7_PR7,
141162306a36Sopenharmony_ci};
141262306a36Sopenharmony_ci
141362306a36Sopenharmony_cistatic const unsigned drive_ao2_pins[] = {
141462306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW8_PS0,
141562306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW9_PS1,
141662306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW10_PS2,
141762306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW11_PS3,
141862306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW12_PS4,
141962306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW13_PS5,
142062306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW14_PS6,
142162306a36Sopenharmony_ci	TEGRA_PIN_KB_ROW15_PS7,
142262306a36Sopenharmony_ci	TEGRA_PIN_KB_COL0_PQ0,
142362306a36Sopenharmony_ci	TEGRA_PIN_KB_COL1_PQ1,
142462306a36Sopenharmony_ci	TEGRA_PIN_KB_COL2_PQ2,
142562306a36Sopenharmony_ci	TEGRA_PIN_KB_COL3_PQ3,
142662306a36Sopenharmony_ci	TEGRA_PIN_KB_COL4_PQ4,
142762306a36Sopenharmony_ci	TEGRA_PIN_KB_COL5_PQ5,
142862306a36Sopenharmony_ci	TEGRA_PIN_KB_COL6_PQ6,
142962306a36Sopenharmony_ci	TEGRA_PIN_KB_COL7_PQ7,
143062306a36Sopenharmony_ci	TEGRA_PIN_LED_BLINK_PBB0,
143162306a36Sopenharmony_ci	TEGRA_PIN_SYS_CLK_REQ_PZ5,
143262306a36Sopenharmony_ci	TEGRA_PIN_CORE_PWR_REQ,
143362306a36Sopenharmony_ci	TEGRA_PIN_CPU_PWR_REQ,
143462306a36Sopenharmony_ci	TEGRA_PIN_PWR_INT_N,
143562306a36Sopenharmony_ci	TEGRA_PIN_CLK_32_K_IN,
143662306a36Sopenharmony_ci};
143762306a36Sopenharmony_ci
143862306a36Sopenharmony_cistatic const unsigned drive_at1_pins[] = {
143962306a36Sopenharmony_ci	TEGRA_PIN_GMI_IORDY_PI5,
144062306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD8_PH0,
144162306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD9_PH1,
144262306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD10_PH2,
144362306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD11_PH3,
144462306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD12_PH4,
144562306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD13_PH5,
144662306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD14_PH6,
144762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD15_PH7,
144862306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS7_N_PI6,
144962306a36Sopenharmony_ci	TEGRA_PIN_GMI_DPD_PT7,
145062306a36Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SCL_PT5,
145162306a36Sopenharmony_ci	TEGRA_PIN_GEN2_I2C_SDA_PT6,
145262306a36Sopenharmony_ci};
145362306a36Sopenharmony_ci
145462306a36Sopenharmony_cistatic const unsigned drive_at2_pins[] = {
145562306a36Sopenharmony_ci	TEGRA_PIN_GMI_WAIT_PI7,
145662306a36Sopenharmony_ci	TEGRA_PIN_GMI_ADV_N_PK0,
145762306a36Sopenharmony_ci	TEGRA_PIN_GMI_CLK_PK1,
145862306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS6_N_PI3,
145962306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS5_N_PI2,
146062306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS4_N_PK2,
146162306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS3_N_PK4,
146262306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS2_N_PK3,
146362306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD0_PG0,
146462306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD1_PG1,
146562306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD2_PG2,
146662306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD3_PG3,
146762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD4_PG4,
146862306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD5_PG5,
146962306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD6_PG6,
147062306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD7_PG7,
147162306a36Sopenharmony_ci	TEGRA_PIN_GMI_HIOW_N_PI0,
147262306a36Sopenharmony_ci	TEGRA_PIN_GMI_HIOR_N_PI1,
147362306a36Sopenharmony_ci	TEGRA_PIN_GMI_RST_N_PI4,
147462306a36Sopenharmony_ci};
147562306a36Sopenharmony_ci
147662306a36Sopenharmony_cistatic const unsigned drive_cdev1_pins[] = {
147762306a36Sopenharmony_ci	TEGRA_PIN_DAP_MCLK1_PW4,
147862306a36Sopenharmony_ci};
147962306a36Sopenharmony_ci
148062306a36Sopenharmony_cistatic const unsigned drive_cdev2_pins[] = {
148162306a36Sopenharmony_ci	TEGRA_PIN_DAP_MCLK2_PW5,
148262306a36Sopenharmony_ci};
148362306a36Sopenharmony_ci
148462306a36Sopenharmony_cistatic const unsigned drive_csus_pins[] = {
148562306a36Sopenharmony_ci	TEGRA_PIN_VI_MCLK_PT1,
148662306a36Sopenharmony_ci};
148762306a36Sopenharmony_ci
148862306a36Sopenharmony_cistatic const unsigned drive_dap1_pins[] = {
148962306a36Sopenharmony_ci	TEGRA_PIN_DAP1_FS_PN0,
149062306a36Sopenharmony_ci	TEGRA_PIN_DAP1_DIN_PN1,
149162306a36Sopenharmony_ci	TEGRA_PIN_DAP1_DOUT_PN2,
149262306a36Sopenharmony_ci	TEGRA_PIN_DAP1_SCLK_PN3,
149362306a36Sopenharmony_ci	TEGRA_PIN_SPDIF_OUT_PK5,
149462306a36Sopenharmony_ci	TEGRA_PIN_SPDIF_IN_PK6,
149562306a36Sopenharmony_ci};
149662306a36Sopenharmony_ci
149762306a36Sopenharmony_cistatic const unsigned drive_dap2_pins[] = {
149862306a36Sopenharmony_ci	TEGRA_PIN_DAP2_FS_PA2,
149962306a36Sopenharmony_ci	TEGRA_PIN_DAP2_SCLK_PA3,
150062306a36Sopenharmony_ci	TEGRA_PIN_DAP2_DIN_PA4,
150162306a36Sopenharmony_ci	TEGRA_PIN_DAP2_DOUT_PA5,
150262306a36Sopenharmony_ci};
150362306a36Sopenharmony_ci
150462306a36Sopenharmony_cistatic const unsigned drive_dap3_pins[] = {
150562306a36Sopenharmony_ci	TEGRA_PIN_DAP3_FS_PP0,
150662306a36Sopenharmony_ci	TEGRA_PIN_DAP3_DIN_PP1,
150762306a36Sopenharmony_ci	TEGRA_PIN_DAP3_DOUT_PP2,
150862306a36Sopenharmony_ci	TEGRA_PIN_DAP3_SCLK_PP3,
150962306a36Sopenharmony_ci};
151062306a36Sopenharmony_ci
151162306a36Sopenharmony_cistatic const unsigned drive_dap4_pins[] = {
151262306a36Sopenharmony_ci	TEGRA_PIN_DAP4_FS_PP4,
151362306a36Sopenharmony_ci	TEGRA_PIN_DAP4_DIN_PP5,
151462306a36Sopenharmony_ci	TEGRA_PIN_DAP4_DOUT_PP6,
151562306a36Sopenharmony_ci	TEGRA_PIN_DAP4_SCLK_PP7,
151662306a36Sopenharmony_ci};
151762306a36Sopenharmony_ci
151862306a36Sopenharmony_cistatic const unsigned drive_dbg_pins[] = {
151962306a36Sopenharmony_ci	TEGRA_PIN_PU0,
152062306a36Sopenharmony_ci	TEGRA_PIN_PU1,
152162306a36Sopenharmony_ci	TEGRA_PIN_PU2,
152262306a36Sopenharmony_ci	TEGRA_PIN_PU3,
152362306a36Sopenharmony_ci	TEGRA_PIN_PU4,
152462306a36Sopenharmony_ci	TEGRA_PIN_PU5,
152562306a36Sopenharmony_ci	TEGRA_PIN_PU6,
152662306a36Sopenharmony_ci	TEGRA_PIN_JTAG_RTCK_PU7,
152762306a36Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SDA_PC5,
152862306a36Sopenharmony_ci	TEGRA_PIN_GEN1_I2C_SCL_PC4,
152962306a36Sopenharmony_ci	TEGRA_PIN_JTAG_TRST_N,
153062306a36Sopenharmony_ci	TEGRA_PIN_JTAG_TDO,
153162306a36Sopenharmony_ci	TEGRA_PIN_JTAG_TMS,
153262306a36Sopenharmony_ci	TEGRA_PIN_JTAG_TCK,
153362306a36Sopenharmony_ci	TEGRA_PIN_JTAG_TDI,
153462306a36Sopenharmony_ci	TEGRA_PIN_TEST_MODE_EN,
153562306a36Sopenharmony_ci};
153662306a36Sopenharmony_ci
153762306a36Sopenharmony_cistatic const unsigned drive_lcd1_pins[] = {
153862306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR1_PC1,
153962306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR2_PC6,
154062306a36Sopenharmony_ci	TEGRA_PIN_LCD_SDIN_PZ2,
154162306a36Sopenharmony_ci	TEGRA_PIN_LCD_SDOUT_PN5,
154262306a36Sopenharmony_ci	TEGRA_PIN_LCD_WR_N_PZ3,
154362306a36Sopenharmony_ci	TEGRA_PIN_LCD_CS0_N_PN4,
154462306a36Sopenharmony_ci	TEGRA_PIN_LCD_DC0_PN6,
154562306a36Sopenharmony_ci	TEGRA_PIN_LCD_SCK_PZ4,
154662306a36Sopenharmony_ci};
154762306a36Sopenharmony_ci
154862306a36Sopenharmony_cistatic const unsigned drive_lcd2_pins[] = {
154962306a36Sopenharmony_ci	TEGRA_PIN_LCD_PWR0_PB2,
155062306a36Sopenharmony_ci	TEGRA_PIN_LCD_PCLK_PB3,
155162306a36Sopenharmony_ci	TEGRA_PIN_LCD_DE_PJ1,
155262306a36Sopenharmony_ci	TEGRA_PIN_LCD_HSYNC_PJ3,
155362306a36Sopenharmony_ci	TEGRA_PIN_LCD_VSYNC_PJ4,
155462306a36Sopenharmony_ci	TEGRA_PIN_LCD_D0_PE0,
155562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D1_PE1,
155662306a36Sopenharmony_ci	TEGRA_PIN_LCD_D2_PE2,
155762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D3_PE3,
155862306a36Sopenharmony_ci	TEGRA_PIN_LCD_D4_PE4,
155962306a36Sopenharmony_ci	TEGRA_PIN_LCD_D5_PE5,
156062306a36Sopenharmony_ci	TEGRA_PIN_LCD_D6_PE6,
156162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D7_PE7,
156262306a36Sopenharmony_ci	TEGRA_PIN_LCD_D8_PF0,
156362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D9_PF1,
156462306a36Sopenharmony_ci	TEGRA_PIN_LCD_D10_PF2,
156562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D11_PF3,
156662306a36Sopenharmony_ci	TEGRA_PIN_LCD_D12_PF4,
156762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D13_PF5,
156862306a36Sopenharmony_ci	TEGRA_PIN_LCD_D14_PF6,
156962306a36Sopenharmony_ci	TEGRA_PIN_LCD_D15_PF7,
157062306a36Sopenharmony_ci	TEGRA_PIN_LCD_D16_PM0,
157162306a36Sopenharmony_ci	TEGRA_PIN_LCD_D17_PM1,
157262306a36Sopenharmony_ci	TEGRA_PIN_LCD_D18_PM2,
157362306a36Sopenharmony_ci	TEGRA_PIN_LCD_D19_PM3,
157462306a36Sopenharmony_ci	TEGRA_PIN_LCD_D20_PM4,
157562306a36Sopenharmony_ci	TEGRA_PIN_LCD_D21_PM5,
157662306a36Sopenharmony_ci	TEGRA_PIN_LCD_D22_PM6,
157762306a36Sopenharmony_ci	TEGRA_PIN_LCD_D23_PM7,
157862306a36Sopenharmony_ci	TEGRA_PIN_LCD_CS1_N_PW0,
157962306a36Sopenharmony_ci	TEGRA_PIN_LCD_M1_PW1,
158062306a36Sopenharmony_ci	TEGRA_PIN_LCD_DC1_PV7,
158162306a36Sopenharmony_ci	TEGRA_PIN_HDMI_INT_N_PN7,
158262306a36Sopenharmony_ci};
158362306a36Sopenharmony_ci
158462306a36Sopenharmony_cistatic const unsigned drive_sdmmc2_pins[] = {
158562306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT4_PD1,
158662306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT5_PD0,
158762306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT6_PD3,
158862306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT7_PD4,
158962306a36Sopenharmony_ci};
159062306a36Sopenharmony_ci
159162306a36Sopenharmony_cistatic const unsigned drive_sdmmc3_pins[] = {
159262306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_CLK_PA6,
159362306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_CMD_PA7,
159462306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT0_PB7,
159562306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT1_PB6,
159662306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT2_PB5,
159762306a36Sopenharmony_ci	TEGRA_PIN_SDIO3_DAT3_PB4,
159862306a36Sopenharmony_ci	TEGRA_PIN_PV4,
159962306a36Sopenharmony_ci	TEGRA_PIN_PV5,
160062306a36Sopenharmony_ci	TEGRA_PIN_PV6,
160162306a36Sopenharmony_ci};
160262306a36Sopenharmony_ci
160362306a36Sopenharmony_cistatic const unsigned drive_spi_pins[] = {
160462306a36Sopenharmony_ci	TEGRA_PIN_SPI2_MOSI_PX0,
160562306a36Sopenharmony_ci	TEGRA_PIN_SPI2_MISO_PX1,
160662306a36Sopenharmony_ci	TEGRA_PIN_SPI2_SCK_PX2,
160762306a36Sopenharmony_ci	TEGRA_PIN_SPI2_CS0_N_PX3,
160862306a36Sopenharmony_ci	TEGRA_PIN_SPI1_MOSI_PX4,
160962306a36Sopenharmony_ci	TEGRA_PIN_SPI1_SCK_PX5,
161062306a36Sopenharmony_ci	TEGRA_PIN_SPI1_CS0_N_PX6,
161162306a36Sopenharmony_ci	TEGRA_PIN_SPI1_MISO_PX7,
161262306a36Sopenharmony_ci	TEGRA_PIN_SPI2_CS1_N_PW2,
161362306a36Sopenharmony_ci	TEGRA_PIN_SPI2_CS2_N_PW3,
161462306a36Sopenharmony_ci};
161562306a36Sopenharmony_ci
161662306a36Sopenharmony_cistatic const unsigned drive_uaa_pins[] = {
161762306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA0_PO1,
161862306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA1_PO2,
161962306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA2_PO3,
162062306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA3_PO4,
162162306a36Sopenharmony_ci};
162262306a36Sopenharmony_ci
162362306a36Sopenharmony_cistatic const unsigned drive_uab_pins[] = {
162462306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA4_PO5,
162562306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA5_PO6,
162662306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA6_PO7,
162762306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DATA7_PO0,
162862306a36Sopenharmony_ci	TEGRA_PIN_PV0,
162962306a36Sopenharmony_ci	TEGRA_PIN_PV1,
163062306a36Sopenharmony_ci	TEGRA_PIN_PV2,
163162306a36Sopenharmony_ci	TEGRA_PIN_PV3,
163262306a36Sopenharmony_ci};
163362306a36Sopenharmony_ci
163462306a36Sopenharmony_cistatic const unsigned drive_uart2_pins[] = {
163562306a36Sopenharmony_ci	TEGRA_PIN_UART2_TXD_PC2,
163662306a36Sopenharmony_ci	TEGRA_PIN_UART2_RXD_PC3,
163762306a36Sopenharmony_ci	TEGRA_PIN_UART2_RTS_N_PJ6,
163862306a36Sopenharmony_ci	TEGRA_PIN_UART2_CTS_N_PJ5,
163962306a36Sopenharmony_ci};
164062306a36Sopenharmony_ci
164162306a36Sopenharmony_cistatic const unsigned drive_uart3_pins[] = {
164262306a36Sopenharmony_ci	TEGRA_PIN_UART3_TXD_PW6,
164362306a36Sopenharmony_ci	TEGRA_PIN_UART3_RXD_PW7,
164462306a36Sopenharmony_ci	TEGRA_PIN_UART3_RTS_N_PC0,
164562306a36Sopenharmony_ci	TEGRA_PIN_UART3_CTS_N_PA1,
164662306a36Sopenharmony_ci};
164762306a36Sopenharmony_ci
164862306a36Sopenharmony_cistatic const unsigned drive_vi1_pins[] = {
164962306a36Sopenharmony_ci	TEGRA_PIN_VI_D0_PT4,
165062306a36Sopenharmony_ci	TEGRA_PIN_VI_D1_PD5,
165162306a36Sopenharmony_ci	TEGRA_PIN_VI_D2_PL0,
165262306a36Sopenharmony_ci	TEGRA_PIN_VI_D3_PL1,
165362306a36Sopenharmony_ci	TEGRA_PIN_VI_D4_PL2,
165462306a36Sopenharmony_ci	TEGRA_PIN_VI_D5_PL3,
165562306a36Sopenharmony_ci	TEGRA_PIN_VI_D6_PL4,
165662306a36Sopenharmony_ci	TEGRA_PIN_VI_D7_PL5,
165762306a36Sopenharmony_ci	TEGRA_PIN_VI_D8_PL6,
165862306a36Sopenharmony_ci	TEGRA_PIN_VI_D9_PL7,
165962306a36Sopenharmony_ci	TEGRA_PIN_VI_D10_PT2,
166062306a36Sopenharmony_ci	TEGRA_PIN_VI_D11_PT3,
166162306a36Sopenharmony_ci	TEGRA_PIN_VI_PCLK_PT0,
166262306a36Sopenharmony_ci	TEGRA_PIN_VI_VSYNC_PD6,
166362306a36Sopenharmony_ci	TEGRA_PIN_VI_HSYNC_PD7,
166462306a36Sopenharmony_ci};
166562306a36Sopenharmony_ci
166662306a36Sopenharmony_cistatic const unsigned drive_vi2_pins[] = {
166762306a36Sopenharmony_ci	TEGRA_PIN_VI_GP0_PBB1,
166862306a36Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SCL_PBB2,
166962306a36Sopenharmony_ci	TEGRA_PIN_CAM_I2C_SDA_PBB3,
167062306a36Sopenharmony_ci	TEGRA_PIN_VI_GP3_PBB4,
167162306a36Sopenharmony_ci	TEGRA_PIN_VI_GP4_PBB5,
167262306a36Sopenharmony_ci	TEGRA_PIN_VI_GP5_PD2,
167362306a36Sopenharmony_ci	TEGRA_PIN_VI_GP6_PA0,
167462306a36Sopenharmony_ci};
167562306a36Sopenharmony_ci
167662306a36Sopenharmony_cistatic const unsigned drive_xm2a_pins[] = {
167762306a36Sopenharmony_ci	TEGRA_PIN_DDR_A0,
167862306a36Sopenharmony_ci	TEGRA_PIN_DDR_A1,
167962306a36Sopenharmony_ci	TEGRA_PIN_DDR_A2,
168062306a36Sopenharmony_ci	TEGRA_PIN_DDR_A3,
168162306a36Sopenharmony_ci	TEGRA_PIN_DDR_A4,
168262306a36Sopenharmony_ci	TEGRA_PIN_DDR_A5,
168362306a36Sopenharmony_ci	TEGRA_PIN_DDR_A6,
168462306a36Sopenharmony_ci	TEGRA_PIN_DDR_A7,
168562306a36Sopenharmony_ci	TEGRA_PIN_DDR_A8,
168662306a36Sopenharmony_ci	TEGRA_PIN_DDR_A9,
168762306a36Sopenharmony_ci	TEGRA_PIN_DDR_A10,
168862306a36Sopenharmony_ci	TEGRA_PIN_DDR_A11,
168962306a36Sopenharmony_ci	TEGRA_PIN_DDR_A12,
169062306a36Sopenharmony_ci	TEGRA_PIN_DDR_A13,
169162306a36Sopenharmony_ci	TEGRA_PIN_DDR_A14,
169262306a36Sopenharmony_ci	TEGRA_PIN_DDR_BA0,
169362306a36Sopenharmony_ci	TEGRA_PIN_DDR_BA1,
169462306a36Sopenharmony_ci	TEGRA_PIN_DDR_BA2,
169562306a36Sopenharmony_ci	TEGRA_PIN_DDR_CS0_N,
169662306a36Sopenharmony_ci	TEGRA_PIN_DDR_CS1_N,
169762306a36Sopenharmony_ci	TEGRA_PIN_DDR_ODT,
169862306a36Sopenharmony_ci	TEGRA_PIN_DDR_RAS_N,
169962306a36Sopenharmony_ci	TEGRA_PIN_DDR_CAS_N,
170062306a36Sopenharmony_ci	TEGRA_PIN_DDR_WE_N,
170162306a36Sopenharmony_ci	TEGRA_PIN_DDR_CKE0,
170262306a36Sopenharmony_ci	TEGRA_PIN_DDR_CKE1,
170362306a36Sopenharmony_ci};
170462306a36Sopenharmony_ci
170562306a36Sopenharmony_cistatic const unsigned drive_xm2c_pins[] = {
170662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS0P,
170762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS0N,
170862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS1P,
170962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS1N,
171062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS2P,
171162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS2N,
171262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS3P,
171362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQS3N,
171462306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE0,
171562306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE1,
171662306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE2,
171762306a36Sopenharmony_ci	TEGRA_PIN_DDR_QUSE3,
171862306a36Sopenharmony_ci};
171962306a36Sopenharmony_ci
172062306a36Sopenharmony_cistatic const unsigned drive_xm2d_pins[] = {
172162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ0,
172262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ1,
172362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ2,
172462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ3,
172562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ4,
172662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ5,
172762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ6,
172862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ7,
172962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ8,
173062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ9,
173162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ10,
173262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ11,
173362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ12,
173462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ13,
173562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ14,
173662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ15,
173762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ16,
173862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ17,
173962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ18,
174062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ19,
174162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ20,
174262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ21,
174362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ22,
174462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ23,
174562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ24,
174662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ25,
174762306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ26,
174862306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ27,
174962306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ28,
175062306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ29,
175162306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ30,
175262306a36Sopenharmony_ci	TEGRA_PIN_DDR_DQ31,
175362306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM0,
175462306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM1,
175562306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM2,
175662306a36Sopenharmony_ci	TEGRA_PIN_DDR_DM3,
175762306a36Sopenharmony_ci};
175862306a36Sopenharmony_ci
175962306a36Sopenharmony_cistatic const unsigned drive_xm2clk_pins[] = {
176062306a36Sopenharmony_ci	TEGRA_PIN_DDR_CLK,
176162306a36Sopenharmony_ci	TEGRA_PIN_DDR_CLK_N,
176262306a36Sopenharmony_ci};
176362306a36Sopenharmony_ci
176462306a36Sopenharmony_cistatic const unsigned drive_sdio1_pins[] = {
176562306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_CLK_PZ0,
176662306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_CMD_PZ1,
176762306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT0_PY7,
176862306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT1_PY6,
176962306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT2_PY5,
177062306a36Sopenharmony_ci	TEGRA_PIN_SDIO1_DAT3_PY4,
177162306a36Sopenharmony_ci};
177262306a36Sopenharmony_ci
177362306a36Sopenharmony_cistatic const unsigned drive_crt_pins[] = {
177462306a36Sopenharmony_ci	TEGRA_PIN_CRT_HSYNC,
177562306a36Sopenharmony_ci	TEGRA_PIN_CRT_VSYNC,
177662306a36Sopenharmony_ci};
177762306a36Sopenharmony_ci
177862306a36Sopenharmony_cistatic const unsigned drive_ddc_pins[] = {
177962306a36Sopenharmony_ci	TEGRA_PIN_DDC_SCL,
178062306a36Sopenharmony_ci	TEGRA_PIN_DDC_SDA,
178162306a36Sopenharmony_ci};
178262306a36Sopenharmony_ci
178362306a36Sopenharmony_cistatic const unsigned drive_gma_pins[] = {
178462306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD20_PAA0,
178562306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD21_PAA1,
178662306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD22_PAA2,
178762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD23_PAA3,
178862306a36Sopenharmony_ci};
178962306a36Sopenharmony_ci
179062306a36Sopenharmony_cistatic const unsigned drive_gmb_pins[] = {
179162306a36Sopenharmony_ci	TEGRA_PIN_GMI_WP_N_PC7,
179262306a36Sopenharmony_ci};
179362306a36Sopenharmony_ci
179462306a36Sopenharmony_cistatic const unsigned drive_gmc_pins[] = {
179562306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD16_PJ7,
179662306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD17_PB0,
179762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD18_PB1,
179862306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD19_PK7,
179962306a36Sopenharmony_ci};
180062306a36Sopenharmony_ci
180162306a36Sopenharmony_cistatic const unsigned drive_gmd_pins[] = {
180262306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS0_N_PJ0,
180362306a36Sopenharmony_ci	TEGRA_PIN_GMI_CS1_N_PJ2,
180462306a36Sopenharmony_ci};
180562306a36Sopenharmony_ci
180662306a36Sopenharmony_cistatic const unsigned drive_gme_pins[] = {
180762306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD24_PAA4,
180862306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD25_PAA5,
180962306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD26_PAA6,
181062306a36Sopenharmony_ci	TEGRA_PIN_GMI_AD27_PAA7,
181162306a36Sopenharmony_ci};
181262306a36Sopenharmony_ci
181362306a36Sopenharmony_cistatic const unsigned drive_owr_pins[] = {
181462306a36Sopenharmony_ci	TEGRA_PIN_OWC,
181562306a36Sopenharmony_ci};
181662306a36Sopenharmony_ci
181762306a36Sopenharmony_cistatic const unsigned drive_uda_pins[] = {
181862306a36Sopenharmony_ci	TEGRA_PIN_ULPI_CLK_PY0,
181962306a36Sopenharmony_ci	TEGRA_PIN_ULPI_DIR_PY1,
182062306a36Sopenharmony_ci	TEGRA_PIN_ULPI_NXT_PY2,
182162306a36Sopenharmony_ci	TEGRA_PIN_ULPI_STP_PY3,
182262306a36Sopenharmony_ci};
182362306a36Sopenharmony_ci
182462306a36Sopenharmony_cienum tegra_mux {
182562306a36Sopenharmony_ci	TEGRA_MUX_AHB_CLK,
182662306a36Sopenharmony_ci	TEGRA_MUX_APB_CLK,
182762306a36Sopenharmony_ci	TEGRA_MUX_AUDIO_SYNC,
182862306a36Sopenharmony_ci	TEGRA_MUX_CRT,
182962306a36Sopenharmony_ci	TEGRA_MUX_DAP1,
183062306a36Sopenharmony_ci	TEGRA_MUX_DAP2,
183162306a36Sopenharmony_ci	TEGRA_MUX_DAP3,
183262306a36Sopenharmony_ci	TEGRA_MUX_DAP4,
183362306a36Sopenharmony_ci	TEGRA_MUX_DAP5,
183462306a36Sopenharmony_ci	TEGRA_MUX_DISPLAYA,
183562306a36Sopenharmony_ci	TEGRA_MUX_DISPLAYB,
183662306a36Sopenharmony_ci	TEGRA_MUX_EMC_TEST0_DLL,
183762306a36Sopenharmony_ci	TEGRA_MUX_EMC_TEST1_DLL,
183862306a36Sopenharmony_ci	TEGRA_MUX_GMI,
183962306a36Sopenharmony_ci	TEGRA_MUX_GMI_INT,
184062306a36Sopenharmony_ci	TEGRA_MUX_HDMI,
184162306a36Sopenharmony_ci	TEGRA_MUX_I2CP,
184262306a36Sopenharmony_ci	TEGRA_MUX_I2C1,
184362306a36Sopenharmony_ci	TEGRA_MUX_I2C2,
184462306a36Sopenharmony_ci	TEGRA_MUX_I2C3,
184562306a36Sopenharmony_ci	TEGRA_MUX_IDE,
184662306a36Sopenharmony_ci	TEGRA_MUX_IRDA,
184762306a36Sopenharmony_ci	TEGRA_MUX_KBC,
184862306a36Sopenharmony_ci	TEGRA_MUX_MIO,
184962306a36Sopenharmony_ci	TEGRA_MUX_MIPI_HS,
185062306a36Sopenharmony_ci	TEGRA_MUX_NAND,
185162306a36Sopenharmony_ci	TEGRA_MUX_OSC,
185262306a36Sopenharmony_ci	TEGRA_MUX_OWR,
185362306a36Sopenharmony_ci	TEGRA_MUX_PCIE,
185462306a36Sopenharmony_ci	TEGRA_MUX_PLLA_OUT,
185562306a36Sopenharmony_ci	TEGRA_MUX_PLLC_OUT1,
185662306a36Sopenharmony_ci	TEGRA_MUX_PLLM_OUT1,
185762306a36Sopenharmony_ci	TEGRA_MUX_PLLP_OUT2,
185862306a36Sopenharmony_ci	TEGRA_MUX_PLLP_OUT3,
185962306a36Sopenharmony_ci	TEGRA_MUX_PLLP_OUT4,
186062306a36Sopenharmony_ci	TEGRA_MUX_PWM,
186162306a36Sopenharmony_ci	TEGRA_MUX_PWR_INTR,
186262306a36Sopenharmony_ci	TEGRA_MUX_PWR_ON,
186362306a36Sopenharmony_ci	TEGRA_MUX_RSVD1,
186462306a36Sopenharmony_ci	TEGRA_MUX_RSVD2,
186562306a36Sopenharmony_ci	TEGRA_MUX_RSVD3,
186662306a36Sopenharmony_ci	TEGRA_MUX_RSVD4,
186762306a36Sopenharmony_ci	TEGRA_MUX_RTCK,
186862306a36Sopenharmony_ci	TEGRA_MUX_SDIO1,
186962306a36Sopenharmony_ci	TEGRA_MUX_SDIO2,
187062306a36Sopenharmony_ci	TEGRA_MUX_SDIO3,
187162306a36Sopenharmony_ci	TEGRA_MUX_SDIO4,
187262306a36Sopenharmony_ci	TEGRA_MUX_SFLASH,
187362306a36Sopenharmony_ci	TEGRA_MUX_SPDIF,
187462306a36Sopenharmony_ci	TEGRA_MUX_SPI1,
187562306a36Sopenharmony_ci	TEGRA_MUX_SPI2,
187662306a36Sopenharmony_ci	TEGRA_MUX_SPI2_ALT,
187762306a36Sopenharmony_ci	TEGRA_MUX_SPI3,
187862306a36Sopenharmony_ci	TEGRA_MUX_SPI4,
187962306a36Sopenharmony_ci	TEGRA_MUX_TRACE,
188062306a36Sopenharmony_ci	TEGRA_MUX_TWC,
188162306a36Sopenharmony_ci	TEGRA_MUX_UARTA,
188262306a36Sopenharmony_ci	TEGRA_MUX_UARTB,
188362306a36Sopenharmony_ci	TEGRA_MUX_UARTC,
188462306a36Sopenharmony_ci	TEGRA_MUX_UARTD,
188562306a36Sopenharmony_ci	TEGRA_MUX_UARTE,
188662306a36Sopenharmony_ci	TEGRA_MUX_ULPI,
188762306a36Sopenharmony_ci	TEGRA_MUX_VI,
188862306a36Sopenharmony_ci	TEGRA_MUX_VI_SENSOR_CLK,
188962306a36Sopenharmony_ci	TEGRA_MUX_XIO,
189062306a36Sopenharmony_ci};
189162306a36Sopenharmony_ci
189262306a36Sopenharmony_ci#define FUNCTION(fname) #fname
189362306a36Sopenharmony_ci
189462306a36Sopenharmony_cistatic const char * const tegra20_functions[] = {
189562306a36Sopenharmony_ci	FUNCTION(ahb_clk),
189662306a36Sopenharmony_ci	FUNCTION(apb_clk),
189762306a36Sopenharmony_ci	FUNCTION(audio_sync),
189862306a36Sopenharmony_ci	FUNCTION(crt),
189962306a36Sopenharmony_ci	FUNCTION(dap1),
190062306a36Sopenharmony_ci	FUNCTION(dap2),
190162306a36Sopenharmony_ci	FUNCTION(dap3),
190262306a36Sopenharmony_ci	FUNCTION(dap4),
190362306a36Sopenharmony_ci	FUNCTION(dap5),
190462306a36Sopenharmony_ci	FUNCTION(displaya),
190562306a36Sopenharmony_ci	FUNCTION(displayb),
190662306a36Sopenharmony_ci	FUNCTION(emc_test0_dll),
190762306a36Sopenharmony_ci	FUNCTION(emc_test1_dll),
190862306a36Sopenharmony_ci	FUNCTION(gmi),
190962306a36Sopenharmony_ci	FUNCTION(gmi_int),
191062306a36Sopenharmony_ci	FUNCTION(hdmi),
191162306a36Sopenharmony_ci	FUNCTION(i2cp),
191262306a36Sopenharmony_ci	FUNCTION(i2c1),
191362306a36Sopenharmony_ci	FUNCTION(i2c2),
191462306a36Sopenharmony_ci	FUNCTION(i2c3),
191562306a36Sopenharmony_ci	FUNCTION(ide),
191662306a36Sopenharmony_ci	FUNCTION(irda),
191762306a36Sopenharmony_ci	FUNCTION(kbc),
191862306a36Sopenharmony_ci	FUNCTION(mio),
191962306a36Sopenharmony_ci	FUNCTION(mipi_hs),
192062306a36Sopenharmony_ci	FUNCTION(nand),
192162306a36Sopenharmony_ci	FUNCTION(osc),
192262306a36Sopenharmony_ci	FUNCTION(owr),
192362306a36Sopenharmony_ci	FUNCTION(pcie),
192462306a36Sopenharmony_ci	FUNCTION(plla_out),
192562306a36Sopenharmony_ci	FUNCTION(pllc_out1),
192662306a36Sopenharmony_ci	FUNCTION(pllm_out1),
192762306a36Sopenharmony_ci	FUNCTION(pllp_out2),
192862306a36Sopenharmony_ci	FUNCTION(pllp_out3),
192962306a36Sopenharmony_ci	FUNCTION(pllp_out4),
193062306a36Sopenharmony_ci	FUNCTION(pwm),
193162306a36Sopenharmony_ci	FUNCTION(pwr_intr),
193262306a36Sopenharmony_ci	FUNCTION(pwr_on),
193362306a36Sopenharmony_ci	FUNCTION(rsvd1),
193462306a36Sopenharmony_ci	FUNCTION(rsvd2),
193562306a36Sopenharmony_ci	FUNCTION(rsvd3),
193662306a36Sopenharmony_ci	FUNCTION(rsvd4),
193762306a36Sopenharmony_ci	FUNCTION(rtck),
193862306a36Sopenharmony_ci	FUNCTION(sdio1),
193962306a36Sopenharmony_ci	FUNCTION(sdio2),
194062306a36Sopenharmony_ci	FUNCTION(sdio3),
194162306a36Sopenharmony_ci	FUNCTION(sdio4),
194262306a36Sopenharmony_ci	FUNCTION(sflash),
194362306a36Sopenharmony_ci	FUNCTION(spdif),
194462306a36Sopenharmony_ci	FUNCTION(spi1),
194562306a36Sopenharmony_ci	FUNCTION(spi2),
194662306a36Sopenharmony_ci	FUNCTION(spi2_alt),
194762306a36Sopenharmony_ci	FUNCTION(spi3),
194862306a36Sopenharmony_ci	FUNCTION(spi4),
194962306a36Sopenharmony_ci	FUNCTION(trace),
195062306a36Sopenharmony_ci	FUNCTION(twc),
195162306a36Sopenharmony_ci	FUNCTION(uarta),
195262306a36Sopenharmony_ci	FUNCTION(uartb),
195362306a36Sopenharmony_ci	FUNCTION(uartc),
195462306a36Sopenharmony_ci	FUNCTION(uartd),
195562306a36Sopenharmony_ci	FUNCTION(uarte),
195662306a36Sopenharmony_ci	FUNCTION(ulpi),
195762306a36Sopenharmony_ci	FUNCTION(vi),
195862306a36Sopenharmony_ci	FUNCTION(vi_sensor_clk),
195962306a36Sopenharmony_ci	FUNCTION(xio),
196062306a36Sopenharmony_ci};
196162306a36Sopenharmony_ci
196262306a36Sopenharmony_ci#define TRISTATE_REG_A		0x14
196362306a36Sopenharmony_ci#define PIN_MUX_CTL_REG_A	0x80
196462306a36Sopenharmony_ci#define PULLUPDOWN_REG_A	0xa0
196562306a36Sopenharmony_ci#define PINGROUP_REG_A		0x868
196662306a36Sopenharmony_ci
196762306a36Sopenharmony_ci/* Pin group with mux control, and typically tri-state and pull-up/down too */
196862306a36Sopenharmony_ci#define MUX_PG(pg_name, f0, f1, f2, f3,				\
196962306a36Sopenharmony_ci	       tri_r, tri_b, mux_r, mux_b, pupd_r, pupd_b)	\
197062306a36Sopenharmony_ci	{							\
197162306a36Sopenharmony_ci		.name = #pg_name,				\
197262306a36Sopenharmony_ci		.pins = pg_name##_pins,				\
197362306a36Sopenharmony_ci		.npins = ARRAY_SIZE(pg_name##_pins),		\
197462306a36Sopenharmony_ci		.funcs = {					\
197562306a36Sopenharmony_ci			TEGRA_MUX_ ## f0,			\
197662306a36Sopenharmony_ci			TEGRA_MUX_ ## f1,			\
197762306a36Sopenharmony_ci			TEGRA_MUX_ ## f2,			\
197862306a36Sopenharmony_ci			TEGRA_MUX_ ## f3,			\
197962306a36Sopenharmony_ci		},						\
198062306a36Sopenharmony_ci		.mux_reg = ((mux_r) - PIN_MUX_CTL_REG_A),	\
198162306a36Sopenharmony_ci		.mux_bank = 1,					\
198262306a36Sopenharmony_ci		.mux_bit = mux_b,				\
198362306a36Sopenharmony_ci		.pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A),	\
198462306a36Sopenharmony_ci		.pupd_bank = 2,					\
198562306a36Sopenharmony_ci		.pupd_bit = pupd_b,				\
198662306a36Sopenharmony_ci		.tri_reg = ((tri_r) - TRISTATE_REG_A),		\
198762306a36Sopenharmony_ci		.tri_bank = 0,					\
198862306a36Sopenharmony_ci		.tri_bit = tri_b,				\
198962306a36Sopenharmony_ci		.einput_bit = -1,				\
199062306a36Sopenharmony_ci		.odrain_bit = -1,				\
199162306a36Sopenharmony_ci		.lock_bit = -1,					\
199262306a36Sopenharmony_ci		.ioreset_bit = -1,				\
199362306a36Sopenharmony_ci		.rcv_sel_bit = -1,				\
199462306a36Sopenharmony_ci		.drv_reg = -1,					\
199562306a36Sopenharmony_ci		.parked_bitmask = 0,				\
199662306a36Sopenharmony_ci	}
199762306a36Sopenharmony_ci
199862306a36Sopenharmony_ci/* Pin groups with only pull up and pull down control */
199962306a36Sopenharmony_ci#define PULL_PG(pg_name, pupd_r, pupd_b)			\
200062306a36Sopenharmony_ci	{							\
200162306a36Sopenharmony_ci		.name = #pg_name,				\
200262306a36Sopenharmony_ci		.pins = pg_name##_pins,				\
200362306a36Sopenharmony_ci		.npins = ARRAY_SIZE(pg_name##_pins),		\
200462306a36Sopenharmony_ci		.mux_reg = -1,					\
200562306a36Sopenharmony_ci		.pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A),	\
200662306a36Sopenharmony_ci		.pupd_bank = 2,					\
200762306a36Sopenharmony_ci		.pupd_bit = pupd_b,				\
200862306a36Sopenharmony_ci		.drv_reg = -1,					\
200962306a36Sopenharmony_ci		.parked_bitmask = 0,				\
201062306a36Sopenharmony_ci	}
201162306a36Sopenharmony_ci
201262306a36Sopenharmony_ci/* Pin groups for drive strength registers (configurable version) */
201362306a36Sopenharmony_ci#define DRV_PG_EXT(pg_name, r, hsm_b, schmitt_b, lpmd_b,	\
201462306a36Sopenharmony_ci		   drvdn_b, drvup_b,				\
201562306a36Sopenharmony_ci		   slwr_b, slwr_w, slwf_b, slwf_w)		\
201662306a36Sopenharmony_ci	{							\
201762306a36Sopenharmony_ci		.name = "drive_" #pg_name,			\
201862306a36Sopenharmony_ci		.pins = drive_##pg_name##_pins,			\
201962306a36Sopenharmony_ci		.npins = ARRAY_SIZE(drive_##pg_name##_pins),	\
202062306a36Sopenharmony_ci		.mux_reg = -1,					\
202162306a36Sopenharmony_ci		.pupd_reg = -1,					\
202262306a36Sopenharmony_ci		.tri_reg = -1,					\
202362306a36Sopenharmony_ci		.drv_reg = ((r) - PINGROUP_REG_A),		\
202462306a36Sopenharmony_ci		.drv_bank = 3,					\
202562306a36Sopenharmony_ci		.parked_bitmask = 0,				\
202662306a36Sopenharmony_ci		.hsm_bit = hsm_b,				\
202762306a36Sopenharmony_ci		.schmitt_bit = schmitt_b,			\
202862306a36Sopenharmony_ci		.lpmd_bit = lpmd_b,				\
202962306a36Sopenharmony_ci		.drvdn_bit = drvdn_b,				\
203062306a36Sopenharmony_ci		.drvdn_width = 5,				\
203162306a36Sopenharmony_ci		.drvup_bit = drvup_b,				\
203262306a36Sopenharmony_ci		.drvup_width = 5,				\
203362306a36Sopenharmony_ci		.slwr_bit = slwr_b,				\
203462306a36Sopenharmony_ci		.slwr_width = slwr_w,				\
203562306a36Sopenharmony_ci		.slwf_bit = slwf_b,				\
203662306a36Sopenharmony_ci		.slwf_width = slwf_w,				\
203762306a36Sopenharmony_ci		.drvtype_bit = -1,				\
203862306a36Sopenharmony_ci	}
203962306a36Sopenharmony_ci
204062306a36Sopenharmony_ci/* Pin groups for drive strength registers (simple version) */
204162306a36Sopenharmony_ci#define DRV_PG(pg_name, r) \
204262306a36Sopenharmony_ci	DRV_PG_EXT(pg_name, r, 2,  3,  4, 12, 20, 28, 2, 30, 2)
204362306a36Sopenharmony_ci
204462306a36Sopenharmony_cistatic const struct tegra_pingroup tegra20_groups[] = {
204562306a36Sopenharmony_ci	/*     name,   f0,        f1,        f2,        f3,            tri r/b,  mux r/b,  pupd r/b */
204662306a36Sopenharmony_ci	MUX_PG(ata,    IDE,       NAND,      GMI,       RSVD4,         0x14, 0,  0x80, 24, 0xa0, 0),
204762306a36Sopenharmony_ci	MUX_PG(atb,    IDE,       NAND,      GMI,       SDIO4,         0x14, 1,  0x80, 16, 0xa0, 2),
204862306a36Sopenharmony_ci	MUX_PG(atc,    IDE,       NAND,      GMI,       SDIO4,         0x14, 2,  0x80, 22, 0xa0, 4),
204962306a36Sopenharmony_ci	MUX_PG(atd,    IDE,       NAND,      GMI,       SDIO4,         0x14, 3,  0x80, 20, 0xa0, 6),
205062306a36Sopenharmony_ci	MUX_PG(ate,    IDE,       NAND,      GMI,       RSVD4,         0x18, 25, 0x80, 12, 0xa0, 8),
205162306a36Sopenharmony_ci	MUX_PG(cdev1,  OSC,       PLLA_OUT,  PLLM_OUT1, AUDIO_SYNC,    0x14, 4,  0x88, 2,  0xa8, 0),
205262306a36Sopenharmony_ci	MUX_PG(cdev2,  OSC,       AHB_CLK,   APB_CLK,   PLLP_OUT4,     0x14, 5,  0x88, 4,  0xa8, 2),
205362306a36Sopenharmony_ci	MUX_PG(crtp,   CRT,       RSVD2,     RSVD3,     RSVD4,         0x20, 14, 0x98, 20, 0xa4, 24),
205462306a36Sopenharmony_ci	MUX_PG(csus,   PLLC_OUT1, PLLP_OUT2, PLLP_OUT3, VI_SENSOR_CLK, 0x14, 6,  0x88, 6,  0xac, 24),
205562306a36Sopenharmony_ci	MUX_PG(dap1,   DAP1,      RSVD2,     GMI,       SDIO2,         0x14, 7,  0x88, 20, 0xa0, 10),
205662306a36Sopenharmony_ci	MUX_PG(dap2,   DAP2,      TWC,       RSVD3,     GMI,           0x14, 8,  0x88, 22, 0xa0, 12),
205762306a36Sopenharmony_ci	MUX_PG(dap3,   DAP3,      RSVD2,     RSVD3,     RSVD4,         0x14, 9,  0x88, 24, 0xa0, 14),
205862306a36Sopenharmony_ci	MUX_PG(dap4,   DAP4,      RSVD2,     GMI,       RSVD4,         0x14, 10, 0x88, 26, 0xa0, 16),
205962306a36Sopenharmony_ci	MUX_PG(ddc,    I2C2,      RSVD2,     RSVD3,     RSVD4,         0x18, 31, 0x88, 0,  0xb0, 28),
206062306a36Sopenharmony_ci	MUX_PG(dta,    RSVD1,     SDIO2,     VI,        RSVD4,         0x14, 11, 0x84, 20, 0xa0, 18),
206162306a36Sopenharmony_ci	MUX_PG(dtb,    RSVD1,     RSVD2,     VI,        SPI1,          0x14, 12, 0x84, 22, 0xa0, 20),
206262306a36Sopenharmony_ci	MUX_PG(dtc,    RSVD1,     RSVD2,     VI,        RSVD4,         0x14, 13, 0x84, 26, 0xa0, 22),
206362306a36Sopenharmony_ci	MUX_PG(dtd,    RSVD1,     SDIO2,     VI,        RSVD4,         0x14, 14, 0x84, 28, 0xa0, 24),
206462306a36Sopenharmony_ci	MUX_PG(dte,    RSVD1,     RSVD2,     VI,        SPI1,          0x14, 15, 0x84, 30, 0xa0, 26),
206562306a36Sopenharmony_ci	MUX_PG(dtf,    I2C3,      RSVD2,     VI,        RSVD4,         0x20, 12, 0x98, 30, 0xa0, 28),
206662306a36Sopenharmony_ci	MUX_PG(gma,    UARTE,     SPI3,      GMI,       SDIO4,         0x14, 28, 0x84, 0,  0xb0, 20),
206762306a36Sopenharmony_ci	MUX_PG(gmb,    IDE,       NAND,      GMI,       GMI_INT,       0x18, 29, 0x88, 28, 0xb0, 22),
206862306a36Sopenharmony_ci	MUX_PG(gmc,    UARTD,     SPI4,      GMI,       SFLASH,        0x14, 29, 0x84, 2,  0xb0, 24),
206962306a36Sopenharmony_ci	MUX_PG(gmd,    RSVD1,     NAND,      GMI,       SFLASH,        0x18, 30, 0x88, 30, 0xb0, 26),
207062306a36Sopenharmony_ci	MUX_PG(gme,    RSVD1,     DAP5,      GMI,       SDIO4,         0x18, 0,  0x8c, 0,  0xa8, 24),
207162306a36Sopenharmony_ci	MUX_PG(gpu,    PWM,       UARTA,     GMI,       RSVD4,         0x14, 16, 0x8c, 4,  0xa4, 20),
207262306a36Sopenharmony_ci	MUX_PG(gpu7,   RTCK,      RSVD2,     RSVD3,     RSVD4,         0x20, 11, 0x98, 28, 0xa4, 6),
207362306a36Sopenharmony_ci	MUX_PG(gpv,    PCIE,      RSVD2,     RSVD3,     RSVD4,         0x14, 17, 0x8c, 2,  0xa0, 30),
207462306a36Sopenharmony_ci	MUX_PG(hdint,  HDMI,      RSVD2,     RSVD3,     RSVD4,         0x1c, 23, 0x84, 4,  -1,   -1),
207562306a36Sopenharmony_ci	MUX_PG(i2cp,   I2CP,      RSVD2,     RSVD3,     RSVD4,         0x14, 18, 0x88, 8,  0xa4, 2),
207662306a36Sopenharmony_ci	MUX_PG(irrx,   UARTA,     UARTB,     GMI,       SPI4,          0x14, 20, 0x88, 18, 0xa8, 22),
207762306a36Sopenharmony_ci	MUX_PG(irtx,   UARTA,     UARTB,     GMI,       SPI4,          0x14, 19, 0x88, 16, 0xa8, 20),
207862306a36Sopenharmony_ci	MUX_PG(kbca,   KBC,       NAND,      SDIO2,     EMC_TEST0_DLL, 0x14, 22, 0x88, 10, 0xa4, 8),
207962306a36Sopenharmony_ci	MUX_PG(kbcb,   KBC,       NAND,      SDIO2,     MIO,           0x14, 21, 0x88, 12, 0xa4, 10),
208062306a36Sopenharmony_ci	MUX_PG(kbcc,   KBC,       NAND,      TRACE,     EMC_TEST1_DLL, 0x18, 26, 0x88, 14, 0xa4, 12),
208162306a36Sopenharmony_ci	MUX_PG(kbcd,   KBC,       NAND,      SDIO2,     MIO,           0x20, 10, 0x98, 26, 0xa4, 14),
208262306a36Sopenharmony_ci	MUX_PG(kbce,   KBC,       NAND,      OWR,       RSVD4,         0x14, 26, 0x80, 28, 0xb0, 2),
208362306a36Sopenharmony_ci	MUX_PG(kbcf,   KBC,       NAND,      TRACE,     MIO,           0x14, 27, 0x80, 26, 0xb0, 0),
208462306a36Sopenharmony_ci	MUX_PG(lcsn,   DISPLAYA,  DISPLAYB,  SPI3,      RSVD4,         0x1c, 31, 0x90, 12, -1,   -1),
208562306a36Sopenharmony_ci	MUX_PG(ld0,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 0,  0x94, 0,  -1,   -1),
208662306a36Sopenharmony_ci	MUX_PG(ld1,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 1,  0x94, 2,  -1,   -1),
208762306a36Sopenharmony_ci	MUX_PG(ld2,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 2,  0x94, 4,  -1,   -1),
208862306a36Sopenharmony_ci	MUX_PG(ld3,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 3,  0x94, 6,  -1,   -1),
208962306a36Sopenharmony_ci	MUX_PG(ld4,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 4,  0x94, 8,  -1,   -1),
209062306a36Sopenharmony_ci	MUX_PG(ld5,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 5,  0x94, 10, -1,   -1),
209162306a36Sopenharmony_ci	MUX_PG(ld6,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 6,  0x94, 12, -1,   -1),
209262306a36Sopenharmony_ci	MUX_PG(ld7,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 7,  0x94, 14, -1,   -1),
209362306a36Sopenharmony_ci	MUX_PG(ld8,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 8,  0x94, 16, -1,   -1),
209462306a36Sopenharmony_ci	MUX_PG(ld9,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 9,  0x94, 18, -1,   -1),
209562306a36Sopenharmony_ci	MUX_PG(ld10,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 10, 0x94, 20, -1,   -1),
209662306a36Sopenharmony_ci	MUX_PG(ld11,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 11, 0x94, 22, -1,   -1),
209762306a36Sopenharmony_ci	MUX_PG(ld12,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 12, 0x94, 24, -1,   -1),
209862306a36Sopenharmony_ci	MUX_PG(ld13,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 13, 0x94, 26, -1,   -1),
209962306a36Sopenharmony_ci	MUX_PG(ld14,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 14, 0x94, 28, -1,   -1),
210062306a36Sopenharmony_ci	MUX_PG(ld15,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 15, 0x94, 30, -1,   -1),
210162306a36Sopenharmony_ci	MUX_PG(ld16,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 16, 0x98, 0,  -1,   -1),
210262306a36Sopenharmony_ci	MUX_PG(ld17,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 17, 0x98, 2,  -1,   -1),
210362306a36Sopenharmony_ci	MUX_PG(ldc,    DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 30, 0x90, 14, -1,   -1),
210462306a36Sopenharmony_ci	MUX_PG(ldi,    DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x20, 6,  0x98, 16, -1,   -1),
210562306a36Sopenharmony_ci	MUX_PG(lhp0,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 18, 0x98, 10, -1,   -1),
210662306a36Sopenharmony_ci	MUX_PG(lhp1,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 19, 0x98, 4,  -1,   -1),
210762306a36Sopenharmony_ci	MUX_PG(lhp2,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 20, 0x98, 6,  -1,   -1),
210862306a36Sopenharmony_ci	MUX_PG(lhs,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x20, 7,  0x90, 22, -1,   -1),
210962306a36Sopenharmony_ci	MUX_PG(lm0,    DISPLAYA,  DISPLAYB,  SPI3,      RSVD4,         0x1c, 24, 0x90, 26, -1,   -1),
211062306a36Sopenharmony_ci	MUX_PG(lm1,    DISPLAYA,  DISPLAYB,  RSVD3,     CRT,           0x1c, 25, 0x90, 28, -1,   -1),
211162306a36Sopenharmony_ci	MUX_PG(lpp,    DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x20, 8,  0x98, 14, -1,   -1),
211262306a36Sopenharmony_ci	MUX_PG(lpw0,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x20, 3,  0x90, 0,  -1,   -1),
211362306a36Sopenharmony_ci	MUX_PG(lpw1,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x20, 4,  0x90, 2,  -1,   -1),
211462306a36Sopenharmony_ci	MUX_PG(lpw2,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x20, 5,  0x90, 4,  -1,   -1),
211562306a36Sopenharmony_ci	MUX_PG(lsc0,   DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 27, 0x90, 18, -1,   -1),
211662306a36Sopenharmony_ci	MUX_PG(lsc1,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x1c, 28, 0x90, 20, -1,   -1),
211762306a36Sopenharmony_ci	MUX_PG(lsck,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x1c, 29, 0x90, 16, -1,   -1),
211862306a36Sopenharmony_ci	MUX_PG(lsda,   DISPLAYA,  DISPLAYB,  SPI3,      HDMI,          0x20, 1,  0x90, 8,  -1,   -1),
211962306a36Sopenharmony_ci	MUX_PG(lsdi,   DISPLAYA,  DISPLAYB,  SPI3,      RSVD4,         0x20, 2,  0x90, 6,  -1,   -1),
212062306a36Sopenharmony_ci	MUX_PG(lspi,   DISPLAYA,  DISPLAYB,  XIO,       HDMI,          0x20, 0,  0x90, 10, -1,   -1),
212162306a36Sopenharmony_ci	MUX_PG(lvp0,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 21, 0x90, 30, -1,   -1),
212262306a36Sopenharmony_ci	MUX_PG(lvp1,   DISPLAYA,  DISPLAYB,  RSVD3,     RSVD4,         0x1c, 22, 0x98, 8,  -1,   -1),
212362306a36Sopenharmony_ci	MUX_PG(lvs,    DISPLAYA,  DISPLAYB,  XIO,       RSVD4,         0x1c, 26, 0x90, 24, -1,   -1),
212462306a36Sopenharmony_ci	MUX_PG(owc,    OWR,       RSVD2,     RSVD3,     RSVD4,         0x14, 31, 0x84, 8,  0xb0, 30),
212562306a36Sopenharmony_ci	MUX_PG(pmc,    PWR_ON,    PWR_INTR,  RSVD3,     RSVD4,         0x14, 23, 0x98, 18, -1,   -1),
212662306a36Sopenharmony_ci	MUX_PG(pta,    I2C2,      HDMI,      GMI,       RSVD4,         0x14, 24, 0x98, 22, 0xa4, 4),
212762306a36Sopenharmony_ci	MUX_PG(rm,     I2C1,      RSVD2,     RSVD3,     RSVD4,         0x14, 25, 0x80, 14, 0xa4, 0),
212862306a36Sopenharmony_ci	MUX_PG(sdb,    UARTA,     PWM,       SDIO3,     SPI2,          0x20, 15, 0x8c, 10, -1,   -1),
212962306a36Sopenharmony_ci	MUX_PG(sdc,    PWM,       TWC,       SDIO3,     SPI3,          0x18, 1,  0x8c, 12, 0xac, 28),
213062306a36Sopenharmony_ci	MUX_PG(sdd,    UARTA,     PWM,       SDIO3,     SPI3,          0x18, 2,  0x8c, 14, 0xac, 30),
213162306a36Sopenharmony_ci	MUX_PG(sdio1,  SDIO1,     RSVD2,     UARTE,     UARTA,         0x14, 30, 0x80, 30, 0xb0, 18),
213262306a36Sopenharmony_ci	MUX_PG(slxa,   PCIE,      SPI4,      SDIO3,     SPI2,          0x18, 3,  0x84, 6,  0xa4, 22),
213362306a36Sopenharmony_ci	MUX_PG(slxc,   SPDIF,     SPI4,      SDIO3,     SPI2,          0x18, 5,  0x84, 10, 0xa4, 26),
213462306a36Sopenharmony_ci	MUX_PG(slxd,   SPDIF,     SPI4,      SDIO3,     SPI2,          0x18, 6,  0x84, 12, 0xa4, 28),
213562306a36Sopenharmony_ci	MUX_PG(slxk,   PCIE,      SPI4,      SDIO3,     SPI2,          0x18, 7,  0x84, 14, 0xa4, 30),
213662306a36Sopenharmony_ci	MUX_PG(spdi,   SPDIF,     RSVD2,     I2C1,      SDIO2,         0x18, 8,  0x8c, 8,  0xa4, 16),
213762306a36Sopenharmony_ci	MUX_PG(spdo,   SPDIF,     RSVD2,     I2C1,      SDIO2,         0x18, 9,  0x8c, 6,  0xa4, 18),
213862306a36Sopenharmony_ci	MUX_PG(spia,   SPI1,      SPI2,      SPI3,      GMI,           0x18, 10, 0x8c, 30, 0xa8, 4),
213962306a36Sopenharmony_ci	MUX_PG(spib,   SPI1,      SPI2,      SPI3,      GMI,           0x18, 11, 0x8c, 28, 0xa8, 6),
214062306a36Sopenharmony_ci	MUX_PG(spic,   SPI1,      SPI2,      SPI3,      GMI,           0x18, 12, 0x8c, 26, 0xa8, 8),
214162306a36Sopenharmony_ci	MUX_PG(spid,   SPI2,      SPI1,      SPI2_ALT,  GMI,           0x18, 13, 0x8c, 24, 0xa8, 10),
214262306a36Sopenharmony_ci	MUX_PG(spie,   SPI2,      SPI1,      SPI2_ALT,  GMI,           0x18, 14, 0x8c, 22, 0xa8, 12),
214362306a36Sopenharmony_ci	MUX_PG(spif,   SPI3,      SPI1,      SPI2,      RSVD4,         0x18, 15, 0x8c, 20, 0xa8, 14),
214462306a36Sopenharmony_ci	MUX_PG(spig,   SPI3,      SPI2,      SPI2_ALT,  I2C1,          0x18, 16, 0x8c, 18, 0xa8, 16),
214562306a36Sopenharmony_ci	MUX_PG(spih,   SPI3,      SPI2,      SPI2_ALT,  I2C1,          0x18, 17, 0x8c, 16, 0xa8, 18),
214662306a36Sopenharmony_ci	MUX_PG(uaa,    SPI3,      MIPI_HS,   UARTA,     ULPI,          0x18, 18, 0x80, 0,  0xac, 0),
214762306a36Sopenharmony_ci	MUX_PG(uab,    SPI2,      MIPI_HS,   UARTA,     ULPI,          0x18, 19, 0x80, 2,  0xac, 2),
214862306a36Sopenharmony_ci	MUX_PG(uac,    OWR,       RSVD2,     RSVD3,     RSVD4,         0x18, 20, 0x80, 4,  0xac, 4),
214962306a36Sopenharmony_ci	MUX_PG(uad,    IRDA,      SPDIF,     UARTA,     SPI4,          0x18, 21, 0x80, 6,  0xac, 6),
215062306a36Sopenharmony_ci	MUX_PG(uca,    UARTC,     RSVD2,     GMI,       RSVD4,         0x18, 22, 0x84, 16, 0xac, 8),
215162306a36Sopenharmony_ci	MUX_PG(ucb,    UARTC,     PWM,       GMI,       RSVD4,         0x18, 23, 0x84, 18, 0xac, 10),
215262306a36Sopenharmony_ci	MUX_PG(uda,    SPI1,      RSVD2,     UARTD,     ULPI,          0x20, 13, 0x80, 8,  0xb0, 16),
215362306a36Sopenharmony_ci	/*      pg_name, pupd_r/b */
215462306a36Sopenharmony_ci	PULL_PG(ck32,    0xb0, 14),
215562306a36Sopenharmony_ci	PULL_PG(ddrc,    0xac, 26),
215662306a36Sopenharmony_ci	PULL_PG(pmca,    0xb0, 4),
215762306a36Sopenharmony_ci	PULL_PG(pmcb,    0xb0, 6),
215862306a36Sopenharmony_ci	PULL_PG(pmcc,    0xb0, 8),
215962306a36Sopenharmony_ci	PULL_PG(pmcd,    0xb0, 10),
216062306a36Sopenharmony_ci	PULL_PG(pmce,    0xb0, 12),
216162306a36Sopenharmony_ci	PULL_PG(xm2c,    0xa8, 30),
216262306a36Sopenharmony_ci	PULL_PG(xm2d,    0xa8, 28),
216362306a36Sopenharmony_ci	PULL_PG(ls,      0xac, 20),
216462306a36Sopenharmony_ci	PULL_PG(lc,      0xac, 22),
216562306a36Sopenharmony_ci	PULL_PG(ld17_0,  0xac, 12),
216662306a36Sopenharmony_ci	PULL_PG(ld19_18, 0xac, 14),
216762306a36Sopenharmony_ci	PULL_PG(ld21_20, 0xac, 16),
216862306a36Sopenharmony_ci	PULL_PG(ld23_22, 0xac, 18),
216962306a36Sopenharmony_ci	/*     pg_name,    r */
217062306a36Sopenharmony_ci	DRV_PG(ao1,        0x868),
217162306a36Sopenharmony_ci	DRV_PG(ao2,        0x86c),
217262306a36Sopenharmony_ci	DRV_PG(at1,        0x870),
217362306a36Sopenharmony_ci	DRV_PG(at2,        0x874),
217462306a36Sopenharmony_ci	DRV_PG(cdev1,      0x878),
217562306a36Sopenharmony_ci	DRV_PG(cdev2,      0x87c),
217662306a36Sopenharmony_ci	DRV_PG(csus,       0x880),
217762306a36Sopenharmony_ci	DRV_PG(dap1,       0x884),
217862306a36Sopenharmony_ci	DRV_PG(dap2,       0x888),
217962306a36Sopenharmony_ci	DRV_PG(dap3,       0x88c),
218062306a36Sopenharmony_ci	DRV_PG(dap4,       0x890),
218162306a36Sopenharmony_ci	DRV_PG(dbg,        0x894),
218262306a36Sopenharmony_ci	DRV_PG(lcd1,       0x898),
218362306a36Sopenharmony_ci	DRV_PG(lcd2,       0x89c),
218462306a36Sopenharmony_ci	DRV_PG(sdmmc2,     0x8a0),
218562306a36Sopenharmony_ci	DRV_PG(sdmmc3,     0x8a4),
218662306a36Sopenharmony_ci	DRV_PG(spi,        0x8a8),
218762306a36Sopenharmony_ci	DRV_PG(uaa,        0x8ac),
218862306a36Sopenharmony_ci	DRV_PG(uab,        0x8b0),
218962306a36Sopenharmony_ci	DRV_PG(uart2,      0x8b4),
219062306a36Sopenharmony_ci	DRV_PG(uart3,      0x8b8),
219162306a36Sopenharmony_ci	DRV_PG(vi1,        0x8bc),
219262306a36Sopenharmony_ci	DRV_PG(vi2,        0x8c0),
219362306a36Sopenharmony_ci	/*         pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, drvup_b, slwr_b, slwr_w, slwf_b, slwf_w */
219462306a36Sopenharmony_ci	DRV_PG_EXT(xm2a,   0x8c4, -1, -1,  4, 14, 19, 24, 4, 28, 4),
219562306a36Sopenharmony_ci	DRV_PG_EXT(xm2c,   0x8c8, -1,  3, -1, 14, 19, 24, 4, 28, 4),
219662306a36Sopenharmony_ci	DRV_PG_EXT(xm2d,   0x8cc, -1,  3, -1, 14, 19, 24, 4, 28, 4),
219762306a36Sopenharmony_ci	DRV_PG_EXT(xm2clk, 0x8d0, -1, -1, -1, 14, 19, 24, 4, 28, 4),
219862306a36Sopenharmony_ci	/*     pg_name,    r */
219962306a36Sopenharmony_ci	DRV_PG(sdio1,      0x8e0),
220062306a36Sopenharmony_ci	DRV_PG(crt,        0x8ec),
220162306a36Sopenharmony_ci	DRV_PG(ddc,        0x8f0),
220262306a36Sopenharmony_ci	DRV_PG(gma,        0x8f4),
220362306a36Sopenharmony_ci	DRV_PG(gmb,        0x8f8),
220462306a36Sopenharmony_ci	DRV_PG(gmc,        0x8fc),
220562306a36Sopenharmony_ci	DRV_PG(gmd,        0x900),
220662306a36Sopenharmony_ci	DRV_PG(gme,        0x904),
220762306a36Sopenharmony_ci	DRV_PG(owr,        0x908),
220862306a36Sopenharmony_ci	DRV_PG(uda,        0x90c),
220962306a36Sopenharmony_ci};
221062306a36Sopenharmony_ci
221162306a36Sopenharmony_cistatic const struct tegra_pinctrl_soc_data tegra20_pinctrl = {
221262306a36Sopenharmony_ci	.ngpios = NUM_GPIOS,
221362306a36Sopenharmony_ci	.gpio_compatible = "nvidia,tegra20-gpio",
221462306a36Sopenharmony_ci	.pins = tegra20_pins,
221562306a36Sopenharmony_ci	.npins = ARRAY_SIZE(tegra20_pins),
221662306a36Sopenharmony_ci	.functions = tegra20_functions,
221762306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(tegra20_functions),
221862306a36Sopenharmony_ci	.groups = tegra20_groups,
221962306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(tegra20_groups),
222062306a36Sopenharmony_ci	.hsm_in_mux = false,
222162306a36Sopenharmony_ci	.schmitt_in_mux = false,
222262306a36Sopenharmony_ci	.drvtype_in_mux = false,
222362306a36Sopenharmony_ci};
222462306a36Sopenharmony_ci
222562306a36Sopenharmony_cistatic const char *cdev1_parents[] = {
222662306a36Sopenharmony_ci	"dev1_osc_div", "pll_a_out0", "pll_m_out1", "audio",
222762306a36Sopenharmony_ci};
222862306a36Sopenharmony_ci
222962306a36Sopenharmony_cistatic const char *cdev2_parents[] = {
223062306a36Sopenharmony_ci	"dev2_osc_div", "hclk", "pclk", "pll_p_out4",
223162306a36Sopenharmony_ci};
223262306a36Sopenharmony_ci
223362306a36Sopenharmony_cistatic void tegra20_pinctrl_register_clock_muxes(struct platform_device *pdev)
223462306a36Sopenharmony_ci{
223562306a36Sopenharmony_ci	struct tegra_pmx *pmx = platform_get_drvdata(pdev);
223662306a36Sopenharmony_ci
223762306a36Sopenharmony_ci	clk_register_mux(NULL, "cdev1_mux", cdev1_parents, 4, 0,
223862306a36Sopenharmony_ci			 pmx->regs[1] + 0x8, 2, 2, CLK_MUX_READ_ONLY, NULL);
223962306a36Sopenharmony_ci
224062306a36Sopenharmony_ci	clk_register_mux(NULL, "cdev2_mux", cdev2_parents, 4, 0,
224162306a36Sopenharmony_ci			 pmx->regs[1] + 0x8, 4, 2, CLK_MUX_READ_ONLY, NULL);
224262306a36Sopenharmony_ci}
224362306a36Sopenharmony_ci
224462306a36Sopenharmony_cistatic int tegra20_pinctrl_probe(struct platform_device *pdev)
224562306a36Sopenharmony_ci{
224662306a36Sopenharmony_ci	int err;
224762306a36Sopenharmony_ci
224862306a36Sopenharmony_ci	err = tegra_pinctrl_probe(pdev, &tegra20_pinctrl);
224962306a36Sopenharmony_ci	if (err)
225062306a36Sopenharmony_ci		return err;
225162306a36Sopenharmony_ci
225262306a36Sopenharmony_ci	tegra20_pinctrl_register_clock_muxes(pdev);
225362306a36Sopenharmony_ci
225462306a36Sopenharmony_ci	return 0;
225562306a36Sopenharmony_ci}
225662306a36Sopenharmony_ci
225762306a36Sopenharmony_cistatic const struct of_device_id tegra20_pinctrl_of_match[] = {
225862306a36Sopenharmony_ci	{ .compatible = "nvidia,tegra20-pinmux", },
225962306a36Sopenharmony_ci	{ },
226062306a36Sopenharmony_ci};
226162306a36Sopenharmony_ci
226262306a36Sopenharmony_cistatic struct platform_driver tegra20_pinctrl_driver = {
226362306a36Sopenharmony_ci	.driver = {
226462306a36Sopenharmony_ci		.name = "tegra20-pinctrl",
226562306a36Sopenharmony_ci		.of_match_table = tegra20_pinctrl_of_match,
226662306a36Sopenharmony_ci	},
226762306a36Sopenharmony_ci	.probe = tegra20_pinctrl_probe,
226862306a36Sopenharmony_ci};
226962306a36Sopenharmony_ci
227062306a36Sopenharmony_cistatic int __init tegra20_pinctrl_init(void)
227162306a36Sopenharmony_ci{
227262306a36Sopenharmony_ci	return platform_driver_register(&tegra20_pinctrl_driver);
227362306a36Sopenharmony_ci}
227462306a36Sopenharmony_ciarch_initcall(tegra20_pinctrl_init);
2275