Skip to content

Commit 8020ca5

Browse files
committed
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/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents c6dc26d + a5e290a commit 8020ca5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ maintainers:
1111

1212
description:
1313
This binding describes the Altera SOCFPGA SoC implementation of the
14-
Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, and Agilex7 families
15-
of chips.
14+
Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, Agilex5 and Agilex7
15+
families of chips.
1616
# TODO: Determine how to handle the Arria10 reset-name, stmmaceth-ocp, that
1717
# does not validate against net/snps,dwmac.yaml.
1818

@@ -23,6 +23,7 @@ select:
2323
enum:
2424
- altr,socfpga-stmmac
2525
- altr,socfpga-stmmac-a10-s10
26+
- altr,socfpga-stmmac-agilex5
2627

2728
required:
2829
- compatible
@@ -42,6 +43,9 @@ properties:
4243
- const: altr,socfpga-stmmac-a10-s10
4344
- const: snps,dwmac-3.74a
4445
- const: snps,dwmac
46+
- items:
47+
- const: altr,socfpga-stmmac-agilex5
48+
- const: snps,dwxgmac-2.10
4549

4650
clocks:
4751
minItems: 1

drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ static const struct socfpga_dwmac_ops socfpga_gen10_ops = {
515515
static const struct of_device_id socfpga_dwmac_match[] = {
516516
{ .compatible = "altr,socfpga-stmmac", .data = &socfpga_gen5_ops },
517517
{ .compatible = "altr,socfpga-stmmac-a10-s10", .data = &socfpga_gen10_ops },
518+
{ .compatible = "altr,socfpga-stmmac-agilex5", .data = &socfpga_gen10_ops },
518519
{ }
519520
};
520521
MODULE_DEVICE_TABLE(of, socfpga_dwmac_match);

0 commit comments

Comments
 (0)