From e26eccaa3c2273066451197f85ca8c666386990a Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Sun, 19 Jul 2026 08:25:07 +0200 Subject: [PATCH] realtek: dts: adapt RTL8214FC bus location on RTL839x The RTL839x has the following hard-coded bus topology: - Bus 0: Port 0-23 - Bus 1: Port 24-51 So the bus number and the PHY address in the dts are mostly ignored. Nevertheless fix the assignment for the Zyxel GS1920. This does not change the functionality it just describes the hardware correctly. While we are here add the PHY package description too. Link: https://github.com/openwrt/openwrt/pull/24281 Signed-off-by: Markus Stockhausen --- .../dts/rtl8391_zyxel_gs1920-24hp-v2.dts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/target/linux/realtek/dts/rtl8391_zyxel_gs1920-24hp-v2.dts b/target/linux/realtek/dts/rtl8391_zyxel_gs1920-24hp-v2.dts index 3aab3d8072c..f872bd22c43 100644 --- a/target/linux/realtek/dts/rtl8391_zyxel_gs1920-24hp-v2.dts +++ b/target/linux/realtek/dts/rtl8391_zyxel_gs1920-24hp-v2.dts @@ -116,12 +116,17 @@ }; }; -&mdio_bus0 { - /* External phy RTL8214FC #1 */ - PHY_C22_SFP(24, 24, 0) - PHY_C22_SFP(25, 25, 1) - PHY_C22_SFP(26, 26, 2) - PHY_C22_SFP(27, 27, 3) +&mdio_bus1 { + ethernet-phy-package@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + PHY_C22_SFP(24, 0, 0) + PHY_C22_SFP(25, 1, 1) + PHY_C22_SFP(26, 2, 2) + PHY_C22_SFP(27, 3, 3) + }; }; &pse { -- 2.47.3