From fa0b7600f58cd8be42ab52718dfca980388264b9 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Tue, 12 Nov 2024 16:31:28 +0800 Subject: [PATCH] mediatek: move an8855 dts node to xiaomi dtsi --- ...-xiaomi-mi-router-ax3000t-an8855-stock.dts | 15 --------------- ...mt7981-xiaomi-mi-router-ax3000t-an8855.dts | 15 --------------- .../dts/mediatek/mt7981-xiaomi-mi-router.dtsi | 19 +++++++++++++++++++ 3 files changed, 19 insertions(+), 30 deletions(-) diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855-stock.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855-stock.dts index e7a715fe9c..91eb95952a 100644 --- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855-stock.dts +++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855-stock.dts @@ -13,20 +13,5 @@ }; &gsw_an8855 { - airoha,mdio = <&mdio>; - reset-gpios = <&pio 39 0>; - interrupt-parent = <&pio>; - interrupts = <38 IRQ_TYPE_LEVEL_HIGH>; status = "okay"; - - port@5 { - compatible = "airoha,an8855-port"; - reg = <5>; - phy-mode = "2500base-x"; - - fixed-link { - speed = <2500>; - full-duplex; - }; - }; }; diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855.dts index 732b7823f4..931e31b749 100644 --- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855.dts +++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router-ax3000t-an8855.dts @@ -13,20 +13,5 @@ }; &gsw_an8855 { - airoha,mdio = <&mdio>; - reset-gpios = <&pio 39 0>; - interrupt-parent = <&pio>; - interrupts = <38 IRQ_TYPE_LEVEL_HIGH>; status = "okay"; - - port@5 { - compatible = "airoha,an8855-port"; - reg = <5>; - phy-mode = "2500base-x"; - - fixed-link { - speed = <2500>; - full-duplex; - }; - }; }; diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router.dtsi b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router.dtsi index 41ec148a5f..a0078ec1b6 100644 --- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router.dtsi +++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-xiaomi-mi-router.dtsi @@ -144,6 +144,25 @@ }; }; +&gsw_an8855 { + airoha,mdio = <&mdio>; + reset-gpios = <&pio 39 0>; + interrupt-parent = <&pio>; + interrupts = <38 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + port@5 { + compatible = "airoha,an8855-port"; + reg = <5>; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + }; + }; +}; + &hnat { mtketh-wan = "eth1"; mtketh-lan = "eth0";