1 /* 2 * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef _TEGRA114_PINMUX_H_ 8 #define _TEGRA114_PINMUX_H_ 9 10 enum pmux_pingrp { 11 PMUX_PINGRP_ULPI_DATA0_PO1, 12 PMUX_PINGRP_ULPI_DATA1_PO2, 13 PMUX_PINGRP_ULPI_DATA2_PO3, 14 PMUX_PINGRP_ULPI_DATA3_PO4, 15 PMUX_PINGRP_ULPI_DATA4_PO5, 16 PMUX_PINGRP_ULPI_DATA5_PO6, 17 PMUX_PINGRP_ULPI_DATA6_PO7, 18 PMUX_PINGRP_ULPI_DATA7_PO0, 19 PMUX_PINGRP_ULPI_CLK_PY0, 20 PMUX_PINGRP_ULPI_DIR_PY1, 21 PMUX_PINGRP_ULPI_NXT_PY2, 22 PMUX_PINGRP_ULPI_STP_PY3, 23 PMUX_PINGRP_DAP3_FS_PP0, 24 PMUX_PINGRP_DAP3_DIN_PP1, 25 PMUX_PINGRP_DAP3_DOUT_PP2, 26 PMUX_PINGRP_DAP3_SCLK_PP3, 27 PMUX_PINGRP_PV0, 28 PMUX_PINGRP_PV1, 29 PMUX_PINGRP_SDMMC1_CLK_PZ0, 30 PMUX_PINGRP_SDMMC1_CMD_PZ1, 31 PMUX_PINGRP_SDMMC1_DAT3_PY4, 32 PMUX_PINGRP_SDMMC1_DAT2_PY5, 33 PMUX_PINGRP_SDMMC1_DAT1_PY6, 34 PMUX_PINGRP_SDMMC1_DAT0_PY7, 35 PMUX_PINGRP_CLK2_OUT_PW5 = (0x68 / 4), 36 PMUX_PINGRP_CLK2_REQ_PCC5, 37 PMUX_PINGRP_HDMI_INT_PN7 = (0x110 / 4), 38 PMUX_PINGRP_DDC_SCL_PV4, 39 PMUX_PINGRP_DDC_SDA_PV5, 40 PMUX_PINGRP_UART2_RXD_PC3 = (0x164 / 4), 41 PMUX_PINGRP_UART2_TXD_PC2, 42 PMUX_PINGR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 PMUX_PINGRP_GMI_AD7_PG7, 83 PMUX_PINGRP_GMI_AD8_PH0, 84 PMUX_PINGRP_GMI_AD9_PH1, 85 PMUX_PINGRP_GMI_AD10_PH2, 86 PMUX_PINGRP_GMI_AD11_PH3, 87 PMUX_PINGRP_GMI_AD12_PH4, 88 PMUX_PINGRP_GMI_AD13_PH5, 89 PMUX_PINGRP_GMI_AD14_PH6, 90 PMUX_PINGRP_GMI_AD15_PH7, 91 PMUX_PINGRP_GMI_A16_PJ7, 92 PMUX_PINGRP_GMI_A17_PB0, 93 PMUX_PINGRP_GMI_A18_PB1, 94 PMUX_PINGRP_GMI_A19_PK7, 95 PMUX_PINGRP_GMI_WR_N_PI0, 96 PMUX_PINGRP_GMI_OE_N_PI1, 97 PMUX_PINGRP_GMI_DQS_P_PJ3, 98 PMUX_PINGRP_GMI_RST_N_PI4, 99 PMUX_PINGRP_GEN2_I2C_SCL_PT5, 100 PMUX_PINGRP_GEN2_I2C_SDA_PT6, 101 PMUX_PINGRP_SDMMC4_CLK_PCC4, 102 PMUX_PINGRP_SDMMC4_CMD_PT7, 103 PMUX_PINGRP_SDMMC4_DAT0_PAA0, 104 PMUX_PINGRP_SDMMC4_DAT1_PAA1, 105 PMUX_PINGRP_SDMMC4_DAT2_PAA2, 106 PMUX_PINGRP_SDMMC4_DAT3_PAA3, 107 PMUX_PINGRP_SDMMC4_DAT4_PAA4, 108 PMUX_PINGRP_SDMMC4_DAT5_PAA5, 109 PMUX_PINGRP_SDMMC4_DAT6_PAA6, 110 PMUX_PINGRP_SDMMC4_DAT7_PAA7, 111 PMUX_PINGRP_CAM_MCLK_PCC0 = (0x284 / 4), 112 PMUX_PINGRP_PCC1, 113 PMUX_PINGRP_PBB0, 114 PMUX_PINGRP_CAM_I2C_SCL_PBB1, 115 PMUX_PINGRP_CAM_I2C_SDA_PBB2, 116 PMUX_PINGRP_PBB3, 117 PMUX_PINGRP_PBB4, 118 PMUX_PINGRP_PBB5, 119 PMUX_PINGRP_PBB6, 120 PMUX_PINGRP_PBB7, 121 PMUX_PINGRP_PCC2, 122 PMUX_PINGRP_JTAG_RTCK, 123 PMUX_PINGRP_PWR_I2C_SCL_PZ6, 124 PMUX_PINGRP_PWR_I2C_SDA_PZ7, 125 PMUX_PINGRP_KB_ROW0_PR0, 126 PMUX_PINGRP_KB_ROW1_PR1, 127 PMUX_PINGRP_KB_ROW2_PR2, 128 PMUX_PINGRP_KB_ROW3_PR3, 129 PMUX_PINGRP_KB_ROW4_PR4, 130 PMUX_PINGRP_KB_ROW5_PR5, 131 PMUX_PINGRP_KB_ROW6_PR6, 132 PMUX_PINGRP_KB_ROW7_PR7, 133 PMUX_PINGRP_KB_ROW8_PS0, 134 PMUX_PINGRP_KB_ROW9_PS1, 135 PMUX_PINGRP_KB_ROW10_PS2, 136 PMUX_PINGRP_KB_COL0_PQ0 = (0x2fc / 4), 137 PMUX_PINGRP_KB_COL1_PQ1, 138 PMUX_PINGRP_KB_COL2_PQ2, 139 PMUX_PINGRP_KB_COL3_PQ3, 140 PMUX_PINGRP_KB_COL4_PQ4, 141 PMUX_PINGRP_KB_COL5_PQ5, 142 PMUX_PINGRP_KB_COL6_PQ6, 143 PMUX_PINGRP_KB_COL7_PQ7, 144 PMUX_PINGRP_CLK_32K_OUT_PA0, 145 PMUX_PINGRP_SYS_CLK_REQ_PZ5, 146 PMUX_PINGRP_CORE_PWR_REQ, 147 PMUX_PINGRP_CPU_PWR_REQ, 148 PMUX_PINGRP_PWR_INT_N, 149 PMUX_PINGRP_CLK_32K_IN, 150 PMUX_PINGRP_OWR, 151 PMUX_PINGRP_DAP1_FS_PN0, 152 PMUX_PINGRP_DAP1_DIN_PN1, 153 PMUX_PINGRP_DAP1_DOUT_PN2, 154 PMUX_PINGRP_DAP1_SCLK_PN3, 155 PMUX_PINGRP_CLK1_REQ_PEE2, 156 PMUX_PINGRP_CLK1_OUT_PW4, 157 PMUX_PINGRP_SPDIF_IN_PK6, 158 PMUX_PINGRP_SPDIF_OUT_PK5, 159 PMUX_PINGRP_DAP2_FS_PA2, 160 PMUX_PINGRP_DAP2_DIN_PA4, 161 PMUX_PINGRP_DAP2_DOUT_PA5, 162 PMUX_PINGRP_DAP2_SCLK_PA3, 163 PMUX_PINGRP_DVFS_PWM_PX0, 164 PMUX_PINGRP_GPIO_X1_AUD_PX1, 165 PMUX_PINGRP_GPIO_X3_AUD_PX3, 166 PMUX_PINGRP_DVFS_CLK_PX2, 167 PMUX_PINGRP_GPIO_X4_AUD_PX4, 168 PMUX_PINGRP_GPIO_X5_AUD_PX5, 169 PMUX_PINGRP_GPIO_X6_AUD_PX6, 170 PMUX_PINGRP_GPIO_X7_AUD_PX7, 171 PMUX_PINGRP_SDMMC3_CLK_PA6 = (0x390 / 4), 172 PMUX_PINGRP_SDMMC3_CMD_PA7, 173 PMUX_PINGRP_SDMMC3_DAT0_PB7, 174 PMUX_PINGRP_SDMMC3_DAT1_PB6, 175 PMUX_PINGRP_SDMMC3_DAT2_PB5, 176 PMUX_PINGRP_SDMMC3_DAT3_PB4, 177 PMUX_PINGRP_HDMI_CEC_PEE3 = (0x3e0 / 4), 178 PMUX_PINGRP_SDMMC1_WP_N_PV3, 179 PMUX_PINGRP_SDMMC3_CD_N_PV2, 180 PMUX_PINGRP_GPIO_W2_AUD_PW2, 181 PMUX_PINGRP_GPIO_W3_AUD_PW3, 182 PMUX_PINGRP_USB_VBUS_EN0_PN4, 183 PMUX_PINGRP_USB_VBUS_EN1_PN5, 184 PMUX_PINGRP_SDMMC3_CLK_LB_IN_PEE5, 185 PMUX_PINGRP_SDMMC3_CLK_LB_OUT_PEE4, 186 PMUX_PINGRP_GMI_CLK_LB, 187 PMUX_PINGRP_RESET_OUT_N, 188 PMUX_PINGRP_COUNT, 189 }; 190 191 enum pmux_drvgrp { 192 PMUX_DRVGRP_AO1, 193 PMUX_DRVGRP_AO2, 194 PMUX_DRVGRP_AT1, 195 PMUX_DRVGRP_AT2, 196 PMUX_DRVGRP_AT3, 197 PMUX_DRVGRP_AT4, 198 PMUX_DRVGRP_AT5, 199 PMUX_DRVGRP_CDEV1, 200 PMUX_DRVGRP_CDEV2, 201 PMUX_DRVGRP_DAP1 = (0x28 / 4), 202 PMUX_DRVGRP_DAP2, 203 PMUX_DRVGRP_DAP3, 204 PMUX_DRVGRP_DAP4, 205 PMUX_DRVGRP_DBG, 206 PMUX_DRVGRP_SDIO3 = (0x48 / 4), 207 PMUX_DRVGRP_SPI, 208 PMUX_DRVGRP_UAA, 209 PMUX_DRVGRP_UAB, 210 PMUX_DRVGRP_UART2, 211 PMUX_DRVGRP_UART3, 212 PMUX_DRVGRP_SDIO1 = (0x84 / 4), 213 PMUX_DRVGRP_DDC = (0x94 / 4), 214 PMUX_DRVGRP_GMA, 215 PMUX_DRVGRP_GME = (0xa8 / 4), 216 PMUX_DRVGRP_GMF, 217 PMUX_DRVGRP_GMG, 218 PMUX_DRVGRP_GMH, 219 PMUX_DRVGRP_OWR, 220 PMUX_DRVGRP_UDA, 221 PMUX_DRVGRP_DEV3 = (0xc4 / 4), 222 PMUX_DRVGRP_CEC = (0xd0 / 4), 223 PMUX_DRVGRP_AT6 = (0x12c / 4), 224 PMUX_DRVGRP_DAP5, 225 PMUX_DRVGRP_USB_VBUS_EN, 226 PMUX_DRVGRP_AO3, 227 PMUX_DRVGRP_HV0, 228 PMUX_DRVGRP_SDIO4, 229 PMUX_DRVGRP_AO0, 230 PMUX_DRVGRP_COUNT, 231 }; 232 233 enum pmux_func { 234 PMUX_FUNC_DEFAULT, 235 PMUX_FUNC_BLINK, 236 PMUX_FUNC_CEC, 237 PMUX_FUNC_CLDVFS, 238 PMUX_FUNC_CLK, 239 PMUX_FUNC_CLK12, 240 PMUX_FUNC_CPU, 241 PMUX_FUNC_DAP, 242 PMUX_FUNC_DAP1, 243 PMUX_FUNC_DAP2, 244 PMUX_FUNC_DEV3, 245 PMUX_FUNC_DISPLAYA, 246 PMUX_FUNC_DISPLAYA_ALT, 247 PMUX_FUNC_DISPLAYB, 248 PMUX_FUNC_DTV, 249 PMUX_FUNC_EMC_DLL, 250 PMUX_FUNC_EXTPERIPH1, 251 PMUX_FUNC_EXTPERIPH2, 252 PMUX_FUNC_EXTPERIPH3, 253 PMUX_FUNC_GMI, 254 PMUX_FUNC_GMI_ALT, 255 PMUX_FUNC_HDA, 256 PMUX_FUNC_HSI, 257 PMUX_FUNC_I2C1, 258 PMUX_FUNC_I2C2, 259 PMUX_FUNC_I2C3, 260 PMUX_FUNC_I2C4, 261 PMUX_FUNC_I2CPWR, 262 PMUX_FUNC_I2S0, 263 PMUX_FUNC_I2S1, 264 PMUX_FUNC_I2S2, 265 PMUX_FUNC_I2S3, 266 PMUX_FUNC_I2S4, 267 PMUX_FUNC_IRDA, 268 PMUX_FUNC_KBC, 269 PMUX_FUNC_NAND, 270 PMUX_FUNC_NAND_ALT, 271 PMUX_FUNC_OWR, 272 PMUX_FUNC_PMI, 273 PMUX_FUNC_PWM0, 274 PMUX_FUNC_PWM1, 275 PMUX_FUNC_PWM2, 276 PMUX_FUNC_PWM3, 277 PMUX_FUNC_PWRON, 278 PMUX_FUNC_RESET_OUT_N, 279 PMUX_FUNC_RTCK, 280 PMUX_FUNC_SDMMC1, 281 PMUX_FUNC_SDMMC2, 282 PMUX_FUNC_SDMMC3, 283 PMUX_FUNC_SDMMC4, 284 PMUX_FUNC_SOC, 285 PMUX_FUNC_SPDIF, 286 PMUX_FUNC_SPI1, 287 PMUX_FUNC_SPI2, 288 PMUX_FUNC_SPI3, 289 PMUX_FUNC_SPI4, 290 PMUX_FUNC_SPI5, 291 PMUX_FUNC_SPI6, 292 PMUX_FUNC_SYSCLK, 293 PMUX_FUNC_TRACE, 294 PMUX_FUNC_UARTA, 295 PMUX_FUNC_UARTB, 296 PMUX_FUNC_UARTC, 297 PMUX_FUNC_UARTD, 298 PMUX_FUNC_ULPI, 299 PMUX_FUNC_USB, 300 PMUX_FUNC_VGP1, 301 PMUX_FUNC_VGP2, 302 PMUX_FUNC_VGP3, 303 PMUX_FUNC_VGP4, 304 PMUX_FUNC_VGP5, 305 PMUX_FUNC_VGP6, 306 PMUX_FUNC_VI, 307 PMUX_FUNC_VI_ALT1, 308 PMUX_FUNC_VI_ALT3, 309 PMUX_FUNC_RSVD1, 310 PMUX_FUNC_RSVD2, 311 PMUX_FUNC_RSVD3, 312 PMUX_FUNC_RSVD4, 313 PMUX_FUNC_COUNT, 314 }; 315 316 #define TEGRA_PMX_HAS_PIN_IO_BIT_ETC 317 #define TEGRA_PMX_HAS_RCV_SEL 318 #define TEGRA_PMX_HAS_DRVGRPS 319 #include <asm/arch-tegra/pinmux.h> 320 321 #endif /* _TEGRA114_PINMUX_H_ */ 322