]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: report link state on ETH2 port of Mikrotik RBmAP-2nD
authorLech Perczak <lech.perczak@gmail.com>
Sat, 23 Jul 2022 10:37:08 +0000 (12:37 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 25 May 2026 18:24:42 +0000 (20:24 +0200)
Add node for swphy1 in qca953x.dtsi, as it is common part - but make it
disabled, as this one is rarely used in other devices. Enable it in
RBmAP-2nD and attach to eth1 as PHY.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/9971
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/dts/qca9533_mikrotik_routerboard-map-2nd.dts
target/linux/ath79/dts/qca953x.dtsi

index 7b7477c506f1a1f430ef42b65419cd34491327ad..c0edd4fbb2e558daf72cfa4711682291688289b5 100644 (file)
        };
 };
 
+&swphy1 {
+       status = "okay";
+};
+
+&eth1 {
+       phy-handle = <&swphy1>;
+       /delete-node/ fixed-link;
+};
+
 &usb0 {
        status = "okay";
 };
index 4c804b9c547580705d1dce2f565f31d3d8a2a6ac..c4ea46c6c8a323e50f40c8660aa6af950c4b85ba 100644 (file)
                                phy-mode = "mii";
                        };
 
+                       swphy1: ethernet-phy@1 {
+                               status = "disabled";
+                               reg = <1>;
+                               phy-mode = "mii";
+                       };
+
                        swphy4: ethernet-phy@4 {
                                reg = <4>;
                                phy-mode = "mii";