Hi,
We have previously used PPS with our Jetson Xavier NX (JP4.4) successfully, to get a precise time sync (PPS from GPS to NX). I have now upgraded the NX to Jetpack 5.0.2 and tried to follow the same procedure to enable PPS support, and have been able to get pps0 to show, but not pps1. Pps0 is the ktimer signal, I need the gpio-based one.
Here is what I have done:
Built kernel from source, with the following set in .config:
CONFIG_PPS=y
CONFIG_PPS_CLIENT_KTIMER=y
CONFIG_PPS_CLIENT_LDISC=y
CONFIG_PPS_CLIENT_GPIO=y
Built the kernel, flashed the image to the Jetson board.
I then create pps.dts:
/dts-v1/;
/plugin/;
/ {
overlay-name = “Jetson PPS”;
compatible = “nvidia,p3509-0000+p3668-0001”;
fragment {
target-path = “/”;
overlay {
pps: pps_gpio {
compatible = “pps-gpio”;
gpios = <&tegra_main_gpio 105 1>;
status = “okay”;
};
};
};
};
Compile with
sudo dtc -I dts -O dtb -@ -o pps.dtbo pps.dts
It creates the pps.dtbo as expected.
Running
sudo /opt/nvidia/jetson-io/config-by-hardware.py -l
doesn´t show the “Jetson PPS” as it did previously though.
Compiling manually with
sudo fdtoverlay -i tegra194-p3668-0000-p3509-0000.dtb -o tegra194-p3668-0000-p3509-0000-user-custom.dtb pps.dtbo
and replacing in extlinux.conf seems to work, but does not make /dev/pps1 show either.
I also tried modifying the hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts, but with the same result.
Are there any changes in 5.0.2 compared to 4.4 that could impact this?
Has anyone successfully enabled GPIO-based PPS on the NX with Jetpack 5.0.2?
Best regards,
Milan