GPIO always low on on Orin?

I’m trying to get the GPIO working on my Orin but do not see any voltage change on the pins with my multimeter.

I’m using the NVIDIA Jetson AGX Orin Developer Kit Carrier Board Specification from the downloads page and testing with GPIO08 and GPIO09:

cd /sys/class/gpio
echo 324 > export  # GPIO08 on pin 16
echo 325 > export  # GPIO09 on pin 32
echo out > PBB.00/direction
echo out > PBB.01/direction
echo 1 > PBB.00/value
echo 1 > PBB.01/value

But the lines always read low.

$ cat /etc/nv_tegra_release 
# R34 (release), REVISION: 1.1, GCID: 30414990, BOARD: t186ref, EABI: aarch64, DATE: Tue May 17 04:20:55 UTC 2022

/opt/nvidia/jetson-io/jetson-io.py does not work, so I’m wondering after reading this post and this post if I missed an update or a step in setting up the GPIO?

Any help would be appreciated.

hello mcevoy.andy,

there’s an issue to configure GPIO directly on JetPack-5.0 DP,
currently, if you would like to make changes dynamically, you may use devmem/reg_dump to update pinmux register , or update MB1 pinmux bct file.
for example,
pinmux.0x02430030 = 0x0000005a; # soc_gpio42_pq6: rsvd2, pull-up, tristate-enable, input-enable, io_high_voltage-disable, lpdr-disable

please set both bit-4 and bit-6 as 0 to configure this pin as output mode. after that, you should be able to control the pin through sysfs.
for example,
pinmux register: 0x02430030 / Default boot value: 0x5a
please update bit-4 and bit-6 to set required direction. whereas, Output: Bit 4 = 0 Bit 6=0, Input: Bit 4=1 Bit 6=1
please try below steps to make GPIO output working.

$ sudo devmem2 0x02430030 w 0x0a
$ echo [GPIO number] > /sys/class/gpio/export
$ cd /sys/class/gpio/PQ.06
$ echo out > direction
$ cat value # change value and check.

you may also refer to developer guide, To check a GPIO number ,
please follow the GPIO debugfs for looking up the port and offset.
for example,
454 is the GPIO number of PQ.06

$ sudo cat /sys/kernel/debug/gpio | grep PQ.06
 gpio-454 (PQ.06               )

FYI,
there’s GPIO fixes included in the next Jetpack public release, JetPack-5.0.2 will be available on mid-Aug,
you may see-also Topic 222842 for details. thanks