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_ESP32C3_GPIO_SIGMAP_H_
8 #define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_ESP32C3_GPIO_SIGMAP_H_
9 
10 #define ESP_NOSIG                       ESP_SIG_INVAL
11 
12 #define ESP_SPICLK_OUT_MUX              ESP_SPICLK_OUT
13 #define ESP_SPIQ_IN                     0
14 #define ESP_SPIQ_OUT                    0
15 #define ESP_SPID_IN                     1
16 #define ESP_SPID_OUT                    1
17 #define ESP_SPIHD_IN                    2
18 #define ESP_SPIHD_OUT                   2
19 #define ESP_SPIWP_IN                    3
20 #define ESP_SPIWP_OUT                   3
21 #define ESP_SPICLK_OUT                  4
22 #define ESP_SPICS0_OUT                  5
23 #define ESP_U0RXD_IN                    6
24 #define ESP_U0TXD_OUT                   6
25 #define ESP_U0CTS_IN                    7
26 #define ESP_U0RTS_OUT                   7
27 #define ESP_U0DSR_IN                    8
28 #define ESP_U0DTR_OUT                   8
29 #define ESP_U1RXD_IN                    9
30 #define ESP_U1TXD_OUT                   9
31 #define ESP_U1CTS_IN                    10
32 #define ESP_U1RTS_OUT                   10
33 #define ESP_U1DSR_IN                    11
34 #define ESP_U1DTR_OUT                   11
35 #define ESP_I2S_MCLK_IN                 12
36 #define ESP_I2S_MCLK_OUT                12
37 #define ESP_I2SO_BCK_IN                 13
38 #define ESP_I2SO_BCK_OUT                13
39 #define ESP_I2SO_WS_IN                  14
40 #define ESP_I2SO_WS_OUT                 14
41 #define ESP_I2SI_SD_IN                  15
42 #define ESP_I2SO_SD_OUT                 15
43 #define ESP_I2SI_BCK_IN                 16
44 #define ESP_I2SI_BCK_OUT                16
45 #define ESP_I2SI_WS_IN                  17
46 #define ESP_I2SI_WS_OUT                 17
47 #define ESP_GPIO_BT_PRIORITY            18
48 #define ESP_GPIO_WLAN_PRIO              18
49 #define ESP_GPIO_BT_ACTIVE              19
50 #define ESP_GPIO_WLAN_ACTIVE            19
51 #define ESP_BB_DIAG0                    20
52 #define ESP_BB_DIAG1                    21
53 #define ESP_BB_DIAG2                    22
54 #define ESP_BB_DIAG3                    23
55 #define ESP_BB_DIAG4                    24
56 #define ESP_BB_DIAG5                    25
57 #define ESP_BB_DIAG6                    26
58 #define ESP_BB_DIAG7                    27
59 #define ESP_BB_DIAG8                    28
60 #define ESP_BB_DIAG9                    29
61 #define ESP_BB_DIAG10                   30
62 #define ESP_BB_DIAG11                   31
63 #define ESP_BB_DIAG12                   32
64 #define ESP_BB_DIAG13                   33
65 #define ESP_BB_DIAG14                   34
66 #define ESP_BB_DIAG15                   35
67 #define ESP_BB_DIAG16                   36
68 #define ESP_BB_DIAG17                   37
69 #define ESP_BB_DIAG18                   38
70 #define ESP_BB_DIAG19                   39
71 #define ESP_USB_EXTPHY_VP               40
72 #define ESP_USB_EXTPHY_OEN              40
73 #define ESP_USB_EXTPHY_VM               41
74 #define ESP_USB_EXTPHY_SPEED            41
75 #define ESP_USB_EXTPHY_RCV              42
76 #define ESP_USB_EXTPHY_VPO              42
77 #define ESP_USB_EXTPHY_VMO              43
78 #define ESP_USB_EXTPHY_SUSPND           44
79 #define ESP_EXT_ADC_START               45
80 #define ESP_LEDC_LS_SIG_OUT0            45
81 #define ESP_LEDC_LS_SIG_OUT1            46
82 #define ESP_LEDC_LS_SIG_OUT2            47
83 #define ESP_LEDC_LS_SIG_OUT3            48
84 #define ESP_LEDC_LS_SIG_OUT4            49
85 #define ESP_LEDC_LS_SIG_OUT5            50
86 #define ESP_RMT_SIG_IN0                 51
87 #define ESP_RMT_SIG_OUT0                51
88 #define ESP_RMT_SIG_IN1                 52
89 #define ESP_RMT_SIG_OUT1                52
90 #define ESP_I2CEXT0_SCL_IN              53
91 #define ESP_I2CEXT0_SCL_OUT             53
92 #define ESP_I2CEXT0_SDA_IN              54
93 #define ESP_I2CEXT0_SDA_OUT             54
94 #define ESP_GPIO_SD0_OUT                55
95 #define ESP_GPIO_SD1_OUT                56
96 #define ESP_GPIO_SD2_OUT                57
97 #define ESP_GPIO_SD3_OUT                58
98 #define ESP_FSPICLK_IN                  63
99 #define ESP_FSPICLK_OUT                 63
100 #define ESP_FSPIQ_IN                    64
101 #define ESP_FSPIQ_OUT                   64
102 #define ESP_FSPID_IN                    65
103 #define ESP_FSPID_OUT                   65
104 #define ESP_FSPIHD_IN                   66
105 #define ESP_FSPIHD_OUT                  66
106 #define ESP_FSPIWP_IN                   67
107 #define ESP_FSPIWP_OUT                  67
108 #define ESP_FSPICS0_IN                  68
109 #define ESP_FSPICS0_OUT                 68
110 #define ESP_FSPICS1_OUT                 69
111 #define ESP_FSPICS2_OUT                 70
112 #define ESP_FSPICS3_OUT                 71
113 #define ESP_FSPICS4_OUT                 72
114 #define ESP_FSPICS5_OUT                 73
115 #define ESP_TWAI_RX                     74
116 #define ESP_TWAI_TX                     74
117 #define ESP_TWAI_BUS_OFF_ON             75
118 #define ESP_TWAI_CLKOUT                 76
119 #define ESP_PCMFSYNC_IN                 77
120 #define ESP_BT_AUDIO0_IRQ               77
121 #define ESP_PCMCLK_IN                   78
122 #define ESP_BT_AUDIO1_IRQ               78
123 #define ESP_PCMDIN                      79
124 #define ESP_BT_AUDIO2_IRQ               79
125 #define ESP_RW_WAKEUP_REQ               80
126 #define ESP_BLE_AUDIO0_IRQ              80
127 #define ESP_BLE_AUDIO1_IRQ              81
128 #define ESP_BLE_AUDIO2_IRQ              82
129 #define ESP_PCMFSYNC_OUT                83
130 #define ESP_PCMCLK_OUT                  84
131 #define ESP_PCMDOUT                     85
132 #define ESP_BLE_AUDIO_SYNC0_P           86
133 #define ESP_BLE_AUDIO_SYNC1_P           87
134 #define ESP_BLE_AUDIO_SYNC2_P           88
135 #define ESP_ANT_SEL0                    89
136 #define ESP_ANT_SEL1                    90
137 #define ESP_ANT_SEL2                    91
138 #define ESP_ANT_SEL3                    92
139 #define ESP_ANT_SEL4                    93
140 #define ESP_ANT_SEL5                    94
141 #define ESP_ANT_SEL6                    95
142 #define ESP_ANT_SEL7                    96
143 #define ESP_SIG_IN_FUNC_97              97
144 #define ESP_SIG_IN_FUNC97               97
145 #define ESP_SIG_IN_FUNC_98              98
146 #define ESP_SIG_IN_FUNC98               98
147 #define ESP_SIG_IN_FUNC_99              99
148 #define ESP_SIG_IN_FUNC99               99
149 #define ESP_SIG_IN_FUNC_100             100
150 #define ESP_SIG_IN_FUNC100              100
151 #define ESP_SYNCERR                     101
152 #define ESP_SYNCFOUND_FLAG              102
153 #define ESP_EVT_CNTL_IMMEDIATE_ABORT    103
154 #define ESP_LINKLBL                     104
155 #define ESP_DATA_EN                     105
156 #define ESP_DATA                        106
157 #define ESP_PKT_TX_ON                   107
158 #define ESP_PKT_RX_ON                   108
159 #define ESP_RW_TX_ON                    109
160 #define ESP_RW_RX_ON                    110
161 #define ESP_EVT_REQ_P                   111
162 #define ESP_EVT_STOP_P                  112
163 #define ESP_BT_MODE_ON                  113
164 #define ESP_GPIO_LC_DIAG0               114
165 #define ESP_GPIO_LC_DIAG1               115
166 #define ESP_GPIO_LC_DIAG2               116
167 #define ESP_CH                          117
168 #define ESP_RX_WINDOW                   118
169 #define ESP_UPDATE_RX                   119
170 #define ESP_RX_STATUS                   120
171 #define ESP_CLK_GPIO                    121
172 #define ESP_NBT_BLE                     122
173 #define ESP_CLK_OUT_OUT1                123
174 #define ESP_CLK_OUT_OUT2                124
175 #define ESP_CLK_OUT_OUT3                125
176 #define ESP_SPICS1_OUT                  126
177 #define ESP_SIG_GPIO_OUT                128
178 #define ESP_GPIO_MAP_DATE               0x2006130
179 
180 #endif  /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_ESP32C3_GPIO_SIGMAP_H_ */
181