12-06-2019 04:05 AM
we are trying to establish a phy-less connection between 1G/2.5G PCS/PMA SGMII IP Core and a Broadcom Swtich.
-> The SGMII Core is configured in Phy Mode
-> Auto-negotiation is enabled
-> IP is connected to PS (Zynq Ultrascale+)
Over MDIO we make sure, auto-neg is enabled:
The value of Register 0 is 0x1140
To set the advertised speed, we write down the value 0xD801 over MDIO to Register 4.
The should be 1Gb/s and full Duplex.
Unfortunately, the acutal negotiated speed is only 10M and Half Duplex. The Value of Register 4 is automatically set back to 0xD001.
It seems that the IP doesn't accept BITS[11:10] to be set to the value "10" = 1Gb/s.
What could be the reason for that?
Restarting Auto-negotiation by setting Bit 9 in Register 0 doesn't change anything.
The Link Partner (Broadcom Switch) is able to handle 1Gb/s. We have proved it on an external Phy.
Also our SGMII IP is able to work with 1Gb/s if we connet it to the external phy and set it to MAC Mode.
Any help would be very appreciated.
12-09-2019 02:01 AM
Hi @astei87 ,
First, I am not sure if SGMII PHY mode is what you should use. SGMII PHY mode is supposed to be used when connecting to a BASE-T PHY with GMII interface. Does your broadcome switch has GMII or SGMII? The MAC to MAC connection can be supported by using "fixed-link". Are you using Linux or baremetal driver?
12-09-2019 11:59 PM
1. You set IP as SGMII mode
2. You write Reg4 via MDIO
3. Then you read Reg4 and the write value fails to work?
Have you tried writing any other register via MDIO? Like Reg0
When you read it back, the write behavior is successful?
12-10-2019 12:51 AM - edited 12-10-2019 12:57 AM
thx for your comment.
The Switch has a SGMII Interface. So My IP is configured also as SGMII.
I have tried to set the IP also in MAC mode but in that case i see a "Remote fault Encoding" in the status vector.
In Phy Mode this bit is not set. In both modes i have a valid Link.
Maybe i don't understand the difference between MAC mode and Phy mode? I thought its only for the auto-negotiation. In Phy Mode the IP sets the speed. And in MAC mode the IP will accept the speed according to the target from the Partner.
I will give you the answers by tomorrow. The colleague, who wirtes the mdio driver is still on vacation.