[PATCH 1/2] net: xgmac: switch to upstream compatible
Michael Tretter
m.tretter at pengutronix.de
Wed Apr 22 23:58:11 PDT 2026
The "intel,socfpga-dwxgmac" binding is not defined, but the correct
binding is "altr,socfpga-stmmac-agilex5".
Switch to the correct upstream compatible for the driver.
This breaks backwards compatibility with older and downstream device
trees. Since the binding was never officially defined, implementing the
necessary compatibility isn't worth it.
Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
drivers/net/designware_xgmac_socfpga.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/designware_xgmac_socfpga.c b/drivers/net/designware_xgmac_socfpga.c
index 21373c50d962..7598798c5de6 100644
--- a/drivers/net/designware_xgmac_socfpga.c
+++ b/drivers/net/designware_xgmac_socfpga.c
@@ -83,9 +83,9 @@ static int xgmac_probe_resources_socfpga(struct device *dev)
dev_err(dev, "Invalid reset line 'stmmaceth'.\n");
return PTR_ERR(xgmac->rst);
}
- xgmac->rst_ocp = reset_control_get(dev, "stmmaceth-ocp");
+ xgmac->rst_ocp = reset_control_get(dev, "ahb");
if (IS_ERR(xgmac->rst_ocp)) {
- dev_err(dev, "Invalid reset line 'stmmaceth-ocp'.\n");
+ dev_err(dev, "Invalid reset line 'ahb'.\n");
return PTR_ERR(xgmac->rst_ocp);
}
@@ -139,7 +139,7 @@ struct xgmac_config __maybe_unused xgmac_socfpga_config = {
static __maybe_unused struct of_device_id xgmac_socfpga_compatible[] = {
{
- .compatible = "intel,socfpga-dwxgmac",
+ .compatible = "altr,socfpga-stmmac-agilex5",
.data = &xgmac_socfpga_config
}, {
/* sentinel */
--
2.47.3
More information about the barebox
mailing list