Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for NXP T1024 PHY address mapping #410

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions hal/nxp_t1024.c
Original file line number Diff line number Diff line change
Expand Up @@ -2558,12 +2558,24 @@ static int hal_phy_init(struct phy_device *phydev)
}


#ifndef RGMII_PHY1_ADDR
#define RGMII_PHY1_ADDR 0x4
#endif
#ifndef RGMII_PHY2_ADDR
#define RGMII_PHY2_ADDR 0x3
#define SGMII_PHY2_ADDR 0x1
#define SGMII_PHY1_ADDR 0x2
#endif
#ifndef SGMII_PHY2_ADDR
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PHY address is swapped here on purpose to resolve a mixup between ethernet devices.

#define SGMII_PHY2_ADDR 0x2
#endif
#ifndef SGMII_PHY1_ADDR
#define SGMII_PHY1_ADDR 0x1
#endif
#ifndef SGMII_AQR_PHY_ADDR
#define SGMII_AQR_PHY_ADDR 0x2
#endif
#ifndef FM1_10GEC1_PHY_ADDR
#define FM1_10GEC1_PHY_ADDR 0x1
#endif

#define FM1_DTSEC1 0
#define FM1_DTSEC2 1
Expand Down
Loading