diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-07-25 16:55:38 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-25 16:55:39 -0700 |
commit | 8020ca54a87733c03a14c937fc4f175db2484185 (patch) | |
tree | 6b7e94bdd911c7c4e028e42344fb9aed347cbd4e | |
parent | c6dc26df6b4883de63cb237b4070feba92b01a87 (diff) | |
parent | a5e290aab8fc60791486e24bc69f0fce91165a50 (diff) |
Merge branch 'arm64-dts-socfpga-enable-ethernet-support-for-agilex5'
Matthew Gerlach says:
====================
arm64: dts: socfpga: enable ethernet support for Agilex5
This patch set enables ethernet support for the Agilex5 family of SOCFPGAs,
and specifically enables gmac2 on the Agilex5 SOCFPGA Premium Development
Kit.
Patch 1 defines Agilex5 compatibility string in the device tree bindings.
Patch 2 add the new compatibility string to dwmac-socfpga.c.
====================
Link: https://patch.msgid.link/20250724154052.205706-1-matthew.gerlach@altera.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml | 8 | ||||
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml index ec34daff2aa0..3a22d35db778 100644 --- a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml +++ b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml @@ -11,8 +11,8 @@ maintainers: description: This binding describes the Altera SOCFPGA SoC implementation of the - Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, and Agilex7 families - of chips. + Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, Agilex5 and Agilex7 + families of chips. # TODO: Determine how to handle the Arria10 reset-name, stmmaceth-ocp, that # does not validate against net/snps,dwmac.yaml. @@ -23,6 +23,7 @@ select: enum: - altr,socfpga-stmmac - altr,socfpga-stmmac-a10-s10 + - altr,socfpga-stmmac-agilex5 required: - compatible @@ -42,6 +43,9 @@ properties: - const: altr,socfpga-stmmac-a10-s10 - const: snps,dwmac-3.74a - const: snps,dwmac + - items: + - const: altr,socfpga-stmmac-agilex5 + - const: snps,dwxgmac-2.10 clocks: minItems: 1 diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c index 72b50f6d72f4..01dd0cf0923c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c @@ -515,6 +515,7 @@ static const struct socfpga_dwmac_ops socfpga_gen10_ops = { static const struct of_device_id socfpga_dwmac_match[] = { { .compatible = "altr,socfpga-stmmac", .data = &socfpga_gen5_ops }, { .compatible = "altr,socfpga-stmmac-a10-s10", .data = &socfpga_gen10_ops }, + { .compatible = "altr,socfpga-stmmac-agilex5", .data = &socfpga_gen10_ops }, { } }; MODULE_DEVICE_TABLE(of, socfpga_dwmac_match); |