LS1021A : net eth0: could not attach to PHY

cancel
Showing results for 
Search instead for 
Did you mean: 

LS1021A : net eth0: could not attach to PHY

1,652 Views
sukruthrameshba
Contributor III

Hi, 

Pavel

I am using custom-made eval board in which LS1021A is populated.

We are evaluating gigabit ethernet PHYs using this evaluation boards.

Attached the log file for more information on BSP, U-Boot.

Sometimes, on power-on it doesn't detect the PHY. 

"

starting network interfaces...
[ 5.132126] net eth0: could not attach to PHY "

However, On doing the hard reset It detects the PHY.

Attached log file for both the scenarios.

Can you please help me out in resolving this issue?

Thanks in advance.

Regards,

Sukruth

0 Kudos
1 Reply

659 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello SUKRUTH RAMESH BABU,

According to your description, it sees that this problem is caused by the unstable hardware. Please monitor the MAC/PHY interface activity with a scope and check for HW specification.

Please try to do PHY status detection under u-boot, please modify the following section in the file include/configs/ls1021atwr.h in u-boot source code according to the Ethernet port MDIO PHY addresses on your custom board, then rebuild u-boot and deploy it to your target board.

#define TSEC1_PHY_ADDR                  2
#define TSEC2_PHY_ADDR                  0
#define TSEC3_PHY_ADDR                  1

Please check the mido PHY information

=> mdio list
FSL_MDIO0:
0 - AR8031/AR8033 <--> eTSEC2
1 - AR8031/AR8033 <--> eTSEC3
2 - AR8031/AR8033 <--> eTSEC1

Read PHY related registers with the following commands.

mdio read <PHY address> <REGISTER Address>

Example, The link partner (“copper side”) link status bit is in Register #1 on the PHY.
=> mdio read eTSEC1 1
Reading from bus FSL_MDIO0
PHY at address 2:
1 - 0x796d


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos