From: Lech Perczak Date: Sat, 23 Jul 2022 10:37:08 +0000 (+0200) Subject: ath79: report link state on ETH2 port of Mikrotik RBmAP-2nD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6276931f42e9f8a05eccdc2c37b1f6d1173ebc2e;p=thirdparty%2Fopenwrt.git ath79: report link state on ETH2 port of Mikrotik RBmAP-2nD 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 Link: https://github.com/openwrt/openwrt/pull/9971 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-map-2nd.dts b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-map-2nd.dts index 7b7477c506f..c0edd4fbb2e 100644 --- a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-map-2nd.dts +++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-map-2nd.dts @@ -114,6 +114,15 @@ }; }; +&swphy1 { + status = "okay"; +}; + +ð1 { + phy-handle = <&swphy1>; + /delete-node/ fixed-link; +}; + &usb0 { status = "okay"; }; diff --git a/target/linux/ath79/dts/qca953x.dtsi b/target/linux/ath79/dts/qca953x.dtsi index 4c804b9c547..c4ea46c6c8a 100644 --- a/target/linux/ath79/dts/qca953x.dtsi +++ b/target/linux/ath79/dts/qca953x.dtsi @@ -267,6 +267,12 @@ phy-mode = "mii"; }; + swphy1: ethernet-phy@1 { + status = "disabled"; + reg = <1>; + phy-mode = "mii"; + }; + swphy4: ethernet-phy@4 { reg = <4>; phy-mode = "mii";