Skip to content

Commit c03ab39

Browse files
committed
Merge branch 'feat/support_sdio_on_c61' into 'master'
feat(sdio): supported slave sdio on esp32c61 Closes IDF-12883, IDF-12594, and IDF-10151 See merge request espressif/esp-idf!40485
2 parents 7611a37 + a4bbc07 commit c03ab39

File tree

12 files changed

+631
-10
lines changed

12 files changed

+631
-10
lines changed

components/esp_driver_sdio/test_apps/sdio/sdio_common_tests/host_sdmmc/main/Kconfig.projbuild

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ menu "SDIO Slave Test Host Configuration"
33
prompt "SDIO Slave Chip"
44
default TEST_SDIO_SLAVE_TARGET_ESP32
55
help
6-
SDIO Slave chip target
6+
default test board conditions targets: ESP32, ESP32C6, ESP32C61
77

88
config TEST_SDIO_SLAVE_TARGET_ESP32
99
bool "SDIO Slave ESP32"
10-
config TEST_SDIO_SLAVE_TARGET_ESP32C6
11-
bool "SDIO Slave ESP32C6"
1210
config TEST_SDIO_SLAVE_TARGET_ESP32C5
1311
bool "SDIO Slave ESP32C5"
1412
endchoice

components/esp_driver_sdio/test_apps/sdio/sdio_common_tests/pytest_sdio.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,17 @@ def parameter_expand(existing_parameters: List[List[str]], value_list: List[str]
3636
]
3737
]
3838

39+
esp32_c61_param = [
40+
[
41+
f'{os.path.join(os.path.dirname(__file__), "host_sdmmc")}|{os.path.join(os.path.dirname(__file__), "sdio")}',
42+
'esp32|esp32c61',
43+
]
44+
]
45+
3946
esp32_param_default = [pytest.param(*param) for param in parameter_expand(esp32_32_param, ['default|default'])]
4047
c6_param_default = [pytest.param(*param) for param in parameter_expand(esp32_c6_param, ['default|default'])]
4148
c5_param_default = [pytest.param(*param) for param in parameter_expand(esp32p4_c5_param, ['esp32p4_esp32c5|default'])]
49+
c61_param_default = [pytest.param(*param) for param in parameter_expand(esp32_c61_param, ['default|default'])]
4250

4351
c6_param_retention = [pytest.param(*param) for param in parameter_expand(esp32_c6_param, ['default|sleep_retention'])]
4452

@@ -95,6 +103,19 @@ def test_sdio_esp32p4_esp32c5(dut: Tuple[IdfDut, IdfDut]) -> None:
95103
test_sdio_flow(dut)
96104

97105

106+
@pytest.mark.sdio_multidev_32_c61
107+
@pytest.mark.parametrize(
108+
'count',
109+
[
110+
2,
111+
],
112+
indirect=True,
113+
)
114+
@pytest.mark.parametrize('app_path, target, config', c61_param_default, indirect=True)
115+
def test_sdio_esp32_esp32c61(dut: Tuple[IdfDut, IdfDut]) -> None:
116+
test_sdio_flow(dut)
117+
118+
98119
# From host speed tests
99120
def test_sdio_speed_frhost_flow(dut: Tuple[IdfDut, IdfDut], expected_4b_speed: int, expected_1b_speed: int) -> None:
100121
dut[1].expect('Press ENTER to see the list of tests')
@@ -154,6 +175,19 @@ def test_sdio_speed_frhost_esp32p4_esp32c5(dut: Tuple[IdfDut, IdfDut]) -> None:
154175
test_sdio_speed_frhost_flow(dut, 10000, 4000)
155176

156177

178+
@pytest.mark.sdio_multidev_32_c61
179+
@pytest.mark.parametrize(
180+
'count',
181+
[
182+
2,
183+
],
184+
indirect=True,
185+
)
186+
@pytest.mark.parametrize('app_path, target, config', c61_param_default, indirect=True)
187+
def test_sdio_speed_frhost_esp32_esp32c61(dut: Tuple[IdfDut, IdfDut]) -> None:
188+
test_sdio_speed_frhost_flow(dut, 10000, 4000)
189+
190+
157191
# To host speed tests
158192
def test_sdio_speed_tohost_flow(dut: Tuple[IdfDut, IdfDut], expected_4b_speed: int, expected_1b_speed: int) -> None:
159193
dut[1].expect('Press ENTER to see the list of tests')
@@ -213,6 +247,19 @@ def test_sdio_speed_tohost_esp32p4_esp32c5(dut: Tuple[IdfDut, IdfDut]) -> None:
213247
test_sdio_speed_tohost_flow(dut, 8500, 4000)
214248

215249

250+
@pytest.mark.sdio_multidev_32_c61
251+
@pytest.mark.parametrize(
252+
'count',
253+
[
254+
2,
255+
],
256+
indirect=True,
257+
)
258+
@pytest.mark.parametrize('app_path, target, config', c61_param_default, indirect=True)
259+
def test_sdio_speed_tohost_esp32_esp32c61(dut: Tuple[IdfDut, IdfDut]) -> None:
260+
test_sdio_speed_tohost_flow(dut, 8500, 4000)
261+
262+
216263
# Retention tests
217264
def test_sdio_retention(dut: Tuple[IdfDut, IdfDut]) -> None:
218265
dut[1].expect('Press ENTER to see the list of tests')

components/esp_driver_sdio/test_apps/sdio/sdio_common_tests/sdio/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C5 | ESP32-C6 |
2-
| ----------------- | ----- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C5 | ESP32-C6 | ESP32-C61 |
2+
| ----------------- | ----- | -------- | -------- | --------- |
33

44
# SDIO Cross Chips Test Apps: SDIO Slave App
55

0 commit comments

Comments
 (0)