Not able to access pwm through sysfs in AGX Orin

Hello team,

I was trying access pwm pin in AGX Orin on pin no 15 “pwm1”. I have configured the pin through jetson-io.py file. But I was not able to initialize the pin. Need help regarding sysfs call for pwm in jetson AGX Orin.

hello yglovi,

could you please also try modify mb1 pinmux configure as below…
$OUT/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi

                        soc_gpio39_pn1 {
                                nvidia,pins = "soc_gpio39_pn1";
                                nvidia,function = "gp";
                                nvidia,pull = <TEGRA_PIN_PULL_NONE>;
                                nvidia,tristate = <TEGRA_PIN_DISABLE>;
                                nvidia,enable-input = <TEGRA_PIN_DISABLE>;
                                nvidia,lpdr = <TEGRA_PIN_DISABLE>;
                        };

please also check device tree sources to confirm you’ve enable the PWM controller.
for example,

        pwm@3280000 {
                status = "okay";
        };

note,
you should perform a full flash to update the mb1 pinmux cfg,
thanks

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