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
Solved! Go to Solution.
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.
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>
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.
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!