Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S
From: Tao Ren <hidden>
Date: 2019-08-01 05:08:08
Also in:
lkml, openbmc
From: Tao Ren <hidden>
Date: 2019-08-01 05:08:08
Also in:
lkml, openbmc
On 7/30/19 10:55 PM, Tao Ren wrote:
On 7/30/19 7:34 PM, Andrew Lunn wrote:quoted
quoted
Hi Andrew, The BCM54616S PHY on my machine is connected to a BCM5396 switch chip over backplane (1000Base-KX).Ah, that is different. So the board is using it for RGMII to 1000Base-KX? phy-mode is about the MAC-PHY link. So in this case RGMII.Yes. It's RGMII to 1000Base-KX.quoted
There is no DT way to configure the PHY-Switch link. However, it sounds like you have the PHY strapped so it is doing 1000BaseX on the PHY-Switch link. So do you actually need to configure this?The PHY is strapped in RGMII-Fiber Mode (the term used in datasheet), but besides 1000BaseX, 100Base-FX is also supported in this mode. The datasheet doesn't say which link type (1000BaseX or 100Base-FX) is active after reset and I cannot find a way to auto-detect the link type, either.
I found bit 0 of 100-FX control register can be used to detect PHY-switch link type (means DT is not needed). Will run more testing and send out v2 patch soon. Thank you all for the input and help. Cheers, Tao