PPS in AGX orin JP 6.0 L4T 36.3.0

Hi nvidia team im trying to generate the pps pulse in gpio pin(TEGRA234_MAIN_GPIO(H, 6))
for enery second the pps will generate im using the driver
pps_gen_gpio .txt (8.5 KB)
my overla dt is like
pps{
//pinctrl-names = “default”;
//pinctrl-0 = <&pps_gen_pins>;
//compatible = “pps-gen-gpio”;
gpios = <&gpio PPS_GPIO 0>;
compatible = “nvidia,pps-gpio”;
assert-falling-edge;
status = “okay”;
//#pwm-cells = <1>;
//pwms = <&tegra_pwm1 0 33898305>;
//pps-gen-gpio = <&gpio PPS_GPIO 0>;
//default-state = “off”;
};
if i insmod my drive i getting the errors like

need help on this issue.

Hi herethehacker97,

Are you using the devkit or custom board for AGX Orin?

How do you define PPS_GPIO?

Please share the full dmesg and device tree for further check.

define PPS_GPIO TEGRA234_MAIN_GPIO(H, 6)

we are using hte dev kit.

for the same dev kit with JP5.1.2 i have configurethe dtb as like this
pps-gen {
pinctrl-names = “default”;
//pinctrl-0 = <&pps_gen_pins>;
compatible = “pps-gen-gpio”;
//#pwm-cells = <1>;
//pwms = <&tegra_pwm1 0 33898305>;
pps-gen-gpio = <&tegra_main_gpio PPS_GPIO 0>;
default-state = “off”;
};

this works fine same driver i have shared above .

Is this your custom driver?

Do you mean that driver work with JP5.1.2 but not work with JP6.0?
If so, please also share the dmesg in both releases.