1 // Copyright 2017-2018 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 #define SPICLK_OUT_IDX                SPICLK_OUT_MUX_IDX
17 #define CLK_I2S_IDX                   CLK_I2S_MUX_IDX
18 #define FSPICLK_OUT_IDX               FSPICLK_OUT_MUX_IDX
19 
20 #define SPIQ_IN_IDX                   0
21 #define SPIQ_OUT_IDX                  0
22 #define SPID_IN_IDX                   1
23 #define SPID_OUT_IDX                  1
24 #define SPIHD_IN_IDX                  2
25 #define SPIHD_OUT_IDX                 2
26 #define SPIWP_IN_IDX                  3
27 #define SPIWP_OUT_IDX                 3
28 #define SPICLK_OUT_MUX_IDX            4
29 #define SPICS0_OUT_IDX                5
30 #define SPICS1_OUT_IDX                6
31 #define SPID4_IN_IDX                  7
32 #define SPID4_OUT_IDX                 7
33 #define SPID5_IN_IDX                  8
34 #define SPID5_OUT_IDX                 8
35 #define SPID6_IN_IDX                  9
36 #define SPID6_OUT_IDX                 9
37 #define SPID7_IN_IDX                  10
38 #define SPID7_OUT_IDX                 10
39 #define SPIDQS_IN_IDX                 11
40 #define SPIDQS_OUT_IDX                11
41 #define U0RXD_IN_IDX                  14
42 #define U0TXD_OUT_IDX                 14
43 #define U0CTS_IN_IDX                  15
44 #define U0RTS_OUT_IDX                 15
45 #define U0DSR_IN_IDX                  16
46 #define U0DTR_OUT_IDX                 16
47 #define U1RXD_IN_IDX                  17
48 #define U1TXD_OUT_IDX                 17
49 #define U1CTS_IN_IDX                  18
50 #define U1RTS_OUT_IDX                 18
51 #define U1DSR_IN_IDX                  21
52 #define U1DTR_OUT_IDX                 21
53 #define I2S0O_BCK_IN_IDX              23
54 #define I2S0O_BCK_OUT_IDX             23
55 #define I2S0O_WS_IN_IDX               25
56 #define I2S0O_WS_OUT_IDX              25
57 #define I2S0I_BCK_IN_IDX              27
58 #define I2S0I_BCK_OUT_IDX             27
59 #define I2S0I_WS_IN_IDX               28
60 #define I2S0I_WS_OUT_IDX              28
61 #define I2CEXT0_SCL_IN_IDX            29
62 #define I2CEXT0_SCL_OUT_IDX           29
63 #define I2CEXT0_SDA_IN_IDX            30
64 #define I2CEXT0_SDA_OUT_IDX           30
65 #define SDIO_TOHOST_INT_OUT_IDX       31
66 #define GPIO_BT_ACTIVE_IDX            37
67 #define GPIO_BT_PRIORITY_IDX          38
68 #define PCNT_SIG_CH0_IN0_IDX          39
69 #define GPIO_WLAN_PRIO_IDX            39
70 #define PCNT_SIG_CH1_IN0_IDX          40
71 #define GPIO_WLAN_ACTIVE_IDX          40
72 #define PCNT_CTRL_CH0_IN0_IDX         41
73 #define BB_DIAG0_IDX                  41
74 #define PCNT_CTRL_CH1_IN0_IDX         42
75 #define BB_DIAG1_IDX                  42
76 #define PCNT_SIG_CH0_IN1_IDX          43
77 #define BB_DIAG2_IDX                  43
78 #define PCNT_SIG_CH1_IN1_IDX          44
79 #define BB_DIAG3_IDX                  44
80 #define PCNT_CTRL_CH0_IN1_IDX         45
81 #define BB_DIAG4_IDX                  45
82 #define PCNT_CTRL_CH1_IN1_IDX         46
83 #define BB_DIAG5_IDX                  46
84 #define PCNT_SIG_CH0_IN2_IDX          47
85 #define BB_DIAG6_IDX                  47
86 #define PCNT_SIG_CH1_IN2_IDX          48
87 #define BB_DIAG7_IDX                  48
88 #define PCNT_CTRL_CH0_IN2_IDX         49
89 #define BB_DIAG8_IDX                  49
90 #define PCNT_CTRL_CH1_IN2_IDX         50
91 #define BB_DIAG9_IDX                  50
92 #define PCNT_SIG_CH0_IN3_IDX          51
93 #define BB_DIAG10_IDX                 51
94 #define PCNT_SIG_CH1_IN3_IDX          52
95 #define BB_DIAG11_IDX                 52
96 #define PCNT_CTRL_CH0_IN3_IDX         53
97 #define BB_DIAG12_IDX                 53
98 #define PCNT_CTRL_CH1_IN3_IDX         54
99 #define BB_DIAG13_IDX                 54
100 #define BB_DIAG14_IDX                 55
101 #define BB_DIAG15_IDX                 56
102 #define BB_DIAG16_IDX                 57
103 #define BB_DIAG17_IDX                 58
104 #define BB_DIAG18_IDX                 59
105 #define BB_DIAG19_IDX                 60
106 #define USB_EXTPHY_VP_IDX             61
107 #define USB_EXTPHY_OEN_IDX            61
108 #define USB_EXTPHY_VM_IDX             62
109 #define USB_EXTPHY_SPEED_IDX          62
110 #define USB_EXTPHY_RCV_IDX            63
111 #define USB_EXTPHY_VPO_IDX            63
112 #define USB_OTG_IDDIG_IN_IDX          64
113 #define USB_EXTPHY_VMO_IDX            64
114 #define USB_OTG_AVALID_IN_IDX         65
115 #define USB_EXTPHY_SUSPND_IDX         65
116 #define USB_SRP_BVALID_IN_IDX         66
117 #define USB_OTG_IDPULLUP_IDX          66
118 #define USB_OTG_VBUSVALID_IN_IDX      67
119 #define USB_OTG_DPPULLDOWN_IDX        67
120 #define USB_SRP_SESSEND_IN_IDX        68
121 #define USB_OTG_DMPULLDOWN_IDX        68
122 #define USB_OTG_DRVVBUS_IDX           69
123 #define USB_SRP_CHRGVBUS_IDX          70
124 #define USB_SRP_DISCHRGVBUS_IDX       71
125 #define SPI3_CLK_IN_IDX               72
126 #define SPI3_CLK_OUT_MUX_IDX          72
127 #define SPI3_Q_IN_IDX                 73
128 #define SPI3_Q_OUT_IDX                73
129 #define SPI3_D_IN_IDX                 74
130 #define SPI3_D_OUT_IDX                74
131 #define SPI3_HD_IN_IDX                75
132 #define SPI3_HD_OUT_IDX               75
133 #define SPI3_CS0_IN_IDX               76
134 #define SPI3_CS0_OUT_IDX              76
135 #define SPI3_CS1_OUT_IDX              77
136 #define SPI3_CS2_OUT_IDX              78
137 #define LEDC_LS_SIG_OUT0_IDX          79
138 #define LEDC_LS_SIG_OUT1_IDX          80
139 #define LEDC_LS_SIG_OUT2_IDX          81
140 #define LEDC_LS_SIG_OUT3_IDX          82
141 #define RMT_SIG_IN0_IDX               83
142 #define LEDC_LS_SIG_OUT4_IDX          83
143 #define RMT_SIG_IN1_IDX               84
144 #define LEDC_LS_SIG_OUT5_IDX          84
145 #define RMT_SIG_IN2_IDX               85
146 #define LEDC_LS_SIG_OUT6_IDX          85
147 #define RMT_SIG_IN3_IDX               86
148 #define LEDC_LS_SIG_OUT7_IDX          86
149 #define RMT_SIG_OUT0_IDX              87
150 #define RMT_SIG_OUT1_IDX              88
151 #define RMT_SIG_OUT2_IDX              89
152 #define RMT_SIG_OUT3_IDX              90
153 #define EXT_ADC_START_IDX             93
154 #define I2CEXT1_SCL_IN_IDX            95
155 #define I2CEXT1_SCL_OUT_IDX           95
156 #define I2CEXT1_SDA_IN_IDX            96
157 #define I2CEXT1_SDA_OUT_IDX           96
158 #define GPIO_SD0_OUT_IDX              100
159 #define GPIO_SD1_OUT_IDX              101
160 #define GPIO_SD2_OUT_IDX              102
161 #define GPIO_SD3_OUT_IDX              103
162 #define GPIO_SD4_OUT_IDX              104
163 #define GPIO_SD5_OUT_IDX              105
164 #define GPIO_SD6_OUT_IDX              106
165 #define GPIO_SD7_OUT_IDX              107
166 #define FSPICLK_IN_IDX                108
167 #define FSPICLK_OUT_MUX_IDX           108
168 #define FSPIQ_IN_IDX                  109
169 #define FSPIQ_OUT_IDX                 109
170 #define FSPID_IN_IDX                  110
171 #define FSPID_OUT_IDX                 110
172 #define FSPIHD_IN_IDX                 111
173 #define FSPIHD_OUT_IDX                111
174 #define FSPIWP_IN_IDX                 112
175 #define FSPIWP_OUT_IDX                112
176 #define FSPIIO4_IN_IDX                113
177 #define FSPIIO4_OUT_IDX               113
178 #define FSPIIO5_IN_IDX                114
179 #define FSPIIO5_OUT_IDX               114
180 #define FSPIIO6_IN_IDX                115
181 #define FSPIIO6_OUT_IDX               115
182 #define FSPIIO7_IN_IDX                116
183 #define FSPIIO7_OUT_IDX               116
184 #define FSPICS0_IN_IDX                117
185 #define FSPICS0_OUT_IDX               117
186 #define FSPICS1_OUT_IDX               118
187 #define FSPICS2_OUT_IDX               119
188 #define FSPICS3_OUT_IDX               120
189 #define FSPICS4_OUT_IDX               121
190 #define FSPICS5_OUT_IDX               122
191 #define TWAI_RX_IDX                   123
192 #define TWAI_TX_IDX                   123
193 #define TWAI_BUS_OFF_ON_IDX           124
194 #define TWAI_CLKOUT_IDX               125
195 #define SUBSPICLK_OUT_MUX_IDX         126
196 #define SUBSPIQ_IN_IDX                127
197 #define SUBSPIQ_OUT_IDX               127
198 #define SUBSPID_IN_IDX                128
199 #define SUBSPID_OUT_IDX               128
200 #define SUBSPIHD_IN_IDX               129
201 #define SUBSPIHD_OUT_IDX              129
202 #define SUBSPIWP_IN_IDX               130
203 #define SUBSPIWP_OUT_IDX              130
204 #define SUBSPICS0_OUT_IDX             131
205 #define SUBSPICS1_OUT_IDX             132
206 #define FSPIDQS_OUT_IDX               133
207 #define FSPI_HSYNC_OUT_IDX            134
208 #define FSPI_VSYNC_OUT_IDX            135
209 #define FSPI_DE_OUT_IDX               136
210 #define FSPICD_OUT_IDX                137
211 #define SPI3_CD_OUT_IDX               139
212 #define SPI3_DQS_OUT_IDX              140
213 #define I2S0I_DATA_IN0_IDX            143
214 #define I2S0O_DATA_OUT0_IDX           143
215 #define I2S0I_DATA_IN1_IDX            144
216 #define I2S0O_DATA_OUT1_IDX           144
217 #define I2S0I_DATA_IN2_IDX            145
218 #define I2S0O_DATA_OUT2_IDX           145
219 #define I2S0I_DATA_IN3_IDX            146
220 #define I2S0O_DATA_OUT3_IDX           146
221 #define I2S0I_DATA_IN4_IDX            147
222 #define I2S0O_DATA_OUT4_IDX           147
223 #define I2S0I_DATA_IN5_IDX            148
224 #define I2S0O_DATA_OUT5_IDX           148
225 #define I2S0I_DATA_IN6_IDX            149
226 #define I2S0O_DATA_OUT6_IDX           149
227 #define I2S0I_DATA_IN7_IDX            150
228 #define I2S0O_DATA_OUT7_IDX           150
229 #define I2S0I_DATA_IN8_IDX            151
230 #define I2S0O_DATA_OUT8_IDX           151
231 #define I2S0I_DATA_IN9_IDX            152
232 #define I2S0O_DATA_OUT9_IDX           152
233 #define I2S0I_DATA_IN10_IDX           153
234 #define I2S0O_DATA_OUT10_IDX          153
235 #define I2S0I_DATA_IN11_IDX           154
236 #define I2S0O_DATA_OUT11_IDX          154
237 #define I2S0I_DATA_IN12_IDX           155
238 #define I2S0O_DATA_OUT12_IDX          155
239 #define I2S0I_DATA_IN13_IDX           156
240 #define I2S0O_DATA_OUT13_IDX          156
241 #define I2S0I_DATA_IN14_IDX           157
242 #define I2S0O_DATA_OUT14_IDX          157
243 #define I2S0I_DATA_IN15_IDX           158
244 #define I2S0O_DATA_OUT15_IDX          158
245 #define I2S0O_DATA_OUT16_IDX          159
246 #define I2S0O_DATA_OUT17_IDX          160
247 #define I2S0O_DATA_OUT18_IDX          161
248 #define I2S0O_DATA_OUT19_IDX          162
249 #define I2S0O_DATA_OUT20_IDX          163
250 #define I2S0O_DATA_OUT21_IDX          164
251 #define I2S0O_DATA_OUT22_IDX          165
252 #define I2S0O_DATA_OUT23_IDX          166
253 #define SUBSPID4_IN_IDX               167
254 #define SUBSPID4_OUT_IDX              167
255 #define SUBSPID5_IN_IDX               168
256 #define SUBSPID5_OUT_IDX              168
257 #define SUBSPID6_IN_IDX               169
258 #define SUBSPID6_OUT_IDX              169
259 #define SUBSPID7_IN_IDX               170
260 #define SUBSPID7_OUT_IDX              170
261 #define SUBSPIDQS_IN_IDX              171
262 #define SUBSPIDQS_OUT_IDX             171
263 #define I2S0I_H_SYNC_IDX              193
264 #define I2S0I_V_SYNC_IDX              194
265 #define I2S0I_H_ENABLE_IDX            195
266 #define PCMFSYNC_IN_IDX               203
267 #define BT_AUDIO0_IRQ_IDX             203
268 #define PCMCLK_IN_IDX                 204
269 #define BT_AUDIO1_IRQ_IDX             204
270 #define PCMDIN_IDX                    205
271 #define BT_AUDIO2_IRQ_IDX             205
272 #define RW_WAKEUP_REQ_IDX             206
273 #define BLE_AUDIO0_IRQ_IDX            206
274 #define BLE_AUDIO1_IRQ_IDX            207
275 #define BLE_AUDIO2_IRQ_IDX            208
276 #define PCMFSYNC_OUT_IDX              209
277 #define PCMCLK_OUT_IDX                210
278 #define PCMDOUT_IDX                   211
279 #define BLE_AUDIO_SYNC0_P_IDX         212
280 #define BLE_AUDIO_SYNC1_P_IDX         213
281 #define BLE_AUDIO_SYNC2_P_IDX         214
282 #define ANT_SEL0_IDX                  215
283 #define ANT_SEL1_IDX                  216
284 #define ANT_SEL2_IDX                  217
285 #define ANT_SEL3_IDX                  218
286 #define ANT_SEL4_IDX                  219
287 #define ANT_SEL5_IDX                  220
288 #define ANT_SEL6_IDX                  221
289 #define ANT_SEL7_IDX                  222
290 #define SIG_IN_FUNC_223_IDX           223
291 #define SIG_IN_FUNC223_IDX            223
292 #define SIG_IN_FUNC_224_IDX           224
293 #define SIG_IN_FUNC224_IDX            224
294 #define SIG_IN_FUNC_225_IDX           225
295 #define SIG_IN_FUNC225_IDX            225
296 #define SIG_IN_FUNC_226_IDX           226
297 #define SIG_IN_FUNC226_IDX            226
298 #define SIG_IN_FUNC_227_IDX           227
299 #define SIG_IN_FUNC227_IDX            227
300 #define PRO_ALONEGPIO_IN0_IDX         235
301 #define PRO_ALONEGPIO_OUT0_IDX        235
302 #define PRO_ALONEGPIO_IN1_IDX         236
303 #define PRO_ALONEGPIO_OUT1_IDX        236
304 #define PRO_ALONEGPIO_IN2_IDX         237
305 #define PRO_ALONEGPIO_OUT2_IDX        237
306 #define PRO_ALONEGPIO_IN3_IDX         238
307 #define PRO_ALONEGPIO_OUT3_IDX        238
308 #define PRO_ALONEGPIO_IN4_IDX         239
309 #define PRO_ALONEGPIO_OUT4_IDX        239
310 #define PRO_ALONEGPIO_IN5_IDX         240
311 #define PRO_ALONEGPIO_OUT5_IDX        240
312 #define PRO_ALONEGPIO_IN6_IDX         241
313 #define PRO_ALONEGPIO_OUT6_IDX        241
314 #define PRO_ALONEGPIO_IN7_IDX         242
315 #define PRO_ALONEGPIO_OUT7_IDX        242
316 #define CLK_I2S_MUX_IDX               251
317 #define SIG_GPIO_OUT_IDX              256
318 #define GPIO_MAP_DATE_IDX			0x1904100
319 #endif  /* _SOC_GPIO_SIG_MAP_H_ */
320