mbox series

[net-next,0/6] net: phy: dp83869: Add support for downstream SFP cages

Message ID 20240701-b4-dp83869-sfp-v1-0-a71d6d0ad5f8@bootlin.com (mailing list archive)
Headers show
Series net: phy: dp83869: Add support for downstream SFP cages | expand

Message

Romain Gantois July 1, 2024, 8:51 a.m. UTC
Hello everyone,

This is version one of my series that adds support for downstream SFP cages
to the DP83869 PHY driver.

The DP83869HM PHY transceiver supports a variety of different conversion
modes, including RGMII to SGMII and RGMII to 1000Base-X. With these last
two modes, the DP83869 can act as a bridge between an Ethernet MAC and an SFP
cage in one of the following two configurations:

RGMII-SGMII bridge:

+-------+       +------------+        +-----------+--------------------+
|       |RGMII  |            | SGMII  |                                |
|  MAC  |<----->| DP83869HM  |<------>| SFP cage with SGMII SFP module |
|       |       |            |        |                                |
+-------+       +------------+        +-----------+--------------------+

RGMII-1000Base-X converter:

+-------+        +------------+1000Base-X+-----------+--------------------+
|       |RGMII   |            |          |                                |
|  MAC  |<------>| DP83869HM  |<-------->| SFP cage with DAC/fiber module |
|       |        |            |          |                                |
+-------+        +------------+          +-----------+--------------------+

The RGMII-SGMII and RGMII-1000Base-X are currently supported in the PHY
driver, but there are some flaws that prevent proper operation with
downstream SFP modules. Additionally, the sfp_upstream_ops callbacks which
are needed to interact with the downstream SFP modules are not yet
implemented.

This series adds full support for both SGMII and DAC SFP modules by
implementing these sfp_upstream_ops callbacks and fixing relevant issues in
the existing DP83869 operational modes.

Best Regards,

Romain

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
---
Romain Gantois (6):
      net: phy: dp83869: Disable autonegotiation in RGMII/1000Base-X mode
      net: phy: dp83869: Perform software restart after configuring op mode
      net: phy: dp83869: Ensure that the FORCE_LINK_GOOD bit is cleared
      net: phy: dp83869: Support 1000Base-X and 100Base-FX SFP modules
      net: phy: dp83869: Support SGMII SFP modules
      net: phy: dp83869: Fix link up reporting in SGMII bridge mode

 drivers/net/phy/dp83869.c | 269 +++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 233 insertions(+), 36 deletions(-)
---
base-commit: 30972a4ea092bacb9784fe251327571be6a99f9c
change-id: 20240628-b4-dp83869-sfp-8ea96b3f438c

Best regards,