]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dts: adapt RTL8214FC bus location on RTL839x 24281/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 19 Jul 2026 06:25:07 +0000 (08:25 +0200)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 19 Jul 2026 09:18:16 +0000 (11:18 +0200)
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 <markus.stockhausen@gmx.de>
target/linux/realtek/dts/rtl8391_zyxel_gs1920-24hp-v2.dts

index 3aab3d8072c4abc6e1125f1cc3e99207950802c5..f872bd22c43e73f71bafecd59f40b51eb093f61f 100644 (file)
        };
 };
 
-&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 {