[][kernel][mt7988][eth][Refactor path for internal 2.5G phy]
[Description]
Refactor path for internal 2.5G phy.
If without this patch, driver cannot handle the gmii path and
10/100mbps half duplex mode properly.
[Release-log]
N/A
Change-Id: I1d4f372590ee62256f6d33ce4b30a522a37129c9
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6721575
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988a-dsa-e2p5g-spim-nand.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988a-dsa-e2p5g-spim-nand.dts
index 8f0d5c9..9f93866 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988a-dsa-e2p5g-spim-nand.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988a-dsa-e2p5g-spim-nand.dts
@@ -269,6 +269,7 @@
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
+ mac-type = "xgdm";
phy-mode = "10gbase-kr";
fixed-link {
@@ -281,6 +282,7 @@
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
+ mac-type = "gdm";
phy-mode = "2500base-x";
phy-handle = <&phy13>;
};
@@ -288,6 +290,7 @@
gmac2: mac@2 {
compatible = "mediatek,eth-mac";
reg = <2>;
+ mac-type = "gdm";
phy-mode = "2500base-x";
phy-handle = <&phy5>;
};