10-11-2016 11:59 PM
Hello,
Im trying to run SFP modules connected to MGT on xczu9eg. GEM and MDIO configured as "EMIO", in block design GMII_ENET and MDIO_ENET
conneted to "1G/2.5G Ethernet PCS/PMA" core ver 15.2.
Core settings:
Ethernet "Zynq PS Gigabit Ethernet Controller",
1000BASEX,
Reference clock 125 MHz,
DRP clock 6.25 MHz,
Auto Negotiation,
PHY Address 1,
Include shared logic in Core (second core have "Include Shared logic in Example Design" and take clocks from first).
Petalinux device tree
...
&gem0 {
phy-handle = <&phy1>;
phy1: phy@1 {
device_type = "ethernet-phy";
reg = <0x1>;
};
};
...
the same configuration for ethernet 1
With loopback cable, after start I see
root@petalinux:~# ifconfig eth1 up
root@petalinux:~# [ 56.937672] macb ff0c0000.ethernet eth1: unable to generate target frequency: 2500000 Hz
[ 56.945846] macb ff0c0000.ethernet eth1: link up (10/Half)
PHY registers
root@petalinux:~# phy-tool --phy=1 --read=2 eth0
using the specified MII index 1.
Reading register[2] = 0x0174
eth0: negotiated 100baseTx-FD, link ok
root@petalinux:~# phy-tool --phy=1 --read=1 eth0
using the specified MII index 1.
Reading register[1] = 0x01ec
eth0: negotiated 100baseTx-FD, link ok
both ethernet interfaces become up for some short time and then going down.
During up time linux report link up/down if connect/disconnect loopback cable.
Problems that there is no RX packets on both interfaces and linux driver show incorrect link speed and type.
Best regards
Oleksandr