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

Basic register mappings for DP83XXX series PHYs. #4

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j4ger
Copy link

@j4ger j4ger commented Apr 11, 2023

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.

Copy link
Owner

@datdenkikniet datdenkikniet left a 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 :)

Comment on lines +98 to +99
["dp83xxx", DP83640, 0x20005CE1],
["dp83xxx", DP83848, 0x20005C62],
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
["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"]
Copy link
Owner

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.

Copy link
Author

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 :)

Copy link
Owner

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 :)

@datdenkikniet datdenkikniet marked this pull request as draft April 12, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants