net: stmmac: platform: Add snps,dwmac-5.20 IP compatible string
authorEmil Renner Berthing <kernel@esmil.dk>
Sun, 7 Aug 2022 20:26:00 +0000 (22:26 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 9 Feb 2023 19:07:48 +0000 (20:07 +0100)
Add "snps,dwmac-5.20" compatible string for 5.20 version that can avoid
to define some platform data in the glue layer.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index eb6d9cd..971a58a 100644 (file)
@@ -519,7 +519,8 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)
        if (of_device_is_compatible(np, "snps,dwmac-4.00") ||
            of_device_is_compatible(np, "snps,dwmac-4.10a") ||
            of_device_is_compatible(np, "snps,dwmac-4.20a") ||
-           of_device_is_compatible(np, "snps,dwmac-5.10a")) {
+           of_device_is_compatible(np, "snps,dwmac-5.10a") ||
+           of_device_is_compatible(np, "snps,dwmac-5.20")) {
                plat->has_gmac4 = 1;
                plat->has_gmac = 0;
                plat->pmt = 1;