]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dts: fix TP-Link SG2452P mdio bus
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Thu, 9 Apr 2026 16:24:38 +0000 (18:24 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Apr 2026 16:32:35 +0000 (18:32 +0200)
For some unknown reason carving out the mdio bus from the ethernet
node forgot the TP-Link SG2452P. The notation still reads

&ethernet0 {
  mdio: mdio-bus {
    compatible = "realtek,rtl838x-mdio";
    ...

Like everywhere else it should be

&mdio_bus0 {
  PHY_C22(0, 0)
  ...

Fix that.

Fixes: 57b270684 ("rearrange mdio-bus below mdio-controller")
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22866
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/dts/rtl8393_tplink_sg2452p-v4.dts

index 515c63f60714dd52530db4c4eaa277ae5d1bcfef..10526efc5c839c09d0d68eb4b93298d333ca380b 100644 (file)
 &ethernet0 {
        nvmem-cells = <&factory_macaddr>;
        nvmem-cell-names = "mac-address";
+};
 
-       mdio: mdio-bus {
-               compatible = "realtek,rtl838x-mdio";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               /* External phy RTL8218B #1 */
-               PHY_C22(0, 0)
-               PHY_C22(1, 1)
-               PHY_C22(2, 2)
-               PHY_C22(3, 3)
-               PHY_C22(4, 4)
-               PHY_C22(5, 5)
-               PHY_C22(6, 6)
-               PHY_C22(7, 7)
-
-               /* External phy RTL8218B #2 */
-               PHY_C22(8, 8)
-               PHY_C22(9, 9)
-               PHY_C22(10, 10)
-               PHY_C22(11, 11)
-               PHY_C22(12, 12)
-               PHY_C22(13, 13)
-               PHY_C22(14, 14)
-               PHY_C22(15, 15)
-
-               /* External phy RTL8218B #3 */
-               PHY_C22(16, 16)
-               PHY_C22(17, 17)
-               PHY_C22(18, 18)
-               PHY_C22(19, 19)
-               PHY_C22(20, 20)
-               PHY_C22(21, 21)
-               PHY_C22(22, 22)
-               PHY_C22(23, 23)
-
-               /* External phy RTL8218B #4 */
-               PHY_C22(24, 24)
-               PHY_C22(25, 25)
-               PHY_C22(26, 26)
-               PHY_C22(27, 27)
-               PHY_C22(28, 28)
-               PHY_C22(29, 29)
-               PHY_C22(30, 30)
-               PHY_C22(31, 31)
-
-               /* External phy RTL8218B #5 */
-               PHY_C22(32, 32)
-               PHY_C22(33, 33)
-               PHY_C22(34, 34)
-               PHY_C22(35, 35)
-               PHY_C22(36, 36)
-               PHY_C22(37, 37)
-               PHY_C22(38, 38)
-               PHY_C22(39, 39)
-
-               /* External phy RTL8218B #6 */
-               PHY_C22(40, 40)
-               PHY_C22(41, 41)
-               PHY_C22(42, 42)
-               PHY_C22(43, 43)
-               PHY_C22(44, 44)
-               PHY_C22(45, 45)
-               PHY_C22(46, 46)
-               PHY_C22(47, 47)
-       };
+&mdio_bus0 {
+       /* External phy RTL8218B #1 */
+       PHY_C22(0, 0)
+       PHY_C22(1, 1)
+       PHY_C22(2, 2)
+       PHY_C22(3, 3)
+       PHY_C22(4, 4)
+       PHY_C22(5, 5)
+       PHY_C22(6, 6)
+       PHY_C22(7, 7)
+
+       /* External phy RTL8218B #2 */
+       PHY_C22(8, 8)
+       PHY_C22(9, 9)
+       PHY_C22(10, 10)
+       PHY_C22(11, 11)
+       PHY_C22(12, 12)
+       PHY_C22(13, 13)
+       PHY_C22(14, 14)
+       PHY_C22(15, 15)
+
+       /* External phy RTL8218B #3 */
+       PHY_C22(16, 16)
+       PHY_C22(17, 17)
+       PHY_C22(18, 18)
+       PHY_C22(19, 19)
+       PHY_C22(20, 20)
+       PHY_C22(21, 21)
+       PHY_C22(22, 22)
+       PHY_C22(23, 23)
+
+       /* External phy RTL8218B #4 */
+       PHY_C22(24, 24)
+       PHY_C22(25, 25)
+       PHY_C22(26, 26)
+       PHY_C22(27, 27)
+       PHY_C22(28, 28)
+       PHY_C22(29, 29)
+       PHY_C22(30, 30)
+       PHY_C22(31, 31)
+
+       /* External phy RTL8218B #5 */
+       PHY_C22(32, 32)
+       PHY_C22(33, 33)
+       PHY_C22(34, 34)
+       PHY_C22(35, 35)
+       PHY_C22(36, 36)
+       PHY_C22(37, 37)
+       PHY_C22(38, 38)
+       PHY_C22(39, 39)
+
+       /* External phy RTL8218B #6 */
+       PHY_C22(40, 40)
+       PHY_C22(41, 41)
+       PHY_C22(42, 42)
+       PHY_C22(43, 43)
+       PHY_C22(44, 44)
+       PHY_C22(45, 45)
+       PHY_C22(46, 46)
+       PHY_C22(47, 47)
 };
 
 &switch0 {