]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Add ethernet node for zc1275 revB
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 12 Oct 2018 11:25:36 +0000 (16:55 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 12 Oct 2018 13:34:05 +0000 (15:34 +0200)
This patch add ethernet node gem1 to zc1275 RevB.
GMII to RGMII converter sits between MAC and external
phy connected over GMII to MAC and RGMMI to external phy.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-zc1275-revB.dts

index e84b2da164cc501520dcbd9fbe1ee2f978d11d8b..027ff83562f836c744a27487d932553152ab98e1 100644 (file)
@@ -22,6 +22,7 @@
                serial1 = &dcc;
                spi0 = &qspi;
                mmc0 = &sdhci1;
+               ethernet0 = &gem1;
        };
 
        chosen {
        status = "okay";
 };
 
+&gem1 {
+       status = "okay";
+       phy-mode = "gmii";
+       phy-handle = <&gmiitorgmii>;
+       phy: ethernet-phy@0 {
+               reg = <0x0>;
+       };
+       gmiitorgmii: gmiitorgmii@8 {
+               compatible = "xlnx,gmii-to-rgmii-1.0";
+               reg = <8>;
+               phy-handle = <&phy>;
+       };
+};
+
 &qspi {
        status = "okay";
        flash@0 {