[PATCH net-next v2 0/2] net: dsa: realtek: rtl8365mb: add SGMII/HSGMII support for RTL8367S
From: Johan Alvarado <hidden>
Date: 2026-06-10 08:41:24
Also in:
lkml
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