Skip to content

Commit 023b034

Browse files
Raffael Rostagnosylvioalves
authored andcommitted
soc: esp32c6: Add i2s pinctrl and HAL file
Add pinctrl and HAL file for ESP32-C6. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 0e883f7 commit 023b034

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

zephyr/esp32c6/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ if(CONFIG_SOC_SERIES_ESP32C6)
299299
../../components/hal/i2c_hal.c
300300
)
301301

302+
zephyr_sources_ifdef(
303+
CONFIG_I2S_ESP32
304+
../../components/hal/i2s_hal.c
305+
)
306+
302307
zephyr_sources_ifdef(
303308
CONFIG_COUNTER_TMR_ESP32
304309
../../components/hal/timer_hal.c

zephyr/port/pincfgs/esp32c6.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,34 @@ i2c0:
152152
sigo: i2cext0_scl_out
153153
gpio: [[0, 23]]
154154

155+
i2s:
156+
mclk:
157+
sigi: i2s_mclk_in
158+
sigo: i2s_mclk_out
159+
gpio: [[0, 23]]
160+
i_bck:
161+
sigi: i2si_bck_in
162+
sigo: i2si_bck_out
163+
gpio: [[0, 23]]
164+
i_ws:
165+
sigi: i2si_ws_in
166+
sigo: i2si_ws_out
167+
gpio: [[0, 23]]
168+
i_sd:
169+
sigi: i2si_sd_in
170+
gpio: [[0, 23]]
171+
o_bck:
172+
sigi: i2so_bck_in
173+
sigo: i2so_bck_out
174+
gpio: [[0, 23]]
175+
o_ws:
176+
sigi: i2so_ws_in
177+
sigo: i2so_ws_out
178+
gpio: [[0, 23]]
179+
o_sd:
180+
sigo: i2so_sd_out
181+
gpio: [[0, 23]]
182+
155183
twai0:
156184
rx:
157185
sigi: twai0_rx

0 commit comments

Comments
 (0)