Orin NX kit GPIO set question

gpioset gpiofind "PQ.06"=1

gpioset gpiofind "PEE.02"=1

Set OK, but found that the GPIO did not take effect.

How can the GPIO of the Orin NX be forcibly configured in the following manner?
I couldn’t find the manual for the Orin NX chip. The only manual I found is for the AGX Orin chip.

PM.05 :
GPIO_M_OUTPUT_CONTROL_05_0 => 0x022120ac
GPIO_M_ENABLE_CONFIG_05_0 => 0x022120a0
GPIO_M_OUTPUT_VALUE_05_0 => 0x022120b0

// configure OUTPUT_CONTROL as DRIVEN
$ sudo busybox devmem 0x022120ac w 0x0
// configure ENABLE_CONFIG as ENABLE/OUT
$ sudo busybox devmem 0x022120a0 w 0x3
// control PM.05 to High/Low
$ sudo busybox devmem 0x022120b0 w 0x1
$ sudo busybox devmem 0x022120b0 w 0x0

Hello @JiaZW,

I believe you should be able to follow the AGX Orin manual to configure GPIOs using devmem on an Orin NX.

Just make sure to follow the NX pinmux in order to find the right address for your board.

Also, if you want to force a GPIO to be set to a specific value and you are not going to change it dynamically, you can set it on the pinmux and flash the board with it so you don’t have to set the pin during runtime.

best regards,
Andrew
Embedded Software Engineer at ProventusNova

Hi JiaZW,

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

Have you configured both PQ.06 and PEE.02 as Output Drive 0/1 in pinmux spreadsheet?

Please also try running the following commands instead.

# gpioset --mode=wait `gpiofind "PQ.06"`=1
# gpioset --mode=wait `gpiofind "PQ.06"`=0
# gpioset --mode=wait `gpiofind "PEE.02"`=1
# gpioset --mode=wait `gpiofind "PEE.02"`=0

custom board for Orin NX

Install the system using the official image.

Previously, when using version JP5.1.2, the GPIO function worked properly. After upgrading to version JP6.2.1, the GPIO function is no longer working.

gpioset --mode=wait `gpiofind "PQ.06"`=1

Using this configuration works, but this command gets stuck there and won’t exit?? How should we handle this?

gpioset is quite difficult to use. !!!!!!!!!!!!!!

Could you please provide the method for configuring the PAC.06 GPIO register on the Orin NX or OrinNano platform,

such as using busybox devmem

Using option wait is to keep its state until the process ends.
You can also configure the pin in device tree to control the GPIO.

You can refer to the following thread for this use case.
MDIO and MDC as GPIO in Jetson orion AGX dev Kit - #17 by KevinFFF

Are the GPIO addresses of agx orin and orin nx/orin nano the same?

Yes, the address map is the same for both AGX Orin and Orin NX/Nano as they are all from Orin(T234) series.