[imx28] plug-in/out on eth0 will reset eth1 and vice versa

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

[imx28] plug-in/out on eth0 will reset eth1 and vice versa

[imx28] plug-in/out on eth0 will reset eth1 and vice versa

Tested on imx28 EVK Rev. D. When plug-in or plug-out cable on eth0 port, eth1 port (and vice versa) will also be reset and the communication will be interrupted.

Reason:

Both Ethernet PHYs on EVK board share the same GPIO as their reset pin, in software the function name is mx28evk_enet_gpio_init. So any call to pdata->init() in fec.c will reset both PHY at the same time. In order to avoid such problem, you have to use 2 individual GPIO for the PHY reset.

Labels (1)
%3CLINGO-SUB%20id%3D%22lingo-sub-1105456%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5Bimx28%5D%20plug-in%2Fout%20on%20eth0%20will%20reset%20eth1%20and%20vice%20versa%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1105456%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETested%20on%20imx28%20EVK%20Rev.%20D.%20When%20plug-in%20or%20plug-out%20cable%20on%20eth0%20port%2C%20eth1%20port%20(and%20vice%20versa)%20will%20also%20be%20reset%20and%20the%20communication%20will%20be%20interrupted.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EReason%3A%3C%2FP%3E%3CP%3EBoth%20Ethernet%20PHYs%20on%20EVK%20board%20share%20the%20same%20GPIO%20as%20%3CSPAN%20class%3D%22GINGER_SOFATWARE_correct%22%3Etheir%3C%2FSPAN%3E%20reset%20pin%2C%20in%20software%20the%20function%20name%20is%20mx28evk_enet_gpio_init.%20So%20any%20call%20to%20%3CSPAN%20class%3D%22GINGER_SOFATWARE_correct%22%3Epdata%3C%2FSPAN%3E-%26gt%3B%3CSPAN%20class%3D%22GINGER_SOFATWARE_correct%20GINGER_SOFATWARE_noSuggestion%22%3Einit%3C%2FSPAN%3E%3CSPAN%20class%3D%22GINGER_SOFATWARE_correct%22%3E(%3C%2FSPAN%3E)%20in%20%3CSPAN%20class%3D%22GINGER_SOFATWARE_correct%20GINGER_SOFATWARE_noSuggestion%22%3Efec%3C%2FSPAN%3E%3CSPAN%20class%3D%22GINGER_SOFATWARE_correct%22%3E.%3C%2FSPAN%3Ec%20will%20reset%20both%20PHY%20at%20the%20same%20time.%20In%20order%20to%20avoid%20such%20problem%2C%20you%20have%20to%20use%202%20individual%20GPIO%20for%20the%20PHY%20reset.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1105456%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX2x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎06-13-2013 06:46 PM
Updated by: