From 6276931f42e9f8a05eccdc2c37b1f6d1173ebc2e Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Sat, 23 Jul 2022 12:37:08 +0200 Subject: [PATCH] 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 --- .../ath79/dts/qca9533_mikrotik_routerboard-map-2nd.dts | 9 +++++++++ target/linux/ath79/dts/qca953x.dtsi | 6 ++++++ 2 files changed, 15 insertions(+) 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 7b7477c506..c0edd4fbb2 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 4c804b9c54..c4ea46c6c8 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";