mbox series

[net-next,V1,0/7] Add support to PHYLINK and SFP for PCI11x1x chips

Message ID 20231017094208.4956-1-Raju.Lakkaraju@microchip.com (mailing list archive)
Headers show
Series Add support to PHYLINK and SFP for PCI11x1x chips | expand

Message

Raju Lakkaraju - I30499 Oct. 17, 2023, 9:42 a.m. UTC
This patch series adds support to phylink and sfp pluggable module.
Add software-nodes to hold the network interface phylink, sfp, i2c and gpio
configuration and integrates the PCI1x1x chip i2c driver and gpio driver to
access the sfp module eeprom data.

Tested on chip PCI11010 Rev-B with Bridgeport Evaluation board Rev-1 with
following SFP modules:

1. FS's 2.5G SFP (SFP-2.5G-T) with 2.5 Gbps speed (interface 2500Base-X)

2. Mellanox DAC10G SFP (MC3309130-001) at 2.5 Gbps speed (interface 2500Base-X)
and 1Gpbs speed (interface 1000Base-X)

3. Axcen's 1G SFP (AXGT-R1T4-05I1) at 1G/100M/10M bps speed (interface SGMII)

4. Fiber 1G SFP (AXGE-1354-0531) at 1Gpbs speed (interface 1000Base-X)

Change Log:
===========
V0 -> V1:
  - Integrate with Synopsys DesignWare XPCS drivers
  - Based on external review comments,
    - Changes made to SGMII interface support only 1G/100M/10M bps speed
    - Changes made to 2500Base-X interface support only 2.5Gbps speed
    - Add check for not is_sgmii_en with is_sfp_support_en support
    - Change the "pci11x1x_strap_get_status" function return type from void to  
      int
    - Add ethtool phylink wol, eee, pause get/set functions

Raju Lakkaraju (7):
  net: lan743x: Create separate PCS power reset function
  net: lan743x: Create separate Link Speed Duplex state function
  net: lan743x: Add SFP support check flag
  net: lan743x: Add support to software-nodes for sfp and phylink
  net: lan743x: Register the platform device for sfp pluggable module
  net: lan743x: Add support to the phylink framework
  net: lan743x: Add support to ethtool phylink get and set settings

 drivers/net/ethernet/microchip/Kconfig        |    9 +-
 .../net/ethernet/microchip/lan743x_ethtool.c  |   85 +-
 drivers/net/ethernet/microchip/lan743x_main.c | 1090 ++++++++++++-----
 drivers/net/ethernet/microchip/lan743x_main.h |   49 +
 4 files changed, 868 insertions(+), 365 deletions(-)