Message ID | E1dGNJX-00043v-3M@rmk-PC.armlinux.org.uk |
---|---|
State | Superseded, archived |
Headers | show |
On Thu, Jun 01, 2017 at 11:26:47AM +0100, Russell King wrote: > XAUI allows XGMII to reach an extended distance by using a XGXS layer at > each end of the MAC to PHY link, operating over four Serdes lanes. > > 10GBASE-KR is a single lane Serdes backplane ethernet connection method > with autonegotiation on the link. Some PHYs use this to connect to the > ethernet interface at 10G speeds, switching to other connection types > when utilising slower speeds. > > 10GBASE-KR is also used for XFI and SFI to connect to XFP and SFP fiber > modules. > > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 06/01/2017 03:26 AM, Russell King wrote: > XAUI allows XGMII to reach an extended distance by using a XGXS layer at > each end of the MAC to PHY link, operating over four Serdes lanes. > > 10GBASE-KR is a single lane Serdes backplane ethernet connection method > with autonegotiation on the link. Some PHYs use this to connect to the > ethernet interface at 10G speeds, switching to other connection types > when utilising slower speeds. > > 10GBASE-KR is also used for XFI and SFI to connect to XFP and SFP fiber > modules. > > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> This looks good, but you also need to update Documentation/ABI/testing/sysfs-class-net-phydev since we report phy_interface from sysfs. With that fixed: Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
On Thu, Jun 01, 2017 at 09:56:48AM -0700, Florian Fainelli wrote: > On 06/01/2017 03:26 AM, Russell King wrote: > > XAUI allows XGMII to reach an extended distance by using a XGXS layer at > > each end of the MAC to PHY link, operating over four Serdes lanes. > > > > 10GBASE-KR is a single lane Serdes backplane ethernet connection method > > with autonegotiation on the link. Some PHYs use this to connect to the > > ethernet interface at 10G speeds, switching to other connection types > > when utilising slower speeds. > > > > 10GBASE-KR is also used for XFI and SFI to connect to XFP and SFP fiber > > modules. > > > > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> > > This looks good, but you also need to update > Documentation/ABI/testing/sysfs-class-net-phydev since we report > phy_interface from sysfs. Hmm, seems to be a new file recently merged into net-next. Ok, I'll provide an update for that.
diff --git a/Documentation/devicetree/bindings/net/ethernet.txt b/Documentation/devicetree/bindings/net/ethernet.txt index 3a6916909d90..d4abe9a98109 100644 --- a/Documentation/devicetree/bindings/net/ethernet.txt +++ b/Documentation/devicetree/bindings/net/ethernet.txt @@ -32,6 +32,8 @@ * "2000base-x", * "2500base-x", * "rxaui" + * "xaui" + * "10gbase-kr" (10GBASE-KR, XFI, SFI) - phy-connection-type: the same as "phy-mode" property but described in ePAPR; - phy-handle: phandle, specifies a reference to a node representing a PHY device; this property is described in ePAPR and so preferred; diff --git a/include/linux/phy.h b/include/linux/phy.h index 45dfe1b2b003..45728d0a0d0e 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -84,6 +84,9 @@ typedef enum { PHY_INTERFACE_MODE_1000BASEX, PHY_INTERFACE_MODE_2500BASEX, PHY_INTERFACE_MODE_RXAUI, + PHY_INTERFACE_MODE_XAUI, + /* 10GBASE-KR, XFI, SFI - single lane 10G Serdes */ + PHY_INTERFACE_MODE_10GKR, PHY_INTERFACE_MODE_MAX, } phy_interface_t; @@ -150,6 +153,10 @@ static inline const char *phy_modes(phy_interface_t interface) return "2500base-x"; case PHY_INTERFACE_MODE_RXAUI: return "rxaui"; + case PHY_INTERFACE_MODE_XAUI: + return "xaui"; + case PHY_INTERFACE_MODE_10GKR: + return "10gbase-kr"; default: return "unknown"; }
XAUI allows XGMII to reach an extended distance by using a XGXS layer at each end of the MAC to PHY link, operating over four Serdes lanes. 10GBASE-KR is a single lane Serdes backplane ethernet connection method with autonegotiation on the link. Some PHYs use this to connect to the ethernet interface at 10G speeds, switching to other connection types when utilising slower speeds. 10GBASE-KR is also used for XFI and SFI to connect to XFP and SFP fiber modules. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> --- Documentation/devicetree/bindings/net/ethernet.txt | 2 ++ include/linux/phy.h | 7 +++++++ 2 files changed, 9 insertions(+)