[PATCH v4 7/9] net: dwc_eth_qos: Add mediatek support
Macpaul Lin (林智斌)
Macpaul.Lin at mediatek.com
Mon May 11 12:19:11 CEST 2026
On Wed, 2026-04-29 at 15:59 +0200, Julien Stephan wrote:
> Synopsys DWC Ethernet QOS device support for MediaTek SoCs.
> in particular this initial commit adds support for Genio 520/720 and
> Genio 510/700 EVKs
>
> Signed-off-by: fanyi zhang <fanyi.zhang at mediatek.com>
> Signed-off-by: Julien Stephan <jstephan at baylibre.com>
> ---
> MAINTAINERS | 1 +
> drivers/net/Kconfig | 7 +
> drivers/net/Makefile | 1 +
> drivers/net/dwc_eth_qos.c | 6 +
> drivers/net/dwc_eth_qos.h | 2 +
> drivers/net/dwc_eth_qos_mtk.c | 442
> ++++++++++++++++++++++++++++++++++++++++++
> 6 files changed, 459 insertions(+)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 165994cd72f..9b65bb43d8f 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -442,6 +442,7 @@ F: drivers/clk/mediatek/
> F: drivers/cpu/mtk_cpu.c
> F: drivers/i2c/mtk_i2c.c
> F: drivers/mmc/mtk-sd.c
> +F: drivers/net/dwc_eth_qos_mtk.c
> F: drivers/net/mtk_eth/
> F: drivers/net/phy/mediatek/
> F: drivers/phy/phy-mtk-*
> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
> index 15a4b3b7705..cd868731d11 100644
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -246,6 +246,13 @@ config DWC_ETH_QOS_INTEL
> The Synopsys Designware Ethernet QOS IP block with the
> specific
> configuration used in the Intel Elkhart-Lake soc.
>
> +config DWC_ETH_QOS_MTK
> + bool "Synopsys DWC Ethernet QOS device support for MediaTek
> SoCs"
> + depends on DWC_ETH_QOS && ARCH_MEDIATEK
> + help
> + The Synopsys Designware Ethernet QOS IP block with the
> specific
> + configuration used in MediaTek SoCs.
> +
> config DWC_ETH_QOS_QCOM
> bool "Synopsys DWC Ethernet QOS device support for Qcom
> SoCs"
> depends on DWC_ETH_QOS
> diff --git a/drivers/net/Makefile b/drivers/net/Makefile
> index c485068e5d2..761f7f0f451 100644
> --- a/drivers/net/Makefile
> +++ b/drivers/net/Makefile
> @@ -21,6 +21,7 @@ obj-$(CONFIG_DWC_ETH_QOS) += dwc_eth_qos.o
> obj-$(CONFIG_DWC_ETH_QOS_ADI) += dwc_eth_qos_adi.o
> obj-$(CONFIG_DWC_ETH_QOS_IMX) += dwc_eth_qos_imx.o
> obj-$(CONFIG_DWC_ETH_QOS_INTEL) += dwc_eth_qos_intel.o
> +obj-$(CONFIG_DWC_ETH_QOS_MTK) += dwc_eth_qos_mtk.o
> obj-$(CONFIG_DWC_ETH_QOS_QCOM) += dwc_eth_qos_qcom.o
> obj-$(CONFIG_DWC_ETH_QOS_ROCKCHIP) += dwc_eth_qos_rockchip.o
> obj-$(CONFIG_DWC_ETH_QOS_STARFIVE) += dwc_eth_qos_starfive.o
> diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c
> index 0f31d646845..b7e6299c307 100644
> --- a/drivers/net/dwc_eth_qos.c
> +++ b/drivers/net/dwc_eth_qos.c
> @@ -1658,6 +1658,12 @@ static const struct udevice_id eqos_ids[] = {
> .compatible = "adi,sc59x-dwmac-eqos",
> .data = (ulong)&eqos_adi_config
> },
> +#endif
> +#if IS_ENABLED(CONFIG_DWC_ETH_QOS_MTK)
> + {
> + .compatible = "mediatek,mt8189-gmac",
> + .data = (ulong)&eqos_mtk_config
> + },
> #endif
> { }
> };
[snip]
Reviewed-by: Macpaul Lin <macpaul.lin at mediatek.com>
Thanks!
Macpaul Lin
More information about the U-Boot
mailing list