blob: 0df69e3ab34b0f9125a58f61d1418106a4570631 [file] [log] [blame]
Tom Warren2fc65e22013-01-28 13:32:07 +00001/*
Stephen Warren1fa3a632014-03-21 12:29:00 -06002 * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
Tom Warren2fc65e22013-01-28 13:32:07 +00003 *
Stephen Warren1fa3a632014-03-21 12:29:00 -06004 * SPDX-License-Identifier: GPL-2.0+
Tom Warren2fc65e22013-01-28 13:32:07 +00005 */
6
7#ifndef _TEGRA114_PINMUX_H_
8#define _TEGRA114_PINMUX_H_
9
Tom Warren2fc65e22013-01-28 13:32:07 +000010enum pmux_pingrp {
Stephen Warren1fa3a632014-03-21 12:29:00 -060011 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_P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_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,
Stephen Warrendfb42fc2014-03-21 12:28:56 -0600188 PMUX_PINGRP_COUNT,
Tom Warren2fc65e22013-01-28 13:32:07 +0000189};
190
Stephen Warrendfb42fc2014-03-21 12:28:56 -0600191enum pmux_drvgrp {
Stephen Warren1fa3a632014-03-21 12:29:00 -0600192 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,
Stephen Warrendfb42fc2014-03-21 12:28:56 -0600230 PMUX_DRVGRP_COUNT,
Tom Warren2fc65e22013-01-28 13:32:07 +0000231};
232
Tom Warren2fc65e22013-01-28 13:32:07 +0000233enum pmux_func {
Tom Warren2fc65e22013-01-28 13:32:07 +0000234 PMUX_FUNC_BLINK,
235 PMUX_FUNC_CEC,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600236 PMUX_FUNC_CLDVFS,
237 PMUX_FUNC_CLK,
Tom Warren2fc65e22013-01-28 13:32:07 +0000238 PMUX_FUNC_CLK12,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600239 PMUX_FUNC_CPU,
Tom Warren2fc65e22013-01-28 13:32:07 +0000240 PMUX_FUNC_DAP,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600241 PMUX_FUNC_DAP1,
242 PMUX_FUNC_DAP2,
Tom Warren2fc65e22013-01-28 13:32:07 +0000243 PMUX_FUNC_DEV3,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600244 PMUX_FUNC_DISPLAYA,
245 PMUX_FUNC_DISPLAYA_ALT,
246 PMUX_FUNC_DISPLAYB,
Tom Warren2fc65e22013-01-28 13:32:07 +0000247 PMUX_FUNC_DTV,
Tom Warren2fc65e22013-01-28 13:32:07 +0000248 PMUX_FUNC_EMC_DLL,
249 PMUX_FUNC_EXTPERIPH1,
250 PMUX_FUNC_EXTPERIPH2,
251 PMUX_FUNC_EXTPERIPH3,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600252 PMUX_FUNC_GMI,
Tom Warren2fc65e22013-01-28 13:32:07 +0000253 PMUX_FUNC_GMI_ALT,
254 PMUX_FUNC_HDA,
255 PMUX_FUNC_HSI,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600256 PMUX_FUNC_I2C1,
257 PMUX_FUNC_I2C2,
258 PMUX_FUNC_I2C3,
Tom Warren2fc65e22013-01-28 13:32:07 +0000259 PMUX_FUNC_I2C4,
Tom Warren2fc65e22013-01-28 13:32:07 +0000260 PMUX_FUNC_I2CPWR,
261 PMUX_FUNC_I2S0,
262 PMUX_FUNC_I2S1,
263 PMUX_FUNC_I2S2,
264 PMUX_FUNC_I2S3,
265 PMUX_FUNC_I2S4,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600266 PMUX_FUNC_IRDA,
267 PMUX_FUNC_KBC,
268 PMUX_FUNC_NAND,
Tom Warren2fc65e22013-01-28 13:32:07 +0000269 PMUX_FUNC_NAND_ALT,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600270 PMUX_FUNC_OWR,
271 PMUX_FUNC_PMI,
Tom Warren2fc65e22013-01-28 13:32:07 +0000272 PMUX_FUNC_PWM0,
273 PMUX_FUNC_PWM1,
274 PMUX_FUNC_PWM2,
275 PMUX_FUNC_PWM3,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600276 PMUX_FUNC_PWRON,
277 PMUX_FUNC_RESET_OUT_N,
278 PMUX_FUNC_RTCK,
279 PMUX_FUNC_SDMMC1,
280 PMUX_FUNC_SDMMC2,
281 PMUX_FUNC_SDMMC3,
282 PMUX_FUNC_SDMMC4,
283 PMUX_FUNC_SOC,
284 PMUX_FUNC_SPDIF,
285 PMUX_FUNC_SPI1,
286 PMUX_FUNC_SPI2,
287 PMUX_FUNC_SPI3,
288 PMUX_FUNC_SPI4,
Tom Warren2fc65e22013-01-28 13:32:07 +0000289 PMUX_FUNC_SPI5,
290 PMUX_FUNC_SPI6,
291 PMUX_FUNC_SYSCLK,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600292 PMUX_FUNC_TRACE,
293 PMUX_FUNC_UARTA,
294 PMUX_FUNC_UARTB,
295 PMUX_FUNC_UARTC,
296 PMUX_FUNC_UARTD,
297 PMUX_FUNC_ULPI,
298 PMUX_FUNC_USB,
Tom Warren2fc65e22013-01-28 13:32:07 +0000299 PMUX_FUNC_VGP1,
300 PMUX_FUNC_VGP2,
301 PMUX_FUNC_VGP3,
302 PMUX_FUNC_VGP4,
303 PMUX_FUNC_VGP5,
304 PMUX_FUNC_VGP6,
Stephen Warren1fa3a632014-03-21 12:29:00 -0600305 PMUX_FUNC_VI,
306 PMUX_FUNC_VI_ALT1,
307 PMUX_FUNC_VI_ALT3,
Stephen Warrene2969952014-03-21 12:28:54 -0600308 PMUX_FUNC_COUNT,
Tom Warren2fc65e22013-01-28 13:32:07 +0000309 PMUX_FUNC_RSVD1 = 0x8000,
310 PMUX_FUNC_RSVD2 = 0x8001,
311 PMUX_FUNC_RSVD3 = 0x8002,
312 PMUX_FUNC_RSVD4 = 0x8003,
313};
314
Stephen Warrene2969952014-03-21 12:28:54 -0600315#define TEGRA_PMX_HAS_PIN_IO_BIT_ETC
316#define TEGRA_PMX_HAS_RCV_SEL
Stephen Warrendfb42fc2014-03-21 12:28:56 -0600317#define TEGRA_PMX_HAS_DRVGRPS
Stephen Warrene2969952014-03-21 12:28:54 -0600318#include <asm/arch-tegra/pinmux.h>
Tom Warren2fc65e22013-01-28 13:32:07 +0000319
Stephen Warrene2969952014-03-21 12:28:54 -0600320#endif /* _TEGRA114_PINMUX_H_ */