-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DSA PTP support #95054
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
base: main
Are you sure you want to change the base?
DSA PTP support #95054
Conversation
Updated hal_nxp to support netc switch ptp. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Moved dsa_tag_netc.h to public include directory for devices reusing. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
e2f8d57
to
c8038a3
Compare
Updated to fix twister issues. |
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.
Reviewed from IEEE 802.15.4 point of view which as I guess is not your primary interest, however the change must not break anything there, should not make the code unsafe to use and should not lead to a waste of memory. Please have a look on the notes below.
Supported tagger data and connecting device to tag protocol, so that some device specific work could be handled. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Allowed ptp-clock property for dsa. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added PTP solution in core driver. Now only gPTP was supported. - ethernet_api like get_capabilities and get_ptp_clock were supported in port driver. - For TX timestamp, added new dsa_api port_txtstamp for device to handle. Device driver might put pkt in queue, and reported timestamp after completing transmitting on hardware. - For RX timestamp, the timestamp could be given to pkt in tag driver or device driver. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Supported common usage of control block for any layers. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Supported PTP timestamping in netc tag driver. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
PTP clock may be enabled per Ethernet port. Especially pseudo port for switch management does not need PTP clock. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Supported receiving more types frames. One was TX timestamp response frame and the other one is RX timestamped frame which were for switch port. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Supported PTP timestamping. Now only gPTP was supported. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added imx943_evk_mimx94398_m33_ddr support. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
c8038a3
to
13d32db
Compare
|
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.
Looks OK from ieee802154 point of view, other parts not in my field of expertise.
Any other comments? |
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.
+1 for docs, thanks!
This PR is to support DSA PTP. (Now only gPTP is supported)
Also enabled i.MX943 gPTP sample for testing. gPTP on all 5 ports on i.MX943 (2 DSA switch ports and 3 ENETC ports) worked fine.
There is a hal_nxp dependency:
Thanks a lot.