I’m trying to enable a PPS input from a GPIO pin on the Jetson Xavier carrier board but cant seem to get it to work.
I have rebuilt the kernel with the following config(s)
# PPS support
CONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
# PPS clients support
# CONFIG_PPS_CLIENT_KTIMER=y
# CONFIG_PPS_CLIENT_LDISC=y
# CONFIG_PPS_CLIENT_GPIO=y
# PPS generators support
# CONFIG_NVPPS is not set
This gave me a device /dev/pps0 which was the KTIMER but I want to be using a GPIO input and there was no /dev/pps1. So I tried with CONFIG_PPS_CLIENT_KTIMER disabled as well but that didn’t really change the situation.
I have also edited the device tree and added a pps device with one of the 40 header pins selected.
pps {
gpios = <&gpio TEGRA_GPIO(Z, 6) 0>;
compatible = "pps-gpio";
assert-falling-edge;
status = "okay";
};
After this I built the image and flashed the Xavier and couldn’t find a pps device for the GPIO.
Is there something that I could be missing / doing wrong?
I have read through the forums and the most similar topic I can find is doing exactly what I’m asking except on the Jetson Nano ( Enabling PPS on Jetson Nano with Jetpack 4.3 - #9 by _av ). In fact in that thread there’s a link to a decent blog post ( Enabling PPS on Jetson Nano ) that seems to explain everything fairly thoroughly - however I can’t seem to get it to work on the Xavier AGX.
Any help would be appreciated.
Thanks