Hello Nvidia experts,
Sorry if I am not the first one to have this problem, but other posts seem to refer to other hardware or older jetpacks.
I work with a custom board, where the PPS signal given by a GNSS (aka GPS) receiver is connected to PAC.00.
PAC.00 (spi5_sck_pac0) has been configured as input in the spreadsheet, and the generated dtsi files have been used to flash the board.
With the following script I see the input toggle
$ sudo gpiofind PAC.00
gpiochip0 138
$ unset previ
while true
do
i=$(sudo gpioget gpiochip0 138)
if [ $i != "$previ" ]
then
previ=$i
echo $i $(date)
fi
done
1 Fri Apr 25 04:55:22 PM UTC 2025
0 Fri Apr 25 04:55:22 PM UTC 2025
1 Fri Apr 25 04:55:23 PM UTC 2025
0 Fri Apr 25 04:55:23 PM UTC 2025
1 Fri Apr 25 04:55:24 PM UTC 2025
0 Fri Apr 25 04:55:24 PM UTC 2025
1 Fri Apr 25 04:55:25 PM UTC 2025
0 Fri Apr 25 04:55:25 PM UTC 2025
1 Fri Apr 25 04:55:26 PM UTC 2025
0 Fri Apr 25 04:55:26 PM UTC 2025
1 Fri Apr 25 04:55:27 PM UTC 2025
0 Fri Apr 25 04:55:27 PM UTC 2025
1 Fri Apr 25 04:55:28 PM UTC 2025
0 Fri Apr 25 04:55:28 PM UTC 2025
pps is configured in my dts file as follows :
pps {
gpios = <&gpio TEGRA234_MAIN_GPIO(AC, 0) GPIO_ACTIVE_LOW>;
compatible = "pps-gpio";
assert-falling-edge;
status = "okay";
};
and the pps-gpio driver is compiled as a module
When I insert the driver module
sudo insmod pps-gpio.ko
dmesg says
[ 239.285861] irq: IRQ251: trimming hierarchy from :bus@0:pmc@c360000
[ 239.286220] pps pps0: new PPS source pps.-1
[ 239.286308] pps pps0: Registered IRQ 251 as PPS source
and my script polling the gpio complains
gpioget: error reading GPIO values: Device or resource busy
That proves that the dts entry describes exactly the gpio that I polled.
A /dev/pps0 file is now created, but running ppstool fails !!!
$ sudo ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
^C
$
When I remove the module, the script sees again the input toggling.
What have I missed to make ppstool/pps-gpio work ?
This is on a Orin NX with Jetpack-6.1(rev1)