Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver: ethernet: add adin2111 #57848

Merged
merged 4 commits into from
May 26, 2023
Merged

Commits on May 16, 2023

  1. drivers: ethernet: add adin2111

    Adds initial ADIN2111 2-Port 10BASE-T1L (SPE)
    switch support. Works over SPI.
    
    The driver creates 2 interfaces, 1 per port (PHY).
    Configures multicast and broadcast filters.
    The same unicast is applied to both ports.
    
    Supports:
      - Link state detection
      - CRC enable/disable
      - Ports config set
      - Ports ETH stats
    
    Provides functions for MDIO driver.
    
    Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
    GeorgeCGV committed May 16, 2023
    Configuration menu
    Copy the full SHA
    1814995 View commit details
    Browse the repository at this point in the history
  2. drivers: mdio: add adin2111

    Adds MDIO driver. Works via exposed
    ADIN2111 functions.
    
    It is possible to access Clause 45 and 22 registers.
    
    Due to MDIO API limitation Clause 45 access
    is done using driver specific MDIO functions.
    
    Provides API and functions for PHY driver.
    
    Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
    GeorgeCGV committed May 16, 2023
    Configuration menu
    Copy the full SHA
    faf1cef View commit details
    Browse the repository at this point in the history
  3. drivers: mdio: shell: support adin2111

    Adds supprot of ADIN2111 MDIO.
    
    The shell allows to access Clause 22 registers.
    
    Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
    GeorgeCGV committed May 16, 2023
    Configuration menu
    Copy the full SHA
    7eb27da View commit details
    Browse the repository at this point in the history
  4. drivers: phy: add adin2111

    Adds PHY driver. Works via MDIO API and
    exposed ADIN2111 MDIO Clause 45
    functions.
    
    Link status detection is triggered by
    ADIN2111 driver within offloaded IRQ
    handler.
    
    Supports:
      - LED0, LED1 enable/disable
      - Fatal HW error detection
      - AN 2.4V tx mode enable/disable
    
    The initialization order is important.
    PHY 2 must be initialized after PHY1.
    Therefore, it shall be defined after the 1st one
    in the devicetree.
    
    Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
    GeorgeCGV committed May 16, 2023
    Configuration menu
    Copy the full SHA
    489c53d View commit details
    Browse the repository at this point in the history