[][[Panther][AX8400][MT7986A][MT7976][ePA][WiFi]The 2.5G wan interface didn't show any link up/down log when cable plug/unplug]
[Description]
Add a external interrupt handler for GPY211 single phy chip.
This interrupt handler will display link up/down message and notify kernel when receiving link status change interrupt.
Note1: This patch will disable UART2 on the 2500WAN RFB, since single phy external interrupt occupied UART2_RXD and UART2_TXD.
Note2: The interrupt handler will not notify kernel on the 2500WAN GSW RFB.
[Release-log]
NA
Change-Id: Ibbecb437049f02a4ce479fee2cb035b7c17dac66
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6194248
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts
index d190872..a050c88 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts
@@ -68,7 +68,7 @@
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
- status = "okay";
+ status = "disabled";
};
&i2c0 {
@@ -102,6 +102,9 @@
speed = <2500>;
full-duplex;
pause;
+ link-gpio = <&pio 47 0>;
+ phy-handle = <&phy5>;
+ label = "lan5";
};
};
@@ -114,6 +117,8 @@
speed = <2500>;
full-duplex;
pause;
+ link-gpio = <&pio 46 0>;
+ phy-handle = <&phy6>;
};
};