Using pps-gpio on Orin

I have an Orin AGX dev kit running JetPack 5.0.2.

I am trying to use pin 13 of the GPIO header as a PPS input for time synchronization to a GPS, as I’ve been doing with Xaver AGX modules.

I edited bootloader/tegra234-mb1-bct-gpio-p3701-0000.dtsi and added this to the gpio-input section of gpio_main_default to make RR.00 an input:


I added this to tegra234-p3701-0000-p3737-0000.dts to configure the PPS input:

    pps {
        gpios = <&tegra_main_gpio TEGRA234_MAIN_GPIO(R, 0) 0>;
        compatible = "pps-gpio";
        status = "okay";

When I boot the system, dmesg shows this error:

 [    4.689997] pps-gpio pps: failed to request PPS GPIO
 [    4.695103] pps-gpio: probe of pps failed with error -22

hello bobb0371,

please see-also similar discussion thread, Topic 224203, there’s an issue that pps fetch will timeout.
we’re still checking this internally.

hello bobb0371,

please see-also…