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>
};
};
-&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 {