X221, -LC, -AI
TECHNICAL REFERENCE MANUAL
VERSION: 1.4
Page 29 of 38
9.3
How to calculate GPIOs
The above list should include every GPIO there is. This “how to” may help you find errors we did in our
documentation ore to calculate GPIOs for upcoming models as the NVIDIA Jetson Orin.
9.3.1
GPIOnumber
The basic formular:
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
=
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺 ∗
8 +
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
+
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
9.3.2
GPIOletter
The GPIOletter is located between [GPIO3_P] and [.
digit
]
GPIOname
GPIOletter
GPIOletter (referenced)
GPIO3_PK.04
K
10 (for AGX Xavier)
GPIO3_PCC.07
CC
2 (for AGX Xavier)
This letter needs to be referenced to a number.
This number is individual to every Jetson module and can be found in the “tegra-gpio.h” (name may differ
depending on module).
The Table is included at the end of this How to.
9.3.3
GPIOdigit
The GPIOdigit is easiest to get and can be extracted directly from the name.
GPIO3_PO.[GPIOdigit]
GPIOname
GPIOdigit
GPIO3_PK.04
4
GPIO3_PCC.07
7
9.3.4
GPIOoffset
The offset is connected to the GPIOletter. The same GPIOletter has always the same GPIOoffset for one specific
module and only differs for AON cores.
The table for the Jetson AGX Xavier and AGX Xavier Industrial is shown later.
9.3.5
Example
Calculating GPIO number GPIO3_PK.04 for Jetson Xavier NX:
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
=
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺 ∗
8 +
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
+
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
= 372 = 10
∗
8 + 4 + 288