Orin Jetpack 5.1.2 pps-gpio not working

Hi,
I want to use GPIO3_PN.02 as an pps signal source, and use ppstest tool to monitor the signal, but it seem’s not working. here is my debug info.

1.Modify the device tree as follows:

pps {
		compatible = "pps-gpio";
		gpios = <&tegra_main_gpio TEGRA234_MAIN_GPIO(N, 2) GPIO_ACTIVE_LOW>;
		//assert-rising-edge;
		//assert-falling-edge;
		status = "okay";
	};

2.Separately compiled module driver pps-gpio.ko, manually loaded.

-CONFIG_PPS_CLIENT_GPIO=y
+CONFIG_PPS_CLIENT_GPIO=m

3.The oscilloscope measurement has a 1HZ pps signal, and the pps interrupt count is also increased by 1hz:



4.ppstest detects that /dev/pps0 times out:

What does your not working mean?
If your oscilloscope shows correct waveform, then it’s safe to ignore those timeout message.

ppstest fetch pps timeout, and setting pps gpio GPIO_ACTIVE_HIGH is useful.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.