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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,166 Views
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 Kudos
Reply
1 Solution
1,147 Views
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.

View solution in original post

0 Kudos
Reply
3 Replies
1,154 Views
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 Kudos
Reply
1,148 Views
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 Kudos
Reply
1,029 Views
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 Kudos
Reply