Hi, community
I want to set ls1028 ports to a fixed-link on dts file, here down below is I have done
but it seems doesn't work I found out it only change the internal link but not the external link.
So, does anyone know who to set ls1028 eth ports to a fixed link mode?
Thanks
Solved! Go to Solution.
Hi @xinliwang
"fixed-link" property is for phyless configuration.
When you declare a "fixed-link", you tell Linux that there is no PHY
at all. A dummy PHY driver is used then, all parameters are set
statically as specified in the DT, no link status is tracked at all.
To set fixed-link with phy you need to modify your phy driver code.
Thanks
Khushbu
Hi @xinliwang
Can you brief about your set up? Is your setup is PHYLess(MAC to MAc)?
Please change your dts file as following
&enetc_port0 {
phy-connection-type = "sgmii";
managed = "in-band-status";
fixed-link = <0 1 1000 0 0>;
status = "okay";
};
Thanks
Khushbu
Hi @khushbur
Thank you for your reply
My setup is pretty much the same as reference board. Not mac to mac but mac to phy.
I've tried the dts file like this
&enetc_port0 {
phy-connection-type = "sgmii";
managed = "in-band-status";
fixed-link {
speed =<100>;
full-duplex;
};
status = "okay";
}
It doesn't work and even the eno0 is missing.
But anyway I'll try your setup of dts to see if it works.
Thanks
Hi @xinliwang
For mac to phy connection please define below in your DTS file.
&enetc_port0 {
phy-handle = <&sgmii_phy0>;
phy-connection-type = "sgmii";
managed = "in-band-status";
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
sgmii_phy0: ethernet-phy@yourphy_addr {
reg = <0xyourphy_addr>;
};
};
};
Thanks
Khushbu
Hi @khushbur
My original setup of dts is exactly the same as your recommand. It works fine but it is autonegotiation.
But my question is how to change it to the fixed-link. I didn't see any fix-linked setup from your dts.
Thanks
Hi @xinliwang
"fixed-link" property is for phyless configuration.
When you declare a "fixed-link", you tell Linux that there is no PHY
at all. A dummy PHY driver is used then, all parameters are set
statically as specified in the DT, no link status is tracked at all.
To set fixed-link with phy you need to modify your phy driver code.
Thanks
Khushbu