]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: socfpga: agilex5: enable gmac2 on the Agilex5 dev kit
authorMatthew Gerlach <matthew.gerlach@altera.com>
Mon, 18 Aug 2025 16:39:33 +0000 (09:39 -0700)
committerDinh Nguyen <dinguyen@kernel.org>
Sun, 31 Aug 2025 01:27:06 +0000 (20:27 -0500)
Enable gmac2 on the Agilex5 SOCFGPA Development Kit. The MAC is connected
to a RGMII PHY on a daughter card. There are no RGMII clock delays
implemented the on PCB.

Signed-off-by: Matthew Gerlach <matthew.gerlach@altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts

index d3b913b7902c19fd2f9992af8f81cccce4222af8..e9776e1cdc9a004d7f806a667b29fc6fa51ab0e4 100644 (file)
@@ -10,6 +10,9 @@
 
        aliases {
                serial0 = &uart0;
+               ethernet0 = &gmac0;
+               ethernet1 = &gmac1;
+               ethernet2 = &gmac2;
        };
 
        chosen {
        status = "okay";
 };
 
+&gmac2 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&emac2_phy0>;
+       max-frame-size = <9000>;
+
+       mdio0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "snps,dwmac-mdio";
+
+               emac2_phy0: ethernet-phy@0 {
+                       reg = <0>;
+               };
+       };
+};
+
 &gpio1 {
        status = "okay";
 };