Skip to content

Conversation

@tpambor
Copy link
Contributor

@tpambor tpambor commented Dec 20, 2025

The DWMAC driver was no longer selectable for STM32H7 series because of CONFIG_ETH_DWMAC's dependency on DT_HAS_SNPS_DESIGNWARE_ETHERNET_MMU_ENABLED, which is only used for MMU based platforms.

This PR restructures the Kconfig to have user-selectable options for the platform-specific DWMAC drivers and select the common DWMAC driver accordingly. This way platform-specific dependencies can be tracked on these options, simplifying the logic.

Additionally, the DWMAC driver has been included in the Ethernet build-all test suite to improve pipeline coverage and help prevent future regressions.

DWMAC driver was no longer selectable for stm32h7
series because of CONFIG_ETH_DWMAC dependency on
DT_HAS_SNPS_DESIGNWARE_ETHERNET_MMU_ENABLED, which
is only used for MMU based platforms.

Restructure Kconfig to have user-selectable options
for the platform-specific DWMAC drivers and select
the common DWMAC driver accordingly. This way
platform-specific dependencies can be tracked on
these options, simplifying the logic.

Signed-off-by: Tim Pambor <[email protected]>
Add a test case to build the Synopsys DesignWare MAC driver for STM32H7
series SoCs. This drivers is an alternative to the existing ETH_STM32_HAL
driver. As such both drivers cannot be enabled at the same time.

Signed-off-by: Tim Pambor <[email protected]>
@zephyrbot zephyrbot added area: Ethernet area: Tests Issues related to a particular existing or missing test labels Dec 20, 2025
@tpambor tpambor requested a review from npitre December 20, 2025 09:23
@sonarqubecloud
Copy link

- stm32h573i_dk

net.ethernet.build.stm32_dwmac:
filter: dt_compat_enabled("st,stm32-ethernet")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
filter: dt_compat_enabled("st,stm32-ethernet")

Not needed with the presence of "platform_allow".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Ethernet area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants