forked from espressif/esp-idf
ci(esp_eth): added ESP32P4 as target for ETH tests
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
components/esp_eth/test_apps:
|
components/esp_eth/test_apps:
|
||||||
enable:
|
enable:
|
||||||
- if: IDF_TARGET == "esp32"
|
- if: IDF_TARGET in ["esp32", "esp32p4"]
|
||||||
reason: only test on esp32
|
reason: ESP32 and ESP32P4 have internal EMAC. SPI Ethernet runners are based on ESP32.
|
||||||
depends_components:
|
depends_components:
|
||||||
- esp_eth
|
- esp_eth
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# EMAC Test
|
# EMAC Test
|
||||||
| Supported Targets | ESP32 |
|
| Supported Targets | ESP32 | ESP32-P4 |
|
||||||
| ----------------- | ----- |
|
| ----------------- | ----- | -------- |
|
||||||
|
|
||||||
This test app is used to test Ethernet MAC behavior with different chips.
|
This test app is used to test Ethernet MAC behavior with different chips.
|
||||||
|
|
||||||
|
@@ -265,6 +265,29 @@ def test_esp_eth_ip101(dut: IdfDut) -> None:
|
|||||||
ethernet_l2_test(dut)
|
ethernet_l2_test(dut)
|
||||||
|
|
||||||
|
|
||||||
|
# ----------- IP101 ESP32P4 -----------
|
||||||
|
@pytest.mark.esp32p4
|
||||||
|
@pytest.mark.eth_ip101
|
||||||
|
@pytest.mark.parametrize('config', [
|
||||||
|
'default_ip101_esp32p4',
|
||||||
|
], indirect=True)
|
||||||
|
def test_esp32p4_ethernet(dut: IdfDut) -> None:
|
||||||
|
ethernet_test(dut)
|
||||||
|
dut.serial.hard_reset()
|
||||||
|
ethernet_l2_test(dut)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.esp32p4
|
||||||
|
@pytest.mark.eth_ip101
|
||||||
|
@pytest.mark.parametrize('config', [
|
||||||
|
'default_ip101_esp32p4',
|
||||||
|
], indirect=True)
|
||||||
|
def test_esp32p4_emac(dut: IdfDut) -> None:
|
||||||
|
ethernet_int_emac_test(dut)
|
||||||
|
dut.serial.hard_reset()
|
||||||
|
ethernet_heap_alloc_test(dut)
|
||||||
|
|
||||||
|
|
||||||
# ----------- LAN8720 -----------
|
# ----------- LAN8720 -----------
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.eth_lan8720
|
@pytest.mark.eth_lan8720
|
||||||
|
@@ -8,6 +8,4 @@ CONFIG_ESP_TASK_WDT_EN=n
|
|||||||
CONFIG_TARGET_USE_INTERNAL_ETHERNET=y
|
CONFIG_TARGET_USE_INTERNAL_ETHERNET=y
|
||||||
CONFIG_TARGET_ETH_PHY_DEVICE_IP101=y
|
CONFIG_TARGET_ETH_PHY_DEVICE_IP101=y
|
||||||
|
|
||||||
CONFIG_TARGET_USE_DEFAULT_EMAC_CONFIG=n
|
CONFIG_TARGET_USE_DEFAULT_EMAC_CONFIG=y
|
||||||
CONFIG_TARGET_IO_MDC=31
|
|
||||||
CONFIG_TARGET_IO_MDIO=27
|
|
||||||
|
Reference in New Issue
Block a user