mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] net: dsa: realtek: rtl8365mb: add SGMII/HSGMII support for RTL8367S
@ 2026-06-10  8:41 Johan Alvarado
  2026-06-10  8:43 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Alvarado @ 2026-06-10  8:41 UTC (permalink / raw)
  To: netdev
  Cc: linusw, alsi, andrew, olteanv, davem, edumazet, kuba, pabeni,
	linux, linux-kernel, contact

The RTL8367S is a 5+2 port switch from the same family as the
RTL8365MB-VC already supported by this driver. Its chip info table
entry declares SGMII and HSGMII on external interface 1, but the
driver so far only implements RGMII, leaving boards that wire the
switch to the CPU over the SerDes without a working CPU port.

This series implements both modes. The configuration sequence and the
SerDes tuning parameters are derived from the GPL-licensed Realtek
rtl8367c vendor driver, as distributed in the Mercusys MR80X GPL code
drop. The SerDes bring-up requires firmware running on the switch's
embedded DW8051 microcontroller; the firmware blob from the vendor
driver will be submitted to linux-firmware separately as
realtek/rtl8367s-sgmii.bin, and is loaded via the firmware API.

Patch 1 adds the SerDes indirect access helpers, the DW8051 firmware
loading and SGMII (1 Gbps) support. Patch 2 extends this to HSGMII
(2.5 Gbps), which phylink represents as 2500base-x.

Tested on a Mercusys MR80X v2.20 (RTL8367S connected to the SoC via
the SerDes), in both SGMII and HSGMII modes, with a fixed-link device
tree description.

v2: no code changes. Resending the entire series because the SMTP
provider used for v1 corrupted the mails and patch 1/2 never reached
the list, leaving an incomplete series. Apologies for the noise.

Johan Alvarado (2):
  net: dsa: realtek: rtl8365mb: add SGMII support for RTL8367S
  net: dsa: realtek: rtl8365mb: add HSGMII support for RTL8367S

 drivers/net/dsa/realtek/rtl8365mb.c | 394 +++++++++++++++++++++++++++-
 1 file changed, 390 insertions(+), 4 deletions(-)

-- 
2.54.0


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

* Re: [PATCH net-next v2 0/2] net: dsa: realtek: rtl8365mb: add SGMII/HSGMII support for RTL8367S
  2026-06-10  8:41 [PATCH net-next v2 0/2] net: dsa: realtek: rtl8365mb: add SGMII/HSGMII support for RTL8367S Johan Alvarado
@ 2026-06-10  8:43 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2026-06-10  8:43 UTC (permalink / raw)
  To: Johan Alvarado
  Cc: netdev, linusw, alsi, olteanv, davem, edumazet, kuba, pabeni,
	linux, linux-kernel

> v2: no code changes. Resending the entire series because the SMTP
> provider used for v1 corrupted the mails and patch 1/2 never reached
> the list, leaving an incomplete series. Apologies for the noise.

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html

Please wait 24 hours between patchset versions.

       Andrew

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

end of thread, other threads:[~2026-06-10  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10  8:41 [PATCH net-next v2 0/2] net: dsa: realtek: rtl8365mb: add SGMII/HSGMII support for RTL8367S Johan Alvarado
2026-06-10  8:43 ` Andrew Lunn

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

all inboxes | Powered by JetHome®