JNX30D TECHNICAL REFERENCE MANUAL
VERSION: 1.4
Page 24 of 28
FEB 2022
10.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.
10.3.1
GPIOnumber
The basic formular:
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
=
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺 ∗
8 +
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
+
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
10.3.2
GPIOletter
The GPIOletter is located between [GPIO3_P] and [.digit]
GPIOname
GPIOletter
GPIOletter (referenced)
GPIO3_PO.01
O
14 (for Xavier NX)
GPIO3_PCC.04
CC
2 (for Xavier NX)
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).
Pleas also see the example table shown in GPIOoffset
10.3.3
GPIOdigit
The GPIOdigit is easiest to get and can be extracted directly from the name.
GPIO3_PO.[GPIOdigit]
GPIOname
GPIOdigit
GPIO3_PO.01
1
GPIO3_PCC.04
4
10.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.
GPIOoffsets are listed later in the table.
10.3.5
Example
Calculating GPIO number GPIO3_PO.01 for Jetson Xavier NX:
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
=
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺 ∗
8 +
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
+
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
= 401 = 14
∗
8 + 1 + 288