We have connected a Trimble GPS PPS output to our TX2 with connect tech Astro carrier board. The GPS generates a 8 microsecond pulse width PPS event with a 100 nanosecond rise and fall time. We have connected this PPS signal to GPIO pin gpio_pq4_pi4. This GPIO has been attached to the PPS device in the kernel by modifying the tegra186-tx2-cti-ASG001-revG+.dts file and adding the PPS device shown below to the dts file.
pps: pps_gpio {
gpios = <&tegra_main_gpio TEGRA_MAIN_GPIO(I, 4) 0>;
compatible = "pps-gpio";
status = "okay";
};
We have built the kernel and deployed it successfully to the TX2, and do find /dev/pps0 and /dev/pp1.
When testing with testpps /dev/pps1 and the GPIO connected to a 1 millisecond pulse source the PPS is triggered correctly, but this same test fails when connected to the GPS PPS signal.
We have increased the axi_cbb clock to maximum clock rate as suggested in Not getting all Interrupts as well confirming that the GPIO is set to edge trigger as shown below.
Can the TX2 detect a 8microsecond pulse?
What is the shortest pulse the TX2 can detect with GPIO?
How do I find the address for the config register and how do I read it from the command line?