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

[Backport v3.7-branch] drivers: ethernet: Fix nxp ethernet due to issue in ksz8081 #80923

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Nov 5, 2024

Backport 495a374~2..495a374 from #80645.

Fixes #79965

500 ms reset time is only for software reset and comes from IEEE spec.
Datasheet mentions for hardware reset the assertion of the signal should
only need to be 500 us, and 100 us after deassert to wait to access
programming interface.

Also remove an unused macro.

Signed-off-by: Declan Snyder <[email protected]>
(cherry picked from commit 9687773)
I for the life of me do not know what is going on here with the RNB chip
but it seems this override must be set in order for the chip to work,
regardless of strap-in configuration, and if not set explicitly, the
value after a reset for these two bits will be seemingly random and
inconsistent. And it was working before by luck before removing a second
redundant reset in a recent commit, because apparently the register
was getting the opposite of the reset value according to the datasheet
which makes it work. The result of these bits after reset seem to vary
depending on host mcu, board, debugger, number of times reset, type of
reset, and with a pinch of random chance after keeping all variables
seemingly the same, so let's just set it to the value that works
explicitly, even if it doesn't make sense. The bit here doesn't have
clear documentation but it seems it's for using RMII regardless of the
strap in option, which is what we want to do anyways if we know the
interface type from DT, so I think it's fine, considering it is making
this driver work again.

Signed-off-by: Declan Snyder <[email protected]>
(cherry picked from commit 495a374)
@zephyrbot zephyrbot requested a review from rlubos as a code owner November 5, 2024 14:08
@zephyrbot zephyrbot added the Backport Backport PR and backport failure issues label Nov 5, 2024
@decsny decsny linked an issue Nov 5, 2024 that may be closed by this pull request
@dkalowsk dkalowsk added this to the v3.7.1 milestone Nov 7, 2024
@nashif nashif merged commit 4c80635 into v3.7-branch Nov 11, 2024
29 of 30 checks passed
@nashif nashif deleted the backport-80645-to-v3.7-branch branch November 11, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Ethernet Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

net: mimxrt1170_evk_cm7: 100M: phy does not work well tx/rx timeout
6 participants