PTP using RTD GMAC Driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PTP using RTD GMAC Driver

1,988 Views
yanis-waabi
Contributor II

Hi,
I'm trying to setup the S32G GMAC0 as a ptp master on the M7 cores.
I'm using RTD driver for GMAC. I could find the function to enable timestamping and correcting the clock but I couldn't find any function related to enabling PTP offloading.

Is there an RTD driver that allows that, or do I have to manually setup the various registers.
If so can you give me the list of register to set to make it act as a ptp master ?

Best regards

Tags (3)
0 Kudos
Reply
4 Replies

1,032 Views
rizwan_at_disruptdotcom
Contributor III

@yanis-waabi @carlos_o Is there an update on this thread? Do we have a GMAC port for S32G3 gPTP stack? If not then can you please provide details on what changes will be required to reliably port gPTP stack to GMAC for S32G3?

0 Kudos
Reply

1,959 Views
yanis-waabi
Contributor II

Thank you for your quick response.
It seems the doc you shared is for using the PFE with PTP. But I want to use instead the GMAC which provide functions to offload the PTP messaging, controlled by GMAC_MAC_PTO_CONTROL register for instance.
Is there somewhere a high level API that I could use for that ?

0 Kudos
Reply

1,929 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @yanis-waabi 

You could use the PTP functionality with the linux BSP distributions to run it with GMAC

please refer to the Linux BSP 42.0 User Manual for S32G3 platforms (or the BSP Version you use) at chapter 8

carlos_o_0-1745527441967.png

 

Otherwise, you need to do your own implementation if you want to do it with the RTDs. 

0 Kudos
Reply

1,964 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @yanis-waabi,

Thanks for your question.

You could find a Reference Software of the Automotive SW - S32G - gPTP Stack at Flexera, the package you have an example that has a function to initialize the PTP Stack

carlos_o_0-1745449144476.png

Also refers to the gPTP S32G User Manual that is included when you download the package, there you could see the prerequisites to run the example. 

Let me know if you have more questions about this topic. 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2085944%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPTP%20using%20RTD%20GMAC%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2085944%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI'm%20trying%20to%20setup%20the%20S32G%20GMAC0%20as%20a%20ptp%20master%20on%20the%20M7%20cores.%3CBR%20%2F%3EI'm%20using%20RTD%20driver%20for%20GMAC.%20I%20could%20find%20the%20function%20to%20enable%20timestamping%20and%20correcting%20the%20clock%20but%20I%20couldn't%20find%20any%20function%20related%20to%20enabling%20PTP%20offloading.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20an%20RTD%20driver%20that%20allows%20that%2C%20or%20do%20I%20have%20to%20manually%20setup%20the%20various%20registers.%3CBR%20%2F%3EIf%20so%20can%20you%20give%20me%20the%20list%20of%20register%20to%20set%20to%20make%20it%20act%20as%20a%20ptp%20master%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2306032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PTP%20using%20RTD%20GMAC%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2306032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245960%22%20target%3D%22_blank%22%3E%40yanis-waabi%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241501%22%20target%3D%22_blank%22%3E%40carlos_o%3C%2FA%3E%26nbsp%3BIs%20there%20an%20update%20on%20this%20thread%3F%20Do%20we%20have%20a%20GMAC%20port%20for%20S32G3%20gPTP%20stack%3F%20If%20not%20then%20can%20you%20please%20provide%20details%20on%20what%20changes%20will%20be%20required%20to%20reliably%20port%20gPTP%20stack%20to%20GMAC%20for%20S32G3%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2086880%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PTP%20using%20RTD%20GMAC%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2086880%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245960%22%20target%3D%22_blank%22%3E%40yanis-waabi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20could%20use%20the%20PTP%20functionality%20with%20the%20linux%20BSP%20distributions%20to%20run%20it%20with%20GMAC%3C%2FP%3E%0A%3CP%3Eplease%20refer%20to%20the%3CSTRONG%3E%26nbsp%3BLinux%20BSP%2042.0%20User%20Manual%20for%20S32G3%20platforms%20(or%20the%20BSP%20Version%20you%20use)%26nbsp%3B%3C%2FSTRONG%3Eat%20chapter%208%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22carlos_o_0-1745527441967.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1745527441967.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F334809i02D908CCA5E62230%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22carlos_o_0-1745527441967.png%22%20alt%3D%22carlos_o_0-1745527441967.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EOtherwise%2C%20you%20need%20to%20do%20your%20own%20implementation%20if%20you%20want%20to%20do%20it%20with%20the%20RTDs.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2086045%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PTP%20using%20RTD%20GMAC%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2086045%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20quick%20response.%3CBR%20%2F%3EIt%20seems%20the%20doc%20you%20shared%20is%20for%20using%20the%20PFE%20with%20PTP.%20But%20I%20want%20to%20use%20instead%20the%20GMAC%20which%20provide%20functions%20to%20offload%20the%20PTP%20messaging%2C%20controlled%20by%26nbsp%3BGMAC_MAC_PTO_CONTROL%20register%20for%20instance.%3CBR%20%2F%3EIs%20there%20somewhere%20a%20high%20level%20API%20that%20I%20could%20use%20for%20that%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2086039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PTP%20using%20RTD%20GMAC%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2086039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245960%22%20target%3D%22_blank%22%3E%40yanis-waabi%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20question.%3C%2FP%3E%0A%3CP%3EYou%20could%20find%20a%20Reference%20Software%20of%20the%26nbsp%3B%3CSTRONG%3EAutomotive%20SW%20-%20S32G%20-%20gPTP%20Stack%26nbsp%3B%3C%2FSTRONG%3Eat%20Flexera%2C%20the%20package%20you%20have%20an%20example%20that%20has%20a%20function%20to%20initialize%20the%20PTP%20Stack%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22carlos_o_0-1745449144476.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1745449144476.png%22%20style%3D%22width%3A%20332px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F334562i3E3F1FA5A9E96C7A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22carlos_o_0-1745449144476.png%22%20alt%3D%22carlos_o_0-1745449144476.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlso%20refers%20to%20the%26nbsp%3B%3CSTRONG%3EgPTP%20S32G%20User%20Manual%26nbsp%3B%3C%2FSTRONG%3Ethat%20is%20included%20when%20you%20download%20the%20package%2C%20there%20you%20could%20see%20the%20prerequisites%20to%20run%20the%20example.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20me%20know%20if%20you%20have%20more%20questions%20about%20this%20topic.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E