1 // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #ifndef _SOC_GPIO_SIG_MAP_H_
15 #define _SOC_GPIO_SIG_MAP_H_
16 
17 #define SPICLK_IN_IDX			0
18 #define SPICLK_OUT_IDX			0
19 #define SPIQ_IN_IDX			1
20 #define SPIQ_OUT_IDX			1
21 #define SPID_IN_IDX			2
22 #define SPID_OUT_IDX			2
23 #define SPIHD_IN_IDX			3
24 #define SPIHD_OUT_IDX			3
25 #define SPIWP_IN_IDX			4
26 #define SPIWP_OUT_IDX			4
27 #define SPICS0_IN_IDX			5
28 #define SPICS0_OUT_IDX			5
29 #define SPICS1_IN_IDX			6
30 #define SPICS1_OUT_IDX			6
31 #define SPICS2_IN_IDX			7
32 #define SPICS2_OUT_IDX			7
33 #define HSPICLK_IN_IDX			8
34 #define HSPICLK_OUT_IDX			8
35 #define HSPIQ_IN_IDX			9
36 #define HSPIQ_OUT_IDX			9
37 #define HSPID_IN_IDX			10
38 #define HSPID_OUT_IDX			10
39 #define HSPICS0_IN_IDX			11
40 #define HSPICS0_OUT_IDX			11
41 #define HSPIHD_IN_IDX			12
42 #define HSPIHD_OUT_IDX			12
43 #define HSPIWP_IN_IDX			13
44 #define HSPIWP_OUT_IDX			13
45 #define U0RXD_IN_IDX			14
46 #define U0TXD_OUT_IDX			14
47 #define U0CTS_IN_IDX			15
48 #define U0RTS_OUT_IDX			15
49 #define U0DSR_IN_IDX			16
50 #define U0DTR_OUT_IDX			16
51 #define U1RXD_IN_IDX			17
52 #define U1TXD_OUT_IDX			17
53 #define U1CTS_IN_IDX			18
54 #define U1RTS_OUT_IDX			18
55 #define I2CM_SCL_O_IDX			19
56 #define I2CM_SDA_I_IDX			20
57 #define I2CM_SDA_O_IDX			20
58 #define EXT_I2C_SCL_O_IDX			21
59 #define EXT_I2C_SDA_O_IDX			22
60 #define EXT_I2C_SDA_I_IDX			22
61 #define I2S0O_BCK_IN_IDX			23
62 #define I2S0O_BCK_OUT_IDX			23
63 #define I2S1O_BCK_IN_IDX			24
64 #define I2S1O_BCK_OUT_IDX			24
65 #define I2S0O_WS_IN_IDX			25
66 #define I2S0O_WS_OUT_IDX			25
67 #define I2S1O_WS_IN_IDX			26
68 #define I2S1O_WS_OUT_IDX			26
69 #define I2S0I_BCK_IN_IDX			27
70 #define I2S0I_BCK_OUT_IDX			27
71 #define I2S0I_WS_IN_IDX			28
72 #define I2S0I_WS_OUT_IDX			28
73 #define I2CEXT0_SCL_IN_IDX			29
74 #define I2CEXT0_SCL_OUT_IDX			29
75 #define I2CEXT0_SDA_IN_IDX			30
76 #define I2CEXT0_SDA_OUT_IDX			30
77 #define PWM0_SYNC0_IN_IDX			31
78 #define SDIO_TOHOST_INT_OUT_IDX			31
79 #define PWM0_SYNC1_IN_IDX			32
80 #define PWM0_OUT0A_IDX			32
81 #define PWM0_SYNC2_IN_IDX			33
82 #define PWM0_OUT0B_IDX			33
83 #define PWM0_F0_IN_IDX			34
84 #define PWM0_OUT1A_IDX			34
85 #define PWM0_F1_IN_IDX			35
86 #define PWM0_OUT1B_IDX			35
87 #define PWM0_F2_IN_IDX			36
88 #define PWM0_OUT2A_IDX			36
89 #define GPIO_BT_ACTIVE_IDX			37
90 #define PWM0_OUT2B_IDX			37
91 #define GPIO_BT_PRIORITY_IDX			38
92 #define PCNT_SIG_CH0_IN0_IDX			39
93 #define PCNT_SIG_CH1_IN0_IDX			40
94 #define GPIO_WLAN_ACTIVE_IDX			40
95 #define PCNT_CTRL_CH0_IN0_IDX			41
96 #define BB_DIAG0_IDX			41
97 #define PCNT_CTRL_CH1_IN0_IDX			42
98 #define BB_DIAG1_IDX			42
99 #define PCNT_SIG_CH0_IN1_IDX			43
100 #define BB_DIAG2_IDX			43
101 #define PCNT_SIG_CH1_IN1_IDX			44
102 #define BB_DIAG3_IDX			44
103 #define PCNT_CTRL_CH0_IN1_IDX			45
104 #define BB_DIAG4_IDX			45
105 #define PCNT_CTRL_CH1_IN1_IDX			46
106 #define BB_DIAG5_IDX			46
107 #define PCNT_SIG_CH0_IN2_IDX			47
108 #define BB_DIAG6_IDX			47
109 #define PCNT_SIG_CH1_IN2_IDX			48
110 #define BB_DIAG7_IDX			48
111 #define PCNT_CTRL_CH0_IN2_IDX			49
112 #define BB_DIAG8_IDX			49
113 #define PCNT_CTRL_CH1_IN2_IDX			50
114 #define BB_DIAG9_IDX			50
115 #define PCNT_SIG_CH0_IN3_IDX			51
116 #define BB_DIAG10_IDX			51
117 #define PCNT_SIG_CH1_IN3_IDX			52
118 #define BB_DIAG11_IDX			52
119 #define PCNT_CTRL_CH0_IN3_IDX			53
120 #define BB_DIAG12_IDX			53
121 #define PCNT_CTRL_CH1_IN3_IDX			54
122 #define BB_DIAG13_IDX			54
123 #define PCNT_SIG_CH0_IN4_IDX			55
124 #define BB_DIAG14_IDX			55
125 #define PCNT_SIG_CH1_IN4_IDX			56
126 #define BB_DIAG15_IDX			56
127 #define PCNT_CTRL_CH0_IN4_IDX			57
128 #define BB_DIAG16_IDX			57
129 #define PCNT_CTRL_CH1_IN4_IDX			58
130 #define BB_DIAG17_IDX			58
131 #define BB_DIAG18_IDX			59
132 #define BB_DIAG19_IDX			60
133 #define HSPICS1_IN_IDX			61
134 #define HSPICS1_OUT_IDX			61
135 #define HSPICS2_IN_IDX			62
136 #define HSPICS2_OUT_IDX			62
137 #define VSPICLK_IN_IDX			63
138 #define VSPICLK_OUT_IDX			63
139 #define VSPIQ_IN_IDX			64
140 #define VSPIQ_OUT_IDX			64
141 #define VSPID_IN_IDX			65
142 #define VSPID_OUT_IDX			65
143 #define VSPIHD_IN_IDX			66
144 #define VSPIHD_OUT_IDX			66
145 #define VSPIWP_IN_IDX			67
146 #define VSPIWP_OUT_IDX			67
147 #define VSPICS0_IN_IDX			68
148 #define VSPICS0_OUT_IDX			68
149 #define VSPICS1_IN_IDX			69
150 #define VSPICS1_OUT_IDX			69
151 #define VSPICS2_IN_IDX			70
152 #define VSPICS2_OUT_IDX			70
153 #define PCNT_SIG_CH0_IN5_IDX			71
154 #define LEDC_HS_SIG_OUT0_IDX			71
155 #define PCNT_SIG_CH1_IN5_IDX			72
156 #define LEDC_HS_SIG_OUT1_IDX			72
157 #define PCNT_CTRL_CH0_IN5_IDX			73
158 #define LEDC_HS_SIG_OUT2_IDX			73
159 #define PCNT_CTRL_CH1_IN5_IDX			74
160 #define LEDC_HS_SIG_OUT3_IDX			74
161 #define PCNT_SIG_CH0_IN6_IDX			75
162 #define LEDC_HS_SIG_OUT4_IDX			75
163 #define PCNT_SIG_CH1_IN6_IDX			76
164 #define LEDC_HS_SIG_OUT5_IDX			76
165 #define PCNT_CTRL_CH0_IN6_IDX			77
166 #define LEDC_HS_SIG_OUT6_IDX			77
167 #define PCNT_CTRL_CH1_IN6_IDX			78
168 #define LEDC_HS_SIG_OUT7_IDX			78
169 #define PCNT_SIG_CH0_IN7_IDX			79
170 #define LEDC_LS_SIG_OUT0_IDX			79
171 #define PCNT_SIG_CH1_IN7_IDX			80
172 #define LEDC_LS_SIG_OUT1_IDX			80
173 #define PCNT_CTRL_CH0_IN7_IDX			81
174 #define LEDC_LS_SIG_OUT2_IDX			81
175 #define PCNT_CTRL_CH1_IN7_IDX			82
176 #define LEDC_LS_SIG_OUT3_IDX			82
177 #define RMT_SIG_IN0_IDX			83
178 #define LEDC_LS_SIG_OUT4_IDX			83
179 #define RMT_SIG_IN1_IDX			84
180 #define LEDC_LS_SIG_OUT5_IDX			84
181 #define RMT_SIG_IN2_IDX			85
182 #define LEDC_LS_SIG_OUT6_IDX			85
183 #define RMT_SIG_IN3_IDX			86
184 #define LEDC_LS_SIG_OUT7_IDX			86
185 #define RMT_SIG_IN4_IDX			87
186 #define RMT_SIG_OUT0_IDX			87
187 #define RMT_SIG_IN5_IDX			88
188 #define RMT_SIG_OUT1_IDX			88
189 #define RMT_SIG_IN6_IDX			89
190 #define RMT_SIG_OUT2_IDX			89
191 #define RMT_SIG_IN7_IDX			90
192 #define RMT_SIG_OUT3_IDX			90
193 #define RMT_SIG_OUT4_IDX			91
194 #define RMT_SIG_OUT5_IDX			92
195 #define EXT_ADC_START_IDX			93
196 #define RMT_SIG_OUT6_IDX			93
197 #define TWAI_RX_IDX			94
198 #define CAN_RX_IDX			TWAI_RX_IDX
199 #define RMT_SIG_OUT7_IDX			94
200 #define I2CEXT1_SCL_IN_IDX			95
201 #define I2CEXT1_SCL_OUT_IDX			95
202 #define I2CEXT1_SDA_IN_IDX			96
203 #define I2CEXT1_SDA_OUT_IDX			96
204 #define HOST_CARD_DETECT_N_1_IDX			97
205 #define HOST_CCMD_OD_PULLUP_EN_N_IDX			97
206 #define HOST_CARD_DETECT_N_2_IDX			98
207 #define HOST_RST_N_1_IDX			98
208 #define HOST_CARD_WRITE_PRT_1_IDX			99
209 #define HOST_RST_N_2_IDX			99
210 #define HOST_CARD_WRITE_PRT_2_IDX			100
211 #define GPIO_SD0_OUT_IDX			100
212 #define HOST_CARD_INT_N_1_IDX			101
213 #define GPIO_SD1_OUT_IDX			101
214 #define HOST_CARD_INT_N_2_IDX			102
215 #define GPIO_SD2_OUT_IDX			102
216 #define PWM1_SYNC0_IN_IDX			103
217 #define GPIO_SD3_OUT_IDX			103
218 #define PWM1_SYNC1_IN_IDX			104
219 #define GPIO_SD4_OUT_IDX			104
220 #define PWM1_SYNC2_IN_IDX			105
221 #define GPIO_SD5_OUT_IDX			105
222 #define PWM1_F0_IN_IDX			106
223 #define GPIO_SD6_OUT_IDX			106
224 #define PWM1_F1_IN_IDX			107
225 #define GPIO_SD7_OUT_IDX			107
226 #define PWM1_F2_IN_IDX			108
227 #define PWM1_OUT0A_IDX			108
228 #define PWM0_CAP0_IN_IDX			109
229 #define PWM1_OUT0B_IDX			109
230 #define PWM0_CAP1_IN_IDX			110
231 #define PWM1_OUT1A_IDX			110
232 #define PWM0_CAP2_IN_IDX			111
233 #define PWM1_OUT1B_IDX			111
234 #define PWM1_CAP0_IN_IDX			112
235 #define PWM1_OUT2A_IDX			112
236 #define PWM1_CAP1_IN_IDX			113
237 #define PWM1_OUT2B_IDX			113
238 #define PWM1_CAP2_IN_IDX			114
239 #define TWAI_TX_IDX			123
240 #define CAN_TX_IDX			TWAI_TX_IDX
241 #define TWAI_BUS_OFF_ON_IDX			124
242 #define CAN_BUS_OFF_ON_IDX			TWAI_BUS_OFF_ON_IDX
243 #define TWAI_CLKOUT_IDX			125
244 #define CAN_CLKOUT_IDX			TWAI_CLKOUT_IDX
245 #define SPID4_IN_IDX			128
246 #define SPID4_OUT_IDX			128
247 #define SPID5_IN_IDX			129
248 #define SPID5_OUT_IDX			129
249 #define SPID6_IN_IDX			130
250 #define SPID6_OUT_IDX			130
251 #define SPID7_IN_IDX			131
252 #define SPID7_OUT_IDX			131
253 #define HSPID4_IN_IDX			132
254 #define HSPID4_OUT_IDX			132
255 #define HSPID5_IN_IDX			133
256 #define HSPID5_OUT_IDX			133
257 #define HSPID6_IN_IDX			134
258 #define HSPID6_OUT_IDX			134
259 #define HSPID7_IN_IDX			135
260 #define HSPID7_OUT_IDX			135
261 #define VSPID4_IN_IDX			136
262 #define VSPID4_OUT_IDX			136
263 #define VSPID5_IN_IDX			137
264 #define VSPID5_OUT_IDX			137
265 #define VSPID6_IN_IDX			138
266 #define VSPID6_OUT_IDX			138
267 #define VSPID7_IN_IDX			139
268 #define VSPID7_OUT_IDX			139
269 #define I2S0I_DATA_IN0_IDX			140
270 #define I2S0O_DATA_OUT0_IDX			140
271 #define I2S0I_DATA_IN1_IDX			141
272 #define I2S0O_DATA_OUT1_IDX			141
273 #define I2S0I_DATA_IN2_IDX			142
274 #define I2S0O_DATA_OUT2_IDX			142
275 #define I2S0I_DATA_IN3_IDX			143
276 #define I2S0O_DATA_OUT3_IDX			143
277 #define I2S0I_DATA_IN4_IDX			144
278 #define I2S0O_DATA_OUT4_IDX			144
279 #define I2S0I_DATA_IN5_IDX			145
280 #define I2S0O_DATA_OUT5_IDX			145
281 #define I2S0I_DATA_IN6_IDX			146
282 #define I2S0O_DATA_OUT6_IDX			146
283 #define I2S0I_DATA_IN7_IDX			147
284 #define I2S0O_DATA_OUT7_IDX			147
285 #define I2S0I_DATA_IN8_IDX			148
286 #define I2S0O_DATA_OUT8_IDX			148
287 #define I2S0I_DATA_IN9_IDX			149
288 #define I2S0O_DATA_OUT9_IDX			149
289 #define I2S0I_DATA_IN10_IDX			150
290 #define I2S0O_DATA_OUT10_IDX			150
291 #define I2S0I_DATA_IN11_IDX			151
292 #define I2S0O_DATA_OUT11_IDX			151
293 #define I2S0I_DATA_IN12_IDX			152
294 #define I2S0O_DATA_OUT12_IDX			152
295 #define I2S0I_DATA_IN13_IDX			153
296 #define I2S0O_DATA_OUT13_IDX			153
297 #define I2S0I_DATA_IN14_IDX			154
298 #define I2S0O_DATA_OUT14_IDX			154
299 #define I2S0I_DATA_IN15_IDX			155
300 #define I2S0O_DATA_OUT15_IDX			155
301 #define I2S0O_DATA_OUT16_IDX			156
302 #define I2S0O_DATA_OUT17_IDX			157
303 #define I2S0O_DATA_OUT18_IDX			158
304 #define I2S0O_DATA_OUT19_IDX			159
305 #define I2S0O_DATA_OUT20_IDX			160
306 #define I2S0O_DATA_OUT21_IDX			161
307 #define I2S0O_DATA_OUT22_IDX			162
308 #define I2S0O_DATA_OUT23_IDX			163
309 #define I2S1I_BCK_IN_IDX			164
310 #define I2S1I_BCK_OUT_IDX			164
311 #define I2S1I_WS_IN_IDX			165
312 #define I2S1I_WS_OUT_IDX			165
313 #define I2S1I_DATA_IN0_IDX			166
314 #define I2S1O_DATA_OUT0_IDX			166
315 #define I2S1I_DATA_IN1_IDX			167
316 #define I2S1O_DATA_OUT1_IDX			167
317 #define I2S1I_DATA_IN2_IDX			168
318 #define I2S1O_DATA_OUT2_IDX			168
319 #define I2S1I_DATA_IN3_IDX			169
320 #define I2S1O_DATA_OUT3_IDX			169
321 #define I2S1I_DATA_IN4_IDX			170
322 #define I2S1O_DATA_OUT4_IDX			170
323 #define I2S1I_DATA_IN5_IDX			171
324 #define I2S1O_DATA_OUT5_IDX			171
325 #define I2S1I_DATA_IN6_IDX			172
326 #define I2S1O_DATA_OUT6_IDX			172
327 #define I2S1I_DATA_IN7_IDX			173
328 #define I2S1O_DATA_OUT7_IDX			173
329 #define I2S1I_DATA_IN8_IDX			174
330 #define I2S1O_DATA_OUT8_IDX			174
331 #define I2S1I_DATA_IN9_IDX			175
332 #define I2S1O_DATA_OUT9_IDX			175
333 #define I2S1I_DATA_IN10_IDX			176
334 #define I2S1O_DATA_OUT10_IDX			176
335 #define I2S1I_DATA_IN11_IDX			177
336 #define I2S1O_DATA_OUT11_IDX			177
337 #define I2S1I_DATA_IN12_IDX			178
338 #define I2S1O_DATA_OUT12_IDX			178
339 #define I2S1I_DATA_IN13_IDX			179
340 #define I2S1O_DATA_OUT13_IDX			179
341 #define I2S1I_DATA_IN14_IDX			180
342 #define I2S1O_DATA_OUT14_IDX			180
343 #define I2S1I_DATA_IN15_IDX			181
344 #define I2S1O_DATA_OUT15_IDX			181
345 #define I2S1O_DATA_OUT16_IDX			182
346 #define I2S1O_DATA_OUT17_IDX			183
347 #define I2S1O_DATA_OUT18_IDX			184
348 #define I2S1O_DATA_OUT19_IDX			185
349 #define I2S1O_DATA_OUT20_IDX			186
350 #define I2S1O_DATA_OUT21_IDX			187
351 #define I2S1O_DATA_OUT22_IDX			188
352 #define I2S1O_DATA_OUT23_IDX			189
353 #define I2S0I_H_SYNC_IDX			190
354 #define I2S0I_V_SYNC_IDX			191
355 #define I2S0I_H_ENABLE_IDX			192
356 #define I2S1I_H_SYNC_IDX			193
357 #define I2S1I_V_SYNC_IDX			194
358 #define I2S1I_H_ENABLE_IDX			195
359 #define U2RXD_IN_IDX			198
360 #define U2TXD_OUT_IDX			198
361 #define U2CTS_IN_IDX			199
362 #define U2RTS_OUT_IDX			199
363 #define EMAC_MDC_I_IDX			200
364 #define EMAC_MDC_O_IDX			200
365 #define EMAC_MDI_I_IDX			201
366 #define EMAC_MDO_O_IDX			201
367 #define EMAC_CRS_I_IDX			202
368 #define EMAC_CRS_O_IDX			202
369 #define EMAC_COL_I_IDX			203
370 #define EMAC_COL_O_IDX			203
371 #define PCMFSYNC_IN_IDX			204
372 #define BT_AUDIO0_IRQ_IDX			204
373 #define PCMCLK_IN_IDX			205
374 #define BT_AUDIO1_IRQ_IDX			205
375 #define PCMDIN_IDX			206
376 #define BT_AUDIO2_IRQ_IDX			206
377 #define BLE_AUDIO0_IRQ_IDX			207
378 #define BLE_AUDIO1_IRQ_IDX			208
379 #define BLE_AUDIO2_IRQ_IDX			209
380 #define PCMFSYNC_OUT_IDX			210
381 #define PCMCLK_OUT_IDX			211
382 #define PCMDOUT_IDX			212
383 #define BLE_AUDIO_SYNC0_P_IDX			213
384 #define BLE_AUDIO_SYNC1_P_IDX			214
385 #define BLE_AUDIO_SYNC2_P_IDX			215
386 #define ANT_SEL0_IDX			216
387 #define ANT_SEL1_IDX			217
388 #define ANT_SEL2_IDX			218
389 #define ANT_SEL3_IDX			219
390 #define ANT_SEL4_IDX			220
391 #define ANT_SEL5_IDX			221
392 #define ANT_SEL6_IDX			222
393 #define ANT_SEL7_IDX			223
394 #define SIG_IN_FUNC224_IDX			224
395 #define SIG_IN_FUNC225_IDX			225
396 #define SIG_IN_FUNC226_IDX			226
397 #define SIG_IN_FUNC227_IDX			227
398 #define SIG_IN_FUNC228_IDX			228
399 #define SIG_GPIO_OUT_IDX            256
400 #endif /* _SOC_GPIO_SIG_MAP_H_ */
401