Gpio Interrupt


GPIO interrupt number is as above。

The gpio pin numbers are as follows :
gpiochip0: GPIOs 348-511, parent: platform/2200000.gpio, tegra234-gpio:
gpio-348 (PA.00 |fixed-regulators:reg) out lo
gpio-349 (PA.01 )
gpio-350 (PA.02 )
gpio-351 (PA.03 )
gpio-352 (PA.04 )
gpio-353 (PA.05 )
gpio-354 (PA.06 )
gpio-355 (PA.07 )
gpio-356 (PB.00 )
gpio-357 (PC.00 )
gpio-358 (PC.01 )
gpio-359 (PC.02 )
gpio-360 (PC.03 )
gpio-361 (PC.04 )
gpio-362 (PC.05 )
gpio-363 (PC.06 )
gpio-364 (PC.07 )
gpio-365 (PD.00 )
gpio-366 (PD.01 )
gpio-367 (PD.02 )
gpio-368 (PD.03 )

How do interrupts correspond to pins, or how are they mapped?

I saw 6 controllers (GPIO-CTLx): each controller is assigned 8 interrupt numbers. So, how do these 8 interrupt numbers correspond to the pins

pin pad controler interrupt number
gpio12 → GPIO3_PN.01 - >GPIO_CTL2 → 304-311
but my test: irq number is 320

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, I will provide a comprehensive answer to the question.

The question appears to be asking about the GPIO interrupt number and pin numbers for the Jetson Orin NX module.

According to the context, the GPIO pin numbers for the Jetson Orin NX module are listed as follows:

  • gpiochip0 GPIOs 348-511
  • Parent platform: 2200000.gpio (tegra234-gpio)
  • GPIO pin numbers:
    • PA00 - PA07 (gpio348 - gpio355)
    • PB00 (gpio357)
    • PC00 - PC07 (gpio358 - gpio365)
    • PD00 - PD03 (gpio366 - gpio369)

However, the context does not provide a clear answer to the question about the GPIO interrupt number. It only mentions that the GPIO pin numbers are as listed above.

To provide a more comprehensive answer, I would like to compare the GPIO pin numbers listed above with other relevant information in the context.

The context mentions that the Orin Module has multi-purpose standard CMOS pad interfaces, which include GPIO pins. It also mentions that the Jetson AGX Orin series has a specific GPIO pin, SOC_GPIO08, which is a GPIO pin on the Jetson AGX Orin platform.

Additionally, the context mentions that the GPIO014 pin is a pin for GPIO functionality, and it supports both input and output operation (bidirectional).

However, without more specific information about the GPIO interrupt number, I cannot provide a definitive answer to the question.

Therefore, my answer is that the GPIO pin numbers for the Jetson Orin NX module are listed as above, but the context does not provide a clear answer to the question about the GPIO interrupt number. Further information or clarification would be needed to provide a more specific answer.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi 550399056

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

The Interrupt Number listed in TRM document is defined from HW.
The IRQ numbers read from /proc/interrupts are assigned by Linux kernel (From SW).
You can just refer to the number and count there.

Why are the values of the two different? Can you explain it? When writing the device tree, it is necessary to refer to the TRM document

One is specified for HW, another is assigned by SW.

What’s the Jetpack version in use?

May I know what’s your use case?
Do you want to specify interrupts property in device tree?
If so, you can specify it as following for this pin. (for Jetpack6.x)

			interrupt-parent = <&gpio>;
			interrupts = <TEGRA234_MAIN_GPIO(N, 1) IRQ_TYPE_LEVEL_LOW>;