This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM-Q1: cpsw9g does not support hardware PTP on SDK 08-00-00-08

Part Number: TDA4VM-Q1

Tool/software:

Hi,experts,

We are using TDA4VM-Q1 on our product,we have connected 4 channel T1 ethernet from cpsw9g,and we want to use hardware PTP on these ports,but when we use ethtool to view ptp information,there just 'software-receive' displayed,the log is:

root@j7-evm:~# ethtool -T eth1                                                                      
Time stamping parameters for eth1:                                                                  
Capabilities:                                                                                       
        software-receive                                                                            
        software-system-clock                                                                       
PTP Hardware Clock: none                                                                            
Hardware Transmit Timestamp Modes: none                                                             
Hardware Receive Filter Modes: none

The SDK version we are used is 'ti-processor-sdk-linux-j7-evm-08_00_00_08',we found in this SDK, the cpsw9g working at 'CPSW9g Virtual Client mode',if we want it work in 'CPSW9g Native Ethernet Switch mode',we must update the SDK version,but we already done a lot of work on this version,we don't want to change the SDK version.

Questions:

1、If we continue to use SDK 08_00_00_08, how to enable 'software-transmit' PTP funtion;

2、If we want to use hardware PTP,the CPSW9g must working at Native Ethernet Switch mode?

3、If hardware PTP not supported on SDK 08_00_00_08, Do we have some patch on it or we must update our SDK version;

  • Hi,

    we use ethtool to view ptp information,there just 'software-receive' displayed,the log is:

    root@j7-evm:~# ethtool -T eth1                                                                      
    Time stamping parameters for eth1:                                                                  
    Capabilities:                                                                                       
            software-receive                                                                            
            software-system-clock                                                                       
    PTP Hardware Clock: none                                                                            
    Hardware Transmit Timestamp Modes: none                                                             
    Hardware Receive Filter Modes: none

    Yes, Virtual Client ca't support gPTP as it doesn't have control on CPSW.
    Virtual Client doesn't have the control of CPSW. Only ETHFW Server has control of CPSW.
    So. Virtual client can't access of any of CPSW & CPTS registers.

    gPTP was supported in RTOS SDK with ETHFW. The gPTP stack in TI SDK 8.0 is only for testing purpose not for production support.

    For production support gPTP stack, please migrate to latest TI SDK.

    Best Regards,
    Sudheer

  • Thanks, we see that "cpsw9g native ethernet mode(ETHFW on A72)" is supported on "ti-processor-sdk-linux-j7-evm-08_06_01_02",can i understand that if the cpsw9g can working at native ethernet mode,it can support hardware PTP?

  • Hi,

    "cpsw9g native ethernet mode(ETHFW on A72)" is supported on "ti-processor-sdk-linux-j7-evm-08_06_01_02",can i understand that if the cpsw9g can working at native ethernet mode,it can support hardware PTP?

    Yes, You can use CPSW9G in Linux with Native Linux Driver.
    It supports, Hardware PTP as similar to CPSW2G.

    Please refer to FAQ (how to move to Native Linux Driver for CPSWnG)
    Also, refer to Linux SDK Documentation for more details of PTP.
    https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_06_01_02/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW-PTP.html

    Best Regards,
    Sudheer