-
Notifications
You must be signed in to change notification settings - Fork 1
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
Basic register mappings for DP83XXX series PHYs. #4
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for the PR! A few comments :)
["dp83xxx", DP83640, 0x20005CE1], | ||
["dp83xxx", DP83848, 0x20005C62], |
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.
["dp83xxx", DP83640, 0x20005CE1], | |
["dp83xxx", DP83848, 0x20005C62], | |
["dp83640", DP83640, 0x20005CE1], | |
["dp83848", DP83848, 0x20005C62], |
@@ -11,13 +11,15 @@ categories = ["embedded", "no-std", "hardware-support"] | |||
readme = "README.md" | |||
|
|||
[features] | |||
default = [ "lan8720a", "lan8742a", "ksz8081r" ] | |||
default = ["lan8720a", "lan8742a", "ksz8081r", "dp83640", "dp83848"] |
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.
Unless we can test the additions, we should not have these features activated by default. Fine for now, but if we merge without actually ever running the tests we should remember to change this.
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.
You're right, I think I'll leave this PR here until I fix my board or someone else test these out for us. Thanks for the comments! I'm still new to embedded Rust and this has been an amazing journey for me :)
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.
I will change the PR to a draft until that happens, then :)
This is an experimental implementation for DP83XXX series PHYs (DP83848 and DP83640 as I'm aware of), I wasn't able to test these though due to a defect on my dev board, still I think somebody else might be able to help out and test this out as DP83848 is a relatively common PHY.
Another thing that I'm trying to work on is the hardware timestamping feature of the DP83640. This particular PHY implements hardware accelerated PTP timestamping, and it is also configured through MIIM interface. I'm thinking of a separate trait for these kind of use cases as there are other PHYs supporting this feature as well.