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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

470件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

455件の閲覧回数
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 件の賞賛
返信

438件の閲覧回数
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 件の賞賛
返信

424件の閲覧回数
yangx
Contributor III
感谢你的回复



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

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

怀疑是MDIO的问题但是看其波形是正常的.
0 件の賞賛
返信