net: stmmac: add support for dwmac 3.72a
authorLothar Rubusch <l.rubusch@gmail.com>
Sat, 2 Nov 2024 11:41:21 +0000 (11:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Nov 2024 01:45:17 +0000 (17:45 -0800)
The dwmac 3.72a is an ip version that can be found on Intel/Altera Arria10
SoCs. Going by the hardware features "snps,multicast-filter-bins" and
"snps,perfect-filter-entries" shall be supported. Thus add a
compatibility flag, and extend coverage of the driver for the 3.72a.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241102114122.4631-2-l.rubusch@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index 598eff926815a48cae589ba8e3a2ab6d671a31b2..b9218c07eb6b8f14a96dd0694f25cb6f74c8429a 100644 (file)
@@ -56,6 +56,7 @@ static const struct of_device_id dwmac_generic_match[] = {
        { .compatible = "snps,dwmac-3.610"},
        { .compatible = "snps,dwmac-3.70a"},
        { .compatible = "snps,dwmac-3.710"},
+       { .compatible = "snps,dwmac-3.72a"},
        { .compatible = "snps,dwmac-4.00"},
        { .compatible = "snps,dwmac-4.10a"},
        { .compatible = "snps,dwmac"},
index ad868e8d195d59fe5d2d7a9dcbd319c3cba346c0..3ac32444e492209ee3b7e27b5e18a997be5e4590 100644 (file)
@@ -522,6 +522,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)
        if (of_device_is_compatible(np, "st,spear600-gmac") ||
                of_device_is_compatible(np, "snps,dwmac-3.50a") ||
                of_device_is_compatible(np, "snps,dwmac-3.70a") ||
+               of_device_is_compatible(np, "snps,dwmac-3.72a") ||
                of_device_is_compatible(np, "snps,dwmac")) {
                /* Note that the max-frame-size parameter as defined in the
                 * ePAPR v1.1 spec is defined as max-frame-size, it's