External trigger timestamp print

Is there any way that we can get the external trigger time stamp from the kernel for the synchronization in multi camera sync in the TRM they have said the gpio time stamp wil staore in fifo .

I would be a help if i can print the time stamp initially now.
please refer the trm snippet below

Suppose you’re asking question for Jetson Nano, right?

not specific to nano .i need to print the time stamp as specified in the above image.

And is there any call back to dev kit for external trigger gpio.

It seems you’ve changed the category of this topic to AGX Xavier.

Are you using the devkit or custom board for AGX Xavier?
What’s the Jetpack version in use?

Please share the result of the following command on your board.

$ cat /etc/nv_tegra_release
$ cat /etc/nv_boot_control.conf

Dev kit with 5.1.2JP

Please refer to Generic Timestamp Engine — Jetson Linux Developer Guide documentation for details.

If you want to use it for camera sync, it seems you have to write a custom driver for this use case.

Thanks for your reply .i have tried the GTE for testing .is the GTE time stamp is real time stamp ?
because i need the real time clock for the evaluation.

You can compare them with the HW clock by running the following command.

$ sudo hwclock --verbose

Thanks for your reply. i have doubt regarding GPIO configuration that i have configure the one gpio as an giop (IRQ handler)for my camera driver and can i monitor the same GPIO with GTE driver?

As my understanding, only one driver can request the GPIO at the same time.

Hi @KevinFFF can i update hardware time stamp to real time.while the GPIO event is occurring? in the hardware it self so that my default time will be RTC.

What do you mean about real time?
It sounds like you want to perform time synchronization between hardware clock and system clock.
It seems you can simply turn on the time sync from network (NTP).

@KevinFFF Actualy i need my time stamp to be same for for two soc ,so that my image and imu data cam sync with other system which are not link to each other ,so i am able to update the real time clock to my image and imu data so other system also can do the same then my all data’s will be sync with time .

Then WHY GTE is?. i can get the trigger event time so those time will be added to the image and imu data .but as of my observation GTE gives the hardware time stamp .
SO is there any way that i can update the real time to the time stamp of my imu and image with help of GTE driver in REAL time clock.

If my under stand is wrong please correct me .or is there any other way for the real time clock usage in image and imu

Are you using 2 AGX Xavier in your case?

Have you tried calling ktime_get_real_seconds() to get the seconds portion of CLOCK_REALTIME instead of using ktime_get_ts64() to get the monotonic clock in timespec64 format?