SGMII link detect issue for custom board based on LS1046ardb on LSDK 21.08

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SGMII link detect issue for custom board based on LS1046ardb on LSDK 21.08

跳至解决方案
1,168 次查看
Ghouse
Contributor V

Hi,

Iam using a custom board based on LS1046artdb, i have connected the SGMII to EMI2_MDC (pin AH4 of ls1046a) and EMI2_MDIO (pin AH3 of ls1046a) in my custom schematics (screen shot is attached).

when iam booting and assigning ip-address to fm1-mac5 or fm1-mac6 none of them are working (i.e Link is not getting detected), for both the ports(fm1-mac5 and fm1-mac6).

Attached is the device tree (.dts) that is used, also iam attaching the boot log.

Please let me know what to do to resolve the issue

Thank u

0 项奖励
回复
1 解答
1,149 次查看
Ghouse
Contributor V

Hi, thank u for the inputs, i have changed according to ur inputs, i have also changed the "CONFIG_DM_ETH" from "n" to "y" in ls1046ardb_tfa_defconfig in uboot.

And i have done few changes in the Marvell.c. And now it is detecting and working fine.

Thank u.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,156 次查看
yipingwang
NXP TechSupport
NXP TechSupport

In your dts file, please don't use "fixed-link" in Ethernet ports definition, "fixed-link" is only used in the PHY less device.

ethernet@e8000 {
phy-handle = <&sgmii_phy1>;
phy-connection-type = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};

};

ethernet@ea000 {
phy-handle = <&sgmii_phy2>;
phy-connection-type = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};

Modify to:

ethernet@e8000 {
phy-handle = <&sgmii_phy1>;
phy-connection-type = "sgmii";

};

ethernet@ea000 {
phy-handle = <&sgmii_phy2>;
phy-connection-type = "sgmii";
};

In addition, please provide "mdio list" command  result in u-boot.

Please verify whether FM1@DTSEC5 and FM1@DTSEC6 can work in u-boot.

=>setenv ethact FM1@DTSEC5

=>setenv ipaddr <board_ip>

=>ping <server_ip>

 

0 项奖励
回复
1,150 次查看
Ghouse
Contributor V

Hi, thank u for the inputs, i have changed according to ur inputs, i have also changed the "CONFIG_DM_ETH" from "n" to "y" in ls1046ardb_tfa_defconfig in uboot.

And i have done few changes in the Marvell.c. And now it is detecting and working fine.

Thank u.

0 项奖励
回复
1,031 次查看
humhh
Contributor II

Hi, I met the similar question,but it has no effect when changed the "CONFIG_DM_ETH" from "n" to "y" in ls1046ardb_tfa_defconfig in uboot, it only change fm1-mac3 to FM1@DTSEC3, it is still not detected.I also modify Marvell.c, but it can't work.I am very appreciated if you can give some points or comments,thanks.

this is my question,thanks!

https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-LSDK21-08-RGMII-and-SGMII-not-working/m...

 

0 项奖励
回复