|
|
Subscribe / Log in / New account

RTL9300 MDIO driver

From:  Chris Packham <chris.packham-AT-alliedtelesis.co.nz>
To:  robh-AT-kernel.org, krzk+dt-AT-kernel.org, conor+dt-AT-kernel.org, tsbogend-AT-alpha.franken.de, andrew-AT-lunn.ch, hkallweit1-AT-gmail.com, linux-AT-armlinux.org.uk, davem-AT-davemloft.net, edumazet-AT-google.com, kuba-AT-kernel.org, pabeni-AT-redhat.com, sander-AT-svanheule.net, markus.stockhausen-AT-gmx.de
Subject:  [PATCH net-next v8 0/2] RTL9300 MDIO driver
Date:  Fri, 28 Feb 2025 10:32:46 +1300
Message-ID:  <20250227213248.2010986-1-chris.packham@alliedtelesis.co.nz>
Cc:  devicetree-AT-vger.kernel.org, linux-mips-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, netdev-AT-vger.kernel.org, Chris Packham <chris.packham-AT-alliedtelesis.co.nz>
Archive-link:  Article

This series adds a driver for the MDIO controller on the RTL9300 family
of devices. The controller is a little unique in that we can't access the SMI
interfaces directly. This means we need to use the hardware description from
the DTS to compute a mapping of switch port to mdio bus/address.

The dt-bindings have been applied to net-next.

I've dropped a patch that added PHYs to the cameo-rtl9302c board as I know that
will need updating once some of the other in-flight changes make it into
linux-mips.

Chris Packham (2):
  net: mdio: Add RTL9300 MDIO driver
  mips: dts: realtek: Add MDIO controller

 arch/mips/boot/dts/realtek/rtl930x.dtsi |  33 ++
 drivers/net/mdio/Kconfig                |   7 +
 drivers/net/mdio/Makefile               |   1 +
 drivers/net/mdio/mdio-realtek-rtl9300.c | 475 ++++++++++++++++++++++++
 4 files changed, 516 insertions(+)
 create mode 100644 drivers/net/mdio/mdio-realtek-rtl9300.c

-- 
2.48.1




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds