From 6c3a4b84f9e74be9b0c9e569cbe906b40088b35c 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 --- .../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 7b7477c506f1a1..c0edd4fbb2e558 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 8e3b2b9d69ea8b..338e2e60089e72 100644 --- a/target/linux/ath79/dts/qca953x.dtsi +++ b/target/linux/ath79/dts/qca953x.dtsi @@ -270,6 +270,12 @@ phy-mode = "mii"; }; + swphy1: ethernet-phy@1 { + status = "disabled"; + reg = <1>; + phy-mode = "mii"; + }; + swphy4: ethernet-phy@4 { reg = <4>; phy-mode = "mii";