]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: an7583: fix ethernet breakage on Nokia XG-040G-MF 24606/head
authorMikhail Zhilkin <csharper2005@gmail.com>
Fri, 7 Aug 2026 11:25:47 +0000 (14:25 +0300)
committerRobert Marko <robimarko@gmail.com>
Fri, 7 Aug 2026 17:01:51 +0000 (19:01 +0200)
Recent upstream cleanups moved switch port labels to the board level and
disabled switch ports/PHYs by default on the AN7583 SoC dtsi. This broke
ethernet on the Nokia XG-040G-MF since its board DTS was not updated to
explicitly configure and enable them.

Fix this by explicitly enabling gsw_port2-4 along with their respective
PHYs and restoring the "lan2", "lan3", and "lan4" port labels.

Fixes: ce55cdde26a9 ("airoha: an7583: move the switch port label from soc-level to board-level")
Fixes: d2698d325b68 ("airoha: an7583: disable all switch ports and PHYs by default")
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24606
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/airoha/dts/an7583-nokia_xg-040g-mf-common.dtsi

index 2a0b921986f56617a0bf117c17fdc756c442b4b3..317ee4b621077f5a13b63ed27d9c76b5e86000d6 100644 (file)
        pinctrl-0 = <&mdio0_pins>;
 };
 
-&gsw_port1 {
-       status = "disabled";
-};
+&gsw_port2 {
+       status = "okay";
 
-&gsw_phy1 {
-       status = "disabled";
+       label = "lan2";
 };
 
 &gsw_phy2 {
+       status = "okay";
+
        interrupts = <2>;
 
        pinctrl-names = "gbe-led";
        active-low;
 };
 
+&gsw_port3 {
+       status = "okay";
+
+       label = "lan3";
+};
+
 &gsw_phy3 {
+       status = "okay";
+
        interrupts = <3>;
 
        pinctrl-names = "gbe-led";
        active-low;
 };
 
+&gsw_port4 {
+       status = "okay";
+
+       label = "lan4";
+};
+
 &gsw_phy4 {
+       status = "okay";
+
        interrupts = <4>;
 
        pinctrl-names = "gbe-led";