Config gpio14 as GPIO normal

Hi, I have problem.when i config GPIO14 as normal pin. I disabled GPIO14 work as PWM3 in device tree. But i don’t know gpio number in /sys/kernel/debug/gpio. Can you help me point numberpin of GPIO14 in /sys/kernel/debug/gpio?
Thanks

Hi chudat1204,

Are you using the devkit or custom board for Orin NX?
What’s your Jetpack version in use?

Please share the result of the following command on your board.

$ cat /sys/kernel/debug/gpio |grep PX.03

i am was using custom board for Orin-nx with jetpack 5.1.3. Here is the results when i type cmd “cat /sys/kernel/debug/gpio |grep PX.03”.
Thanks!


If you want to use above pin(GPIO14) as GPIO, you can just use gpio-465 since PX.03 pinmux as I show you above.
In JP5.1.3, you can simply run the following command to export and control it through sysfs

# export 465 > /sys/class/gpio/export
# cat /sys/class/gpio/PX.03/direction
# cat /sys/class/gpio/PX.03/value

Thank you, but i wanna know a way that you can search gpio-465 map with pin(GPIO14).
Thanks !

You can search it from pinmux spreadsheet as the screenshot I shared with you.

  1. Find the pin you want to control: GPIO14
  2. check which GPIO pin is pinmux with this pin: PX.03
  3. run cat /sys/kernel/debug/gpioto check GPIO number: 465

Oke, i find this. Thank you!!!

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