AW: [PATCH net-next] net: phy: realtek: support MDI swapping for RTL8226-CG

From: markus.stockhausen

Date: Sat Mar 28 2026 - 16:02:40 EST


> Von: Jan Hoffmann <jan@xxxxxx>
> Betreff: [PATCH net-next] net: phy: realtek: support MDI swapping for
RTL8226-CG
>
> Add support for configuring swapping of MDI pairs (ABCD->DCBA) when the
> property "enet-phy-pair-order" is specified.
> ...
> ret = phy_modify_mmd(phydev, MDIO_MMD_VEND2, 0xd068, 0x7, 0x1);

No real knowledge here. But from other register combinations around
the Realtek ecosystem this could make sense:

#define RTL822X_MDI_CAL_CTRL 0xd068 /* MDI pair cal index/control */
#define RTL822X_MDI_CAL_DATA 0xd06a /* MDI pair cal data */

Markus