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)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:39 +0000 (08:24 +0900)
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>
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Tested-by: Tommaso Merciai <tomm.merciai@gmail.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index 0046a4e..807eca7 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;