IMX6ULL 同一路MDIO总线使用两个 JL1011 phy芯片有问题

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

IMX6ULL 同一路MDIO总线使用两个 JL1011 phy芯片有问题

367 Views
yangx
Contributor III

大家好:
现象:设备树只开启一个网口节点是单独使用正常的,但是同时开启两个的话,phy id可以读到,但是两个网口都不能用.这两个phy是同一路MDIO总线,phy地址一个0一个1,MDIO 总线添加到 ENET2了,

日志打印:

fec 20b4000.ethernet eth0: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:03, irq=-1)
fec 2188000.ethernet eth1: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:00, irq=-1)

 printk:

phy_id = 937c4024 addr = 0
phy_id = 937c4024 addr = 1

很奇怪的是网口1插网线 的日志是网口0的:

fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

网口0 插网线没打印日志.

0 Kudos
Reply
3 Replies

352 Views
yangx
Contributor III
fec 20b4000.ethernet eth0: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:01, irq=-1)
fec 2188000.ethernet eth1: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:00, irq=-1)

是这个,我尝试改过phy地址,也是一样的情况

0 Kudos
Reply

335 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

The guideline to troubleshoot this would be:

  • Make sure you have correctly mapped your FEC MDI signals to the strapped address PHY and that is mapped to the correct ethernet connector.
  • Base in 6ULL U-Boot and Linux DTS to configure and address.
  • Make sure that you have initialized your FEC ports like 6ULL EVK.
  • Could you try with other PHYs? I did not find the model specified and the problem seems not to occur in EVK.

Regards

0 Kudos
Reply

321 Views
yangx
Contributor III
感谢你的回复



其他PHY只试过单网口,也没有试过双网口

确定FEC是初始化正常的,因为双网口同时插入网线是正常的,出问题的情况是FEC1单独插不行,需要FEC2插着网线FEC1拔插才有状态机检测到FEC1有网线插入.

怀疑是MDIO的问题但是看其波形是正常的.
0 Kudos
Reply