[PATCH 1/2] net: phy: add PSGMII (Penta SGMII) mode

Robert Marko robert.marko at sartura.hr
Wed May 22 12:06:15 CEST 2024


The PSGMII interface is similar to QSGMII. The main difference
is that the PSGMII interface combines five SGMII lines into a
single link while in QSGMII only four lines are combined.

Similarly to the QSGMII, this interface mode might also needs
special handling within the MAC driver.

It is commonly used by Qualcomm with their QCA807x PHY series and
modern WiSoC-s.

Add definitions for the PHY layer to allow to express this type
of connection between the MAC and PHY.

This is basically a direct port from Linux which already supports this
mode.

Signed-off-by: Robert Marko <robert.marko at sartura.hr>
---
 include/phy_interface.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/phy_interface.h b/include/phy_interface.h
index 31be3228c7..04826bc65d 100644
--- a/include/phy_interface.h
+++ b/include/phy_interface.h
@@ -31,6 +31,7 @@ typedef enum {
 	PHY_INTERFACE_MODE_XGMII,
 	PHY_INTERFACE_MODE_XLGMII,
 	PHY_INTERFACE_MODE_MOCA,
+	PHY_INTERFACE_MODE_PSGMII,
 	PHY_INTERFACE_MODE_QSGMII,
 	PHY_INTERFACE_MODE_TRGMII,
 	PHY_INTERFACE_MODE_100BASEX,
@@ -79,6 +80,7 @@ static const char * const phy_interface_strings[] = {
 	[PHY_INTERFACE_MODE_XGMII]		= "xgmii",
 	[PHY_INTERFACE_MODE_XLGMII]		= "xlgmii",
 	[PHY_INTERFACE_MODE_MOCA]		= "moca",
+	[PHY_INTERFACE_MODE_PSGMII]		= "psgmii",
 	[PHY_INTERFACE_MODE_QSGMII]		= "qsgmii",
 	[PHY_INTERFACE_MODE_TRGMII]		= "trgmii",
 	[PHY_INTERFACE_MODE_1000BASEX]		= "1000base-x",
-- 
2.45.1



More information about the U-Boot mailing list