Hi,
We are trying to use the SFP to handle 1G Ethernet port. I am using Petalinux to configure the system-user.dtsi based on the XSA from the FPGA team.
The device-tree in the PL (components/plnx_workspace/devicetree/devicetree) shows this
gem3: ethernet@ff0e0000 {
compatible = "xlnx,zynqmp-gem", "cdns,gem";
status = "disabled";
interrupt-parent = <&gic>;
interrupts = <0 63 4>, <0 63 4>;
reg = <0x0 0xff0e0000 0x0 0x1000>;
clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk";
#address-cells = <1>;
#size-cells = <0>;
iommus = <&smmu 0x877>;
power-domains = <&zynqmp_firmware PD_ETH_3>;
resets = <&zynqmp_reset ZYNQMP_RESET_GEM3>;
reset-names = "gem3_rst";
};
In the system-user.dtsi i put this
/include/ "system-conf.dtsi"
/ {
};
&gem3 {
status = "okay";
phy-mode = "gmii";
phy-handle = <&phy0>;
phy0 {
reg = <0x0>;
xlnx,phy-type = <0x5>;
device_type = "ethernet-phy";
};
};
After build and board boot up - we get this on dmesg (eth0 does not come up)
[ 7.843527] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 irq 64 (fc:0f:e7:1a:94:97)
[ 15.106443] macb ff0e0000.ethernet eth0: Could not attach PHY (-19)