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.

AM6442: How to generate pps from PRU IEP?

Part Number: AM6442
Other Parts Discussed in Thread: SYSCONFIG,

Tool/software:

Hello dear expert,

My question about generating pps from PRU IEP source in Linux (A53 core).

My main goal is to synchronize the system clock of an mcu application running on the R5 core using the pps signal I will generate via PRU IEP in Linux running on the A53 core.

When I examined the CPSW Ethernet section of PSDK ( software-dl.ti.com/.../CPSW-PTP.html ), I saw that a similar operation was done using cpsw.

1- Is there a timestamp generator function for PRU_ICSSG, like in CPSW (cpts_genf0/1) ? In the list of TSR inputs and outputs in the TISCI document, PRU_ICSSG functions are sync0/1_out. Do they do the same thing as the timestamp generator functions of cpsw (cpts_genf0/1) ? I think this part is not clear.

2- In the device tree example in the PPS Pulse Per Seconds part of the CPSW Ethernet section of PSDK, it is seen that the cpts@3d000 node is under the cpswx node. Is it necessary to move this node under the icssg node?

3- I want to handle the time synchronization event generated via PRU IEP in Linux by creating an interrupt in the R5 core. Accordingly, can I edit the &timesync_router node in the Linux device tree as follows?

&timesync_router {
...
TS_OFFSET(16, 25)
>;
...
}

out16 -> pr1_edc0_sync0_out
in25 -> cpts_hw1_push

4- If this device tree definition is correct, how do I generate the pps signal to handle in R5 ?

CCS: 12.5.00007
MCU+ SDK: v09.01.00.41
SysConfig: 1.18.0
SOC: AM6442

Best Regards, Tuna Girişken