GPIO as interrupt pin on xavier AGX

hi all

I want to set xavier agx gpio pin <gpio06 ,PAA.05,CAN0_EN> and <gpio21 ,PA.00,DAP6_SCLK> as interrupt pin
i want to get this event to do callback function.
I reference GitHub - NVIDIA/jetson-gpio: A Python library that enables the use of Jetson's GPIOs

the sample code as below:
import Jetson.GPIO as GPIO
def my_callback(channel):
print(“GPIO interrupt test”)


while True:

I want to know how to config
GPIO.setmode(GPIO.TEGRA_SOC) ? 6?
GPIO.setup(6,GPIO.IN)? 6?

any gpio pin can use this way as interrupt?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

Sorry for the late response, is this still an issue to support? Thanks