]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: add 10G_QXGMII serdes mode support for RTL930x 20472/head
authorDamien Dejean <dam.dejean@gmail.com>
Tue, 29 Jul 2025 16:25:35 +0000 (18:25 +0200)
committerRobert Marko <robimarko@gmail.com>
Sun, 26 Oct 2025 10:24:51 +0000 (11:24 +0100)
commitddd82c8b3d78fa7b7a5da6871e08a4986eeb678e
tree322ae6bb143d394800d90eaa2c7927134ea2e363
parentdca20f91ea122953b39312c74541f7cadb1421cd
realtek: add 10G_QXGMII serdes mode support for RTL930x

In Realtek implementation USXGMII is divided in submodes:
 - USXGMII_SX: 10G single link, equivalent of PHY_INTERFACE_MODE_USXGMII
 - USXGMII_DX: 10G two links (2*5G ?),
 - USXGMII_QX: 10G four links, presumably 4*2.5G, used with the RTL8224,
   equivalent of PHY_INTERFACE_MODE_10G_QXGMII.

This CL adds the 10_GQXGMII modes to the RTL930x implementation. In
particular the "mode set" function is extended to support both simple
mode set, and force mode set depending on the mode according to
dal_longan_sds_mode_set [1].

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L1746

Signed-off-by: Damien Dejean <dam.dejean@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20472
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c
target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c