lkml.org 
[lkml]   [2019]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S
    Date
    On 7/30/19 10:55 PM, Tao Ren wrote:
    > On 7/30/19 7:34 PM, Andrew Lunn wrote:
    >>> 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.
    >
    >> 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
    \
     
     \ /
      Last update: 2019-08-01 07:08    [W:3.672 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site