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 ?