How to set ls1028 eth ports to fixed-link on dts file?

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

How to set ls1028 eth ports to fixed-link on dts file?

Jump to solution
1,062 Views
xinliwang
Contributor III

Hi, community

I want to set ls1028 ports to a fixed-link on dts file, here down below is I have done

xinliwang_0-1688450510656.png

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

Tags (2)
0 Kudos
1 Solution
988 Views
khushbur
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
5 Replies
1,035 Views
khushbur
NXP TechSupport
NXP TechSupport

 

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

Tags (1)
0 Kudos
1,029 Views
xinliwang
Contributor III

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

0 Kudos
1,024 Views
khushbur
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,020 Views
xinliwang
Contributor III

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

0 Kudos
989 Views
khushbur
NXP TechSupport
NXP TechSupport

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

0 Kudos