From 20afca89ed53c9e373d4d4f5b9bea847fc47ee20 Mon Sep 17 00:00:00 2001 From: Christophe Roullier Date: Fri, 11 Apr 2025 11:27:20 +0200 Subject: net: dwc_eth_qos: add support of stm32mp2 platform Add compatible "st,stm32mp25-dwmac" to manage STM32MP2 boards Signed-off-by: Christophe Roullier Signed-off-by: Patrice Chotard Reviewed-by: Marek Vasut Reviewed-by: Patrick Delaunay --- drivers/net/dwc_eth_qos_stm32.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'drivers/net/dwc_eth_qos_stm32.c') diff --git a/drivers/net/dwc_eth_qos_stm32.c b/drivers/net/dwc_eth_qos_stm32.c index f3a973f3774..7a28f2a3e83 100644 --- a/drivers/net/dwc_eth_qos_stm32.c +++ b/drivers/net/dwc_eth_qos_stm32.c @@ -350,3 +350,14 @@ struct eqos_config __maybe_unused eqos_stm32mp15_config = { .interface = dev_read_phy_mode, .ops = &eqos_stm32_ops }; + +struct eqos_config __maybe_unused eqos_stm32mp25_config = { + .reg_access_always_ok = false, + .mdio_wait = 10000, + .swr_wait = 50, + .config_mac = EQOS_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_DCB, + .config_mac_mdio = EQOS_MAC_MDIO_ADDRESS_CR_250_300, + .axi_bus_width = EQOS_AXI_WIDTH_64, + .interface = dev_read_phy_mode, + .ops = &eqos_stm32_ops +}; -- cgit v1.2.3