Uart b rts and cts as gpio mode in jetson orin nx

hi we are trying to use the uart b [uart 0 ] cts and rts as gpio changed pinmux and flashed qpsi and build device tree and configured imu int pin but when try to the PX6 PX7 interrupt resource the system hangs without any log can any one help me on this ? pfa for modified dtsi file

test.zip (7.8 KB)

tegra-ubuntu:~$ sudo gpioset gpiochip0 121=1
@tegra-ubuntu:~$ sudo gpioset gpiochip0 120=1line 120: “PX.06” unused output active-high
line 121: “PX.07” unused output active-high we are trying to set the pins output and rive high and los that one also not working

uart 0 cts can be used as gpio??

			gpio-input = <
				TEGRA234_MAIN_GPIO(B, 0)
				TEGRA234_MAIN_GPIO(X, 6)
				TEGRA234_MAIN_GPIO(X, 7)

It seems you’ve configured them as GPIO/Input.

Why you run gpioset to configure their pin state?

What’ your use case for these 2 PINs?

gpio input interrupt from imu

px07 is working as input int but px06 is not working as per the design doc thanks

can i get feedback on my observation

So, it is an input pin for Jetson.

Could you answer this question?

just to check in output mode gpio is working

If you want to use them as output, then they should not be configured like this.
Please configure them in pinmux spreadsheet first.

After you’ve confirmed that you’ve configured the pinmux correctly, please run the following command to control them.

# gpioset --mode=wait `gpiofind "PX.06"`=0
# gpioset --mode=wait `gpiofind "PX.06"`=1

after updated pinmux sheet as output i am able to probe 1.8 v from the pins , same if i configure as input and interrupt and giving pulse px7 gets irq but px6 is not able to get may i know why ??

Do you mean the issue is specific to PX.06?

What’s the result if you’ve configure PX.06 as Output/Drive 1 in pinmux spreadsheet and run the command I shared?
Could you get a scope to check its state?

sudo gpioset -c /dev/gpiochip0 120=1 ,getting 1.8v output

can you please tell us how px6 work as input

Please configure it as following in pinmux spreadsheet.
image

and simply run the following command on your board to check.

# gpioget `gpiofind "PX.06"`

then this is not applicable ??

i have configured as input interrupt and getgpio is 1 but interrupt is not coming irq callback

How do you confirm this?

Have you also configured in device tree and run /proc/interrupts to check?
Or you can simply use # gpiomon gpiofind “PX.06”` to monitor its state.

/proc/interrupts configured this pin as input in spinode of imu driver

Do you mean that PX.06 has been used by IMU driver?
Is it expected for your use case?