GPIO04 Device or resource busy

Hi,

I have a Xavier NX running 35.2.1. I am trying to use GPIO 04 as an input but I am unable to use it.
sudo cat /sys/kernel/debug/gpio | grep PCC.01 results in gpio-318 (PCC.01 |pwr ) out hi
How can I find the driver in the dtb file to remove from this pin? Ive looked through the device tree but I am unsure how to find this gpio pin. Since the naming is different.

I have properly configured the pin in the pinmux and its configured as an input.

Xavier_NX_dtb.txt (390.0 KB) Here is my dtb file

Thanks in advance

Hi,

There should be no changes required in device trees.
It’s a pure pinmux setting.
Please make sure you are re-flashing the device with the updated pinmux config file:
https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxXavierSeries.html?highlight=pinmux#pinmux-changes

I found the issue. It was a device tree issue. Pinmux is 100% correct.

In the device tree there was a module named leds_gpio that was using the pin. When removing this module it released the gpio pin and I could use it.

1 Like

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