Netdev List
 help / color / mirror / Atom feed
* [RFC PATCH net-next 0/6] net: dsa: realtek: add support for RTL9607C switch
@ 2026-12-04 18:25 Rustam Adilov
  2026-12-04 18:25 ` [RFC PATCH net-next 1/6] net: dsa: tag_rtl8_4: add support for RTL9607C tag variant Rustam Adilov
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Rustam Adilov @ 2026-12-04 18:25 UTC (permalink / raw)
  To: Linus Walleij, Luiz Angelo Daros de Luca, Alvin Šipraga,
	Andrew Lunn, Vladimir Oltean, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Heiner Kallweit, Russell King, Willem de Bruijn,
	Simon Horman, netdev, devicetree, linux-kernel
  Cc: Rustam Adilov

This patch series adds support for the embedded switch in RTL9607C.
It is a 11 port switch controller with 4 internal PHYs corresponding
to ports 0~3, PON serdes which is for the PON port 5, 2 HSGMII serdes
for ports 6-7 but the former is muxed with USB3 and latter is muxed
with PCIE1, and also CPU NIC port somehow, and 2 main CPU NIC ports
at 9/10.

The support is done through the introduction of the realtek-mmio
interface driver which the RTL9607C switch makes use of. That is
also the only reason why it is RFC and not v1. I didn't get the
any review on that during the testing in OpenWrt at [1] PR.

The patch 1 is the tag driver which is similar to what i have
posted prior at [2] but a few things were changed like commit
message making clear what is similar and what is not and how the
reason codes are handled. And now the long awaited DSA driver is
coming with it too.

DSA driver itself is pretty basic, in a similar fashion to how
the initial RTL8365MB switch support was added in [3].
I suspect the VLAN, FDB, MDB, and all the other goodies can
be added in the future (though probably not by me as i'm very
much not experienced in advanced networking). I do very much
know that they are very similar however.

And the patch 4 fixes one thing that is needed for the c45 part
of the RTL9607C to function properly. I do hope it is not gonna
cause any issues on any existing systems. I think it could be
carved out if it turns out to be valid.

[1] https://github.com/openwrt/openwrt/pull/26969
[2] https://lore.kernel.org/all/20261119165129.26693-1-adilov@disroot.org/
[3] https://lore.kernel.org/all/20211018093804.3115191-1-alvin@pqrs.dk/

Rustam Adilov (6):
  net: dsa: tag_rtl8_4: add support for RTL9607C tag variant
  net: dsa: realtek: add new mmio interface for drivers
  dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible
  net: dsa: realtek: add support for RTL9607C switch
  net: phy: realtek: use mdio.addr instead of 0 in
    rtlgen_read/write_vend2
  net: phy: realtek: add support for RTL9607C internal PHYs

 .../devicetree/bindings/net/dsa/realtek.yaml  |   59 +-
 drivers/net/dsa/realtek/Kconfig               |   14 +
 drivers/net/dsa/realtek/Makefile              |    3 +
 drivers/net/dsa/realtek/realtek-mmio.c        |   84 +
 drivers/net/dsa/realtek/realtek-mmio.h        |   29 +
 drivers/net/dsa/realtek/realtek.h             |    1 +
 drivers/net/dsa/realtek/rtl83xx.c             |   38 +-
 drivers/net/dsa/realtek/rtl83xx.h             |    1 +
 drivers/net/dsa/realtek/rtl9607c_main.c       | 1525 +++++++++++++++++
 drivers/net/phy/realtek/realtek_main.c        |  140 +-
 include/net/dsa.h                             |    2 +
 net/dsa/Kconfig                               |    3 +-
 net/dsa/tag_rtl8_4.c                          |  171 +-
 13 files changed, 2047 insertions(+), 23 deletions(-)
 create mode 100644 drivers/net/dsa/realtek/realtek-mmio.c
 create mode 100644 drivers/net/dsa/realtek/realtek-mmio.h
 create mode 100644 drivers/net/dsa/realtek/rtl9607c_main.c

-- 
2.56.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-04 18:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 18:25 [RFC PATCH net-next 0/6] net: dsa: realtek: add support for RTL9607C switch Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 1/6] net: dsa: tag_rtl8_4: add support for RTL9607C tag variant Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 2/6] net: dsa: realtek: add new mmio interface for drivers Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 3/6] dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 4/6] net: dsa: realtek: add support for RTL9607C switch Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 5/6] net: phy: realtek: use mdio.addr instead of 0 in rtlgen_read/write_vend2 Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 6/6] net: phy: realtek: add support for RTL9607C internal PHYs Rustam Adilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox