From ebacb59a30a0e8d3b0f8f25846ed3c412536c8d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=BC=A0=20=E9=B9=8F?= Date: Mon, 12 Jun 2023 17:21:28 +0800 Subject: [PATCH] ath79: enable link state reporting for eth1 on Qxwlan e750a/e600g/e600gac MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Now, that the support for e750a/e600g/e600gac is merged, enable link state reporting for the Fast Ethernet port attached through the built-in switch, so it can generate netifd and hotplug events as well, for example - - to control DHCP client. Signed-off-by: å¼  鹏 Link: https://github.com/openwrt/openwrt/pull/9971 Signed-off-by: Hauke Mehrtens --- target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts | 3 +++ target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts | 3 +++ target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts index 6762264d358..b259d6733be 100644 --- a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts +++ b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts @@ -35,9 +35,12 @@ ð1 { status = "okay"; + phy-handle = <&swphy0>; + nvmem-cells = <&macaddr_pridata_400 0>; nvmem-cell-names = "mac-address"; + /delete-node/ fixed-link; gmac-config { device = <&gmac>; switch-phy-swap = <0>; diff --git a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts index 999030a9cdd..197befeaa5e 100644 --- a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts +++ b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts @@ -35,9 +35,12 @@ ð1 { status = "okay"; + phy-handle = <&swphy0>; + nvmem-cells = <&macaddr_pridata_400 0>; nvmem-cell-names = "mac-address"; + /delete-node/ fixed-link; gmac-config { device = <&gmac>; switch-phy-swap = <0>; diff --git a/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi b/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi index a376a930467..70aac5c62c3 100644 --- a/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi +++ b/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi @@ -136,8 +136,12 @@ }; ð1 { + phy-handle = <&swphy0>; + nvmem-cells = <&macaddr_pridata_400 0>; nvmem-cell-names = "mac-address"; + + /delete-node/ fixed-link; }; &wmac { -- 2.47.3