-
Notifications
You must be signed in to change notification settings - Fork 8.1k
BOARD: Add Ethernet support to frdm imx93 #96280
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
Conversation
Test PHY driver using zperf: west build -p always -b frdm_imx93/mimx9352/a55 samples/net/zperf/ Signed-off-by: Hongbo Wang <[email protected]>
PHY chip YT8521, the driver is: drivers/ethernet/phy/phy_motorcomm_yt8521.c Signed-off-by: Hongbo Wang <[email protected]>
fcb69b4
to
631a8b0
Compare
Why can't the generic |
@maass-hamburg It may because YT8521 has device specific regs other than common MII regs. |
/* set default reg space */ | ||
mc_ytphy_write_ext(dev, YT8521_REG_SPACE_SELECT_REG, YT8521_RSSR_UTP_SPACE); | ||
|
||
mc_ytphy_modify_ext(dev, YTPHY_SYNCE_CFG_REG, YT8521_SCR_SYNCE_ENABLE, 0); | ||
|
||
ret = mc_ytphy_get_features(dev); | ||
if (ret) { | ||
return -EIO; | ||
} | ||
|
||
/* Reset PHY */ | ||
ret = mc_ytphy_soft_reset(dev); | ||
if (ret) { | ||
return -EIO; | ||
} | ||
|
||
/* Enable clock delay */ | ||
mc_ytphy_cfg_clock_delay(dev); | ||
|
||
mc_ytphy_resume(dev); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems like these are the differences, check if these are needed, also the things that are set in them like the rx/tx rgmii delay isboard specific and should not be hardcoded and instead be props from the dt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added dt props
Added rx and tx delay sel dt props. Separate commit is created for easier review. Will squash it before merge. |
- Moves binding to phy subdir - Add rx and tx delay sel - Format code - Update frdm-imx93 dts accordingly Signed-off-by: Chekhov Ma <[email protected]>
96eb915
to
c652c1a
Compare
|
The driver needs to be adapted to recent Zephyr version. Convert to draft. |
Close this one as a new PR is created for this: #97535 |
Add YT8521 PHY driver and enable it on FRDM-IMX93