162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Pinctrl data for the NVIDIA Tegra124 pinmux 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Author: Ashwini Ghuge <aghuge@nvidia.com> 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. 862306a36Sopenharmony_ci */ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include <linux/init.h> 1162306a36Sopenharmony_ci#include <linux/of.h> 1262306a36Sopenharmony_ci#include <linux/platform_device.h> 1362306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 1462306a36Sopenharmony_ci#include <linux/pinctrl/pinmux.h> 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci#include "pinctrl-tegra.h" 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci/* 1962306a36Sopenharmony_ci * Most pins affected by the pinmux can also be GPIOs. Define these first. 2062306a36Sopenharmony_ci * These must match how the GPIO driver names/numbers its pins. 2162306a36Sopenharmony_ci */ 2262306a36Sopenharmony_ci#define _GPIO(offset) (offset) 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#define TEGRA_PIN_CLK_32K_OUT_PA0 _GPIO(0) 2562306a36Sopenharmony_ci#define TEGRA_PIN_UART3_CTS_N_PA1 _GPIO(1) 2662306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_FS_PA2 _GPIO(2) 2762306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_SCLK_PA3 _GPIO(3) 2862306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_DIN_PA4 _GPIO(4) 2962306a36Sopenharmony_ci#define TEGRA_PIN_DAP2_DOUT_PA5 _GPIO(5) 3062306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_CLK_PA6 _GPIO(6) 3162306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_CMD_PA7 _GPIO(7) 3262306a36Sopenharmony_ci#define TEGRA_PIN_PB0 _GPIO(8) 3362306a36Sopenharmony_ci#define TEGRA_PIN_PB1 _GPIO(9) 3462306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_DAT3_PB4 _GPIO(12) 3562306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_DAT2_PB5 _GPIO(13) 3662306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_DAT1_PB6 _GPIO(14) 3762306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_DAT0_PB7 _GPIO(15) 3862306a36Sopenharmony_ci#define TEGRA_PIN_UART3_RTS_N_PC0 _GPIO(16) 3962306a36Sopenharmony_ci#define TEGRA_PIN_UART2_TXD_PC2 _GPIO(18) 4062306a36Sopenharmony_ci#define TEGRA_PIN_UART2_RXD_PC3 _GPIO(19) 4162306a36Sopenharmony_ci#define TEGRA_PIN_GEN1_I2C_SCL_PC4 _GPIO(20) 4262306a36Sopenharmony_ci#define TEGRA_PIN_GEN1_I2C_SDA_PC5 _GPIO(21) 4362306a36Sopenharmony_ci#define TEGRA_PIN_PC7 _GPIO(23) 4462306a36Sopenharmony_ci#define TEGRA_PIN_PG0 _GPIO(48) 4562306a36Sopenharmony_ci#define TEGRA_PIN_PG1 _GPIO(49) 4662306a36Sopenharmony_ci#define TEGRA_PIN_PG2 _GPIO(50) 4762306a36Sopenharmony_ci#define TEGRA_PIN_PG3 _GPIO(51) 4862306a36Sopenharmony_ci#define TEGRA_PIN_PG4 _GPIO(52) 4962306a36Sopenharmony_ci#define TEGRA_PIN_PG5 _GPIO(53) 5062306a36Sopenharmony_ci#define TEGRA_PIN_PG6 _GPIO(54) 5162306a36Sopenharmony_ci#define TEGRA_PIN_PG7 _GPIO(55) 5262306a36Sopenharmony_ci#define TEGRA_PIN_PH0 _GPIO(56) 5362306a36Sopenharmony_ci#define TEGRA_PIN_PH1 _GPIO(57) 5462306a36Sopenharmony_ci#define TEGRA_PIN_PH2 _GPIO(58) 5562306a36Sopenharmony_ci#define TEGRA_PIN_PH3 _GPIO(59) 5662306a36Sopenharmony_ci#define TEGRA_PIN_PH4 _GPIO(60) 5762306a36Sopenharmony_ci#define TEGRA_PIN_PH5 _GPIO(61) 5862306a36Sopenharmony_ci#define TEGRA_PIN_PH6 _GPIO(62) 5962306a36Sopenharmony_ci#define TEGRA_PIN_PH7 _GPIO(63) 6062306a36Sopenharmony_ci#define TEGRA_PIN_PI0 _GPIO(64) 6162306a36Sopenharmony_ci#define TEGRA_PIN_PI1 _GPIO(65) 6262306a36Sopenharmony_ci#define TEGRA_PIN_PI2 _GPIO(66) 6362306a36Sopenharmony_ci#define TEGRA_PIN_PI3 _GPIO(67) 6462306a36Sopenharmony_ci#define TEGRA_PIN_PI4 _GPIO(68) 6562306a36Sopenharmony_ci#define TEGRA_PIN_PI5 _GPIO(69) 6662306a36Sopenharmony_ci#define TEGRA_PIN_PI6 _GPIO(70) 6762306a36Sopenharmony_ci#define TEGRA_PIN_PI7 _GPIO(71) 6862306a36Sopenharmony_ci#define TEGRA_PIN_PJ0 _GPIO(72) 6962306a36Sopenharmony_ci#define TEGRA_PIN_PJ2 _GPIO(74) 7062306a36Sopenharmony_ci#define TEGRA_PIN_UART2_CTS_N_PJ5 _GPIO(77) 7162306a36Sopenharmony_ci#define TEGRA_PIN_UART2_RTS_N_PJ6 _GPIO(78) 7262306a36Sopenharmony_ci#define TEGRA_PIN_PJ7 _GPIO(79) 7362306a36Sopenharmony_ci#define TEGRA_PIN_PK0 _GPIO(80) 7462306a36Sopenharmony_ci#define TEGRA_PIN_PK1 _GPIO(81) 7562306a36Sopenharmony_ci#define TEGRA_PIN_PK2 _GPIO(82) 7662306a36Sopenharmony_ci#define TEGRA_PIN_PK3 _GPIO(83) 7762306a36Sopenharmony_ci#define TEGRA_PIN_PK4 _GPIO(84) 7862306a36Sopenharmony_ci#define TEGRA_PIN_SPDIF_OUT_PK5 _GPIO(85) 7962306a36Sopenharmony_ci#define TEGRA_PIN_SPDIF_IN_PK6 _GPIO(86) 8062306a36Sopenharmony_ci#define TEGRA_PIN_PK7 _GPIO(87) 8162306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_FS_PN0 _GPIO(104) 8262306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_DIN_PN1 _GPIO(105) 8362306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_DOUT_PN2 _GPIO(106) 8462306a36Sopenharmony_ci#define TEGRA_PIN_DAP1_SCLK_PN3 _GPIO(107) 8562306a36Sopenharmony_ci#define TEGRA_PIN_USB_VBUS_EN0_PN4 _GPIO(108) 8662306a36Sopenharmony_ci#define TEGRA_PIN_USB_VBUS_EN1_PN5 _GPIO(109) 8762306a36Sopenharmony_ci#define TEGRA_PIN_HDMI_INT_PN7 _GPIO(111) 8862306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA7_PO0 _GPIO(112) 8962306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA0_PO1 _GPIO(113) 9062306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA1_PO2 _GPIO(114) 9162306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA2_PO3 _GPIO(115) 9262306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA3_PO4 _GPIO(116) 9362306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA4_PO5 _GPIO(117) 9462306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA5_PO6 _GPIO(118) 9562306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DATA6_PO7 _GPIO(119) 9662306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_FS_PP0 _GPIO(120) 9762306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_DIN_PP1 _GPIO(121) 9862306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_DOUT_PP2 _GPIO(122) 9962306a36Sopenharmony_ci#define TEGRA_PIN_DAP3_SCLK_PP3 _GPIO(123) 10062306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_FS_PP4 _GPIO(124) 10162306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_DIN_PP5 _GPIO(125) 10262306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_DOUT_PP6 _GPIO(126) 10362306a36Sopenharmony_ci#define TEGRA_PIN_DAP4_SCLK_PP7 _GPIO(127) 10462306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL0_PQ0 _GPIO(128) 10562306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL1_PQ1 _GPIO(129) 10662306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL2_PQ2 _GPIO(130) 10762306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL3_PQ3 _GPIO(131) 10862306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL4_PQ4 _GPIO(132) 10962306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL5_PQ5 _GPIO(133) 11062306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL6_PQ6 _GPIO(134) 11162306a36Sopenharmony_ci#define TEGRA_PIN_KB_COL7_PQ7 _GPIO(135) 11262306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW0_PR0 _GPIO(136) 11362306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW1_PR1 _GPIO(137) 11462306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW2_PR2 _GPIO(138) 11562306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW3_PR3 _GPIO(139) 11662306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW4_PR4 _GPIO(140) 11762306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW5_PR5 _GPIO(141) 11862306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW6_PR6 _GPIO(142) 11962306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW7_PR7 _GPIO(143) 12062306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW8_PS0 _GPIO(144) 12162306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW9_PS1 _GPIO(145) 12262306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW10_PS2 _GPIO(146) 12362306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW11_PS3 _GPIO(147) 12462306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW12_PS4 _GPIO(148) 12562306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW13_PS5 _GPIO(149) 12662306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW14_PS6 _GPIO(150) 12762306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW15_PS7 _GPIO(151) 12862306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW16_PT0 _GPIO(152) 12962306a36Sopenharmony_ci#define TEGRA_PIN_KB_ROW17_PT1 _GPIO(153) 13062306a36Sopenharmony_ci#define TEGRA_PIN_GEN2_I2C_SCL_PT5 _GPIO(157) 13162306a36Sopenharmony_ci#define TEGRA_PIN_GEN2_I2C_SDA_PT6 _GPIO(158) 13262306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_CMD_PT7 _GPIO(159) 13362306a36Sopenharmony_ci#define TEGRA_PIN_PU0 _GPIO(160) 13462306a36Sopenharmony_ci#define TEGRA_PIN_PU1 _GPIO(161) 13562306a36Sopenharmony_ci#define TEGRA_PIN_PU2 _GPIO(162) 13662306a36Sopenharmony_ci#define TEGRA_PIN_PU3 _GPIO(163) 13762306a36Sopenharmony_ci#define TEGRA_PIN_PU4 _GPIO(164) 13862306a36Sopenharmony_ci#define TEGRA_PIN_PU5 _GPIO(165) 13962306a36Sopenharmony_ci#define TEGRA_PIN_PU6 _GPIO(166) 14062306a36Sopenharmony_ci#define TEGRA_PIN_PV0 _GPIO(168) 14162306a36Sopenharmony_ci#define TEGRA_PIN_PV1 _GPIO(169) 14262306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_CD_N_PV2 _GPIO(170) 14362306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC1_WP_N_PV3 _GPIO(171) 14462306a36Sopenharmony_ci#define TEGRA_PIN_DDC_SCL_PV4 _GPIO(172) 14562306a36Sopenharmony_ci#define TEGRA_PIN_DDC_SDA_PV5 _GPIO(173) 14662306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_W2_AUD_PW2 _GPIO(178) 14762306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_W3_AUD_PW3 _GPIO(179) 14862306a36Sopenharmony_ci#define TEGRA_PIN_DAP_MCLK1_PW4 _GPIO(180) 14962306a36Sopenharmony_ci#define TEGRA_PIN_CLK2_OUT_PW5 _GPIO(181) 15062306a36Sopenharmony_ci#define TEGRA_PIN_UART3_TXD_PW6 _GPIO(182) 15162306a36Sopenharmony_ci#define TEGRA_PIN_UART3_RXD_PW7 _GPIO(183) 15262306a36Sopenharmony_ci#define TEGRA_PIN_DVFS_PWM_PX0 _GPIO(184) 15362306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_X1_AUD_PX1 _GPIO(185) 15462306a36Sopenharmony_ci#define TEGRA_PIN_DVFS_CLK_PX2 _GPIO(186) 15562306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_X3_AUD_PX3 _GPIO(187) 15662306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_X4_AUD_PX4 _GPIO(188) 15762306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_X5_AUD_PX5 _GPIO(189) 15862306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_X6_AUD_PX6 _GPIO(190) 15962306a36Sopenharmony_ci#define TEGRA_PIN_GPIO_X7_AUD_PX7 _GPIO(191) 16062306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_CLK_PY0 _GPIO(192) 16162306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_DIR_PY1 _GPIO(193) 16262306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_NXT_PY2 _GPIO(194) 16362306a36Sopenharmony_ci#define TEGRA_PIN_ULPI_STP_PY3 _GPIO(195) 16462306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC1_DAT3_PY4 _GPIO(196) 16562306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC1_DAT2_PY5 _GPIO(197) 16662306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC1_DAT1_PY6 _GPIO(198) 16762306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC1_DAT0_PY7 _GPIO(199) 16862306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC1_CLK_PZ0 _GPIO(200) 16962306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC1_CMD_PZ1 _GPIO(201) 17062306a36Sopenharmony_ci#define TEGRA_PIN_PWR_I2C_SCL_PZ6 _GPIO(206) 17162306a36Sopenharmony_ci#define TEGRA_PIN_PWR_I2C_SDA_PZ7 _GPIO(207) 17262306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT0_PAA0 _GPIO(208) 17362306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT1_PAA1 _GPIO(209) 17462306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT2_PAA2 _GPIO(210) 17562306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT3_PAA3 _GPIO(211) 17662306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT4_PAA4 _GPIO(212) 17762306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT5_PAA5 _GPIO(213) 17862306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT6_PAA6 _GPIO(214) 17962306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_DAT7_PAA7 _GPIO(215) 18062306a36Sopenharmony_ci#define TEGRA_PIN_PBB0 _GPIO(216) 18162306a36Sopenharmony_ci#define TEGRA_PIN_CAM_I2C_SCL_PBB1 _GPIO(217) 18262306a36Sopenharmony_ci#define TEGRA_PIN_CAM_I2C_SDA_PBB2 _GPIO(218) 18362306a36Sopenharmony_ci#define TEGRA_PIN_PBB3 _GPIO(219) 18462306a36Sopenharmony_ci#define TEGRA_PIN_PBB4 _GPIO(220) 18562306a36Sopenharmony_ci#define TEGRA_PIN_PBB5 _GPIO(221) 18662306a36Sopenharmony_ci#define TEGRA_PIN_PBB6 _GPIO(222) 18762306a36Sopenharmony_ci#define TEGRA_PIN_PBB7 _GPIO(223) 18862306a36Sopenharmony_ci#define TEGRA_PIN_CAM_MCLK_PCC0 _GPIO(224) 18962306a36Sopenharmony_ci#define TEGRA_PIN_PCC1 _GPIO(225) 19062306a36Sopenharmony_ci#define TEGRA_PIN_PCC2 _GPIO(226) 19162306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC4_CLK_PCC4 _GPIO(228) 19262306a36Sopenharmony_ci#define TEGRA_PIN_CLK2_REQ_PCC5 _GPIO(229) 19362306a36Sopenharmony_ci#define TEGRA_PIN_PEX_L0_RST_N_PDD1 _GPIO(233) 19462306a36Sopenharmony_ci#define TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2 _GPIO(234) 19562306a36Sopenharmony_ci#define TEGRA_PIN_PEX_WAKE_N_PDD3 _GPIO(235) 19662306a36Sopenharmony_ci#define TEGRA_PIN_PEX_L1_RST_N_PDD5 _GPIO(237) 19762306a36Sopenharmony_ci#define TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6 _GPIO(238) 19862306a36Sopenharmony_ci#define TEGRA_PIN_CLK3_OUT_PEE0 _GPIO(240) 19962306a36Sopenharmony_ci#define TEGRA_PIN_CLK3_REQ_PEE1 _GPIO(241) 20062306a36Sopenharmony_ci#define TEGRA_PIN_DAP_MCLK1_REQ_PEE2 _GPIO(242) 20162306a36Sopenharmony_ci#define TEGRA_PIN_HDMI_CEC_PEE3 _GPIO(243) 20262306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4 _GPIO(244) 20362306a36Sopenharmony_ci#define TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5 _GPIO(245) 20462306a36Sopenharmony_ci#define TEGRA_PIN_DP_HPD_PFF0 _GPIO(248) 20562306a36Sopenharmony_ci#define TEGRA_PIN_USB_VBUS_EN2_PFF1 _GPIO(249) 20662306a36Sopenharmony_ci#define TEGRA_PIN_PFF2 _GPIO(250) 20762306a36Sopenharmony_ci 20862306a36Sopenharmony_ci/* All non-GPIO pins follow */ 20962306a36Sopenharmony_ci#define NUM_GPIOS (TEGRA_PIN_PFF2 + 1) 21062306a36Sopenharmony_ci#define _PIN(offset) (NUM_GPIOS + (offset)) 21162306a36Sopenharmony_ci 21262306a36Sopenharmony_ci/* Non-GPIO pins */ 21362306a36Sopenharmony_ci#define TEGRA_PIN_CORE_PWR_REQ _PIN(0) 21462306a36Sopenharmony_ci#define TEGRA_PIN_CPU_PWR_REQ _PIN(1) 21562306a36Sopenharmony_ci#define TEGRA_PIN_PWR_INT_N _PIN(2) 21662306a36Sopenharmony_ci#define TEGRA_PIN_GMI_CLK_LB _PIN(3) 21762306a36Sopenharmony_ci#define TEGRA_PIN_RESET_OUT_N _PIN(4) 21862306a36Sopenharmony_ci#define TEGRA_PIN_OWR _PIN(5) 21962306a36Sopenharmony_ci#define TEGRA_PIN_CLK_32K_IN _PIN(6) 22062306a36Sopenharmony_ci#define TEGRA_PIN_JTAG_RTCK _PIN(7) 22162306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_CLK_P _PIN(8) 22262306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_CLK_N _PIN(9) 22362306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D0_P _PIN(10) 22462306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D0_N _PIN(11) 22562306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D1_P _PIN(12) 22662306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D1_N _PIN(13) 22762306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D2_P _PIN(14) 22862306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D2_N _PIN(15) 22962306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D3_P _PIN(16) 23062306a36Sopenharmony_ci#define TEGRA_PIN_DSI_B_D3_N _PIN(17) 23162306a36Sopenharmony_ci 23262306a36Sopenharmony_cistatic const struct pinctrl_pin_desc tegra124_pins[] = { 23362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CLK_32K_OUT_PA0, "CLK_32K_OUT PA0"), 23462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART3_CTS_N_PA1, "UART3_CTS_N PA1"), 23562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP2_FS_PA2, "DAP2_FS PA2"), 23662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP2_SCLK_PA3, "DAP2_SCLK PA3"), 23762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP2_DIN_PA4, "DAP2_DIN PA4"), 23862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP2_DOUT_PA5, "DAP2_DOUT PA5"), 23962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_PA6, "SDMMC3_CLK PA6"), 24062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_CMD_PA7, "SDMMC3_CMD PA7"), 24162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PB0, "PB0"), 24262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PB1, "PB1"), 24362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT3_PB4, "SDMMC3_DAT3 PB4"), 24462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT2_PB5, "SDMMC3_DAT2 PB5"), 24562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT1_PB6, "SDMMC3_DAT1 PB6"), 24662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_DAT0_PB7, "SDMMC3_DAT0 PB7"), 24762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART3_RTS_N_PC0, "UART3_RTS_N PC0"), 24862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART2_TXD_PC2, "UART2_TXD PC2"), 24962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART2_RXD_PC3, "UART2_RXD PC3"), 25062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SCL_PC4, "GEN1_I2C_SCL PC4"), 25162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GEN1_I2C_SDA_PC5, "GEN1_I2C_SDA PC5"), 25262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PC7, "PC7"), 25362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG0, "PG0"), 25462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG1, "PG1"), 25562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG2, "PG2"), 25662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG3, "PG3"), 25762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG4, "PG4"), 25862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG5, "PG5"), 25962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG6, "PG6"), 26062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PG7, "PG7"), 26162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH0, "PH0"), 26262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH1, "PH1"), 26362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH2, "PH2"), 26462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH3, "PH3"), 26562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH4, "PH4"), 26662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH5, "PH5"), 26762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH6, "PH6"), 26862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PH7, "PH7"), 26962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI0, "PI0"), 27062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI1, "PI1"), 27162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI2, "PI2"), 27262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI3, "PI3"), 27362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI4, "PI4"), 27462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI5, "PI5"), 27562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI6, "PI6"), 27662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PI7, "PI7"), 27762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PJ0, "PJ0"), 27862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PJ2, "PJ2"), 27962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART2_CTS_N_PJ5, "UART2_CTS_N PJ5"), 28062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART2_RTS_N_PJ6, "UART2_RTS_N PJ6"), 28162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PJ7, "PJ7"), 28262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PK0, "PK0"), 28362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PK1, "PK1"), 28462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PK2, "PK2"), 28562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PK3, "PK3"), 28662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PK4, "PK4"), 28762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SPDIF_OUT_PK5, "SPDIF_OUT PK5"), 28862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SPDIF_IN_PK6, "SPDIF_IN PK6"), 28962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PK7, "PK7"), 29062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP1_FS_PN0, "DAP1_FS PN0"), 29162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP1_DIN_PN1, "DAP1_DIN PN1"), 29262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP1_DOUT_PN2, "DAP1_DOUT PN2"), 29362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP1_SCLK_PN3, "DAP1_SCLK PN3"), 29462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN0_PN4, "USB_VBUS_EN0 PN4"), 29562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN1_PN5, "USB_VBUS_EN1 PN5"), 29662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_HDMI_INT_PN7, "HDMI_INT PN7"), 29762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA7_PO0, "ULPI_DATA7 PO0"), 29862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA0_PO1, "ULPI_DATA0 PO1"), 29962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA1_PO2, "ULPI_DATA1 PO2"), 30062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA2_PO3, "ULPI_DATA2 PO3"), 30162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA3_PO4, "ULPI_DATA3 PO4"), 30262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA4_PO5, "ULPI_DATA4 PO5"), 30362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA5_PO6, "ULPI_DATA5 PO6"), 30462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DATA6_PO7, "ULPI_DATA6 PO7"), 30562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP3_FS_PP0, "DAP3_FS PP0"), 30662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP3_DIN_PP1, "DAP3_DIN PP1"), 30762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP3_DOUT_PP2, "DAP3_DOUT PP2"), 30862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP3_SCLK_PP3, "DAP3_SCLK PP3"), 30962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP4_FS_PP4, "DAP4_FS PP4"), 31062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP4_DIN_PP5, "DAP4_DIN PP5"), 31162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP4_DOUT_PP6, "DAP4_DOUT PP6"), 31262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP4_SCLK_PP7, "DAP4_SCLK PP7"), 31362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL0_PQ0, "KB_COL0 PQ0"), 31462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL1_PQ1, "KB_COL1 PQ1"), 31562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL2_PQ2, "KB_COL2 PQ2"), 31662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL3_PQ3, "KB_COL3 PQ3"), 31762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL4_PQ4, "KB_COL4 PQ4"), 31862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL5_PQ5, "KB_COL5 PQ5"), 31962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL6_PQ6, "KB_COL6 PQ6"), 32062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_COL7_PQ7, "KB_COL7 PQ7"), 32162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW0_PR0, "KB_ROW0 PR0"), 32262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW1_PR1, "KB_ROW1 PR1"), 32362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW2_PR2, "KB_ROW2 PR2"), 32462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW3_PR3, "KB_ROW3 PR3"), 32562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW4_PR4, "KB_ROW4 PR4"), 32662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW5_PR5, "KB_ROW5 PR5"), 32762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW6_PR6, "KB_ROW6 PR6"), 32862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW7_PR7, "KB_ROW7 PR7"), 32962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW8_PS0, "KB_ROW8 PS0"), 33062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW9_PS1, "KB_ROW9 PS1"), 33162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW10_PS2, "KB_ROW10 PS2"), 33262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW11_PS3, "KB_ROW11 PS3"), 33362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW12_PS4, "KB_ROW12 PS4"), 33462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW13_PS5, "KB_ROW13 PS5"), 33562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW14_PS6, "KB_ROW14 PS6"), 33662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW15_PS7, "KB_ROW15 PS7"), 33762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW16_PT0, "KB_ROW16 PT0"), 33862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_KB_ROW17_PT1, "KB_ROW17 PT1"), 33962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SCL_PT5, "GEN2_I2C_SCL PT5"), 34062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GEN2_I2C_SDA_PT6, "GEN2_I2C_SDA PT6"), 34162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_CMD_PT7, "SDMMC4_CMD PT7"), 34262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PU0, "PU0"), 34362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PU1, "PU1"), 34462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PU2, "PU2"), 34562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PU3, "PU3"), 34662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PU4, "PU4"), 34762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PU5, "PU5"), 34862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PU6, "PU6"), 34962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PV0, "PV0"), 35062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PV1, "PV1"), 35162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_CD_N_PV2, "SDMMC3_CD_N PV2"), 35262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC1_WP_N_PV3, "SDMMC1_WP_N PV3"), 35362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DDC_SCL_PV4, "DDC_SCL PV4"), 35462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DDC_SDA_PV5, "DDC_SDA PV5"), 35562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_W2_AUD_PW2, "GPIO_W2_AUD PW2"), 35662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_W3_AUD_PW3, "GPIO_W3_AUD PW3"), 35762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP_MCLK1_PW4, "DAP_MCLK1 PW4"), 35862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CLK2_OUT_PW5, "CLK2_OUT PW5"), 35962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART3_TXD_PW6, "UART3_TXD PW6"), 36062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_UART3_RXD_PW7, "UART3_RXD PW7"), 36162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DVFS_PWM_PX0, "DVFS_PWM PX0"), 36262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_X1_AUD_PX1, "GPIO_X1_AUD PX1"), 36362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DVFS_CLK_PX2, "DVFS_CLK PX2"), 36462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_X3_AUD_PX3, "GPIO_X3_AUD PX3"), 36562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_X4_AUD_PX4, "GPIO_X4_AUD PX4"), 36662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_X5_AUD_PX5, "GPIO_X5_AUD PX5"), 36762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_X6_AUD_PX6, "GPIO_X6_AUD PX6"), 36862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GPIO_X7_AUD_PX7, "GPIO_X7_AUD PX7"), 36962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_CLK_PY0, "ULPI_CLK PY0"), 37062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_DIR_PY1, "ULPI_DIR PY1"), 37162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_NXT_PY2, "ULPI_NXT PY2"), 37262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_ULPI_STP_PY3, "ULPI_STP PY3"), 37362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT3_PY4, "SDMMC1_DAT3 PY4"), 37462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT2_PY5, "SDMMC1_DAT2 PY5"), 37562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT1_PY6, "SDMMC1_DAT1 PY6"), 37662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC1_DAT0_PY7, "SDMMC1_DAT0 PY7"), 37762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC1_CLK_PZ0, "SDMMC1_CLK PZ0"), 37862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC1_CMD_PZ1, "SDMMC1_CMD PZ1"), 37962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SCL_PZ6, "PWR_I2C_SCL PZ6"), 38062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PWR_I2C_SDA_PZ7, "PWR_I2C_SDA PZ7"), 38162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT0_PAA0, "SDMMC4_DAT0 PAA0"), 38262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT1_PAA1, "SDMMC4_DAT1 PAA1"), 38362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT2_PAA2, "SDMMC4_DAT2 PAA2"), 38462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT3_PAA3, "SDMMC4_DAT3 PAA3"), 38562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT4_PAA4, "SDMMC4_DAT4 PAA4"), 38662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT5_PAA5, "SDMMC4_DAT5 PAA5"), 38762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT6_PAA6, "SDMMC4_DAT6 PAA6"), 38862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_DAT7_PAA7, "SDMMC4_DAT7 PAA7"), 38962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PBB0, "PBB0"), 39062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SCL_PBB1, "CAM_I2C_SCL PBB1"), 39162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CAM_I2C_SDA_PBB2, "CAM_I2C_SDA PBB2"), 39262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PBB3, "PBB3"), 39362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PBB4, "PBB4"), 39462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PBB5, "PBB5"), 39562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PBB6, "PBB6"), 39662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PBB7, "PBB7"), 39762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CAM_MCLK_PCC0, "CAM_MCLK PCC0"), 39862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PCC1, "PCC1"), 39962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PCC2, "PCC2"), 40062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC4_CLK_PCC4, "SDMMC4_CLK PCC4"), 40162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CLK2_REQ_PCC5, "CLK2_REQ PCC5"), 40262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PEX_L0_RST_N_PDD1, "PEX_L0_RST_N PDD1"), 40362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2, "PEX_L0_CLKREQ_N PDD2"), 40462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PEX_WAKE_N_PDD3, "PEX_WAKE_N PDD3"), 40562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PEX_L1_RST_N_PDD5, "PEX_L1_RST_N PDD5"), 40662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6, "PEX_L1_CLKREQ_N PDD6"), 40762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CLK3_OUT_PEE0, "CLK3_OUT PEE0"), 40862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CLK3_REQ_PEE1, "CLK3_REQ PEE1"), 40962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DAP_MCLK1_REQ_PEE2, "DAP_MCLK1_REQ PEE2"), 41062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_HDMI_CEC_PEE3, "HDMI_CEC PEE3"), 41162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4, "SDMMC3_CLK_LB_OUT PEE4"), 41262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5, "SDMMC3_CLK_LB_IN PEE5"), 41362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DP_HPD_PFF0, "DP_HPD PFF0"), 41462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_USB_VBUS_EN2_PFF1, "USB_VBUS_EN2 PFF1"), 41562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PFF2, "PFF2"), 41662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CORE_PWR_REQ, "CORE_PWR_REQ"), 41762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CPU_PWR_REQ, "CPU_PWR_REQ"), 41862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_PWR_INT_N, "PWR_INT_N"), 41962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_GMI_CLK_LB, "GMI_CLK_LB"), 42062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_RESET_OUT_N, "RESET_OUT_N"), 42162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_OWR, "OWR"), 42262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_CLK_32K_IN, "CLK_32K_IN"), 42362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_JTAG_RTCK, "JTAG_RTCK"), 42462306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_CLK_P, "DSI_B_CLK_P"), 42562306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_CLK_N, "DSI_B_CLK_N"), 42662306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D0_P, "DSI_B_D0_P"), 42762306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D0_N, "DSI_B_D0_N"), 42862306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D1_P, "DSI_B_D1_P"), 42962306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D1_N, "DSI_B_D1_N"), 43062306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D2_P, "DSI_B_D2_P"), 43162306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D2_N, "DSI_B_D2_N"), 43262306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D3_P, "DSI_B_D3_P"), 43362306a36Sopenharmony_ci PINCTRL_PIN(TEGRA_PIN_DSI_B_D3_N, "DSI_B_D3_N"), 43462306a36Sopenharmony_ci}; 43562306a36Sopenharmony_ci 43662306a36Sopenharmony_cistatic const unsigned clk_32k_out_pa0_pins[] = { 43762306a36Sopenharmony_ci TEGRA_PIN_CLK_32K_OUT_PA0, 43862306a36Sopenharmony_ci}; 43962306a36Sopenharmony_ci 44062306a36Sopenharmony_cistatic const unsigned uart3_cts_n_pa1_pins[] = { 44162306a36Sopenharmony_ci TEGRA_PIN_UART3_CTS_N_PA1, 44262306a36Sopenharmony_ci}; 44362306a36Sopenharmony_ci 44462306a36Sopenharmony_cistatic const unsigned dap2_fs_pa2_pins[] = { 44562306a36Sopenharmony_ci TEGRA_PIN_DAP2_FS_PA2, 44662306a36Sopenharmony_ci}; 44762306a36Sopenharmony_ci 44862306a36Sopenharmony_cistatic const unsigned dap2_sclk_pa3_pins[] = { 44962306a36Sopenharmony_ci TEGRA_PIN_DAP2_SCLK_PA3, 45062306a36Sopenharmony_ci}; 45162306a36Sopenharmony_ci 45262306a36Sopenharmony_cistatic const unsigned dap2_din_pa4_pins[] = { 45362306a36Sopenharmony_ci TEGRA_PIN_DAP2_DIN_PA4, 45462306a36Sopenharmony_ci}; 45562306a36Sopenharmony_ci 45662306a36Sopenharmony_cistatic const unsigned dap2_dout_pa5_pins[] = { 45762306a36Sopenharmony_ci TEGRA_PIN_DAP2_DOUT_PA5, 45862306a36Sopenharmony_ci}; 45962306a36Sopenharmony_ci 46062306a36Sopenharmony_cistatic const unsigned sdmmc3_clk_pa6_pins[] = { 46162306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CLK_PA6, 46262306a36Sopenharmony_ci}; 46362306a36Sopenharmony_ci 46462306a36Sopenharmony_cistatic const unsigned sdmmc3_cmd_pa7_pins[] = { 46562306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CMD_PA7, 46662306a36Sopenharmony_ci}; 46762306a36Sopenharmony_ci 46862306a36Sopenharmony_cistatic const unsigned pb0_pins[] = { 46962306a36Sopenharmony_ci TEGRA_PIN_PB0, 47062306a36Sopenharmony_ci}; 47162306a36Sopenharmony_ci 47262306a36Sopenharmony_cistatic const unsigned pb1_pins[] = { 47362306a36Sopenharmony_ci TEGRA_PIN_PB1, 47462306a36Sopenharmony_ci}; 47562306a36Sopenharmony_ci 47662306a36Sopenharmony_cistatic const unsigned sdmmc3_dat3_pb4_pins[] = { 47762306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT3_PB4, 47862306a36Sopenharmony_ci}; 47962306a36Sopenharmony_ci 48062306a36Sopenharmony_cistatic const unsigned sdmmc3_dat2_pb5_pins[] = { 48162306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT2_PB5, 48262306a36Sopenharmony_ci}; 48362306a36Sopenharmony_ci 48462306a36Sopenharmony_cistatic const unsigned sdmmc3_dat1_pb6_pins[] = { 48562306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT1_PB6, 48662306a36Sopenharmony_ci}; 48762306a36Sopenharmony_ci 48862306a36Sopenharmony_cistatic const unsigned sdmmc3_dat0_pb7_pins[] = { 48962306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT0_PB7, 49062306a36Sopenharmony_ci}; 49162306a36Sopenharmony_ci 49262306a36Sopenharmony_cistatic const unsigned uart3_rts_n_pc0_pins[] = { 49362306a36Sopenharmony_ci TEGRA_PIN_UART3_RTS_N_PC0, 49462306a36Sopenharmony_ci}; 49562306a36Sopenharmony_ci 49662306a36Sopenharmony_cistatic const unsigned uart2_txd_pc2_pins[] = { 49762306a36Sopenharmony_ci TEGRA_PIN_UART2_TXD_PC2, 49862306a36Sopenharmony_ci}; 49962306a36Sopenharmony_ci 50062306a36Sopenharmony_cistatic const unsigned uart2_rxd_pc3_pins[] = { 50162306a36Sopenharmony_ci TEGRA_PIN_UART2_RXD_PC3, 50262306a36Sopenharmony_ci}; 50362306a36Sopenharmony_ci 50462306a36Sopenharmony_cistatic const unsigned gen1_i2c_scl_pc4_pins[] = { 50562306a36Sopenharmony_ci TEGRA_PIN_GEN1_I2C_SCL_PC4, 50662306a36Sopenharmony_ci}; 50762306a36Sopenharmony_ci 50862306a36Sopenharmony_cistatic const unsigned gen1_i2c_sda_pc5_pins[] = { 50962306a36Sopenharmony_ci TEGRA_PIN_GEN1_I2C_SDA_PC5, 51062306a36Sopenharmony_ci}; 51162306a36Sopenharmony_ci 51262306a36Sopenharmony_cistatic const unsigned pc7_pins[] = { 51362306a36Sopenharmony_ci TEGRA_PIN_PC7, 51462306a36Sopenharmony_ci}; 51562306a36Sopenharmony_ci 51662306a36Sopenharmony_cistatic const unsigned pg0_pins[] = { 51762306a36Sopenharmony_ci TEGRA_PIN_PG0, 51862306a36Sopenharmony_ci}; 51962306a36Sopenharmony_ci 52062306a36Sopenharmony_cistatic const unsigned pg1_pins[] = { 52162306a36Sopenharmony_ci TEGRA_PIN_PG1, 52262306a36Sopenharmony_ci}; 52362306a36Sopenharmony_ci 52462306a36Sopenharmony_cistatic const unsigned pg2_pins[] = { 52562306a36Sopenharmony_ci TEGRA_PIN_PG2, 52662306a36Sopenharmony_ci}; 52762306a36Sopenharmony_ci 52862306a36Sopenharmony_cistatic const unsigned pg3_pins[] = { 52962306a36Sopenharmony_ci TEGRA_PIN_PG3, 53062306a36Sopenharmony_ci}; 53162306a36Sopenharmony_ci 53262306a36Sopenharmony_cistatic const unsigned pg4_pins[] = { 53362306a36Sopenharmony_ci TEGRA_PIN_PG4, 53462306a36Sopenharmony_ci}; 53562306a36Sopenharmony_ci 53662306a36Sopenharmony_cistatic const unsigned pg5_pins[] = { 53762306a36Sopenharmony_ci TEGRA_PIN_PG5, 53862306a36Sopenharmony_ci}; 53962306a36Sopenharmony_ci 54062306a36Sopenharmony_cistatic const unsigned pg6_pins[] = { 54162306a36Sopenharmony_ci TEGRA_PIN_PG6, 54262306a36Sopenharmony_ci}; 54362306a36Sopenharmony_ci 54462306a36Sopenharmony_cistatic const unsigned pg7_pins[] = { 54562306a36Sopenharmony_ci TEGRA_PIN_PG7, 54662306a36Sopenharmony_ci}; 54762306a36Sopenharmony_ci 54862306a36Sopenharmony_cistatic const unsigned ph0_pins[] = { 54962306a36Sopenharmony_ci TEGRA_PIN_PH0, 55062306a36Sopenharmony_ci}; 55162306a36Sopenharmony_ci 55262306a36Sopenharmony_cistatic const unsigned ph1_pins[] = { 55362306a36Sopenharmony_ci TEGRA_PIN_PH1, 55462306a36Sopenharmony_ci}; 55562306a36Sopenharmony_ci 55662306a36Sopenharmony_cistatic const unsigned ph2_pins[] = { 55762306a36Sopenharmony_ci TEGRA_PIN_PH2, 55862306a36Sopenharmony_ci}; 55962306a36Sopenharmony_ci 56062306a36Sopenharmony_cistatic const unsigned ph3_pins[] = { 56162306a36Sopenharmony_ci TEGRA_PIN_PH3, 56262306a36Sopenharmony_ci}; 56362306a36Sopenharmony_ci 56462306a36Sopenharmony_cistatic const unsigned ph4_pins[] = { 56562306a36Sopenharmony_ci TEGRA_PIN_PH4, 56662306a36Sopenharmony_ci}; 56762306a36Sopenharmony_ci 56862306a36Sopenharmony_cistatic const unsigned ph5_pins[] = { 56962306a36Sopenharmony_ci TEGRA_PIN_PH5, 57062306a36Sopenharmony_ci}; 57162306a36Sopenharmony_ci 57262306a36Sopenharmony_cistatic const unsigned ph6_pins[] = { 57362306a36Sopenharmony_ci TEGRA_PIN_PH6, 57462306a36Sopenharmony_ci}; 57562306a36Sopenharmony_ci 57662306a36Sopenharmony_cistatic const unsigned ph7_pins[] = { 57762306a36Sopenharmony_ci TEGRA_PIN_PH7, 57862306a36Sopenharmony_ci}; 57962306a36Sopenharmony_ci 58062306a36Sopenharmony_cistatic const unsigned pi0_pins[] = { 58162306a36Sopenharmony_ci TEGRA_PIN_PI0, 58262306a36Sopenharmony_ci}; 58362306a36Sopenharmony_ci 58462306a36Sopenharmony_cistatic const unsigned pi1_pins[] = { 58562306a36Sopenharmony_ci TEGRA_PIN_PI1, 58662306a36Sopenharmony_ci}; 58762306a36Sopenharmony_ci 58862306a36Sopenharmony_cistatic const unsigned pi2_pins[] = { 58962306a36Sopenharmony_ci TEGRA_PIN_PI2, 59062306a36Sopenharmony_ci}; 59162306a36Sopenharmony_ci 59262306a36Sopenharmony_cistatic const unsigned pi3_pins[] = { 59362306a36Sopenharmony_ci TEGRA_PIN_PI3, 59462306a36Sopenharmony_ci}; 59562306a36Sopenharmony_ci 59662306a36Sopenharmony_cistatic const unsigned pi4_pins[] = { 59762306a36Sopenharmony_ci TEGRA_PIN_PI4, 59862306a36Sopenharmony_ci}; 59962306a36Sopenharmony_ci 60062306a36Sopenharmony_cistatic const unsigned pi5_pins[] = { 60162306a36Sopenharmony_ci TEGRA_PIN_PI5, 60262306a36Sopenharmony_ci}; 60362306a36Sopenharmony_ci 60462306a36Sopenharmony_cistatic const unsigned pi6_pins[] = { 60562306a36Sopenharmony_ci TEGRA_PIN_PI6, 60662306a36Sopenharmony_ci}; 60762306a36Sopenharmony_ci 60862306a36Sopenharmony_cistatic const unsigned pi7_pins[] = { 60962306a36Sopenharmony_ci TEGRA_PIN_PI7, 61062306a36Sopenharmony_ci}; 61162306a36Sopenharmony_ci 61262306a36Sopenharmony_cistatic const unsigned pj0_pins[] = { 61362306a36Sopenharmony_ci TEGRA_PIN_PJ0, 61462306a36Sopenharmony_ci}; 61562306a36Sopenharmony_ci 61662306a36Sopenharmony_cistatic const unsigned pj2_pins[] = { 61762306a36Sopenharmony_ci TEGRA_PIN_PJ2, 61862306a36Sopenharmony_ci}; 61962306a36Sopenharmony_ci 62062306a36Sopenharmony_cistatic const unsigned uart2_cts_n_pj5_pins[] = { 62162306a36Sopenharmony_ci TEGRA_PIN_UART2_CTS_N_PJ5, 62262306a36Sopenharmony_ci}; 62362306a36Sopenharmony_ci 62462306a36Sopenharmony_cistatic const unsigned uart2_rts_n_pj6_pins[] = { 62562306a36Sopenharmony_ci TEGRA_PIN_UART2_RTS_N_PJ6, 62662306a36Sopenharmony_ci}; 62762306a36Sopenharmony_ci 62862306a36Sopenharmony_cistatic const unsigned pj7_pins[] = { 62962306a36Sopenharmony_ci TEGRA_PIN_PJ7, 63062306a36Sopenharmony_ci}; 63162306a36Sopenharmony_ci 63262306a36Sopenharmony_cistatic const unsigned pk0_pins[] = { 63362306a36Sopenharmony_ci TEGRA_PIN_PK0, 63462306a36Sopenharmony_ci}; 63562306a36Sopenharmony_ci 63662306a36Sopenharmony_cistatic const unsigned pk1_pins[] = { 63762306a36Sopenharmony_ci TEGRA_PIN_PK1, 63862306a36Sopenharmony_ci}; 63962306a36Sopenharmony_ci 64062306a36Sopenharmony_cistatic const unsigned pk2_pins[] = { 64162306a36Sopenharmony_ci TEGRA_PIN_PK2, 64262306a36Sopenharmony_ci}; 64362306a36Sopenharmony_ci 64462306a36Sopenharmony_cistatic const unsigned pk3_pins[] = { 64562306a36Sopenharmony_ci TEGRA_PIN_PK3, 64662306a36Sopenharmony_ci}; 64762306a36Sopenharmony_ci 64862306a36Sopenharmony_cistatic const unsigned pk4_pins[] = { 64962306a36Sopenharmony_ci TEGRA_PIN_PK4, 65062306a36Sopenharmony_ci}; 65162306a36Sopenharmony_ci 65262306a36Sopenharmony_cistatic const unsigned spdif_out_pk5_pins[] = { 65362306a36Sopenharmony_ci TEGRA_PIN_SPDIF_OUT_PK5, 65462306a36Sopenharmony_ci}; 65562306a36Sopenharmony_ci 65662306a36Sopenharmony_cistatic const unsigned spdif_in_pk6_pins[] = { 65762306a36Sopenharmony_ci TEGRA_PIN_SPDIF_IN_PK6, 65862306a36Sopenharmony_ci}; 65962306a36Sopenharmony_ci 66062306a36Sopenharmony_cistatic const unsigned pk7_pins[] = { 66162306a36Sopenharmony_ci TEGRA_PIN_PK7, 66262306a36Sopenharmony_ci}; 66362306a36Sopenharmony_ci 66462306a36Sopenharmony_cistatic const unsigned dap1_fs_pn0_pins[] = { 66562306a36Sopenharmony_ci TEGRA_PIN_DAP1_FS_PN0, 66662306a36Sopenharmony_ci}; 66762306a36Sopenharmony_ci 66862306a36Sopenharmony_cistatic const unsigned dap1_din_pn1_pins[] = { 66962306a36Sopenharmony_ci TEGRA_PIN_DAP1_DIN_PN1, 67062306a36Sopenharmony_ci}; 67162306a36Sopenharmony_ci 67262306a36Sopenharmony_cistatic const unsigned dap1_dout_pn2_pins[] = { 67362306a36Sopenharmony_ci TEGRA_PIN_DAP1_DOUT_PN2, 67462306a36Sopenharmony_ci}; 67562306a36Sopenharmony_ci 67662306a36Sopenharmony_cistatic const unsigned dap1_sclk_pn3_pins[] = { 67762306a36Sopenharmony_ci TEGRA_PIN_DAP1_SCLK_PN3, 67862306a36Sopenharmony_ci}; 67962306a36Sopenharmony_ci 68062306a36Sopenharmony_cistatic const unsigned usb_vbus_en0_pn4_pins[] = { 68162306a36Sopenharmony_ci TEGRA_PIN_USB_VBUS_EN0_PN4, 68262306a36Sopenharmony_ci}; 68362306a36Sopenharmony_ci 68462306a36Sopenharmony_cistatic const unsigned usb_vbus_en1_pn5_pins[] = { 68562306a36Sopenharmony_ci TEGRA_PIN_USB_VBUS_EN1_PN5, 68662306a36Sopenharmony_ci}; 68762306a36Sopenharmony_ci 68862306a36Sopenharmony_cistatic const unsigned hdmi_int_pn7_pins[] = { 68962306a36Sopenharmony_ci TEGRA_PIN_HDMI_INT_PN7, 69062306a36Sopenharmony_ci}; 69162306a36Sopenharmony_ci 69262306a36Sopenharmony_cistatic const unsigned ulpi_data7_po0_pins[] = { 69362306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA7_PO0, 69462306a36Sopenharmony_ci}; 69562306a36Sopenharmony_ci 69662306a36Sopenharmony_cistatic const unsigned ulpi_data0_po1_pins[] = { 69762306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA0_PO1, 69862306a36Sopenharmony_ci}; 69962306a36Sopenharmony_ci 70062306a36Sopenharmony_cistatic const unsigned ulpi_data1_po2_pins[] = { 70162306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA1_PO2, 70262306a36Sopenharmony_ci}; 70362306a36Sopenharmony_ci 70462306a36Sopenharmony_cistatic const unsigned ulpi_data2_po3_pins[] = { 70562306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA2_PO3, 70662306a36Sopenharmony_ci}; 70762306a36Sopenharmony_ci 70862306a36Sopenharmony_cistatic const unsigned ulpi_data3_po4_pins[] = { 70962306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA3_PO4, 71062306a36Sopenharmony_ci}; 71162306a36Sopenharmony_ci 71262306a36Sopenharmony_cistatic const unsigned ulpi_data4_po5_pins[] = { 71362306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA4_PO5, 71462306a36Sopenharmony_ci}; 71562306a36Sopenharmony_ci 71662306a36Sopenharmony_cistatic const unsigned ulpi_data5_po6_pins[] = { 71762306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA5_PO6, 71862306a36Sopenharmony_ci}; 71962306a36Sopenharmony_ci 72062306a36Sopenharmony_cistatic const unsigned ulpi_data6_po7_pins[] = { 72162306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA6_PO7, 72262306a36Sopenharmony_ci}; 72362306a36Sopenharmony_ci 72462306a36Sopenharmony_cistatic const unsigned dap3_fs_pp0_pins[] = { 72562306a36Sopenharmony_ci TEGRA_PIN_DAP3_FS_PP0, 72662306a36Sopenharmony_ci}; 72762306a36Sopenharmony_ci 72862306a36Sopenharmony_cistatic const unsigned dap3_din_pp1_pins[] = { 72962306a36Sopenharmony_ci TEGRA_PIN_DAP3_DIN_PP1, 73062306a36Sopenharmony_ci}; 73162306a36Sopenharmony_ci 73262306a36Sopenharmony_cistatic const unsigned dap3_dout_pp2_pins[] = { 73362306a36Sopenharmony_ci TEGRA_PIN_DAP3_DOUT_PP2, 73462306a36Sopenharmony_ci}; 73562306a36Sopenharmony_ci 73662306a36Sopenharmony_cistatic const unsigned dap3_sclk_pp3_pins[] = { 73762306a36Sopenharmony_ci TEGRA_PIN_DAP3_SCLK_PP3, 73862306a36Sopenharmony_ci}; 73962306a36Sopenharmony_ci 74062306a36Sopenharmony_cistatic const unsigned dap4_fs_pp4_pins[] = { 74162306a36Sopenharmony_ci TEGRA_PIN_DAP4_FS_PP4, 74262306a36Sopenharmony_ci}; 74362306a36Sopenharmony_ci 74462306a36Sopenharmony_cistatic const unsigned dap4_din_pp5_pins[] = { 74562306a36Sopenharmony_ci TEGRA_PIN_DAP4_DIN_PP5, 74662306a36Sopenharmony_ci}; 74762306a36Sopenharmony_ci 74862306a36Sopenharmony_cistatic const unsigned dap4_dout_pp6_pins[] = { 74962306a36Sopenharmony_ci TEGRA_PIN_DAP4_DOUT_PP6, 75062306a36Sopenharmony_ci}; 75162306a36Sopenharmony_ci 75262306a36Sopenharmony_cistatic const unsigned dap4_sclk_pp7_pins[] = { 75362306a36Sopenharmony_ci TEGRA_PIN_DAP4_SCLK_PP7, 75462306a36Sopenharmony_ci}; 75562306a36Sopenharmony_ci 75662306a36Sopenharmony_cistatic const unsigned kb_col0_pq0_pins[] = { 75762306a36Sopenharmony_ci TEGRA_PIN_KB_COL0_PQ0, 75862306a36Sopenharmony_ci}; 75962306a36Sopenharmony_ci 76062306a36Sopenharmony_cistatic const unsigned kb_col1_pq1_pins[] = { 76162306a36Sopenharmony_ci TEGRA_PIN_KB_COL1_PQ1, 76262306a36Sopenharmony_ci}; 76362306a36Sopenharmony_ci 76462306a36Sopenharmony_cistatic const unsigned kb_col2_pq2_pins[] = { 76562306a36Sopenharmony_ci TEGRA_PIN_KB_COL2_PQ2, 76662306a36Sopenharmony_ci}; 76762306a36Sopenharmony_ci 76862306a36Sopenharmony_cistatic const unsigned kb_col3_pq3_pins[] = { 76962306a36Sopenharmony_ci TEGRA_PIN_KB_COL3_PQ3, 77062306a36Sopenharmony_ci}; 77162306a36Sopenharmony_ci 77262306a36Sopenharmony_cistatic const unsigned kb_col4_pq4_pins[] = { 77362306a36Sopenharmony_ci TEGRA_PIN_KB_COL4_PQ4, 77462306a36Sopenharmony_ci}; 77562306a36Sopenharmony_ci 77662306a36Sopenharmony_cistatic const unsigned kb_col5_pq5_pins[] = { 77762306a36Sopenharmony_ci TEGRA_PIN_KB_COL5_PQ5, 77862306a36Sopenharmony_ci}; 77962306a36Sopenharmony_ci 78062306a36Sopenharmony_cistatic const unsigned kb_col6_pq6_pins[] = { 78162306a36Sopenharmony_ci TEGRA_PIN_KB_COL6_PQ6, 78262306a36Sopenharmony_ci}; 78362306a36Sopenharmony_ci 78462306a36Sopenharmony_cistatic const unsigned kb_col7_pq7_pins[] = { 78562306a36Sopenharmony_ci TEGRA_PIN_KB_COL7_PQ7, 78662306a36Sopenharmony_ci}; 78762306a36Sopenharmony_ci 78862306a36Sopenharmony_cistatic const unsigned kb_row0_pr0_pins[] = { 78962306a36Sopenharmony_ci TEGRA_PIN_KB_ROW0_PR0, 79062306a36Sopenharmony_ci}; 79162306a36Sopenharmony_ci 79262306a36Sopenharmony_cistatic const unsigned kb_row1_pr1_pins[] = { 79362306a36Sopenharmony_ci TEGRA_PIN_KB_ROW1_PR1, 79462306a36Sopenharmony_ci}; 79562306a36Sopenharmony_ci 79662306a36Sopenharmony_cistatic const unsigned kb_row2_pr2_pins[] = { 79762306a36Sopenharmony_ci TEGRA_PIN_KB_ROW2_PR2, 79862306a36Sopenharmony_ci}; 79962306a36Sopenharmony_ci 80062306a36Sopenharmony_cistatic const unsigned kb_row3_pr3_pins[] = { 80162306a36Sopenharmony_ci TEGRA_PIN_KB_ROW3_PR3, 80262306a36Sopenharmony_ci}; 80362306a36Sopenharmony_ci 80462306a36Sopenharmony_cistatic const unsigned kb_row4_pr4_pins[] = { 80562306a36Sopenharmony_ci TEGRA_PIN_KB_ROW4_PR4, 80662306a36Sopenharmony_ci}; 80762306a36Sopenharmony_ci 80862306a36Sopenharmony_cistatic const unsigned kb_row5_pr5_pins[] = { 80962306a36Sopenharmony_ci TEGRA_PIN_KB_ROW5_PR5, 81062306a36Sopenharmony_ci}; 81162306a36Sopenharmony_ci 81262306a36Sopenharmony_cistatic const unsigned kb_row6_pr6_pins[] = { 81362306a36Sopenharmony_ci TEGRA_PIN_KB_ROW6_PR6, 81462306a36Sopenharmony_ci}; 81562306a36Sopenharmony_ci 81662306a36Sopenharmony_cistatic const unsigned kb_row7_pr7_pins[] = { 81762306a36Sopenharmony_ci TEGRA_PIN_KB_ROW7_PR7, 81862306a36Sopenharmony_ci}; 81962306a36Sopenharmony_ci 82062306a36Sopenharmony_cistatic const unsigned kb_row8_ps0_pins[] = { 82162306a36Sopenharmony_ci TEGRA_PIN_KB_ROW8_PS0, 82262306a36Sopenharmony_ci}; 82362306a36Sopenharmony_ci 82462306a36Sopenharmony_cistatic const unsigned kb_row9_ps1_pins[] = { 82562306a36Sopenharmony_ci TEGRA_PIN_KB_ROW9_PS1, 82662306a36Sopenharmony_ci}; 82762306a36Sopenharmony_ci 82862306a36Sopenharmony_cistatic const unsigned kb_row10_ps2_pins[] = { 82962306a36Sopenharmony_ci TEGRA_PIN_KB_ROW10_PS2, 83062306a36Sopenharmony_ci}; 83162306a36Sopenharmony_ci 83262306a36Sopenharmony_cistatic const unsigned kb_row11_ps3_pins[] = { 83362306a36Sopenharmony_ci TEGRA_PIN_KB_ROW11_PS3, 83462306a36Sopenharmony_ci}; 83562306a36Sopenharmony_ci 83662306a36Sopenharmony_cistatic const unsigned kb_row12_ps4_pins[] = { 83762306a36Sopenharmony_ci TEGRA_PIN_KB_ROW12_PS4, 83862306a36Sopenharmony_ci}; 83962306a36Sopenharmony_ci 84062306a36Sopenharmony_cistatic const unsigned kb_row13_ps5_pins[] = { 84162306a36Sopenharmony_ci TEGRA_PIN_KB_ROW13_PS5, 84262306a36Sopenharmony_ci}; 84362306a36Sopenharmony_ci 84462306a36Sopenharmony_cistatic const unsigned kb_row14_ps6_pins[] = { 84562306a36Sopenharmony_ci TEGRA_PIN_KB_ROW14_PS6, 84662306a36Sopenharmony_ci}; 84762306a36Sopenharmony_ci 84862306a36Sopenharmony_cistatic const unsigned kb_row15_ps7_pins[] = { 84962306a36Sopenharmony_ci TEGRA_PIN_KB_ROW15_PS7, 85062306a36Sopenharmony_ci}; 85162306a36Sopenharmony_ci 85262306a36Sopenharmony_cistatic const unsigned kb_row16_pt0_pins[] = { 85362306a36Sopenharmony_ci TEGRA_PIN_KB_ROW16_PT0, 85462306a36Sopenharmony_ci}; 85562306a36Sopenharmony_ci 85662306a36Sopenharmony_cistatic const unsigned kb_row17_pt1_pins[] = { 85762306a36Sopenharmony_ci TEGRA_PIN_KB_ROW17_PT1, 85862306a36Sopenharmony_ci}; 85962306a36Sopenharmony_ci 86062306a36Sopenharmony_cistatic const unsigned gen2_i2c_scl_pt5_pins[] = { 86162306a36Sopenharmony_ci TEGRA_PIN_GEN2_I2C_SCL_PT5, 86262306a36Sopenharmony_ci}; 86362306a36Sopenharmony_ci 86462306a36Sopenharmony_cistatic const unsigned gen2_i2c_sda_pt6_pins[] = { 86562306a36Sopenharmony_ci TEGRA_PIN_GEN2_I2C_SDA_PT6, 86662306a36Sopenharmony_ci}; 86762306a36Sopenharmony_ci 86862306a36Sopenharmony_cistatic const unsigned sdmmc4_cmd_pt7_pins[] = { 86962306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_CMD_PT7, 87062306a36Sopenharmony_ci}; 87162306a36Sopenharmony_ci 87262306a36Sopenharmony_cistatic const unsigned pu0_pins[] = { 87362306a36Sopenharmony_ci TEGRA_PIN_PU0, 87462306a36Sopenharmony_ci}; 87562306a36Sopenharmony_ci 87662306a36Sopenharmony_cistatic const unsigned pu1_pins[] = { 87762306a36Sopenharmony_ci TEGRA_PIN_PU1, 87862306a36Sopenharmony_ci}; 87962306a36Sopenharmony_ci 88062306a36Sopenharmony_cistatic const unsigned pu2_pins[] = { 88162306a36Sopenharmony_ci TEGRA_PIN_PU2, 88262306a36Sopenharmony_ci}; 88362306a36Sopenharmony_ci 88462306a36Sopenharmony_cistatic const unsigned pu3_pins[] = { 88562306a36Sopenharmony_ci TEGRA_PIN_PU3, 88662306a36Sopenharmony_ci}; 88762306a36Sopenharmony_ci 88862306a36Sopenharmony_cistatic const unsigned pu4_pins[] = { 88962306a36Sopenharmony_ci TEGRA_PIN_PU4, 89062306a36Sopenharmony_ci}; 89162306a36Sopenharmony_ci 89262306a36Sopenharmony_cistatic const unsigned pu5_pins[] = { 89362306a36Sopenharmony_ci TEGRA_PIN_PU5, 89462306a36Sopenharmony_ci}; 89562306a36Sopenharmony_ci 89662306a36Sopenharmony_cistatic const unsigned pu6_pins[] = { 89762306a36Sopenharmony_ci TEGRA_PIN_PU6, 89862306a36Sopenharmony_ci}; 89962306a36Sopenharmony_ci 90062306a36Sopenharmony_cistatic const unsigned pv0_pins[] = { 90162306a36Sopenharmony_ci TEGRA_PIN_PV0, 90262306a36Sopenharmony_ci}; 90362306a36Sopenharmony_ci 90462306a36Sopenharmony_cistatic const unsigned pv1_pins[] = { 90562306a36Sopenharmony_ci TEGRA_PIN_PV1, 90662306a36Sopenharmony_ci}; 90762306a36Sopenharmony_ci 90862306a36Sopenharmony_cistatic const unsigned sdmmc3_cd_n_pv2_pins[] = { 90962306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CD_N_PV2, 91062306a36Sopenharmony_ci}; 91162306a36Sopenharmony_ci 91262306a36Sopenharmony_cistatic const unsigned sdmmc1_wp_n_pv3_pins[] = { 91362306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_WP_N_PV3, 91462306a36Sopenharmony_ci}; 91562306a36Sopenharmony_ci 91662306a36Sopenharmony_cistatic const unsigned ddc_scl_pv4_pins[] = { 91762306a36Sopenharmony_ci TEGRA_PIN_DDC_SCL_PV4, 91862306a36Sopenharmony_ci}; 91962306a36Sopenharmony_ci 92062306a36Sopenharmony_cistatic const unsigned ddc_sda_pv5_pins[] = { 92162306a36Sopenharmony_ci TEGRA_PIN_DDC_SDA_PV5, 92262306a36Sopenharmony_ci}; 92362306a36Sopenharmony_ci 92462306a36Sopenharmony_cistatic const unsigned gpio_w2_aud_pw2_pins[] = { 92562306a36Sopenharmony_ci TEGRA_PIN_GPIO_W2_AUD_PW2, 92662306a36Sopenharmony_ci}; 92762306a36Sopenharmony_ci 92862306a36Sopenharmony_cistatic const unsigned gpio_w3_aud_pw3_pins[] = { 92962306a36Sopenharmony_ci TEGRA_PIN_GPIO_W3_AUD_PW3, 93062306a36Sopenharmony_ci}; 93162306a36Sopenharmony_ci 93262306a36Sopenharmony_cistatic const unsigned dap_mclk1_pw4_pins[] = { 93362306a36Sopenharmony_ci TEGRA_PIN_DAP_MCLK1_PW4, 93462306a36Sopenharmony_ci}; 93562306a36Sopenharmony_ci 93662306a36Sopenharmony_cistatic const unsigned clk2_out_pw5_pins[] = { 93762306a36Sopenharmony_ci TEGRA_PIN_CLK2_OUT_PW5, 93862306a36Sopenharmony_ci}; 93962306a36Sopenharmony_ci 94062306a36Sopenharmony_cistatic const unsigned uart3_txd_pw6_pins[] = { 94162306a36Sopenharmony_ci TEGRA_PIN_UART3_TXD_PW6, 94262306a36Sopenharmony_ci}; 94362306a36Sopenharmony_ci 94462306a36Sopenharmony_cistatic const unsigned uart3_rxd_pw7_pins[] = { 94562306a36Sopenharmony_ci TEGRA_PIN_UART3_RXD_PW7, 94662306a36Sopenharmony_ci}; 94762306a36Sopenharmony_ci 94862306a36Sopenharmony_cistatic const unsigned dvfs_pwm_px0_pins[] = { 94962306a36Sopenharmony_ci TEGRA_PIN_DVFS_PWM_PX0, 95062306a36Sopenharmony_ci}; 95162306a36Sopenharmony_ci 95262306a36Sopenharmony_cistatic const unsigned gpio_x1_aud_px1_pins[] = { 95362306a36Sopenharmony_ci TEGRA_PIN_GPIO_X1_AUD_PX1, 95462306a36Sopenharmony_ci}; 95562306a36Sopenharmony_ci 95662306a36Sopenharmony_cistatic const unsigned dvfs_clk_px2_pins[] = { 95762306a36Sopenharmony_ci TEGRA_PIN_DVFS_CLK_PX2, 95862306a36Sopenharmony_ci}; 95962306a36Sopenharmony_ci 96062306a36Sopenharmony_cistatic const unsigned gpio_x3_aud_px3_pins[] = { 96162306a36Sopenharmony_ci TEGRA_PIN_GPIO_X3_AUD_PX3, 96262306a36Sopenharmony_ci}; 96362306a36Sopenharmony_ci 96462306a36Sopenharmony_cistatic const unsigned gpio_x4_aud_px4_pins[] = { 96562306a36Sopenharmony_ci TEGRA_PIN_GPIO_X4_AUD_PX4, 96662306a36Sopenharmony_ci}; 96762306a36Sopenharmony_ci 96862306a36Sopenharmony_cistatic const unsigned gpio_x5_aud_px5_pins[] = { 96962306a36Sopenharmony_ci TEGRA_PIN_GPIO_X5_AUD_PX5, 97062306a36Sopenharmony_ci}; 97162306a36Sopenharmony_ci 97262306a36Sopenharmony_cistatic const unsigned gpio_x6_aud_px6_pins[] = { 97362306a36Sopenharmony_ci TEGRA_PIN_GPIO_X6_AUD_PX6, 97462306a36Sopenharmony_ci}; 97562306a36Sopenharmony_ci 97662306a36Sopenharmony_cistatic const unsigned gpio_x7_aud_px7_pins[] = { 97762306a36Sopenharmony_ci TEGRA_PIN_GPIO_X7_AUD_PX7, 97862306a36Sopenharmony_ci}; 97962306a36Sopenharmony_ci 98062306a36Sopenharmony_cistatic const unsigned ulpi_clk_py0_pins[] = { 98162306a36Sopenharmony_ci TEGRA_PIN_ULPI_CLK_PY0, 98262306a36Sopenharmony_ci}; 98362306a36Sopenharmony_ci 98462306a36Sopenharmony_cistatic const unsigned ulpi_dir_py1_pins[] = { 98562306a36Sopenharmony_ci TEGRA_PIN_ULPI_DIR_PY1, 98662306a36Sopenharmony_ci}; 98762306a36Sopenharmony_ci 98862306a36Sopenharmony_cistatic const unsigned ulpi_nxt_py2_pins[] = { 98962306a36Sopenharmony_ci TEGRA_PIN_ULPI_NXT_PY2, 99062306a36Sopenharmony_ci}; 99162306a36Sopenharmony_ci 99262306a36Sopenharmony_cistatic const unsigned ulpi_stp_py3_pins[] = { 99362306a36Sopenharmony_ci TEGRA_PIN_ULPI_STP_PY3, 99462306a36Sopenharmony_ci}; 99562306a36Sopenharmony_ci 99662306a36Sopenharmony_cistatic const unsigned sdmmc1_dat3_py4_pins[] = { 99762306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT3_PY4, 99862306a36Sopenharmony_ci}; 99962306a36Sopenharmony_ci 100062306a36Sopenharmony_cistatic const unsigned sdmmc1_dat2_py5_pins[] = { 100162306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT2_PY5, 100262306a36Sopenharmony_ci}; 100362306a36Sopenharmony_ci 100462306a36Sopenharmony_cistatic const unsigned sdmmc1_dat1_py6_pins[] = { 100562306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT1_PY6, 100662306a36Sopenharmony_ci}; 100762306a36Sopenharmony_ci 100862306a36Sopenharmony_cistatic const unsigned sdmmc1_dat0_py7_pins[] = { 100962306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT0_PY7, 101062306a36Sopenharmony_ci}; 101162306a36Sopenharmony_ci 101262306a36Sopenharmony_cistatic const unsigned sdmmc1_clk_pz0_pins[] = { 101362306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_CLK_PZ0, 101462306a36Sopenharmony_ci}; 101562306a36Sopenharmony_ci 101662306a36Sopenharmony_cistatic const unsigned sdmmc1_cmd_pz1_pins[] = { 101762306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_CMD_PZ1, 101862306a36Sopenharmony_ci}; 101962306a36Sopenharmony_ci 102062306a36Sopenharmony_cistatic const unsigned pwr_i2c_scl_pz6_pins[] = { 102162306a36Sopenharmony_ci TEGRA_PIN_PWR_I2C_SCL_PZ6, 102262306a36Sopenharmony_ci}; 102362306a36Sopenharmony_ci 102462306a36Sopenharmony_cistatic const unsigned pwr_i2c_sda_pz7_pins[] = { 102562306a36Sopenharmony_ci TEGRA_PIN_PWR_I2C_SDA_PZ7, 102662306a36Sopenharmony_ci}; 102762306a36Sopenharmony_ci 102862306a36Sopenharmony_cistatic const unsigned sdmmc4_dat0_paa0_pins[] = { 102962306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT0_PAA0, 103062306a36Sopenharmony_ci}; 103162306a36Sopenharmony_ci 103262306a36Sopenharmony_cistatic const unsigned sdmmc4_dat1_paa1_pins[] = { 103362306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT1_PAA1, 103462306a36Sopenharmony_ci}; 103562306a36Sopenharmony_ci 103662306a36Sopenharmony_cistatic const unsigned sdmmc4_dat2_paa2_pins[] = { 103762306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT2_PAA2, 103862306a36Sopenharmony_ci}; 103962306a36Sopenharmony_ci 104062306a36Sopenharmony_cistatic const unsigned sdmmc4_dat3_paa3_pins[] = { 104162306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT3_PAA3, 104262306a36Sopenharmony_ci}; 104362306a36Sopenharmony_ci 104462306a36Sopenharmony_cistatic const unsigned sdmmc4_dat4_paa4_pins[] = { 104562306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT4_PAA4, 104662306a36Sopenharmony_ci}; 104762306a36Sopenharmony_ci 104862306a36Sopenharmony_cistatic const unsigned sdmmc4_dat5_paa5_pins[] = { 104962306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT5_PAA5, 105062306a36Sopenharmony_ci}; 105162306a36Sopenharmony_ci 105262306a36Sopenharmony_cistatic const unsigned sdmmc4_dat6_paa6_pins[] = { 105362306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT6_PAA6, 105462306a36Sopenharmony_ci}; 105562306a36Sopenharmony_ci 105662306a36Sopenharmony_cistatic const unsigned sdmmc4_dat7_paa7_pins[] = { 105762306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT7_PAA7, 105862306a36Sopenharmony_ci}; 105962306a36Sopenharmony_ci 106062306a36Sopenharmony_cistatic const unsigned pbb0_pins[] = { 106162306a36Sopenharmony_ci TEGRA_PIN_PBB0, 106262306a36Sopenharmony_ci}; 106362306a36Sopenharmony_ci 106462306a36Sopenharmony_cistatic const unsigned cam_i2c_scl_pbb1_pins[] = { 106562306a36Sopenharmony_ci TEGRA_PIN_CAM_I2C_SCL_PBB1, 106662306a36Sopenharmony_ci}; 106762306a36Sopenharmony_ci 106862306a36Sopenharmony_cistatic const unsigned cam_i2c_sda_pbb2_pins[] = { 106962306a36Sopenharmony_ci TEGRA_PIN_CAM_I2C_SDA_PBB2, 107062306a36Sopenharmony_ci}; 107162306a36Sopenharmony_ci 107262306a36Sopenharmony_cistatic const unsigned pbb3_pins[] = { 107362306a36Sopenharmony_ci TEGRA_PIN_PBB3, 107462306a36Sopenharmony_ci}; 107562306a36Sopenharmony_ci 107662306a36Sopenharmony_cistatic const unsigned pbb4_pins[] = { 107762306a36Sopenharmony_ci TEGRA_PIN_PBB4, 107862306a36Sopenharmony_ci}; 107962306a36Sopenharmony_ci 108062306a36Sopenharmony_cistatic const unsigned pbb5_pins[] = { 108162306a36Sopenharmony_ci TEGRA_PIN_PBB5, 108262306a36Sopenharmony_ci}; 108362306a36Sopenharmony_ci 108462306a36Sopenharmony_cistatic const unsigned pbb6_pins[] = { 108562306a36Sopenharmony_ci TEGRA_PIN_PBB6, 108662306a36Sopenharmony_ci}; 108762306a36Sopenharmony_ci 108862306a36Sopenharmony_cistatic const unsigned pbb7_pins[] = { 108962306a36Sopenharmony_ci TEGRA_PIN_PBB7, 109062306a36Sopenharmony_ci}; 109162306a36Sopenharmony_ci 109262306a36Sopenharmony_cistatic const unsigned cam_mclk_pcc0_pins[] = { 109362306a36Sopenharmony_ci TEGRA_PIN_CAM_MCLK_PCC0, 109462306a36Sopenharmony_ci}; 109562306a36Sopenharmony_ci 109662306a36Sopenharmony_cistatic const unsigned pcc1_pins[] = { 109762306a36Sopenharmony_ci TEGRA_PIN_PCC1, 109862306a36Sopenharmony_ci}; 109962306a36Sopenharmony_ci 110062306a36Sopenharmony_cistatic const unsigned pcc2_pins[] = { 110162306a36Sopenharmony_ci TEGRA_PIN_PCC2, 110262306a36Sopenharmony_ci}; 110362306a36Sopenharmony_ci 110462306a36Sopenharmony_cistatic const unsigned sdmmc4_clk_pcc4_pins[] = { 110562306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_CLK_PCC4, 110662306a36Sopenharmony_ci}; 110762306a36Sopenharmony_ci 110862306a36Sopenharmony_cistatic const unsigned clk2_req_pcc5_pins[] = { 110962306a36Sopenharmony_ci TEGRA_PIN_CLK2_REQ_PCC5, 111062306a36Sopenharmony_ci}; 111162306a36Sopenharmony_ci 111262306a36Sopenharmony_cistatic const unsigned pex_l0_rst_n_pdd1_pins[] = { 111362306a36Sopenharmony_ci TEGRA_PIN_PEX_L0_RST_N_PDD1, 111462306a36Sopenharmony_ci}; 111562306a36Sopenharmony_ci 111662306a36Sopenharmony_cistatic const unsigned pex_l0_clkreq_n_pdd2_pins[] = { 111762306a36Sopenharmony_ci TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2, 111862306a36Sopenharmony_ci}; 111962306a36Sopenharmony_ci 112062306a36Sopenharmony_cistatic const unsigned pex_wake_n_pdd3_pins[] = { 112162306a36Sopenharmony_ci TEGRA_PIN_PEX_WAKE_N_PDD3, 112262306a36Sopenharmony_ci}; 112362306a36Sopenharmony_ci 112462306a36Sopenharmony_cistatic const unsigned pex_l1_rst_n_pdd5_pins[] = { 112562306a36Sopenharmony_ci TEGRA_PIN_PEX_L1_RST_N_PDD5, 112662306a36Sopenharmony_ci}; 112762306a36Sopenharmony_ci 112862306a36Sopenharmony_cistatic const unsigned pex_l1_clkreq_n_pdd6_pins[] = { 112962306a36Sopenharmony_ci TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6, 113062306a36Sopenharmony_ci}; 113162306a36Sopenharmony_ci 113262306a36Sopenharmony_cistatic const unsigned clk3_out_pee0_pins[] = { 113362306a36Sopenharmony_ci TEGRA_PIN_CLK3_OUT_PEE0, 113462306a36Sopenharmony_ci}; 113562306a36Sopenharmony_ci 113662306a36Sopenharmony_cistatic const unsigned clk3_req_pee1_pins[] = { 113762306a36Sopenharmony_ci TEGRA_PIN_CLK3_REQ_PEE1, 113862306a36Sopenharmony_ci}; 113962306a36Sopenharmony_ci 114062306a36Sopenharmony_cistatic const unsigned dap_mclk1_req_pee2_pins[] = { 114162306a36Sopenharmony_ci TEGRA_PIN_DAP_MCLK1_REQ_PEE2, 114262306a36Sopenharmony_ci}; 114362306a36Sopenharmony_ci 114462306a36Sopenharmony_cistatic const unsigned hdmi_cec_pee3_pins[] = { 114562306a36Sopenharmony_ci TEGRA_PIN_HDMI_CEC_PEE3, 114662306a36Sopenharmony_ci}; 114762306a36Sopenharmony_ci 114862306a36Sopenharmony_cistatic const unsigned sdmmc3_clk_lb_out_pee4_pins[] = { 114962306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4, 115062306a36Sopenharmony_ci}; 115162306a36Sopenharmony_ci 115262306a36Sopenharmony_cistatic const unsigned sdmmc3_clk_lb_in_pee5_pins[] = { 115362306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5, 115462306a36Sopenharmony_ci}; 115562306a36Sopenharmony_ci 115662306a36Sopenharmony_cistatic const unsigned dp_hpd_pff0_pins[] = { 115762306a36Sopenharmony_ci TEGRA_PIN_DP_HPD_PFF0, 115862306a36Sopenharmony_ci}; 115962306a36Sopenharmony_ci 116062306a36Sopenharmony_cistatic const unsigned usb_vbus_en2_pff1_pins[] = { 116162306a36Sopenharmony_ci TEGRA_PIN_USB_VBUS_EN2_PFF1, 116262306a36Sopenharmony_ci}; 116362306a36Sopenharmony_ci 116462306a36Sopenharmony_cistatic const unsigned pff2_pins[] = { 116562306a36Sopenharmony_ci TEGRA_PIN_PFF2, 116662306a36Sopenharmony_ci}; 116762306a36Sopenharmony_ci 116862306a36Sopenharmony_cistatic const unsigned core_pwr_req_pins[] = { 116962306a36Sopenharmony_ci TEGRA_PIN_CORE_PWR_REQ, 117062306a36Sopenharmony_ci}; 117162306a36Sopenharmony_ci 117262306a36Sopenharmony_cistatic const unsigned cpu_pwr_req_pins[] = { 117362306a36Sopenharmony_ci TEGRA_PIN_CPU_PWR_REQ, 117462306a36Sopenharmony_ci}; 117562306a36Sopenharmony_ci 117662306a36Sopenharmony_cistatic const unsigned pwr_int_n_pins[] = { 117762306a36Sopenharmony_ci TEGRA_PIN_PWR_INT_N, 117862306a36Sopenharmony_ci}; 117962306a36Sopenharmony_ci 118062306a36Sopenharmony_cistatic const unsigned gmi_clk_lb_pins[] = { 118162306a36Sopenharmony_ci TEGRA_PIN_GMI_CLK_LB, 118262306a36Sopenharmony_ci}; 118362306a36Sopenharmony_ci 118462306a36Sopenharmony_cistatic const unsigned reset_out_n_pins[] = { 118562306a36Sopenharmony_ci TEGRA_PIN_RESET_OUT_N, 118662306a36Sopenharmony_ci}; 118762306a36Sopenharmony_ci 118862306a36Sopenharmony_cistatic const unsigned owr_pins[] = { 118962306a36Sopenharmony_ci TEGRA_PIN_OWR, 119062306a36Sopenharmony_ci}; 119162306a36Sopenharmony_ci 119262306a36Sopenharmony_cistatic const unsigned clk_32k_in_pins[] = { 119362306a36Sopenharmony_ci TEGRA_PIN_CLK_32K_IN, 119462306a36Sopenharmony_ci}; 119562306a36Sopenharmony_ci 119662306a36Sopenharmony_cistatic const unsigned jtag_rtck_pins[] = { 119762306a36Sopenharmony_ci TEGRA_PIN_JTAG_RTCK, 119862306a36Sopenharmony_ci}; 119962306a36Sopenharmony_ci 120062306a36Sopenharmony_cistatic const unsigned drive_ao1_pins[] = { 120162306a36Sopenharmony_ci TEGRA_PIN_KB_ROW0_PR0, 120262306a36Sopenharmony_ci TEGRA_PIN_KB_ROW1_PR1, 120362306a36Sopenharmony_ci TEGRA_PIN_KB_ROW2_PR2, 120462306a36Sopenharmony_ci TEGRA_PIN_KB_ROW3_PR3, 120562306a36Sopenharmony_ci TEGRA_PIN_KB_ROW4_PR4, 120662306a36Sopenharmony_ci TEGRA_PIN_KB_ROW5_PR5, 120762306a36Sopenharmony_ci TEGRA_PIN_KB_ROW6_PR6, 120862306a36Sopenharmony_ci TEGRA_PIN_KB_ROW7_PR7, 120962306a36Sopenharmony_ci TEGRA_PIN_PWR_I2C_SCL_PZ6, 121062306a36Sopenharmony_ci TEGRA_PIN_PWR_I2C_SDA_PZ7, 121162306a36Sopenharmony_ci}; 121262306a36Sopenharmony_ci 121362306a36Sopenharmony_cistatic const unsigned drive_ao2_pins[] = { 121462306a36Sopenharmony_ci TEGRA_PIN_CLK_32K_OUT_PA0, 121562306a36Sopenharmony_ci TEGRA_PIN_CLK_32K_IN, 121662306a36Sopenharmony_ci TEGRA_PIN_KB_COL0_PQ0, 121762306a36Sopenharmony_ci TEGRA_PIN_KB_COL1_PQ1, 121862306a36Sopenharmony_ci TEGRA_PIN_KB_COL2_PQ2, 121962306a36Sopenharmony_ci TEGRA_PIN_KB_COL3_PQ3, 122062306a36Sopenharmony_ci TEGRA_PIN_KB_COL4_PQ4, 122162306a36Sopenharmony_ci TEGRA_PIN_KB_COL5_PQ5, 122262306a36Sopenharmony_ci TEGRA_PIN_KB_COL6_PQ6, 122362306a36Sopenharmony_ci TEGRA_PIN_KB_COL7_PQ7, 122462306a36Sopenharmony_ci TEGRA_PIN_KB_ROW8_PS0, 122562306a36Sopenharmony_ci TEGRA_PIN_KB_ROW9_PS1, 122662306a36Sopenharmony_ci TEGRA_PIN_KB_ROW10_PS2, 122762306a36Sopenharmony_ci TEGRA_PIN_KB_ROW11_PS3, 122862306a36Sopenharmony_ci TEGRA_PIN_KB_ROW12_PS4, 122962306a36Sopenharmony_ci TEGRA_PIN_KB_ROW13_PS5, 123062306a36Sopenharmony_ci TEGRA_PIN_KB_ROW14_PS6, 123162306a36Sopenharmony_ci TEGRA_PIN_KB_ROW15_PS7, 123262306a36Sopenharmony_ci TEGRA_PIN_KB_ROW16_PT0, 123362306a36Sopenharmony_ci TEGRA_PIN_KB_ROW17_PT1, 123462306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CD_N_PV2, 123562306a36Sopenharmony_ci TEGRA_PIN_CORE_PWR_REQ, 123662306a36Sopenharmony_ci TEGRA_PIN_CPU_PWR_REQ, 123762306a36Sopenharmony_ci TEGRA_PIN_PWR_INT_N, 123862306a36Sopenharmony_ci}; 123962306a36Sopenharmony_ci 124062306a36Sopenharmony_cistatic const unsigned drive_at1_pins[] = { 124162306a36Sopenharmony_ci TEGRA_PIN_PH0, 124262306a36Sopenharmony_ci TEGRA_PIN_PH1, 124362306a36Sopenharmony_ci TEGRA_PIN_PH2, 124462306a36Sopenharmony_ci TEGRA_PIN_PH3, 124562306a36Sopenharmony_ci}; 124662306a36Sopenharmony_ci 124762306a36Sopenharmony_cistatic const unsigned drive_at2_pins[] = { 124862306a36Sopenharmony_ci TEGRA_PIN_PG0, 124962306a36Sopenharmony_ci TEGRA_PIN_PG1, 125062306a36Sopenharmony_ci TEGRA_PIN_PG2, 125162306a36Sopenharmony_ci TEGRA_PIN_PG3, 125262306a36Sopenharmony_ci TEGRA_PIN_PG4, 125362306a36Sopenharmony_ci TEGRA_PIN_PG5, 125462306a36Sopenharmony_ci TEGRA_PIN_PG6, 125562306a36Sopenharmony_ci TEGRA_PIN_PG7, 125662306a36Sopenharmony_ci TEGRA_PIN_PI0, 125762306a36Sopenharmony_ci TEGRA_PIN_PI1, 125862306a36Sopenharmony_ci TEGRA_PIN_PI3, 125962306a36Sopenharmony_ci TEGRA_PIN_PI4, 126062306a36Sopenharmony_ci TEGRA_PIN_PI7, 126162306a36Sopenharmony_ci TEGRA_PIN_PK0, 126262306a36Sopenharmony_ci TEGRA_PIN_PK2, 126362306a36Sopenharmony_ci}; 126462306a36Sopenharmony_ci 126562306a36Sopenharmony_cistatic const unsigned drive_at3_pins[] = { 126662306a36Sopenharmony_ci TEGRA_PIN_PC7, 126762306a36Sopenharmony_ci TEGRA_PIN_PJ0, 126862306a36Sopenharmony_ci}; 126962306a36Sopenharmony_ci 127062306a36Sopenharmony_cistatic const unsigned drive_at4_pins[] = { 127162306a36Sopenharmony_ci TEGRA_PIN_PB0, 127262306a36Sopenharmony_ci TEGRA_PIN_PB1, 127362306a36Sopenharmony_ci TEGRA_PIN_PJ0, 127462306a36Sopenharmony_ci TEGRA_PIN_PJ7, 127562306a36Sopenharmony_ci TEGRA_PIN_PK7, 127662306a36Sopenharmony_ci}; 127762306a36Sopenharmony_ci 127862306a36Sopenharmony_cistatic const unsigned drive_at5_pins[] = { 127962306a36Sopenharmony_ci TEGRA_PIN_GEN2_I2C_SCL_PT5, 128062306a36Sopenharmony_ci TEGRA_PIN_GEN2_I2C_SDA_PT6, 128162306a36Sopenharmony_ci}; 128262306a36Sopenharmony_ci 128362306a36Sopenharmony_cistatic const unsigned drive_cdev1_pins[] = { 128462306a36Sopenharmony_ci TEGRA_PIN_DAP_MCLK1_PW4, 128562306a36Sopenharmony_ci TEGRA_PIN_DAP_MCLK1_REQ_PEE2, 128662306a36Sopenharmony_ci}; 128762306a36Sopenharmony_ci 128862306a36Sopenharmony_cistatic const unsigned drive_cdev2_pins[] = { 128962306a36Sopenharmony_ci TEGRA_PIN_CLK2_OUT_PW5, 129062306a36Sopenharmony_ci TEGRA_PIN_CLK2_REQ_PCC5, 129162306a36Sopenharmony_ci}; 129262306a36Sopenharmony_ci 129362306a36Sopenharmony_cistatic const unsigned drive_dap1_pins[] = { 129462306a36Sopenharmony_ci TEGRA_PIN_DAP1_FS_PN0, 129562306a36Sopenharmony_ci TEGRA_PIN_DAP1_DIN_PN1, 129662306a36Sopenharmony_ci TEGRA_PIN_DAP1_DOUT_PN2, 129762306a36Sopenharmony_ci TEGRA_PIN_DAP1_SCLK_PN3, 129862306a36Sopenharmony_ci}; 129962306a36Sopenharmony_ci 130062306a36Sopenharmony_cistatic const unsigned drive_dap2_pins[] = { 130162306a36Sopenharmony_ci TEGRA_PIN_DAP2_FS_PA2, 130262306a36Sopenharmony_ci TEGRA_PIN_DAP2_SCLK_PA3, 130362306a36Sopenharmony_ci TEGRA_PIN_DAP2_DIN_PA4, 130462306a36Sopenharmony_ci TEGRA_PIN_DAP2_DOUT_PA5, 130562306a36Sopenharmony_ci}; 130662306a36Sopenharmony_ci 130762306a36Sopenharmony_cistatic const unsigned drive_dap3_pins[] = { 130862306a36Sopenharmony_ci TEGRA_PIN_DAP3_FS_PP0, 130962306a36Sopenharmony_ci TEGRA_PIN_DAP3_DIN_PP1, 131062306a36Sopenharmony_ci TEGRA_PIN_DAP3_DOUT_PP2, 131162306a36Sopenharmony_ci TEGRA_PIN_DAP3_SCLK_PP3, 131262306a36Sopenharmony_ci}; 131362306a36Sopenharmony_ci 131462306a36Sopenharmony_cistatic const unsigned drive_dap4_pins[] = { 131562306a36Sopenharmony_ci TEGRA_PIN_DAP4_FS_PP4, 131662306a36Sopenharmony_ci TEGRA_PIN_DAP4_DIN_PP5, 131762306a36Sopenharmony_ci TEGRA_PIN_DAP4_DOUT_PP6, 131862306a36Sopenharmony_ci TEGRA_PIN_DAP4_SCLK_PP7, 131962306a36Sopenharmony_ci}; 132062306a36Sopenharmony_ci 132162306a36Sopenharmony_cistatic const unsigned drive_dbg_pins[] = { 132262306a36Sopenharmony_ci TEGRA_PIN_GEN1_I2C_SCL_PC4, 132362306a36Sopenharmony_ci TEGRA_PIN_GEN1_I2C_SDA_PC5, 132462306a36Sopenharmony_ci TEGRA_PIN_PU0, 132562306a36Sopenharmony_ci TEGRA_PIN_PU1, 132662306a36Sopenharmony_ci TEGRA_PIN_PU2, 132762306a36Sopenharmony_ci TEGRA_PIN_PU3, 132862306a36Sopenharmony_ci TEGRA_PIN_PU4, 132962306a36Sopenharmony_ci TEGRA_PIN_PU5, 133062306a36Sopenharmony_ci TEGRA_PIN_PU6, 133162306a36Sopenharmony_ci}; 133262306a36Sopenharmony_ci 133362306a36Sopenharmony_cistatic const unsigned drive_sdio3_pins[] = { 133462306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CLK_PA6, 133562306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CMD_PA7, 133662306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT3_PB4, 133762306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT2_PB5, 133862306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT1_PB6, 133962306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_DAT0_PB7, 134062306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CLK_LB_OUT_PEE4, 134162306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CLK_LB_IN_PEE5, 134262306a36Sopenharmony_ci}; 134362306a36Sopenharmony_ci 134462306a36Sopenharmony_cistatic const unsigned drive_spi_pins[] = { 134562306a36Sopenharmony_ci TEGRA_PIN_DVFS_PWM_PX0, 134662306a36Sopenharmony_ci TEGRA_PIN_GPIO_X1_AUD_PX1, 134762306a36Sopenharmony_ci TEGRA_PIN_DVFS_CLK_PX2, 134862306a36Sopenharmony_ci TEGRA_PIN_GPIO_X3_AUD_PX3, 134962306a36Sopenharmony_ci TEGRA_PIN_GPIO_X4_AUD_PX4, 135062306a36Sopenharmony_ci TEGRA_PIN_GPIO_X5_AUD_PX5, 135162306a36Sopenharmony_ci TEGRA_PIN_GPIO_X6_AUD_PX6, 135262306a36Sopenharmony_ci TEGRA_PIN_GPIO_X7_AUD_PX7, 135362306a36Sopenharmony_ci TEGRA_PIN_GPIO_W2_AUD_PW2, 135462306a36Sopenharmony_ci TEGRA_PIN_GPIO_W3_AUD_PW3, 135562306a36Sopenharmony_ci}; 135662306a36Sopenharmony_ci 135762306a36Sopenharmony_cistatic const unsigned drive_uaa_pins[] = { 135862306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA0_PO1, 135962306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA1_PO2, 136062306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA2_PO3, 136162306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA3_PO4, 136262306a36Sopenharmony_ci}; 136362306a36Sopenharmony_ci 136462306a36Sopenharmony_cistatic const unsigned drive_uab_pins[] = { 136562306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA7_PO0, 136662306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA4_PO5, 136762306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA5_PO6, 136862306a36Sopenharmony_ci TEGRA_PIN_ULPI_DATA6_PO7, 136962306a36Sopenharmony_ci TEGRA_PIN_PV0, 137062306a36Sopenharmony_ci TEGRA_PIN_PV1, 137162306a36Sopenharmony_ci}; 137262306a36Sopenharmony_ci 137362306a36Sopenharmony_cistatic const unsigned drive_uart2_pins[] = { 137462306a36Sopenharmony_ci TEGRA_PIN_UART2_TXD_PC2, 137562306a36Sopenharmony_ci TEGRA_PIN_UART2_RXD_PC3, 137662306a36Sopenharmony_ci TEGRA_PIN_UART2_CTS_N_PJ5, 137762306a36Sopenharmony_ci TEGRA_PIN_UART2_RTS_N_PJ6, 137862306a36Sopenharmony_ci}; 137962306a36Sopenharmony_ci 138062306a36Sopenharmony_cistatic const unsigned drive_uart3_pins[] = { 138162306a36Sopenharmony_ci TEGRA_PIN_UART3_CTS_N_PA1, 138262306a36Sopenharmony_ci TEGRA_PIN_UART3_RTS_N_PC0, 138362306a36Sopenharmony_ci TEGRA_PIN_UART3_TXD_PW6, 138462306a36Sopenharmony_ci TEGRA_PIN_UART3_RXD_PW7, 138562306a36Sopenharmony_ci}; 138662306a36Sopenharmony_ci 138762306a36Sopenharmony_cistatic const unsigned drive_sdio1_pins[] = { 138862306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT3_PY4, 138962306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT2_PY5, 139062306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT1_PY6, 139162306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_DAT0_PY7, 139262306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_CLK_PZ0, 139362306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_CMD_PZ1, 139462306a36Sopenharmony_ci}; 139562306a36Sopenharmony_ci 139662306a36Sopenharmony_cistatic const unsigned drive_ddc_pins[] = { 139762306a36Sopenharmony_ci TEGRA_PIN_DDC_SCL_PV4, 139862306a36Sopenharmony_ci TEGRA_PIN_DDC_SDA_PV5, 139962306a36Sopenharmony_ci}; 140062306a36Sopenharmony_ci 140162306a36Sopenharmony_cistatic const unsigned drive_gma_pins[] = { 140262306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_CLK_PCC4, 140362306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_CMD_PT7, 140462306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT0_PAA0, 140562306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT1_PAA1, 140662306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT2_PAA2, 140762306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT3_PAA3, 140862306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT4_PAA4, 140962306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT5_PAA5, 141062306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT6_PAA6, 141162306a36Sopenharmony_ci TEGRA_PIN_SDMMC4_DAT7_PAA7, 141262306a36Sopenharmony_ci}; 141362306a36Sopenharmony_ci 141462306a36Sopenharmony_cistatic const unsigned drive_gme_pins[] = { 141562306a36Sopenharmony_ci TEGRA_PIN_PBB0, 141662306a36Sopenharmony_ci TEGRA_PIN_CAM_I2C_SCL_PBB1, 141762306a36Sopenharmony_ci TEGRA_PIN_CAM_I2C_SDA_PBB2, 141862306a36Sopenharmony_ci TEGRA_PIN_PBB3, 141962306a36Sopenharmony_ci TEGRA_PIN_PCC2, 142062306a36Sopenharmony_ci}; 142162306a36Sopenharmony_ci 142262306a36Sopenharmony_cistatic const unsigned drive_gmf_pins[] = { 142362306a36Sopenharmony_ci TEGRA_PIN_PBB4, 142462306a36Sopenharmony_ci TEGRA_PIN_PBB5, 142562306a36Sopenharmony_ci TEGRA_PIN_PBB6, 142662306a36Sopenharmony_ci TEGRA_PIN_PBB7, 142762306a36Sopenharmony_ci}; 142862306a36Sopenharmony_ci 142962306a36Sopenharmony_cistatic const unsigned drive_gmg_pins[] = { 143062306a36Sopenharmony_ci TEGRA_PIN_CAM_MCLK_PCC0, 143162306a36Sopenharmony_ci}; 143262306a36Sopenharmony_ci 143362306a36Sopenharmony_cistatic const unsigned drive_gmh_pins[] = { 143462306a36Sopenharmony_ci TEGRA_PIN_PCC1, 143562306a36Sopenharmony_ci}; 143662306a36Sopenharmony_ci 143762306a36Sopenharmony_cistatic const unsigned drive_owr_pins[] = { 143862306a36Sopenharmony_ci TEGRA_PIN_SDMMC3_CD_N_PV2, 143962306a36Sopenharmony_ci TEGRA_PIN_OWR, 144062306a36Sopenharmony_ci}; 144162306a36Sopenharmony_ci 144262306a36Sopenharmony_cistatic const unsigned drive_uda_pins[] = { 144362306a36Sopenharmony_ci TEGRA_PIN_ULPI_CLK_PY0, 144462306a36Sopenharmony_ci TEGRA_PIN_ULPI_DIR_PY1, 144562306a36Sopenharmony_ci TEGRA_PIN_ULPI_NXT_PY2, 144662306a36Sopenharmony_ci TEGRA_PIN_ULPI_STP_PY3, 144762306a36Sopenharmony_ci}; 144862306a36Sopenharmony_ci 144962306a36Sopenharmony_cistatic const unsigned drive_gpv_pins[] = { 145062306a36Sopenharmony_ci TEGRA_PIN_PEX_L0_RST_N_PDD1, 145162306a36Sopenharmony_ci TEGRA_PIN_PEX_L0_CLKREQ_N_PDD2, 145262306a36Sopenharmony_ci TEGRA_PIN_PEX_WAKE_N_PDD3, 145362306a36Sopenharmony_ci TEGRA_PIN_PEX_L1_RST_N_PDD5, 145462306a36Sopenharmony_ci TEGRA_PIN_PEX_L1_CLKREQ_N_PDD6, 145562306a36Sopenharmony_ci TEGRA_PIN_USB_VBUS_EN2_PFF1, 145662306a36Sopenharmony_ci TEGRA_PIN_PFF2, 145762306a36Sopenharmony_ci}; 145862306a36Sopenharmony_ci 145962306a36Sopenharmony_cistatic const unsigned drive_dev3_pins[] = { 146062306a36Sopenharmony_ci TEGRA_PIN_CLK3_OUT_PEE0, 146162306a36Sopenharmony_ci TEGRA_PIN_CLK3_REQ_PEE1, 146262306a36Sopenharmony_ci}; 146362306a36Sopenharmony_ci 146462306a36Sopenharmony_cistatic const unsigned drive_cec_pins[] = { 146562306a36Sopenharmony_ci TEGRA_PIN_HDMI_CEC_PEE3, 146662306a36Sopenharmony_ci}; 146762306a36Sopenharmony_ci 146862306a36Sopenharmony_cistatic const unsigned drive_at6_pins[] = { 146962306a36Sopenharmony_ci TEGRA_PIN_PK1, 147062306a36Sopenharmony_ci TEGRA_PIN_PK3, 147162306a36Sopenharmony_ci TEGRA_PIN_PK4, 147262306a36Sopenharmony_ci TEGRA_PIN_PI2, 147362306a36Sopenharmony_ci TEGRA_PIN_PI5, 147462306a36Sopenharmony_ci TEGRA_PIN_PI6, 147562306a36Sopenharmony_ci TEGRA_PIN_PH4, 147662306a36Sopenharmony_ci TEGRA_PIN_PH5, 147762306a36Sopenharmony_ci TEGRA_PIN_PH6, 147862306a36Sopenharmony_ci TEGRA_PIN_PH7, 147962306a36Sopenharmony_ci}; 148062306a36Sopenharmony_ci 148162306a36Sopenharmony_cistatic const unsigned drive_dap5_pins[] = { 148262306a36Sopenharmony_ci TEGRA_PIN_SPDIF_IN_PK6, 148362306a36Sopenharmony_ci TEGRA_PIN_SPDIF_OUT_PK5, 148462306a36Sopenharmony_ci TEGRA_PIN_DP_HPD_PFF0, 148562306a36Sopenharmony_ci}; 148662306a36Sopenharmony_ci 148762306a36Sopenharmony_cistatic const unsigned drive_usb_vbus_en_pins[] = { 148862306a36Sopenharmony_ci TEGRA_PIN_USB_VBUS_EN0_PN4, 148962306a36Sopenharmony_ci TEGRA_PIN_USB_VBUS_EN1_PN5, 149062306a36Sopenharmony_ci}; 149162306a36Sopenharmony_ci 149262306a36Sopenharmony_cistatic const unsigned drive_ao3_pins[] = { 149362306a36Sopenharmony_ci TEGRA_PIN_RESET_OUT_N, 149462306a36Sopenharmony_ci}; 149562306a36Sopenharmony_ci 149662306a36Sopenharmony_cistatic const unsigned drive_ao0_pins[] = { 149762306a36Sopenharmony_ci TEGRA_PIN_JTAG_RTCK, 149862306a36Sopenharmony_ci}; 149962306a36Sopenharmony_ci 150062306a36Sopenharmony_cistatic const unsigned drive_hv0_pins[] = { 150162306a36Sopenharmony_ci TEGRA_PIN_HDMI_INT_PN7, 150262306a36Sopenharmony_ci}; 150362306a36Sopenharmony_ci 150462306a36Sopenharmony_cistatic const unsigned drive_sdio4_pins[] = { 150562306a36Sopenharmony_ci TEGRA_PIN_SDMMC1_WP_N_PV3, 150662306a36Sopenharmony_ci}; 150762306a36Sopenharmony_ci 150862306a36Sopenharmony_cistatic const unsigned drive_ao4_pins[] = { 150962306a36Sopenharmony_ci TEGRA_PIN_JTAG_RTCK, 151062306a36Sopenharmony_ci}; 151162306a36Sopenharmony_ci 151262306a36Sopenharmony_cistatic const unsigned mipi_pad_ctrl_dsi_b_pins[] = { 151362306a36Sopenharmony_ci TEGRA_PIN_DSI_B_CLK_P, 151462306a36Sopenharmony_ci TEGRA_PIN_DSI_B_CLK_N, 151562306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D0_P, 151662306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D0_N, 151762306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D1_P, 151862306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D1_N, 151962306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D2_P, 152062306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D2_N, 152162306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D3_P, 152262306a36Sopenharmony_ci TEGRA_PIN_DSI_B_D3_N, 152362306a36Sopenharmony_ci}; 152462306a36Sopenharmony_ci 152562306a36Sopenharmony_cienum tegra_mux { 152662306a36Sopenharmony_ci TEGRA_MUX_BLINK, 152762306a36Sopenharmony_ci TEGRA_MUX_CCLA, 152862306a36Sopenharmony_ci TEGRA_MUX_CEC, 152962306a36Sopenharmony_ci TEGRA_MUX_CLDVFS, 153062306a36Sopenharmony_ci TEGRA_MUX_CLK, 153162306a36Sopenharmony_ci TEGRA_MUX_CLK12, 153262306a36Sopenharmony_ci TEGRA_MUX_CPU, 153362306a36Sopenharmony_ci TEGRA_MUX_CSI, 153462306a36Sopenharmony_ci TEGRA_MUX_DAP, 153562306a36Sopenharmony_ci TEGRA_MUX_DAP1, 153662306a36Sopenharmony_ci TEGRA_MUX_DAP2, 153762306a36Sopenharmony_ci TEGRA_MUX_DEV3, 153862306a36Sopenharmony_ci TEGRA_MUX_DISPLAYA, 153962306a36Sopenharmony_ci TEGRA_MUX_DISPLAYA_ALT, 154062306a36Sopenharmony_ci TEGRA_MUX_DISPLAYB, 154162306a36Sopenharmony_ci TEGRA_MUX_DP, 154262306a36Sopenharmony_ci TEGRA_MUX_DSI_B, 154362306a36Sopenharmony_ci TEGRA_MUX_DTV, 154462306a36Sopenharmony_ci TEGRA_MUX_EXTPERIPH1, 154562306a36Sopenharmony_ci TEGRA_MUX_EXTPERIPH2, 154662306a36Sopenharmony_ci TEGRA_MUX_EXTPERIPH3, 154762306a36Sopenharmony_ci TEGRA_MUX_GMI, 154862306a36Sopenharmony_ci TEGRA_MUX_GMI_ALT, 154962306a36Sopenharmony_ci TEGRA_MUX_HDA, 155062306a36Sopenharmony_ci TEGRA_MUX_HSI, 155162306a36Sopenharmony_ci TEGRA_MUX_I2C1, 155262306a36Sopenharmony_ci TEGRA_MUX_I2C2, 155362306a36Sopenharmony_ci TEGRA_MUX_I2C3, 155462306a36Sopenharmony_ci TEGRA_MUX_I2C4, 155562306a36Sopenharmony_ci TEGRA_MUX_I2CPWR, 155662306a36Sopenharmony_ci TEGRA_MUX_I2S0, 155762306a36Sopenharmony_ci TEGRA_MUX_I2S1, 155862306a36Sopenharmony_ci TEGRA_MUX_I2S2, 155962306a36Sopenharmony_ci TEGRA_MUX_I2S3, 156062306a36Sopenharmony_ci TEGRA_MUX_I2S4, 156162306a36Sopenharmony_ci TEGRA_MUX_IRDA, 156262306a36Sopenharmony_ci TEGRA_MUX_KBC, 156362306a36Sopenharmony_ci TEGRA_MUX_OWR, 156462306a36Sopenharmony_ci TEGRA_MUX_PE, 156562306a36Sopenharmony_ci TEGRA_MUX_PE0, 156662306a36Sopenharmony_ci TEGRA_MUX_PE1, 156762306a36Sopenharmony_ci TEGRA_MUX_PMI, 156862306a36Sopenharmony_ci TEGRA_MUX_PWM0, 156962306a36Sopenharmony_ci TEGRA_MUX_PWM1, 157062306a36Sopenharmony_ci TEGRA_MUX_PWM2, 157162306a36Sopenharmony_ci TEGRA_MUX_PWM3, 157262306a36Sopenharmony_ci TEGRA_MUX_PWRON, 157362306a36Sopenharmony_ci TEGRA_MUX_RESET_OUT_N, 157462306a36Sopenharmony_ci TEGRA_MUX_RSVD1, 157562306a36Sopenharmony_ci TEGRA_MUX_RSVD2, 157662306a36Sopenharmony_ci TEGRA_MUX_RSVD3, 157762306a36Sopenharmony_ci TEGRA_MUX_RSVD4, 157862306a36Sopenharmony_ci TEGRA_MUX_RTCK, 157962306a36Sopenharmony_ci TEGRA_MUX_SATA, 158062306a36Sopenharmony_ci TEGRA_MUX_SDMMC1, 158162306a36Sopenharmony_ci TEGRA_MUX_SDMMC2, 158262306a36Sopenharmony_ci TEGRA_MUX_SDMMC3, 158362306a36Sopenharmony_ci TEGRA_MUX_SDMMC4, 158462306a36Sopenharmony_ci TEGRA_MUX_SOC, 158562306a36Sopenharmony_ci TEGRA_MUX_SPDIF, 158662306a36Sopenharmony_ci TEGRA_MUX_SPI1, 158762306a36Sopenharmony_ci TEGRA_MUX_SPI2, 158862306a36Sopenharmony_ci TEGRA_MUX_SPI3, 158962306a36Sopenharmony_ci TEGRA_MUX_SPI4, 159062306a36Sopenharmony_ci TEGRA_MUX_SPI5, 159162306a36Sopenharmony_ci TEGRA_MUX_SPI6, 159262306a36Sopenharmony_ci TEGRA_MUX_SYS, 159362306a36Sopenharmony_ci TEGRA_MUX_TMDS, 159462306a36Sopenharmony_ci TEGRA_MUX_TRACE, 159562306a36Sopenharmony_ci TEGRA_MUX_UARTA, 159662306a36Sopenharmony_ci TEGRA_MUX_UARTB, 159762306a36Sopenharmony_ci TEGRA_MUX_UARTC, 159862306a36Sopenharmony_ci TEGRA_MUX_UARTD, 159962306a36Sopenharmony_ci TEGRA_MUX_ULPI, 160062306a36Sopenharmony_ci TEGRA_MUX_USB, 160162306a36Sopenharmony_ci TEGRA_MUX_VGP1, 160262306a36Sopenharmony_ci TEGRA_MUX_VGP2, 160362306a36Sopenharmony_ci TEGRA_MUX_VGP3, 160462306a36Sopenharmony_ci TEGRA_MUX_VGP4, 160562306a36Sopenharmony_ci TEGRA_MUX_VGP5, 160662306a36Sopenharmony_ci TEGRA_MUX_VGP6, 160762306a36Sopenharmony_ci TEGRA_MUX_VI, 160862306a36Sopenharmony_ci TEGRA_MUX_VI_ALT1, 160962306a36Sopenharmony_ci TEGRA_MUX_VI_ALT3, 161062306a36Sopenharmony_ci TEGRA_MUX_VIMCLK2, 161162306a36Sopenharmony_ci TEGRA_MUX_VIMCLK2_ALT, 161262306a36Sopenharmony_ci}; 161362306a36Sopenharmony_ci 161462306a36Sopenharmony_ci#define FUNCTION(fname) #fname 161562306a36Sopenharmony_ci 161662306a36Sopenharmony_cistatic const char * const tegra124_functions[] = { 161762306a36Sopenharmony_ci FUNCTION(blink), 161862306a36Sopenharmony_ci FUNCTION(ccla), 161962306a36Sopenharmony_ci FUNCTION(cec), 162062306a36Sopenharmony_ci FUNCTION(cldvfs), 162162306a36Sopenharmony_ci FUNCTION(clk), 162262306a36Sopenharmony_ci FUNCTION(clk12), 162362306a36Sopenharmony_ci FUNCTION(cpu), 162462306a36Sopenharmony_ci FUNCTION(csi), 162562306a36Sopenharmony_ci FUNCTION(dap), 162662306a36Sopenharmony_ci FUNCTION(dap1), 162762306a36Sopenharmony_ci FUNCTION(dap2), 162862306a36Sopenharmony_ci FUNCTION(dev3), 162962306a36Sopenharmony_ci FUNCTION(displaya), 163062306a36Sopenharmony_ci FUNCTION(displaya_alt), 163162306a36Sopenharmony_ci FUNCTION(displayb), 163262306a36Sopenharmony_ci FUNCTION(dp), 163362306a36Sopenharmony_ci FUNCTION(dsi_b), 163462306a36Sopenharmony_ci FUNCTION(dtv), 163562306a36Sopenharmony_ci FUNCTION(extperiph1), 163662306a36Sopenharmony_ci FUNCTION(extperiph2), 163762306a36Sopenharmony_ci FUNCTION(extperiph3), 163862306a36Sopenharmony_ci FUNCTION(gmi), 163962306a36Sopenharmony_ci FUNCTION(gmi_alt), 164062306a36Sopenharmony_ci FUNCTION(hda), 164162306a36Sopenharmony_ci FUNCTION(hsi), 164262306a36Sopenharmony_ci FUNCTION(i2c1), 164362306a36Sopenharmony_ci FUNCTION(i2c2), 164462306a36Sopenharmony_ci FUNCTION(i2c3), 164562306a36Sopenharmony_ci FUNCTION(i2c4), 164662306a36Sopenharmony_ci FUNCTION(i2cpwr), 164762306a36Sopenharmony_ci FUNCTION(i2s0), 164862306a36Sopenharmony_ci FUNCTION(i2s1), 164962306a36Sopenharmony_ci FUNCTION(i2s2), 165062306a36Sopenharmony_ci FUNCTION(i2s3), 165162306a36Sopenharmony_ci FUNCTION(i2s4), 165262306a36Sopenharmony_ci FUNCTION(irda), 165362306a36Sopenharmony_ci FUNCTION(kbc), 165462306a36Sopenharmony_ci FUNCTION(owr), 165562306a36Sopenharmony_ci FUNCTION(pe), 165662306a36Sopenharmony_ci FUNCTION(pe0), 165762306a36Sopenharmony_ci FUNCTION(pe1), 165862306a36Sopenharmony_ci FUNCTION(pmi), 165962306a36Sopenharmony_ci FUNCTION(pwm0), 166062306a36Sopenharmony_ci FUNCTION(pwm1), 166162306a36Sopenharmony_ci FUNCTION(pwm2), 166262306a36Sopenharmony_ci FUNCTION(pwm3), 166362306a36Sopenharmony_ci FUNCTION(pwron), 166462306a36Sopenharmony_ci FUNCTION(reset_out_n), 166562306a36Sopenharmony_ci FUNCTION(rsvd1), 166662306a36Sopenharmony_ci FUNCTION(rsvd2), 166762306a36Sopenharmony_ci FUNCTION(rsvd3), 166862306a36Sopenharmony_ci FUNCTION(rsvd4), 166962306a36Sopenharmony_ci FUNCTION(rtck), 167062306a36Sopenharmony_ci FUNCTION(sata), 167162306a36Sopenharmony_ci FUNCTION(sdmmc1), 167262306a36Sopenharmony_ci FUNCTION(sdmmc2), 167362306a36Sopenharmony_ci FUNCTION(sdmmc3), 167462306a36Sopenharmony_ci FUNCTION(sdmmc4), 167562306a36Sopenharmony_ci FUNCTION(soc), 167662306a36Sopenharmony_ci FUNCTION(spdif), 167762306a36Sopenharmony_ci FUNCTION(spi1), 167862306a36Sopenharmony_ci FUNCTION(spi2), 167962306a36Sopenharmony_ci FUNCTION(spi3), 168062306a36Sopenharmony_ci FUNCTION(spi4), 168162306a36Sopenharmony_ci FUNCTION(spi5), 168262306a36Sopenharmony_ci FUNCTION(spi6), 168362306a36Sopenharmony_ci FUNCTION(sys), 168462306a36Sopenharmony_ci FUNCTION(tmds), 168562306a36Sopenharmony_ci FUNCTION(trace), 168662306a36Sopenharmony_ci FUNCTION(uarta), 168762306a36Sopenharmony_ci FUNCTION(uartb), 168862306a36Sopenharmony_ci FUNCTION(uartc), 168962306a36Sopenharmony_ci FUNCTION(uartd), 169062306a36Sopenharmony_ci FUNCTION(ulpi), 169162306a36Sopenharmony_ci FUNCTION(usb), 169262306a36Sopenharmony_ci FUNCTION(vgp1), 169362306a36Sopenharmony_ci FUNCTION(vgp2), 169462306a36Sopenharmony_ci FUNCTION(vgp3), 169562306a36Sopenharmony_ci FUNCTION(vgp4), 169662306a36Sopenharmony_ci FUNCTION(vgp5), 169762306a36Sopenharmony_ci FUNCTION(vgp6), 169862306a36Sopenharmony_ci FUNCTION(vi), 169962306a36Sopenharmony_ci FUNCTION(vi_alt1), 170062306a36Sopenharmony_ci FUNCTION(vi_alt3), 170162306a36Sopenharmony_ci FUNCTION(vimclk2), 170262306a36Sopenharmony_ci FUNCTION(vimclk2_alt), 170362306a36Sopenharmony_ci}; 170462306a36Sopenharmony_ci 170562306a36Sopenharmony_ci#define DRV_PINGROUP_REG_A 0x868 /* bank 0 */ 170662306a36Sopenharmony_ci#define PINGROUP_REG_A 0x3000 /* bank 1 */ 170762306a36Sopenharmony_ci#define MIPI_PAD_CTRL_PINGROUP_REG_A 0x820 /* bank 2 */ 170862306a36Sopenharmony_ci 170962306a36Sopenharmony_ci#define DRV_PINGROUP_REG(r) ((r) - DRV_PINGROUP_REG_A) 171062306a36Sopenharmony_ci#define PINGROUP_REG(r) ((r) - PINGROUP_REG_A) 171162306a36Sopenharmony_ci#define MIPI_PAD_CTRL_PINGROUP_REG_Y(r) ((r) - MIPI_PAD_CTRL_PINGROUP_REG_A) 171262306a36Sopenharmony_ci 171362306a36Sopenharmony_ci#define PINGROUP_BIT_Y(b) (b) 171462306a36Sopenharmony_ci#define PINGROUP_BIT_N(b) (-1) 171562306a36Sopenharmony_ci 171662306a36Sopenharmony_ci#define PINGROUP(pg_name, f0, f1, f2, f3, r, od, ior, rcv_sel) \ 171762306a36Sopenharmony_ci { \ 171862306a36Sopenharmony_ci .name = #pg_name, \ 171962306a36Sopenharmony_ci .pins = pg_name##_pins, \ 172062306a36Sopenharmony_ci .npins = ARRAY_SIZE(pg_name##_pins), \ 172162306a36Sopenharmony_ci .funcs = { \ 172262306a36Sopenharmony_ci TEGRA_MUX_##f0, \ 172362306a36Sopenharmony_ci TEGRA_MUX_##f1, \ 172462306a36Sopenharmony_ci TEGRA_MUX_##f2, \ 172562306a36Sopenharmony_ci TEGRA_MUX_##f3, \ 172662306a36Sopenharmony_ci }, \ 172762306a36Sopenharmony_ci .mux_reg = PINGROUP_REG(r), \ 172862306a36Sopenharmony_ci .mux_bank = 1, \ 172962306a36Sopenharmony_ci .mux_bit = 0, \ 173062306a36Sopenharmony_ci .pupd_reg = PINGROUP_REG(r), \ 173162306a36Sopenharmony_ci .pupd_bank = 1, \ 173262306a36Sopenharmony_ci .pupd_bit = 2, \ 173362306a36Sopenharmony_ci .tri_reg = PINGROUP_REG(r), \ 173462306a36Sopenharmony_ci .tri_bank = 1, \ 173562306a36Sopenharmony_ci .tri_bit = 4, \ 173662306a36Sopenharmony_ci .einput_bit = 5, \ 173762306a36Sopenharmony_ci .odrain_bit = PINGROUP_BIT_##od(6), \ 173862306a36Sopenharmony_ci .lock_bit = 7, \ 173962306a36Sopenharmony_ci .ioreset_bit = PINGROUP_BIT_##ior(8), \ 174062306a36Sopenharmony_ci .rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \ 174162306a36Sopenharmony_ci .drv_reg = -1, \ 174262306a36Sopenharmony_ci .parked_bitmask = 0, \ 174362306a36Sopenharmony_ci } 174462306a36Sopenharmony_ci 174562306a36Sopenharmony_ci#define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, \ 174662306a36Sopenharmony_ci drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, \ 174762306a36Sopenharmony_ci slwf_b, slwf_w, drvtype) \ 174862306a36Sopenharmony_ci { \ 174962306a36Sopenharmony_ci .name = "drive_" #pg_name, \ 175062306a36Sopenharmony_ci .pins = drive_##pg_name##_pins, \ 175162306a36Sopenharmony_ci .npins = ARRAY_SIZE(drive_##pg_name##_pins), \ 175262306a36Sopenharmony_ci .mux_reg = -1, \ 175362306a36Sopenharmony_ci .pupd_reg = -1, \ 175462306a36Sopenharmony_ci .tri_reg = -1, \ 175562306a36Sopenharmony_ci .einput_bit = -1, \ 175662306a36Sopenharmony_ci .odrain_bit = -1, \ 175762306a36Sopenharmony_ci .lock_bit = -1, \ 175862306a36Sopenharmony_ci .ioreset_bit = -1, \ 175962306a36Sopenharmony_ci .rcv_sel_bit = -1, \ 176062306a36Sopenharmony_ci .drv_reg = DRV_PINGROUP_REG(r), \ 176162306a36Sopenharmony_ci .drv_bank = 0, \ 176262306a36Sopenharmony_ci .hsm_bit = hsm_b, \ 176362306a36Sopenharmony_ci .schmitt_bit = schmitt_b, \ 176462306a36Sopenharmony_ci .lpmd_bit = lpmd_b, \ 176562306a36Sopenharmony_ci .drvdn_bit = drvdn_b, \ 176662306a36Sopenharmony_ci .drvdn_width = drvdn_w, \ 176762306a36Sopenharmony_ci .drvup_bit = drvup_b, \ 176862306a36Sopenharmony_ci .drvup_width = drvup_w, \ 176962306a36Sopenharmony_ci .slwr_bit = slwr_b, \ 177062306a36Sopenharmony_ci .slwr_width = slwr_w, \ 177162306a36Sopenharmony_ci .slwf_bit = slwf_b, \ 177262306a36Sopenharmony_ci .slwf_width = slwf_w, \ 177362306a36Sopenharmony_ci .drvtype_bit = PINGROUP_BIT_##drvtype(6), \ 177462306a36Sopenharmony_ci .parked_bitmask = 0, \ 177562306a36Sopenharmony_ci } 177662306a36Sopenharmony_ci 177762306a36Sopenharmony_ci#define MIPI_PAD_CTRL_PINGROUP(pg_name, r, b, f0, f1) \ 177862306a36Sopenharmony_ci { \ 177962306a36Sopenharmony_ci .name = "mipi_pad_ctrl_" #pg_name, \ 178062306a36Sopenharmony_ci .pins = mipi_pad_ctrl_##pg_name##_pins, \ 178162306a36Sopenharmony_ci .npins = ARRAY_SIZE(mipi_pad_ctrl_##pg_name##_pins), \ 178262306a36Sopenharmony_ci .funcs = { \ 178362306a36Sopenharmony_ci TEGRA_MUX_ ## f0, \ 178462306a36Sopenharmony_ci TEGRA_MUX_ ## f1, \ 178562306a36Sopenharmony_ci TEGRA_MUX_RSVD3, \ 178662306a36Sopenharmony_ci TEGRA_MUX_RSVD4, \ 178762306a36Sopenharmony_ci }, \ 178862306a36Sopenharmony_ci .mux_reg = MIPI_PAD_CTRL_PINGROUP_REG_Y(r), \ 178962306a36Sopenharmony_ci .mux_bank = 2, \ 179062306a36Sopenharmony_ci .mux_bit = b, \ 179162306a36Sopenharmony_ci .pupd_reg = -1, \ 179262306a36Sopenharmony_ci .tri_reg = -1, \ 179362306a36Sopenharmony_ci .einput_bit = -1, \ 179462306a36Sopenharmony_ci .odrain_bit = -1, \ 179562306a36Sopenharmony_ci .lock_bit = -1, \ 179662306a36Sopenharmony_ci .ioreset_bit = -1, \ 179762306a36Sopenharmony_ci .rcv_sel_bit = -1, \ 179862306a36Sopenharmony_ci .drv_reg = -1, \ 179962306a36Sopenharmony_ci } 180062306a36Sopenharmony_ci 180162306a36Sopenharmony_cistatic const struct tegra_pingroup tegra124_groups[] = { 180262306a36Sopenharmony_ci /* pg_name, f0, f1, f2, f3, r, od, ior, rcv_sel */ 180362306a36Sopenharmony_ci PINGROUP(ulpi_data0_po1, SPI3, HSI, UARTA, ULPI, 0x3000, N, N, N), 180462306a36Sopenharmony_ci PINGROUP(ulpi_data1_po2, SPI3, HSI, UARTA, ULPI, 0x3004, N, N, N), 180562306a36Sopenharmony_ci PINGROUP(ulpi_data2_po3, SPI3, HSI, UARTA, ULPI, 0x3008, N, N, N), 180662306a36Sopenharmony_ci PINGROUP(ulpi_data3_po4, SPI3, HSI, UARTA, ULPI, 0x300c, N, N, N), 180762306a36Sopenharmony_ci PINGROUP(ulpi_data4_po5, SPI2, HSI, UARTA, ULPI, 0x3010, N, N, N), 180862306a36Sopenharmony_ci PINGROUP(ulpi_data5_po6, SPI2, HSI, UARTA, ULPI, 0x3014, N, N, N), 180962306a36Sopenharmony_ci PINGROUP(ulpi_data6_po7, SPI2, HSI, UARTA, ULPI, 0x3018, N, N, N), 181062306a36Sopenharmony_ci PINGROUP(ulpi_data7_po0, SPI2, HSI, UARTA, ULPI, 0x301c, N, N, N), 181162306a36Sopenharmony_ci PINGROUP(ulpi_clk_py0, SPI1, SPI5, UARTD, ULPI, 0x3020, N, N, N), 181262306a36Sopenharmony_ci PINGROUP(ulpi_dir_py1, SPI1, SPI5, UARTD, ULPI, 0x3024, N, N, N), 181362306a36Sopenharmony_ci PINGROUP(ulpi_nxt_py2, SPI1, SPI5, UARTD, ULPI, 0x3028, N, N, N), 181462306a36Sopenharmony_ci PINGROUP(ulpi_stp_py3, SPI1, SPI5, UARTD, ULPI, 0x302c, N, N, N), 181562306a36Sopenharmony_ci PINGROUP(dap3_fs_pp0, I2S2, SPI5, DISPLAYA, DISPLAYB, 0x3030, N, N, N), 181662306a36Sopenharmony_ci PINGROUP(dap3_din_pp1, I2S2, SPI5, DISPLAYA, DISPLAYB, 0x3034, N, N, N), 181762306a36Sopenharmony_ci PINGROUP(dap3_dout_pp2, I2S2, SPI5, DISPLAYA, RSVD4, 0x3038, N, N, N), 181862306a36Sopenharmony_ci PINGROUP(dap3_sclk_pp3, I2S2, SPI5, RSVD3, DISPLAYB, 0x303c, N, N, N), 181962306a36Sopenharmony_ci PINGROUP(pv0, RSVD1, RSVD2, RSVD3, RSVD4, 0x3040, N, N, N), 182062306a36Sopenharmony_ci PINGROUP(pv1, RSVD1, RSVD2, RSVD3, RSVD4, 0x3044, N, N, N), 182162306a36Sopenharmony_ci PINGROUP(sdmmc1_clk_pz0, SDMMC1, CLK12, RSVD3, RSVD4, 0x3048, N, N, N), 182262306a36Sopenharmony_ci PINGROUP(sdmmc1_cmd_pz1, SDMMC1, SPDIF, SPI4, UARTA, 0x304c, N, N, N), 182362306a36Sopenharmony_ci PINGROUP(sdmmc1_dat3_py4, SDMMC1, SPDIF, SPI4, UARTA, 0x3050, N, N, N), 182462306a36Sopenharmony_ci PINGROUP(sdmmc1_dat2_py5, SDMMC1, PWM0, SPI4, UARTA, 0x3054, N, N, N), 182562306a36Sopenharmony_ci PINGROUP(sdmmc1_dat1_py6, SDMMC1, PWM1, SPI4, UARTA, 0x3058, N, N, N), 182662306a36Sopenharmony_ci PINGROUP(sdmmc1_dat0_py7, SDMMC1, RSVD2, SPI4, UARTA, 0x305c, N, N, N), 182762306a36Sopenharmony_ci PINGROUP(clk2_out_pw5, EXTPERIPH2, RSVD2, RSVD3, RSVD4, 0x3068, N, N, N), 182862306a36Sopenharmony_ci PINGROUP(clk2_req_pcc5, DAP, RSVD2, RSVD3, RSVD4, 0x306c, N, N, N), 182962306a36Sopenharmony_ci PINGROUP(hdmi_int_pn7, RSVD1, RSVD2, RSVD3, RSVD4, 0x3110, N, N, Y), 183062306a36Sopenharmony_ci PINGROUP(ddc_scl_pv4, I2C4, RSVD2, RSVD3, RSVD4, 0x3114, N, N, Y), 183162306a36Sopenharmony_ci PINGROUP(ddc_sda_pv5, I2C4, RSVD2, RSVD3, RSVD4, 0x3118, N, N, Y), 183262306a36Sopenharmony_ci PINGROUP(uart2_rxd_pc3, IRDA, SPDIF, UARTA, SPI4, 0x3164, N, N, N), 183362306a36Sopenharmony_ci PINGROUP(uart2_txd_pc2, IRDA, SPDIF, UARTA, SPI4, 0x3168, N, N, N), 183462306a36Sopenharmony_ci PINGROUP(uart2_rts_n_pj6, UARTA, UARTB, GMI, SPI4, 0x316c, N, N, N), 183562306a36Sopenharmony_ci PINGROUP(uart2_cts_n_pj5, UARTA, UARTB, GMI, SPI4, 0x3170, N, N, N), 183662306a36Sopenharmony_ci PINGROUP(uart3_txd_pw6, UARTC, RSVD2, GMI, SPI4, 0x3174, N, N, N), 183762306a36Sopenharmony_ci PINGROUP(uart3_rxd_pw7, UARTC, RSVD2, GMI, SPI4, 0x3178, N, N, N), 183862306a36Sopenharmony_ci PINGROUP(uart3_cts_n_pa1, UARTC, SDMMC1, DTV, GMI, 0x317c, N, N, N), 183962306a36Sopenharmony_ci PINGROUP(uart3_rts_n_pc0, UARTC, PWM0, DTV, GMI, 0x3180, N, N, N), 184062306a36Sopenharmony_ci PINGROUP(pu0, OWR, UARTA, GMI, RSVD4, 0x3184, N, N, N), 184162306a36Sopenharmony_ci PINGROUP(pu1, RSVD1, UARTA, GMI, RSVD4, 0x3188, N, N, N), 184262306a36Sopenharmony_ci PINGROUP(pu2, RSVD1, UARTA, GMI, RSVD4, 0x318c, N, N, N), 184362306a36Sopenharmony_ci PINGROUP(pu3, PWM0, UARTA, GMI, DISPLAYB, 0x3190, N, N, N), 184462306a36Sopenharmony_ci PINGROUP(pu4, PWM1, UARTA, GMI, DISPLAYB, 0x3194, N, N, N), 184562306a36Sopenharmony_ci PINGROUP(pu5, PWM2, UARTA, GMI, DISPLAYB, 0x3198, N, N, N), 184662306a36Sopenharmony_ci PINGROUP(pu6, PWM3, UARTA, RSVD3, GMI, 0x319c, N, N, N), 184762306a36Sopenharmony_ci PINGROUP(gen1_i2c_sda_pc5, I2C1, RSVD2, RSVD3, RSVD4, 0x31a0, Y, N, N), 184862306a36Sopenharmony_ci PINGROUP(gen1_i2c_scl_pc4, I2C1, RSVD2, RSVD3, RSVD4, 0x31a4, Y, N, N), 184962306a36Sopenharmony_ci PINGROUP(dap4_fs_pp4, I2S3, GMI, DTV, RSVD4, 0x31a8, N, N, N), 185062306a36Sopenharmony_ci PINGROUP(dap4_din_pp5, I2S3, GMI, RSVD3, RSVD4, 0x31ac, N, N, N), 185162306a36Sopenharmony_ci PINGROUP(dap4_dout_pp6, I2S3, GMI, DTV, RSVD4, 0x31b0, N, N, N), 185262306a36Sopenharmony_ci PINGROUP(dap4_sclk_pp7, I2S3, GMI, RSVD3, RSVD4, 0x31b4, N, N, N), 185362306a36Sopenharmony_ci PINGROUP(clk3_out_pee0, EXTPERIPH3, RSVD2, RSVD3, RSVD4, 0x31b8, N, N, N), 185462306a36Sopenharmony_ci PINGROUP(clk3_req_pee1, DEV3, RSVD2, RSVD3, RSVD4, 0x31bc, N, N, N), 185562306a36Sopenharmony_ci PINGROUP(pc7, RSVD1, RSVD2, GMI, GMI_ALT, 0x31c0, N, N, N), 185662306a36Sopenharmony_ci PINGROUP(pi5, SDMMC2, RSVD2, GMI, RSVD4, 0x31c4, N, N, N), 185762306a36Sopenharmony_ci PINGROUP(pi7, RSVD1, TRACE, GMI, DTV, 0x31c8, N, N, N), 185862306a36Sopenharmony_ci PINGROUP(pk0, RSVD1, SDMMC3, GMI, SOC, 0x31cc, N, N, N), 185962306a36Sopenharmony_ci PINGROUP(pk1, SDMMC2, TRACE, GMI, RSVD4, 0x31d0, N, N, N), 186062306a36Sopenharmony_ci PINGROUP(pj0, RSVD1, RSVD2, GMI, USB, 0x31d4, N, N, N), 186162306a36Sopenharmony_ci PINGROUP(pj2, RSVD1, RSVD2, GMI, SOC, 0x31d8, N, N, N), 186262306a36Sopenharmony_ci PINGROUP(pk3, SDMMC2, TRACE, GMI, CCLA, 0x31dc, N, N, N), 186362306a36Sopenharmony_ci PINGROUP(pk4, SDMMC2, RSVD2, GMI, GMI_ALT, 0x31e0, N, N, N), 186462306a36Sopenharmony_ci PINGROUP(pk2, RSVD1, RSVD2, GMI, RSVD4, 0x31e4, N, N, N), 186562306a36Sopenharmony_ci PINGROUP(pi3, RSVD1, RSVD2, GMI, SPI4, 0x31e8, N, N, N), 186662306a36Sopenharmony_ci PINGROUP(pi6, RSVD1, RSVD2, GMI, SDMMC2, 0x31ec, N, N, N), 186762306a36Sopenharmony_ci PINGROUP(pg0, RSVD1, RSVD2, GMI, RSVD4, 0x31f0, N, N, N), 186862306a36Sopenharmony_ci PINGROUP(pg1, RSVD1, RSVD2, GMI, RSVD4, 0x31f4, N, N, N), 186962306a36Sopenharmony_ci PINGROUP(pg2, RSVD1, TRACE, GMI, RSVD4, 0x31f8, N, N, N), 187062306a36Sopenharmony_ci PINGROUP(pg3, RSVD1, TRACE, GMI, RSVD4, 0x31fc, N, N, N), 187162306a36Sopenharmony_ci PINGROUP(pg4, RSVD1, TMDS, GMI, SPI4, 0x3200, N, N, N), 187262306a36Sopenharmony_ci PINGROUP(pg5, RSVD1, RSVD2, GMI, SPI4, 0x3204, N, N, N), 187362306a36Sopenharmony_ci PINGROUP(pg6, RSVD1, RSVD2, GMI, SPI4, 0x3208, N, N, N), 187462306a36Sopenharmony_ci PINGROUP(pg7, RSVD1, RSVD2, GMI, SPI4, 0x320c, N, N, N), 187562306a36Sopenharmony_ci PINGROUP(ph0, PWM0, TRACE, GMI, DTV, 0x3210, N, N, N), 187662306a36Sopenharmony_ci PINGROUP(ph1, PWM1, TMDS, GMI, DISPLAYA, 0x3214, N, N, N), 187762306a36Sopenharmony_ci PINGROUP(ph2, PWM2, TMDS, GMI, CLDVFS, 0x3218, N, N, N), 187862306a36Sopenharmony_ci PINGROUP(ph3, PWM3, SPI4, GMI, CLDVFS, 0x321c, N, N, N), 187962306a36Sopenharmony_ci PINGROUP(ph4, SDMMC2, RSVD2, GMI, RSVD4, 0x3220, N, N, N), 188062306a36Sopenharmony_ci PINGROUP(ph5, SDMMC2, RSVD2, GMI, RSVD4, 0x3224, N, N, N), 188162306a36Sopenharmony_ci PINGROUP(ph6, SDMMC2, TRACE, GMI, DTV, 0x3228, N, N, N), 188262306a36Sopenharmony_ci PINGROUP(ph7, SDMMC2, TRACE, GMI, DTV, 0x322c, N, N, N), 188362306a36Sopenharmony_ci PINGROUP(pj7, UARTD, RSVD2, GMI, GMI_ALT, 0x3230, N, N, N), 188462306a36Sopenharmony_ci PINGROUP(pb0, UARTD, RSVD2, GMI, RSVD4, 0x3234, N, N, N), 188562306a36Sopenharmony_ci PINGROUP(pb1, UARTD, RSVD2, GMI, RSVD4, 0x3238, N, N, N), 188662306a36Sopenharmony_ci PINGROUP(pk7, UARTD, RSVD2, GMI, RSVD4, 0x323c, N, N, N), 188762306a36Sopenharmony_ci PINGROUP(pi0, RSVD1, RSVD2, GMI, RSVD4, 0x3240, N, N, N), 188862306a36Sopenharmony_ci PINGROUP(pi1, RSVD1, RSVD2, GMI, RSVD4, 0x3244, N, N, N), 188962306a36Sopenharmony_ci PINGROUP(pi2, SDMMC2, TRACE, GMI, RSVD4, 0x3248, N, N, N), 189062306a36Sopenharmony_ci PINGROUP(pi4, SPI4, TRACE, GMI, DISPLAYA, 0x324c, N, N, N), 189162306a36Sopenharmony_ci PINGROUP(gen2_i2c_scl_pt5, I2C2, RSVD2, GMI, RSVD4, 0x3250, Y, N, N), 189262306a36Sopenharmony_ci PINGROUP(gen2_i2c_sda_pt6, I2C2, RSVD2, GMI, RSVD4, 0x3254, Y, N, N), 189362306a36Sopenharmony_ci PINGROUP(sdmmc4_clk_pcc4, SDMMC4, RSVD2, GMI, RSVD4, 0x3258, N, Y, N), 189462306a36Sopenharmony_ci PINGROUP(sdmmc4_cmd_pt7, SDMMC4, RSVD2, GMI, RSVD4, 0x325c, N, Y, N), 189562306a36Sopenharmony_ci PINGROUP(sdmmc4_dat0_paa0, SDMMC4, SPI3, GMI, RSVD4, 0x3260, N, Y, N), 189662306a36Sopenharmony_ci PINGROUP(sdmmc4_dat1_paa1, SDMMC4, SPI3, GMI, RSVD4, 0x3264, N, Y, N), 189762306a36Sopenharmony_ci PINGROUP(sdmmc4_dat2_paa2, SDMMC4, SPI3, GMI, RSVD4, 0x3268, N, Y, N), 189862306a36Sopenharmony_ci PINGROUP(sdmmc4_dat3_paa3, SDMMC4, SPI3, GMI, RSVD4, 0x326c, N, Y, N), 189962306a36Sopenharmony_ci PINGROUP(sdmmc4_dat4_paa4, SDMMC4, SPI3, GMI, RSVD4, 0x3270, N, Y, N), 190062306a36Sopenharmony_ci PINGROUP(sdmmc4_dat5_paa5, SDMMC4, SPI3, RSVD3, RSVD4, 0x3274, N, Y, N), 190162306a36Sopenharmony_ci PINGROUP(sdmmc4_dat6_paa6, SDMMC4, SPI3, GMI, RSVD4, 0x3278, N, Y, N), 190262306a36Sopenharmony_ci PINGROUP(sdmmc4_dat7_paa7, SDMMC4, RSVD2, GMI, RSVD4, 0x327c, N, Y, N), 190362306a36Sopenharmony_ci PINGROUP(cam_mclk_pcc0, VI, VI_ALT1, VI_ALT3, SDMMC2, 0x3284, N, N, N), 190462306a36Sopenharmony_ci PINGROUP(pcc1, I2S4, RSVD2, RSVD3, SDMMC2, 0x3288, N, N, N), 190562306a36Sopenharmony_ci PINGROUP(pbb0, VGP6, VIMCLK2, SDMMC2, VIMCLK2_ALT, 0x328c, N, N, N), 190662306a36Sopenharmony_ci PINGROUP(cam_i2c_scl_pbb1, VGP1, I2C3, RSVD3, SDMMC2, 0x3290, Y, N, N), 190762306a36Sopenharmony_ci PINGROUP(cam_i2c_sda_pbb2, VGP2, I2C3, RSVD3, SDMMC2, 0x3294, Y, N, N), 190862306a36Sopenharmony_ci PINGROUP(pbb3, VGP3, DISPLAYA, DISPLAYB, SDMMC2, 0x3298, N, N, N), 190962306a36Sopenharmony_ci PINGROUP(pbb4, VGP4, DISPLAYA, DISPLAYB, SDMMC2, 0x329c, N, N, N), 191062306a36Sopenharmony_ci PINGROUP(pbb5, VGP5, DISPLAYA, RSVD3, SDMMC2, 0x32a0, N, N, N), 191162306a36Sopenharmony_ci PINGROUP(pbb6, I2S4, RSVD2, DISPLAYB, SDMMC2, 0x32a4, N, N, N), 191262306a36Sopenharmony_ci PINGROUP(pbb7, I2S4, RSVD2, RSVD3, SDMMC2, 0x32a8, N, N, N), 191362306a36Sopenharmony_ci PINGROUP(pcc2, I2S4, RSVD2, SDMMC3, SDMMC2, 0x32ac, N, N, N), 191462306a36Sopenharmony_ci PINGROUP(jtag_rtck, RTCK, RSVD2, RSVD3, RSVD4, 0x32b0, N, N, N), 191562306a36Sopenharmony_ci PINGROUP(pwr_i2c_scl_pz6, I2CPWR, RSVD2, RSVD3, RSVD4, 0x32b4, Y, N, N), 191662306a36Sopenharmony_ci PINGROUP(pwr_i2c_sda_pz7, I2CPWR, RSVD2, RSVD3, RSVD4, 0x32b8, Y, N, N), 191762306a36Sopenharmony_ci PINGROUP(kb_row0_pr0, KBC, RSVD2, RSVD3, RSVD4, 0x32bc, N, N, N), 191862306a36Sopenharmony_ci PINGROUP(kb_row1_pr1, KBC, RSVD2, RSVD3, RSVD4, 0x32c0, N, N, N), 191962306a36Sopenharmony_ci PINGROUP(kb_row2_pr2, KBC, RSVD2, RSVD3, RSVD4, 0x32c4, N, N, N), 192062306a36Sopenharmony_ci PINGROUP(kb_row3_pr3, KBC, DISPLAYA, SYS, DISPLAYB, 0x32c8, N, N, N), 192162306a36Sopenharmony_ci PINGROUP(kb_row4_pr4, KBC, DISPLAYA, RSVD3, DISPLAYB, 0x32cc, N, N, N), 192262306a36Sopenharmony_ci PINGROUP(kb_row5_pr5, KBC, DISPLAYA, RSVD3, DISPLAYB, 0x32d0, N, N, N), 192362306a36Sopenharmony_ci PINGROUP(kb_row6_pr6, KBC, DISPLAYA, DISPLAYA_ALT, DISPLAYB, 0x32d4, N, N, N), 192462306a36Sopenharmony_ci PINGROUP(kb_row7_pr7, KBC, RSVD2, CLDVFS, UARTA, 0x32d8, N, N, N), 192562306a36Sopenharmony_ci PINGROUP(kb_row8_ps0, KBC, RSVD2, CLDVFS, UARTA, 0x32dc, N, N, N), 192662306a36Sopenharmony_ci PINGROUP(kb_row9_ps1, KBC, RSVD2, RSVD3, UARTA, 0x32e0, N, N, N), 192762306a36Sopenharmony_ci PINGROUP(kb_row10_ps2, KBC, RSVD2, RSVD3, UARTA, 0x32e4, N, N, N), 192862306a36Sopenharmony_ci PINGROUP(kb_row11_ps3, KBC, RSVD2, RSVD3, IRDA, 0x32e8, N, N, N), 192962306a36Sopenharmony_ci PINGROUP(kb_row12_ps4, KBC, RSVD2, RSVD3, IRDA, 0x32ec, N, N, N), 193062306a36Sopenharmony_ci PINGROUP(kb_row13_ps5, KBC, RSVD2, SPI2, RSVD4, 0x32f0, N, N, N), 193162306a36Sopenharmony_ci PINGROUP(kb_row14_ps6, KBC, RSVD2, SPI2, RSVD4, 0x32f4, N, N, N), 193262306a36Sopenharmony_ci PINGROUP(kb_row15_ps7, KBC, SOC, RSVD3, RSVD4, 0x32f8, N, N, N), 193362306a36Sopenharmony_ci PINGROUP(kb_col0_pq0, KBC, RSVD2, SPI2, RSVD4, 0x32fc, N, N, N), 193462306a36Sopenharmony_ci PINGROUP(kb_col1_pq1, KBC, RSVD2, SPI2, RSVD4, 0x3300, N, N, N), 193562306a36Sopenharmony_ci PINGROUP(kb_col2_pq2, KBC, RSVD2, SPI2, RSVD4, 0x3304, N, N, N), 193662306a36Sopenharmony_ci PINGROUP(kb_col3_pq3, KBC, DISPLAYA, PWM2, UARTA, 0x3308, N, N, N), 193762306a36Sopenharmony_ci PINGROUP(kb_col4_pq4, KBC, OWR, SDMMC3, UARTA, 0x330c, N, N, N), 193862306a36Sopenharmony_ci PINGROUP(kb_col5_pq5, KBC, RSVD2, SDMMC3, RSVD4, 0x3310, N, N, N), 193962306a36Sopenharmony_ci PINGROUP(kb_col6_pq6, KBC, RSVD2, SPI2, UARTD, 0x3314, N, N, N), 194062306a36Sopenharmony_ci PINGROUP(kb_col7_pq7, KBC, RSVD2, SPI2, UARTD, 0x3318, N, N, N), 194162306a36Sopenharmony_ci PINGROUP(clk_32k_out_pa0, BLINK, SOC, RSVD3, RSVD4, 0x331c, N, N, N), 194262306a36Sopenharmony_ci PINGROUP(core_pwr_req, PWRON, RSVD2, RSVD3, RSVD4, 0x3324, N, N, N), 194362306a36Sopenharmony_ci PINGROUP(cpu_pwr_req, CPU, RSVD2, RSVD3, RSVD4, 0x3328, N, N, N), 194462306a36Sopenharmony_ci PINGROUP(pwr_int_n, PMI, RSVD2, RSVD3, RSVD4, 0x332c, N, N, N), 194562306a36Sopenharmony_ci PINGROUP(clk_32k_in, CLK, RSVD2, RSVD3, RSVD4, 0x3330, N, N, N), 194662306a36Sopenharmony_ci PINGROUP(owr, OWR, RSVD2, RSVD3, RSVD4, 0x3334, N, N, Y), 194762306a36Sopenharmony_ci PINGROUP(dap1_fs_pn0, I2S0, HDA, GMI, RSVD4, 0x3338, N, N, N), 194862306a36Sopenharmony_ci PINGROUP(dap1_din_pn1, I2S0, HDA, GMI, RSVD4, 0x333c, N, N, N), 194962306a36Sopenharmony_ci PINGROUP(dap1_dout_pn2, I2S0, HDA, GMI, SATA, 0x3340, N, N, N), 195062306a36Sopenharmony_ci PINGROUP(dap1_sclk_pn3, I2S0, HDA, GMI, RSVD4, 0x3344, N, N, N), 195162306a36Sopenharmony_ci PINGROUP(dap_mclk1_req_pee2, DAP, DAP1, SATA, RSVD4, 0x3348, N, N, N), 195262306a36Sopenharmony_ci PINGROUP(dap_mclk1_pw4, EXTPERIPH1, DAP2, RSVD3, RSVD4, 0x334c, N, N, N), 195362306a36Sopenharmony_ci PINGROUP(spdif_in_pk6, SPDIF, RSVD2, RSVD3, I2C3, 0x3350, N, N, N), 195462306a36Sopenharmony_ci PINGROUP(spdif_out_pk5, SPDIF, RSVD2, RSVD3, I2C3, 0x3354, N, N, N), 195562306a36Sopenharmony_ci PINGROUP(dap2_fs_pa2, I2S1, HDA, GMI, RSVD4, 0x3358, N, N, N), 195662306a36Sopenharmony_ci PINGROUP(dap2_din_pa4, I2S1, HDA, GMI, RSVD4, 0x335c, N, N, N), 195762306a36Sopenharmony_ci PINGROUP(dap2_dout_pa5, I2S1, HDA, GMI, RSVD4, 0x3360, N, N, N), 195862306a36Sopenharmony_ci PINGROUP(dap2_sclk_pa3, I2S1, HDA, GMI, RSVD4, 0x3364, N, N, N), 195962306a36Sopenharmony_ci PINGROUP(dvfs_pwm_px0, SPI6, CLDVFS, GMI, RSVD4, 0x3368, N, N, N), 196062306a36Sopenharmony_ci PINGROUP(gpio_x1_aud_px1, SPI6, RSVD2, GMI, RSVD4, 0x336c, N, N, N), 196162306a36Sopenharmony_ci PINGROUP(gpio_x3_aud_px3, SPI6, SPI1, GMI, RSVD4, 0x3370, N, N, N), 196262306a36Sopenharmony_ci PINGROUP(dvfs_clk_px2, SPI6, CLDVFS, GMI, RSVD4, 0x3374, N, N, N), 196362306a36Sopenharmony_ci PINGROUP(gpio_x4_aud_px4, GMI, SPI1, SPI2, DAP2, 0x3378, N, N, N), 196462306a36Sopenharmony_ci PINGROUP(gpio_x5_aud_px5, GMI, SPI1, SPI2, RSVD4, 0x337c, N, N, N), 196562306a36Sopenharmony_ci PINGROUP(gpio_x6_aud_px6, SPI6, SPI1, SPI2, GMI, 0x3380, N, N, N), 196662306a36Sopenharmony_ci PINGROUP(gpio_x7_aud_px7, RSVD1, SPI1, SPI2, RSVD4, 0x3384, N, N, N), 196762306a36Sopenharmony_ci PINGROUP(sdmmc3_clk_pa6, SDMMC3, RSVD2, RSVD3, SPI3, 0x3390, N, N, N), 196862306a36Sopenharmony_ci PINGROUP(sdmmc3_cmd_pa7, SDMMC3, PWM3, UARTA, SPI3, 0x3394, N, N, N), 196962306a36Sopenharmony_ci PINGROUP(sdmmc3_dat0_pb7, SDMMC3, RSVD2, RSVD3, SPI3, 0x3398, N, N, N), 197062306a36Sopenharmony_ci PINGROUP(sdmmc3_dat1_pb6, SDMMC3, PWM2, UARTA, SPI3, 0x339c, N, N, N), 197162306a36Sopenharmony_ci PINGROUP(sdmmc3_dat2_pb5, SDMMC3, PWM1, DISPLAYA, SPI3, 0x33a0, N, N, N), 197262306a36Sopenharmony_ci PINGROUP(sdmmc3_dat3_pb4, SDMMC3, PWM0, DISPLAYB, SPI3, 0x33a4, N, N, N), 197362306a36Sopenharmony_ci PINGROUP(pex_l0_rst_n_pdd1, PE0, RSVD2, RSVD3, RSVD4, 0x33bc, N, N, N), 197462306a36Sopenharmony_ci PINGROUP(pex_l0_clkreq_n_pdd2, PE0, RSVD2, RSVD3, RSVD4, 0x33c0, N, N, N), 197562306a36Sopenharmony_ci PINGROUP(pex_wake_n_pdd3, PE, RSVD2, RSVD3, RSVD4, 0x33c4, N, N, N), 197662306a36Sopenharmony_ci PINGROUP(pex_l1_rst_n_pdd5, PE1, RSVD2, RSVD3, RSVD4, 0x33cc, N, N, N), 197762306a36Sopenharmony_ci PINGROUP(pex_l1_clkreq_n_pdd6, PE1, RSVD2, RSVD3, RSVD4, 0x33d0, N, N, N), 197862306a36Sopenharmony_ci PINGROUP(hdmi_cec_pee3, CEC, RSVD2, RSVD3, RSVD4, 0x33e0, Y, N, N), 197962306a36Sopenharmony_ci PINGROUP(sdmmc1_wp_n_pv3, SDMMC1, CLK12, SPI4, UARTA, 0x33e4, N, N, N), 198062306a36Sopenharmony_ci PINGROUP(sdmmc3_cd_n_pv2, SDMMC3, OWR, RSVD3, RSVD4, 0x33e8, N, N, N), 198162306a36Sopenharmony_ci PINGROUP(gpio_w2_aud_pw2, SPI6, RSVD2, SPI2, I2C1, 0x33ec, N, N, N), 198262306a36Sopenharmony_ci PINGROUP(gpio_w3_aud_pw3, SPI6, SPI1, SPI2, I2C1, 0x33f0, N, N, N), 198362306a36Sopenharmony_ci PINGROUP(usb_vbus_en0_pn4, USB, RSVD2, RSVD3, RSVD4, 0x33f4, Y, N, N), 198462306a36Sopenharmony_ci PINGROUP(usb_vbus_en1_pn5, USB, RSVD2, RSVD3, RSVD4, 0x33f8, Y, N, N), 198562306a36Sopenharmony_ci PINGROUP(sdmmc3_clk_lb_in_pee5, SDMMC3, RSVD2, RSVD3, RSVD4, 0x33fc, N, N, N), 198662306a36Sopenharmony_ci PINGROUP(sdmmc3_clk_lb_out_pee4, SDMMC3, RSVD2, RSVD3, RSVD4, 0x3400, N, N, N), 198762306a36Sopenharmony_ci PINGROUP(gmi_clk_lb, SDMMC2, RSVD2, GMI, RSVD4, 0x3404, N, N, N), 198862306a36Sopenharmony_ci PINGROUP(reset_out_n, RSVD1, RSVD2, RSVD3, RESET_OUT_N, 0x3408, N, N, N), 198962306a36Sopenharmony_ci PINGROUP(kb_row16_pt0, KBC, RSVD2, RSVD3, UARTC, 0x340c, N, N, N), 199062306a36Sopenharmony_ci PINGROUP(kb_row17_pt1, KBC, RSVD2, RSVD3, UARTC, 0x3410, N, N, N), 199162306a36Sopenharmony_ci PINGROUP(usb_vbus_en2_pff1, USB, RSVD2, RSVD3, RSVD4, 0x3414, Y, N, N), 199262306a36Sopenharmony_ci PINGROUP(pff2, SATA, RSVD2, RSVD3, RSVD4, 0x3418, Y, N, N), 199362306a36Sopenharmony_ci PINGROUP(dp_hpd_pff0, DP, RSVD2, RSVD3, RSVD4, 0x3430, N, N, N), 199462306a36Sopenharmony_ci 199562306a36Sopenharmony_ci /* pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, slwf_b, slwf_w, drvtype */ 199662306a36Sopenharmony_ci DRV_PINGROUP(ao1, 0x868, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 199762306a36Sopenharmony_ci DRV_PINGROUP(ao2, 0x86c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 199862306a36Sopenharmony_ci DRV_PINGROUP(at1, 0x870, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y), 199962306a36Sopenharmony_ci DRV_PINGROUP(at2, 0x874, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y), 200062306a36Sopenharmony_ci DRV_PINGROUP(at3, 0x878, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y), 200162306a36Sopenharmony_ci DRV_PINGROUP(at4, 0x87c, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y), 200262306a36Sopenharmony_ci DRV_PINGROUP(at5, 0x880, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N), 200362306a36Sopenharmony_ci DRV_PINGROUP(cdev1, 0x884, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 200462306a36Sopenharmony_ci DRV_PINGROUP(cdev2, 0x888, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 200562306a36Sopenharmony_ci DRV_PINGROUP(dap1, 0x890, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 200662306a36Sopenharmony_ci DRV_PINGROUP(dap2, 0x894, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 200762306a36Sopenharmony_ci DRV_PINGROUP(dap3, 0x898, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 200862306a36Sopenharmony_ci DRV_PINGROUP(dap4, 0x89c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 200962306a36Sopenharmony_ci DRV_PINGROUP(dbg, 0x8a0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 201062306a36Sopenharmony_ci DRV_PINGROUP(sdio3, 0x8b0, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2, N), 201162306a36Sopenharmony_ci DRV_PINGROUP(spi, 0x8b4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 201262306a36Sopenharmony_ci DRV_PINGROUP(uaa, 0x8b8, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 201362306a36Sopenharmony_ci DRV_PINGROUP(uab, 0x8bc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 201462306a36Sopenharmony_ci DRV_PINGROUP(uart2, 0x8c0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 201562306a36Sopenharmony_ci DRV_PINGROUP(uart3, 0x8c4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 201662306a36Sopenharmony_ci DRV_PINGROUP(sdio1, 0x8ec, 2, 3, -1, 12, 7, 20, 7, 28, 2, 30, 2, N), 201762306a36Sopenharmony_ci DRV_PINGROUP(ddc, 0x8fc, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 201862306a36Sopenharmony_ci DRV_PINGROUP(gma, 0x900, 2, 3, 4, 14, 5, 20, 5, 28, 2, 30, 2, Y), 201962306a36Sopenharmony_ci DRV_PINGROUP(gme, 0x910, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N), 202062306a36Sopenharmony_ci DRV_PINGROUP(gmf, 0x914, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N), 202162306a36Sopenharmony_ci DRV_PINGROUP(gmg, 0x918, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N), 202262306a36Sopenharmony_ci DRV_PINGROUP(gmh, 0x91c, 2, 3, 4, 14, 5, 19, 5, 28, 2, 30, 2, N), 202362306a36Sopenharmony_ci DRV_PINGROUP(owr, 0x920, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 202462306a36Sopenharmony_ci DRV_PINGROUP(uda, 0x924, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 202562306a36Sopenharmony_ci DRV_PINGROUP(gpv, 0x928, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 202662306a36Sopenharmony_ci DRV_PINGROUP(dev3, 0x92c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 202762306a36Sopenharmony_ci DRV_PINGROUP(cec, 0x938, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 202862306a36Sopenharmony_ci DRV_PINGROUP(at6, 0x994, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y), 202962306a36Sopenharmony_ci DRV_PINGROUP(dap5, 0x998, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 203062306a36Sopenharmony_ci DRV_PINGROUP(usb_vbus_en, 0x99c, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 203162306a36Sopenharmony_ci DRV_PINGROUP(ao3, 0x9a8, 2, 3, 4, 12, 5, -1, -1, 28, 2, -1, -1, N), 203262306a36Sopenharmony_ci DRV_PINGROUP(ao0, 0x9b0, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 203362306a36Sopenharmony_ci DRV_PINGROUP(hv0, 0x9b4, 2, 3, 4, 12, 5, -1, -1, 28, 2, -1, -1, N), 203462306a36Sopenharmony_ci DRV_PINGROUP(sdio4, 0x9c4, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), 203562306a36Sopenharmony_ci DRV_PINGROUP(ao4, 0x9c8, 2, 3, 4, 12, 7, 20, 7, 28, 2, 30, 2, Y), 203662306a36Sopenharmony_ci 203762306a36Sopenharmony_ci /* pg_name, r, b, f0, f1 */ 203862306a36Sopenharmony_ci MIPI_PAD_CTRL_PINGROUP(dsi_b, 0x820, 1, CSI, DSI_B), 203962306a36Sopenharmony_ci}; 204062306a36Sopenharmony_ci 204162306a36Sopenharmony_cistatic const struct tegra_pinctrl_soc_data tegra124_pinctrl = { 204262306a36Sopenharmony_ci .ngpios = NUM_GPIOS, 204362306a36Sopenharmony_ci .gpio_compatible = "nvidia,tegra124-gpio", 204462306a36Sopenharmony_ci .pins = tegra124_pins, 204562306a36Sopenharmony_ci .npins = ARRAY_SIZE(tegra124_pins), 204662306a36Sopenharmony_ci .functions = tegra124_functions, 204762306a36Sopenharmony_ci .nfunctions = ARRAY_SIZE(tegra124_functions), 204862306a36Sopenharmony_ci .groups = tegra124_groups, 204962306a36Sopenharmony_ci .ngroups = ARRAY_SIZE(tegra124_groups), 205062306a36Sopenharmony_ci .hsm_in_mux = false, 205162306a36Sopenharmony_ci .schmitt_in_mux = false, 205262306a36Sopenharmony_ci .drvtype_in_mux = false, 205362306a36Sopenharmony_ci}; 205462306a36Sopenharmony_ci 205562306a36Sopenharmony_cistatic int tegra124_pinctrl_probe(struct platform_device *pdev) 205662306a36Sopenharmony_ci{ 205762306a36Sopenharmony_ci return tegra_pinctrl_probe(pdev, &tegra124_pinctrl); 205862306a36Sopenharmony_ci} 205962306a36Sopenharmony_ci 206062306a36Sopenharmony_cistatic const struct of_device_id tegra124_pinctrl_of_match[] = { 206162306a36Sopenharmony_ci { .compatible = "nvidia,tegra124-pinmux", }, 206262306a36Sopenharmony_ci { }, 206362306a36Sopenharmony_ci}; 206462306a36Sopenharmony_ci 206562306a36Sopenharmony_cistatic struct platform_driver tegra124_pinctrl_driver = { 206662306a36Sopenharmony_ci .driver = { 206762306a36Sopenharmony_ci .name = "tegra124-pinctrl", 206862306a36Sopenharmony_ci .of_match_table = tegra124_pinctrl_of_match, 206962306a36Sopenharmony_ci }, 207062306a36Sopenharmony_ci .probe = tegra124_pinctrl_probe, 207162306a36Sopenharmony_ci}; 207262306a36Sopenharmony_ci 207362306a36Sopenharmony_cistatic int __init tegra124_pinctrl_init(void) 207462306a36Sopenharmony_ci{ 207562306a36Sopenharmony_ci return platform_driver_register(&tegra124_pinctrl_driver); 207662306a36Sopenharmony_ci} 207762306a36Sopenharmony_ciarch_initcall(tegra124_pinctrl_init); 2078