Hi
Issue description:
Based on BPI-R3 evb,
When yt8821 2.5G phy serdes is configed to “force 2500Base-x“ mode,
Only link up speed 2.5G ping ok, other link up speed(10/10/1000M) ping fail
Detail below:
- Device config in
BPI-Router-Linux-6.10-rc/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
phy-mode = "2500base-x";
fixed-link {
speed = <2500>;
full-duplex;
pause;
};
};
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
**phy-mode = "2500base-x";**
//phy-mode = "sgmii";
**phy-handle = <&phy7>;**
//sfp = <&sfp1>;
//managed = "in-band-status";
};
mdio: mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
};
};
&mdio {
switch: switch@31 {
compatible = "mediatek,mt7531";
reg = <31>;
interrupt-controller;
#interrupt-cells = <1>;
interrupts-extended = <&pio 66 IRQ_TYPE_LEVEL_HIGH>;
reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
};
phy7: ethernet-phy@7 {
compatible = "ethernet-phy-id4f51.ea19";
**phy-mode = "2500base-x";**
//phy-mode = "sgmii";
reg = <0x7>;
full-duplex;
pause;
};
};
- topology like bpi-r3-mini(2.5G phy is en881h)
Mt7986a gmac1<2.5G serdes>yt8821 phy
- test env snapshot below
Could anyone give me some advice and how to debug the issue?
Appreciate your help!