GPIO Mappings
Sadly it is not trivial to get the correct GPIO numbers that easy, this is why we try to provide a full list of GPIO Mappings on the following pages.
As new compute modules are released, new GPIO Mapping tables are needed and sometimes software updates also can change this mapping (we saw some problems with Jetpack 5.0).
The following chapter on how to calculate GPIOs is provided if you encounter any problems with our GPIO mapping tables
How to calculate GPIOs
AGX-Xavier / AGX-Xavier-Industrial / AGX-OrinNano / TX2-NX / Xavier-NXTX1 / TX2 / TX2iThe above list should include every GPIO mapping there is. This “how to” may help you find errors we did in our documentation or to calculate GPIOs for upcoming compute modules or software changes.
GPIOnumber
The basic formula:
GPIOnumber = GPIOletter *8 + GPIOdigit + GPIOoffset
GPIOletter
The GPIOletter is located between [GPIO3_P] and [.digit]
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 guide.
GPIOdigit
The GPIOdigit is easiest to get and can be extracted directly from the name.
GPIO3_PO.[GPIOdigit]
GPIO3_PK.04
4
GPIO3_PCC.07
7
GPIOoffset
The Jetson module has 2 GPIO-Chips with a given offset. Each Chip provides a specific amount of GPIO's that are divided into several segments. The segments are differentiated by using letters.
GPIO3_PK.04
K.
288 (for AGX Xavier)
GPIO3_PCC.07
CC
248 (for AGX Xavier)
Example
Calculating GPIO number GPIO3_PK.04 for Jetson AGX Xavier:
GPIOnumber = GPIOletter *8 + GPIOdigit + GPIOoffset
GPIOnumber = 10 *8 + 4 + 288 = 372 #GPIO3_PK.04 on AGX Xavier
Table
These tables are extracted from the “tegra-gpio.h” file for the specific module:
A.
0
288
B.
1
288
C.
2
288
D.
3
288
E.
4
288
F.
5
288
G.
6
288
H.
7
288
I.
8
288
J.
9
288
K.
10
288
L.
11
288
M.
12
288
N.
13
288
O.
14
288
P.
15
288
Q.
16
288
R.
17
288
S.
18
288
T.
19
288
U.
20
288
V.
21
288
W.
22
288
X.
23
288
Y.
24
288
Z.
25
288
AA
0
248
AON GPIO
BB
1
248
AON GPIO
CC
2
248
AON GPIO
DD
3
248
AON GPIO
EE
4
248
AON GPIO
FF
26
288
GG
27
288
Last updated
Was this helpful?