Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
esp32-gpio-sigmap.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_ESP32_GPIO_SIGMAP_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_ESP32_GPIO_SIGMAP_H_
9
10#define ESP_NOSIG ESP_SIG_INVAL
11
12#define ESP_SPICLK_IN 0
13#define ESP_SPICLK_OUT 0
14#define ESP_SPIQ_IN 1
15#define ESP_SPIQ_OUT 1
16#define ESP_SPID_IN 2
17#define ESP_SPID_OUT 2
18#define ESP_SPIHD_IN 3
19#define ESP_SPIHD_OUT 3
20#define ESP_SPIWP_IN 4
21#define ESP_SPIWP_OUT 4
22#define ESP_SPICS0_IN 5
23#define ESP_SPICS0_OUT 5
24#define ESP_SPICS1_IN 6
25#define ESP_SPICS1_OUT 6
26#define ESP_SPICS2_IN 7
27#define ESP_SPICS2_OUT 7
28#define ESP_HSPICLK_IN 8
29#define ESP_HSPICLK_OUT 8
30#define ESP_HSPIQ_IN 9
31#define ESP_HSPIQ_OUT 9
32#define ESP_HSPID_IN 10
33#define ESP_HSPID_OUT 10
34#define ESP_HSPICS0_IN 11
35#define ESP_HSPICS0_OUT 11
36#define ESP_HSPIHD_IN 12
37#define ESP_HSPIHD_OUT 12
38#define ESP_HSPIWP_IN 13
39#define ESP_HSPIWP_OUT 13
40#define ESP_U0RXD_IN 14
41#define ESP_U0TXD_OUT 14
42#define ESP_U0CTS_IN 15
43#define ESP_U0RTS_OUT 15
44#define ESP_U0DSR_IN 16
45#define ESP_U0DTR_OUT 16
46#define ESP_U1RXD_IN 17
47#define ESP_U1TXD_OUT 17
48#define ESP_U1CTS_IN 18
49#define ESP_U1RTS_OUT 18
50#define ESP_I2CM_SCL_O 19
51#define ESP_I2CM_SDA_I 20
52#define ESP_I2CM_SDA_O 20
53#define ESP_EXT_I2C_SCL_O 21
54#define ESP_EXT_I2C_SDA_O 22
55#define ESP_EXT_I2C_SDA_I 22
56#define ESP_I2S0O_BCK_IN 23
57#define ESP_I2S0O_BCK_OUT 23
58#define ESP_I2S1O_BCK_IN 24
59#define ESP_I2S1O_BCK_OUT 24
60#define ESP_I2S0O_WS_IN 25
61#define ESP_I2S0O_WS_OUT 25
62#define ESP_I2S1O_WS_IN 26
63#define ESP_I2S1O_WS_OUT 26
64#define ESP_I2S0I_BCK_IN 27
65#define ESP_I2S0I_BCK_OUT 27
66#define ESP_I2S0I_WS_IN 28
67#define ESP_I2S0I_WS_OUT 28
68#define ESP_I2CEXT0_SCL_IN 29
69#define ESP_I2CEXT0_SCL_OUT 29
70#define ESP_I2CEXT0_SDA_IN 30
71#define ESP_I2CEXT0_SDA_OUT 30
72#define ESP_PWM0_SYNC0_IN 31
73#define ESP_SDIO_TOHOST_INT_OUT 31
74#define ESP_PWM0_SYNC1_IN 32
75#define ESP_PWM0_OUT0A 32
76#define ESP_PWM0_SYNC2_IN 33
77#define ESP_PWM0_OUT0B 33
78#define ESP_PWM0_F0_IN 34
79#define ESP_PWM0_OUT1A 34
80#define ESP_PWM0_F1_IN 35
81#define ESP_PWM0_OUT1B 35
82#define ESP_PWM0_F2_IN 36
83#define ESP_PWM0_OUT2A 36
84#define ESP_GPIO_BT_ACTIVE 37
85#define ESP_PWM0_OUT2B 37
86#define ESP_GPIO_BT_PRIORITY 38
87#define ESP_PCNT_SIG_CH0_IN0 39
88#define ESP_PCNT_SIG_CH1_IN0 40
89#define ESP_GPIO_WLAN_ACTIVE 40
90#define ESP_PCNT_CTRL_CH0_IN0 41
91#define ESP_BB_DIAG0 41
92#define ESP_PCNT_CTRL_CH1_IN0 42
93#define ESP_BB_DIAG1 42
94#define ESP_PCNT_SIG_CH0_IN1 43
95#define ESP_BB_DIAG2 43
96#define ESP_PCNT_SIG_CH1_IN1 44
97#define ESP_BB_DIAG3 44
98#define ESP_PCNT_CTRL_CH0_IN1 45
99#define ESP_BB_DIAG4 45
100#define ESP_PCNT_CTRL_CH1_IN1 46
101#define ESP_BB_DIAG5 46
102#define ESP_PCNT_SIG_CH0_IN2 47
103#define ESP_BB_DIAG6 47
104#define ESP_PCNT_SIG_CH1_IN2 48
105#define ESP_BB_DIAG7 48
106#define ESP_PCNT_CTRL_CH0_IN2 49
107#define ESP_BB_DIAG8 49
108#define ESP_PCNT_CTRL_CH1_IN2 50
109#define ESP_BB_DIAG9 50
110#define ESP_PCNT_SIG_CH0_IN3 51
111#define ESP_BB_DIAG10 51
112#define ESP_PCNT_SIG_CH1_IN3 52
113#define ESP_BB_DIAG11 52
114#define ESP_PCNT_CTRL_CH0_IN3 53
115#define ESP_BB_DIAG12 53
116#define ESP_PCNT_CTRL_CH1_IN3 54
117#define ESP_BB_DIAG13 54
118#define ESP_PCNT_SIG_CH0_IN4 55
119#define ESP_BB_DIAG14 55
120#define ESP_PCNT_SIG_CH1_IN4 56
121#define ESP_BB_DIAG15 56
122#define ESP_PCNT_CTRL_CH0_IN4 57
123#define ESP_BB_DIAG16 57
124#define ESP_PCNT_CTRL_CH1_IN4 58
125#define ESP_BB_DIAG17 58
126#define ESP_BB_DIAG18 59
127#define ESP_BB_DIAG19 60
128#define ESP_HSPICS1_IN 61
129#define ESP_HSPICS1_OUT 61
130#define ESP_HSPICS2_IN 62
131#define ESP_HSPICS2_OUT 62
132#define ESP_VSPICLK_IN 63
133#define ESP_VSPICLK_OUT 63
134#define ESP_VSPIQ_IN 64
135#define ESP_VSPIQ_OUT 64
136#define ESP_VSPID_IN 65
137#define ESP_VSPID_OUT 65
138#define ESP_VSPIHD_IN 66
139#define ESP_VSPIHD_OUT 66
140#define ESP_VSPIWP_IN 67
141#define ESP_VSPIWP_OUT 67
142#define ESP_VSPICS0_IN 68
143#define ESP_VSPICS0_OUT 68
144#define ESP_VSPICS1_IN 69
145#define ESP_VSPICS1_OUT 69
146#define ESP_VSPICS2_IN 70
147#define ESP_VSPICS2_OUT 70
148#define ESP_PCNT_SIG_CH0_IN5 71
149#define ESP_LEDC_HS_SIG_OUT0 71
150#define ESP_PCNT_SIG_CH1_IN5 72
151#define ESP_LEDC_HS_SIG_OUT1 72
152#define ESP_PCNT_CTRL_CH0_IN5 73
153#define ESP_LEDC_HS_SIG_OUT2 73
154#define ESP_PCNT_CTRL_CH1_IN5 74
155#define ESP_LEDC_HS_SIG_OUT3 74
156#define ESP_PCNT_SIG_CH0_IN6 75
157#define ESP_LEDC_HS_SIG_OUT4 75
158#define ESP_PCNT_SIG_CH1_IN6 76
159#define ESP_LEDC_HS_SIG_OUT5 76
160#define ESP_PCNT_CTRL_CH0_IN6 77
161#define ESP_LEDC_HS_SIG_OUT6 77
162#define ESP_PCNT_CTRL_CH1_IN6 78
163#define ESP_LEDC_HS_SIG_OUT7 78
164#define ESP_PCNT_SIG_CH0_IN7 79
165#define ESP_LEDC_LS_SIG_OUT0 79
166#define ESP_PCNT_SIG_CH1_IN7 80
167#define ESP_LEDC_LS_SIG_OUT1 80
168#define ESP_PCNT_CTRL_CH0_IN7 81
169#define ESP_LEDC_LS_SIG_OUT2 81
170#define ESP_PCNT_CTRL_CH1_IN7 82
171#define ESP_LEDC_LS_SIG_OUT3 82
172#define ESP_RMT_SIG_IN0 83
173#define ESP_LEDC_LS_SIG_OUT4 83
174#define ESP_RMT_SIG_IN1 84
175#define ESP_LEDC_LS_SIG_OUT5 84
176#define ESP_RMT_SIG_IN2 85
177#define ESP_LEDC_LS_SIG_OUT6 85
178#define ESP_RMT_SIG_IN3 86
179#define ESP_LEDC_LS_SIG_OUT7 86
180#define ESP_RMT_SIG_IN4 87
181#define ESP_RMT_SIG_OUT0 87
182#define ESP_RMT_SIG_IN5 88
183#define ESP_RMT_SIG_OUT1 88
184#define ESP_RMT_SIG_IN6 89
185#define ESP_RMT_SIG_OUT2 89
186#define ESP_RMT_SIG_IN7 90
187#define ESP_RMT_SIG_OUT3 90
188#define ESP_RMT_SIG_OUT4 91
189#define ESP_RMT_SIG_OUT5 92
190#define ESP_EXT_ADC_START 93
191#define ESP_RMT_SIG_OUT6 93
192#define ESP_TWAI_RX 94
193#define ESP_CAN_RX ESP_TWAI_RX
194#define ESP_RMT_SIG_OUT7 94
195#define ESP_I2CEXT1_SCL_IN 95
196#define ESP_I2CEXT1_SCL_OUT 95
197#define ESP_I2CEXT1_SDA_IN 96
198#define ESP_I2CEXT1_SDA_OUT 96
199#define ESP_HOST_CARD_DETECT_N_1 97
200#define ESP_HOST_CCMD_OD_PULLUP_EN_N 97
201#define ESP_HOST_CARD_DETECT_N_2 98
202#define ESP_HOST_RST_N_1 98
203#define ESP_HOST_CARD_WRITE_PRT_1 99
204#define ESP_HOST_RST_N_2 99
205#define ESP_HOST_CARD_WRITE_PRT_2 100
206#define ESP_GPIO_SD0_OUT 100
207#define ESP_HOST_CARD_INT_N_1 101
208#define ESP_GPIO_SD1_OUT 101
209#define ESP_HOST_CARD_INT_N_2 102
210#define ESP_GPIO_SD2_OUT 102
211#define ESP_PWM1_SYNC0_IN 103
212#define ESP_GPIO_SD3_OUT 103
213#define ESP_PWM1_SYNC1_IN 104
214#define ESP_GPIO_SD4_OUT 104
215#define ESP_PWM1_SYNC2_IN 105
216#define ESP_GPIO_SD5_OUT 105
217#define ESP_PWM1_F0_IN 106
218#define ESP_GPIO_SD6_OUT 106
219#define ESP_PWM1_F1_IN 107
220#define ESP_GPIO_SD7_OUT 107
221#define ESP_PWM1_F2_IN 108
222#define ESP_PWM1_OUT0A 108
223#define ESP_PWM0_CAP0_IN 109
224#define ESP_PWM1_OUT0B 109
225#define ESP_PWM0_CAP1_IN 110
226#define ESP_PWM1_OUT1A 110
227#define ESP_PWM0_CAP2_IN 111
228#define ESP_PWM1_OUT1B 111
229#define ESP_PWM1_CAP0_IN 112
230#define ESP_PWM1_OUT2A 112
231#define ESP_PWM1_CAP1_IN 113
232#define ESP_PWM1_OUT2B 113
233#define ESP_PWM1_CAP2_IN 114
234#define ESP_PWM2_OUT1H 114
235#define ESP_PWM2_FLTA 115
236#define ESP_PWM2_OUT1L 115
237#define ESP_PWM2_FLTB 116
238#define ESP_PWM2_OUT2H 116
239#define ESP_PWM2_CAP1_IN 117
240#define ESP_PWM2_OUT2L 117
241#define ESP_PWM2_CAP2_IN 118
242#define ESP_PWM2_OUT3H 118
243#define ESP_PWM2_CAP3_IN 119
244#define ESP_PWM2_OUT3L 119
245#define ESP_PWM3_FLTA 120
246#define ESP_PWM2_OUT4H 120
247#define ESP_PWM3_FLTB 121
248#define ESP_PWM2_OUT4L 121
249#define ESP_PWM3_CAP1_IN 122
250#define ESP_PWM3_CAP2_IN 123
251#define ESP_TWAI_TX 123
252#define ESP_CAN_TX ESP_TWAI_TX
253#define ESP_PWM3_CAP3_IN 124
254#define ESP_TWAI_BUS_OFF_ON 124
255#define ESP_CAN_BUS_OFF_ON ESP_TWAI_BUS_OFF_ON
256#define ESP_TWAI_CLKOUT 125
257#define ESP_CAN_CLKOUT ESP_TWAI_CLKOUT
258#define ESP_SPID4_IN 128
259#define ESP_SPID4_OUT 128
260#define ESP_SPID5_IN 129
261#define ESP_SPID5_OUT 129
262#define ESP_SPID6_IN 130
263#define ESP_SPID6_OUT 130
264#define ESP_SPID7_IN 131
265#define ESP_SPID7_OUT 131
266#define ESP_HSPID4_IN 132
267#define ESP_HSPID4_OUT 132
268#define ESP_HSPID5_IN 133
269#define ESP_HSPID5_OUT 133
270#define ESP_HSPID6_IN 134
271#define ESP_HSPID6_OUT 134
272#define ESP_HSPID7_IN 135
273#define ESP_HSPID7_OUT 135
274#define ESP_VSPID4_IN 136
275#define ESP_VSPID4_OUT 136
276#define ESP_VSPID5_IN 137
277#define ESP_VSPID5_OUT 137
278#define ESP_VSPID6_IN 138
279#define ESP_VSPID6_OUT 138
280#define ESP_VSPID7_IN 139
281#define ESP_VSPID7_OUT 139
282#define ESP_I2S0I_DATA_IN0 140
283#define ESP_I2S0O_DATA_OUT0 140
284#define ESP_I2S0I_DATA_IN1 141
285#define ESP_I2S0O_DATA_OUT1 141
286#define ESP_I2S0I_DATA_IN2 142
287#define ESP_I2S0O_DATA_OUT2 142
288#define ESP_I2S0I_DATA_IN3 143
289#define ESP_I2S0O_DATA_OUT3 143
290#define ESP_I2S0I_DATA_IN4 144
291#define ESP_I2S0O_DATA_OUT4 144
292#define ESP_I2S0I_DATA_IN5 145
293#define ESP_I2S0O_DATA_OUT5 145
294#define ESP_I2S0I_DATA_IN6 146
295#define ESP_I2S0O_DATA_OUT6 146
296#define ESP_I2S0I_DATA_IN7 147
297#define ESP_I2S0O_DATA_OUT7 147
298#define ESP_I2S0I_DATA_IN8 148
299#define ESP_I2S0O_DATA_OUT8 148
300#define ESP_I2S0I_DATA_IN9 149
301#define ESP_I2S0O_DATA_OUT9 149
302#define ESP_I2S0I_DATA_IN10 150
303#define ESP_I2S0O_DATA_OUT10 150
304#define ESP_I2S0I_DATA_IN11 151
305#define ESP_I2S0O_DATA_OUT11 151
306#define ESP_I2S0I_DATA_IN12 152
307#define ESP_I2S0O_DATA_OUT12 152
308#define ESP_I2S0I_DATA_IN13 153
309#define ESP_I2S0O_DATA_OUT13 153
310#define ESP_I2S0I_DATA_IN14 154
311#define ESP_I2S0O_DATA_OUT14 154
312#define ESP_I2S0I_DATA_IN15 155
313#define ESP_I2S0O_DATA_OUT15 155
314#define ESP_I2S0O_DATA_OUT16 156
315#define ESP_I2S0O_DATA_OUT17 157
316#define ESP_I2S0O_DATA_OUT18 158
317#define ESP_I2S0O_DATA_OUT19 159
318#define ESP_I2S0O_DATA_OUT20 160
319#define ESP_I2S0O_DATA_OUT21 161
320#define ESP_I2S0O_DATA_OUT22 162
321#define ESP_I2S0O_DATA_OUT23 163
322#define ESP_I2S1I_BCK_IN 164
323#define ESP_I2S1I_BCK_OUT 164
324#define ESP_I2S1I_WS_IN 165
325#define ESP_I2S1I_WS_OUT 165
326#define ESP_I2S1I_DATA_IN0 166
327#define ESP_I2S1O_DATA_OUT0 166
328#define ESP_I2S1I_DATA_IN1 167
329#define ESP_I2S1O_DATA_OUT1 167
330#define ESP_I2S1I_DATA_IN2 168
331#define ESP_I2S1O_DATA_OUT2 168
332#define ESP_I2S1I_DATA_IN3 169
333#define ESP_I2S1O_DATA_OUT3 169
334#define ESP_I2S1I_DATA_IN4 170
335#define ESP_I2S1O_DATA_OUT4 170
336#define ESP_I2S1I_DATA_IN5 171
337#define ESP_I2S1O_DATA_OUT5 171
338#define ESP_I2S1I_DATA_IN6 172
339#define ESP_I2S1O_DATA_OUT6 172
340#define ESP_I2S1I_DATA_IN7 173
341#define ESP_I2S1O_DATA_OUT7 173
342#define ESP_I2S1I_DATA_IN8 174
343#define ESP_I2S1O_DATA_OUT8 174
344#define ESP_I2S1I_DATA_IN9 175
345#define ESP_I2S1O_DATA_OUT9 175
346#define ESP_I2S1I_DATA_IN10 176
347#define ESP_I2S1O_DATA_OUT10 176
348#define ESP_I2S1I_DATA_IN11 177
349#define ESP_I2S1O_DATA_OUT11 177
350#define ESP_I2S1I_DATA_IN12 178
351#define ESP_I2S1O_DATA_OUT12 178
352#define ESP_I2S1I_DATA_IN13 179
353#define ESP_I2S1O_DATA_OUT13 179
354#define ESP_I2S1I_DATA_IN14 180
355#define ESP_I2S1O_DATA_OUT14 180
356#define ESP_I2S1I_DATA_IN15 181
357#define ESP_I2S1O_DATA_OUT15 181
358#define ESP_I2S1O_DATA_OUT16 182
359#define ESP_I2S1O_DATA_OUT17 183
360#define ESP_I2S1O_DATA_OUT18 184
361#define ESP_I2S1O_DATA_OUT19 185
362#define ESP_I2S1O_DATA_OUT20 186
363#define ESP_I2S1O_DATA_OUT21 187
364#define ESP_I2S1O_DATA_OUT22 188
365#define ESP_I2S1O_DATA_OUT23 189
366#define ESP_I2S0I_H_SYNC 190
367#define ESP_PWM3_OUT1H 190
368#define ESP_I2S0I_V_SYNC 191
369#define ESP_PWM3_OUT1L 191
370#define ESP_I2S0I_H_ENABLE 192
371#define ESP_PWM3_OUT2H 192
372#define ESP_I2S1I_H_SYNC 193
373#define ESP_PWM3_OUT2L 193
374#define ESP_I2S1I_V_SYNC 194
375#define ESP_PWM3_OUT3H 194
376#define ESP_I2S1I_H_ENABLE 195
377#define ESP_PWM3_OUT3L 195
378#define ESP_PWM3_OUT4H 196
379#define ESP_PWM3_OUT4L 197
380#define ESP_U2RXD_IN 198
381#define ESP_U2TXD_OUT 198
382#define ESP_U2CTS_IN 199
383#define ESP_U2RTS_OUT 199
384#define ESP_EMAC_MDC_I 200
385#define ESP_EMAC_MDC_O 200
386#define ESP_EMAC_MDI_I 201
387#define ESP_EMAC_MDO_O 201
388#define ESP_EMAC_CRS_I 202
389#define ESP_EMAC_CRS_O 202
390#define ESP_EMAC_COL_I 203
391#define ESP_EMAC_COL_O 203
392#define ESP_PCMFSYNC_IN 204
393#define ESP_BT_AUDIO0_IRQ 204
394#define ESP_PCMCLK_IN 205
395#define ESP_BT_AUDIO1_IRQ 205
396#define ESP_PCMDIN 206
397#define ESP_BT_AUDIO2_IRQ 206
398#define ESP_BLE_AUDIO0_IRQ 207
399#define ESP_BLE_AUDIO1_IRQ 208
400#define ESP_BLE_AUDIO2_IRQ 209
401#define ESP_PCMFSYNC_OUT 210
402#define ESP_PCMCLK_OUT 211
403#define ESP_PCMDOUT 212
404#define ESP_BLE_AUDIO_SYNC0_P 213
405#define ESP_BLE_AUDIO_SYNC1_P 214
406#define ESP_BLE_AUDIO_SYNC2_P 215
407#define ESP_ANT_SEL0 216
408#define ESP_ANT_SEL1 217
409#define ESP_ANT_SEL2 218
410#define ESP_ANT_SEL3 219
411#define ESP_ANT_SEL4 220
412#define ESP_ANT_SEL5 221
413#define ESP_ANT_SEL6 222
414#define ESP_ANT_SEL7 223
415#define ESP_SIG_IN_FUNC224 224
416#define ESP_SIG_IN_FUNC225 225
417#define ESP_SIG_IN_FUNC226 226
418#define ESP_SIG_IN_FUNC227 227
419#define ESP_SIG_IN_FUNC228 228
420#define ESP_SIG_GPIO_OUT 256
421
422/* RTC-IO MUX */
423#define ESP_ADC1_CH0 0
424#define ESP_ADC1_CH1 1
425#define ESP_ADC1_CH2 2
426#define ESP_ADC1_CH3 3
427#define ESP_ADC1_CH6 4
428#define ESP_ADC1_CH7 5
429#define ESP_ADC2_CH8 6
430#define ESP_ADC2_CH9 7
431#define ESP_DAC1_OUT 6
432#define ESP_DAC2_OUT 7
433#define ESP_ADC1_CH5 8
434#define ESP_ADC1_CH4 9
435#define ESP_ADC2_CH0 10
436#define ESP_ADC2_CH1 11
437#define ESP_ADC2_CH2 12
438#define ESP_ADC2_CH3 13
439#define ESP_ADC2_CH4 14
440#define ESP_ADC2_CH5 15
441#define ESP_ADC2_CH6 16
442#define ESP_ADC2_CH7 17
443
444#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_ESP32_GPIO_SIGMAP_H_ */