How to use GPIO in Jetson-agx-orin

I am using jetson agx orin development kit. I want to use GPIOs of 40 pin headers.

I have compiled code using nvbuild.sh and flashed using flash.sh With latest kernel gpio-sysfs is not enabled so we enabled sysfs from menuconfig.

I want to use pin 13 on 40 pin header which is GPIO3_PR.00. I Added device tree tegra234-p3737-0000+p3701-0000.dts with following content.

soc_gpio37_pr0 {
nvidia,pins = “soc_gpio37_pr0”;
nvidia,function = “gp”;
nvidia,pull = 0;
nvidia,tristate = 0;
nvidia,enable-input = 0;
nvidia,io-high-voltage = 0;
nvidia,lpdr = 0;
};

But still pin is not working.

I want to use 8 pins on this header as Gpio. How to achieve that ?

  1. Which jetpack release are you using?

  2. I Added device tree tegra234-p3737-0000+p3701-0000.dts with following content.

  • If you are talking about pinmux, then this dtb won’t take effect.
  • Even above pinmux is wrong. This won’t make pin as gpio

Since it sounds like you totally don’t know how to do, better answering my question first.

I am using jetpack 6.0 release.

Can you please guide me to make pin as GPIO .

Read the document:
https://docs.nvidia.com/jetson/archives/r36.2/DeveloperGuide/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxOrinSeries.html#pinmux-changes

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