how to modify mdio2 for 1Gbps PHY on board ls1043

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

how to modify mdio2 for 1Gbps PHY on board ls1043

1,399 次查看
Hmc510
Contributor II

I need to use 1Gbps PHY on mdio2. the PCB mdio connect to EMI2. I modify the eth.c on uboot, the mdio can find PHY ID,but cannot work in kernel. it is good when use  PCB connect to mdio1.

I see that mdio2 is used for 10Gbps in LSDK2108 branch. how to modify it for use on 1Gbps?

 

thanks.

0 项奖励
回复
3 回复数

1,361 次查看
yipingwang
NXP TechSupport
NXP TechSupport

EMI1 and EMI2 can support both Clause 22 and Clause 45.

Please define mdio2 just like mdio1 definition in dts.


mdio@fd000 {
rgmii_phy1: ethernet-phy@1 {
reg = <0x1>;
};

};

 

0 项奖励
回复

1,347 次查看
Hmc510
Contributor II

Thank you for your reply.

I made this modification on kernel DTB before. ethtool can find the PHY ID. but I don't understand that it cannot send and receive frames(ping is unreachable). PHY has frames. Mac does not. When switching to MDIO1 fc00, there will be no problem.

I don't know why this is

0 项奖励
回复

1,333 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to "Table 5-17. FMan Memory Map Regions" in page 5-35 in the attached document.

MDIO1 is EMI1 for Clause 22 physical interfaces (1G, 2.5G, overclocked SGMII and below).
MDIO2 is EMI2 for Clause 45 physical interfaces (10G).

0 项奖励
回复