Field-tested notes on robotics safety, ROS 2, embedded AI, AI agents, SaaS architecture and the practical systems that connect software to real-world outcomes.

Enabling GPIO Output Pins on Nvidia Jetson Orin Nano Super

Enabling GPIO Output Pins on Nvidia Jetson Orin Nano Super

To enable a GPIO output on Jetson Orin Nano Super, identify the physical header pin, configure its pinmux for GPIO, then request the correct Linux GPIO line as an output. A header position such as pin 7 is not a Linux line offset. For the reference developer kit, NVIDIA’s GPIO library maps pin 7 to PAC.06 (offset 144) and pin 11 to PR.04 (offset 112); find the actual gpiochip on your running system before using either.

This guide covers the Orin Nano developer kit’s 40-pin header and JetPack 6 / Jetson Linux R36. It preserves my original pin 7 and pin 11 overlay walkthrough and adds a quicker path to numbering and troubleshooting. The December 1, 2026 update checks the explanations against the NVIDIA and libgpiod references linked below; it does not report a new physical-board test or certify the overlay for every JetPack 6 release or custom carrier board.

Jetson Orin Nano Super GPIO numbering: BOARD, BCM and Linux lines

Choose the numbering convention used by your tool before choosing the pin. Jetson.GPIO modes belong to that Python library; gpiod tools use Linux chips and lines.

ConventionWhat it identifiesExample for physical pin 7
BOARDPosition on the 40-pin header7
BCMRaspberry Pi-compatible numbering exposed by Jetson.GPIO4; not Tegra GPIO offset 4
CVMModule/carrier connector signal name used by Jetson.GPIOGPIO09
TEGRA_SOCTegra signal identifier used by Jetson.GPIOGP167
Linux GPIO character deviceA controller (gpiochipN) plus a line offset, or a supported line namePAC.06, offset 144 on the tegra234-gpio controller

NVIDIA documents the four Jetson.GPIO modes. The exact aliases below come from its Orin NX/Nano mapping table, which assigns the same table to Orin Nano. These are the two pins used in this tutorial, not a universal 40-pin electrical pinout.

Physical pin (BOARD)BCMCVMTEGRA_SOCLinux line nameLine offset
74GPIO09GP167PAC.06144
1117UART1_RTSGP72_UART1_RTS_NPR.04112

The lowercase pinmux names in the overlay, such as soc_gpio59_pac6, are another naming layer. Do not pass them as BOARD numbers or assume they are identical to the Jetson.GPIO TEGRA_SOC strings. For the complete connector wiring and electrical limits, use NVIDIA’s developer-kit hardware guide and linked carrier-board specification.

Start with the symptom

What you seeCheck firstContinue here
You know a header number but not the GPIO lineMatch BOARD to the Linux line name; inspect the running boardNumbering and line lookup
Permission deniedDevice permissions and the user running the commandPermissions
Device or resource busyThe consumer shown by gpioinfo; a driver or another process may own the lineOutput test
Command succeeds but the voltage does not changeCorrect physical pin, pinmux, wiring and whether the process still holds the lineOutput test
Output stops when gpioset exitsLine-request lifetime, not necessarily a missing overlaylibgpiod version and hold mode
Configuration disappears after rebootSelected boot entry and whether the overlay loadedBoot configuration and live device tree
A Python example reports missing get_lineThe example is for libgpiod 1.x; 2.x has a different APIPython example

For a supported developer-kit configuration, first review NVIDIA’s Jetson-IO workflow: configure the header, save and reboot. The manual overlay below explains the existing pin 7/11 setup when you need to inspect or adapt it.

Pinmux persistence and output persistence are different

A boot configuration decides how the pin is muxed. Your application requests its direction and value while it owns the GPIO line. An overlay does not keep a userspace process running, and a one-shot command does not establish a guaranteed output after it exits.

JetPack 6 also supports dynamic pinmux changes for debugging; the older claim that pinmux can never change at runtime was too broad. NVIDIA separates that debugging route from the MB1 pinmux configuration used for board bring-up. This tutorial does not supply raw register-write commands: a register example for another Orin signal is not a safe replacement for your pin’s configuration. See the R36.4.4 Orin NX/Nano adaptation guide.

The original walkthrough was informed by JetsonHacks’ device-tree overlay explanation. The practical steps follow below.


0) What you’re actually doing (the “why” before the “how”)

On Jetson Orin (including Orin Nano Super), many header signal pins can be routed to GPIO or a supported peripheral function through the pinmux. Power and ground positions are not programmable GPIOs.

Linux users often assume GPIO is “just software,” but on Jetson:

  • The kernel needs a hardware description at boot time telling it which SoC signals are GPIO.

  • That description comes from the Device Tree (DTB).

  • The clean way to customize DTB without replacing it is a Device Tree Overlay (DTBO).

So the goal is:

Create a DT overlay that says:
“The SoC signals connected to header pin 7 and header pin 11 must be configured as GPIO-capable pins at boot, with their output direction requested by the application.”

JetsonHacks explains this “map of the hardware” idea well, including why overlays are safer than editing the base tree.

Also, first and foremost, before going deeper into this article, first follow JetsonHacks tutorial to get started and get your PIN 7 working. Here is the github repo link and video tutorial to proceed:

https://github.com/jetsonhacks/jetson-orin-gpio-patch


1) Prerequisites and safety checks

1.1 Identify your JetPack / L4T version (important context)

Why: NVIDIA sometimes changes boot/DT handling between releases. If something behaves differently, version matters.

cat /etc/nv_tegra_release

You’ll see something like an L4T release line. Keep it in your notes.


1.2 Install required tools

We need the Device Tree Compiler (dtc) to compile .dts → .dtbo.

sudo apt update 
sudo apt install -y device-tree-compiler

Verify the tool exists:

dtc --version

Why: Overlays must be compiled correctly, and we’ll use -@ to include symbol data (commonly required for overlays).


1.3 Install GPIO user tools (optional but very helpful)

Why: gpioinfo, gpioset, etc. make debugging straightforward.

sudo apt install -y gpiod


2) Back up your boot configuration (do this, seriously)

On Jetson Linux, the boot menu is commonly controlled by:

/boot/extlinux/extlinux.conf

Why backup: a typo in extlinux.conf can prevent normal boot.

sudo cp -a /boot/extlinux/extlinux.conf /boot/extlinux/extlinux.conf.bak

Confirm:

ls -l /boot/extlinux/

If something goes wrong later, you can restore it (from recovery or by mounting the SD/NVMe elsewhere).

NVIDIA documents that extlinux.conf is used to point to DTB settings.


3) Understand what we’re changing: pinmux in the device tree

We are going to write an overlay that targets the pinmux node (commonly something like /pinmux@2430000 on Orin).

Why: that node is where pin function (GPIO vs other) gets configured at boot.

JetsonHacks specifically calls out that header pins may be part of the pinmux/bus hierarchy and that you can inspect /proc/device-tree on a running system.


4) Create the overlay source file (.dts)

4.1 Create a working directory

Why: keep your overlay sources organized and reproducible.

mkdir -p ~/jetson-gpio-overlay 
cd ~/jetson-gpio-overlay 

4.2 Create the overlay DTS (FULL FILE)

Create gpio-pins-7-11.dts:

nano gpio-pins-7-11.dts

The pin settings below are from my original Orin Nano Super example. Check the compatible strings and the pinmux symbol against your board before adapting it. The string list uses the standard DTS comma-separated syntax; the pinmux values are unchanged from the original walkthrough.

/dts-v1/;
/plugin/;

/ {
    jetson-header-name = "Jetson 40pin Header";
    overlay-name = "Pin 7 + Pin 11 gpio bidirectional";
    compatible =
        "nvidia,p3768-0000+p3767-0000",
        "nvidia,p3768-0000+p3767-0001",
        "nvidia,p3768-0000+p3767-0003",
        "nvidia,p3768-0000+p3767-0004",
        "nvidia,p3768-0000+p3767-0005",
        "nvidia,p3768-0000+p3767-0000-super",
        "nvidia,p3768-0000+p3767-0001-super",
        "nvidia,p3768-0000+p3767-0003-super",
        "nvidia,p3768-0000+p3767-0004-super",
        "nvidia,p3768-0000+p3767-0005-super",
        "nvidia,p3509-0000+p3767-0000",
        "nvidia,p3509-0000+p3767-0001",
        "nvidia,p3509-0000+p3767-0003",
        "nvidia,p3509-0000+p3767-0004",
        "nvidia,p3509-0000+p3767-0005";

    fragment@0 {
        target = <&pinmux>;

        __overlay__ {
            pinctrl-names = "default";
            pinctrl-0 = <&jetson_io_pinmux>;

            jetson_io_pinmux: exp-header-pinmux {
                hdr40-pin7 {
                    nvidia,pins = "soc_gpio59_pac6";
                    nvidia,tristate = <0x0>;
                    nvidia,enable-input = <0x1>;
                    nvidia,pull = <0x0>;
                };

                hdr40-pin11 {
                    nvidia,pins = "uart1_rts_pr4";
                    nvidia,tristate = <0x0>;
                    nvidia,enable-input = <0x1>;
                    nvidia,pull = <0x0>;
                };
            };
        };
    };
};

What each key line means (beginner explanation)

  • /dts-v1/;
    Declares the device tree source format version.

  • /plugin/;
    Declares this file is an overlay (not a full base DT).

  • compatible = "nvidia,p3768-0000+p3767-0005-super", ...

    This overlay does not target the SoC directly (tegra234).

    Instead, it targets specific Jetson board combinations:

    • the Orin Nano module (p3767)
    • mounted on the Orin Nano Super / Dev Kit carrier board (p3768)
    • including the -super variants used by JetPack 6+

    This is the same approach used by JetsonHacks and jetson-io generated overlays.

    Why this matters:

    • Jetson-IO uses compatible strings to identify supported configurations
    • the string must match your module and carrier board
    • a broad compatibility list is not proof that every listed combination was tested
  • fragment@0 { target = <&pinmux>; ... }

    This tells the overlay to apply its changes to the existing pinmux node.

    &pinmux is a symbol exported by the base Device Tree, which points to the
    SoC pin multiplexer configuration node (typically located at
    /pinmux@2430000 on Orin systems).

    Why this approach is preferred:

    • it avoids hard-coding absolute paths
    • it can avoid path changes only if the base DT still exports the same symbol
    • the referenced symbol must exist in the base DT used at boot

    This is also why the overlay must be compiled with dtc -@,
    so symbol references like &pinmux are preserved.

  • nvidia,pins = "soc_gpio59_pac6";
    The internal SoC signal name we are configuring.

  • nvidia,tristate = <0>;
    Disables the pad’s tristate setting; the GPIO controller must still be configured for output to drive the signal.

  • nvidia,enable-input = <1>;

    This keeps the input buffer enabled, even though the pin is used as GPIO.

    Important clarification:

    • this does not force the pin to be an input
    • GPIO direction (input vs output) is selected later by user-space
      via gpioset, libgpiod, or Python

    Keeping input enabled allows:

    • bidirectional GPIO usage
    • read-back of the pin state
    • safer debugging and testing

    Output driving is controlled when the GPIO line is requested
    with LINE_REQ_DIR_OUT.

This overlay configures the pinmux only.
It does not force the pin direction; direction is selected at runtime
by the GPIO consumer (gpioset, gpiod, Python, etc.).

Note: the exact nvidia,pins string is the most common place people get stuck. If your pin names differ, you must adapt them (see the “How to add more pins” section later).


5) Compile overlay source (.dts) into binary (.dtbo)

Run:

dtc -@ -I dts -O dtb -o gpio-pins-7-11.dtbo gpio-pins-7-11.dts

Why these flags?

  • -I dts : input is device tree source

  • -O dtb : output is compiled binary format (used by bootloader/kernel)

  • -o ... : output filename

  • -@ : include symbol information used by overlay mechanisms (common requirement).

Verify the file exists:

ls -lh gpio-pins-7-11.dtbo


6) Install the overlay in a standard location

A common place used on Jetson is:

/boot/

Note: On Jetson Linux, extlinux.conf accepts absolute paths for overlays.
NVIDIA’s Jetson-IO workflow stores exported overlays in /boot/; use the location referenced by your actual boot configuration.

Other layouts (such as /boot/dtb/overlays/) are also possible,
but this walkthrough retains the path from the original setup.

Copy your overlay:

sudo cp -a gpio-pins-7-11.dtbo /boot/

Confirm:

ls -lh /boot/


7) Enable the overlay at boot via extlinux.conf

This is the step that makes the change persistent across reboot.

7.1 Open the config

sudo nano /boot/extlinux/extlinux.conf

7.2 Reference example extlinux.conf (template)

The original setup used the following JetsonHacks-derived boot entry for pins 7 and 11. Treat it as a reference to compare with your existing configuration, not a file to paste over it. Preserve a known-good boot entry and your existing kernel arguments. The December 2026 documentation review did not re-test this boot configuration on hardware.

⚠️ Important: you MUST replace <YOUR_APP_PARTUUID> with the value
from your own device. Copying this value from another system will
prevent your Jetson from booting.

⚠️ The DTB filename below belongs to the original configuration; it is not guaranteed to match every JetPack 6.x installation.
Always verify the correct filename on your system:

ls /boot/dtb/

Use the DTB that matches your board, then update the FDT line accordingly.

FDT /boot/dtb/<YOUR_DTB>.dtb

TIMEOUT 30
DEFAULT JetsonIO

MENU TITLE L4T boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} root=PARTUUID=<YOUR_APP_PARTUUID> rw rootwait rootfstype=ext4 mminit_loglevel=4 console=ttyTCU0,115200 firmware_class.path=/etc/firmware fbcon=map:0 video=efifb:off console=tty0 nv-auto-config

LABEL JetsonIO
      MENU LABEL Custom Header Config: <HDR40 Pin 7 gpio bidirectional>
      LINUX /boot/Image
      FDT /boot/dtb/kernel_tegra234-p3768-0000+p3767-0005-nv-super.dtb
      INITRD /boot/initrd
      APPEND ${cbootargs} root=PARTUUID=<YOUR_APP_PARTUUID> rw rootwait rootfstype=ext4 mminit_loglevel=4 console=ttyTCU0,115200 firmware_class.path=/etc/firmware fbcon=map:0 video=efifb:off console=tty0 nv-auto-config
      OVERLAYS /boot/gpio-pins-7-11.dtbo

To find your PARTUUID (update the file above with yours):

sudo blkid | grep 'PARTLABEL="APP"'

Save and exit.


8) Reboot to apply this boot configuration

sudo reboot

Why: saving an overlay file does not apply it to the running system. This walkthrough applies it through the selected boot configuration on restart.


9) Verify the overlay actually applied

9.1 Inspect device tree live view

Dump the live tree:

sudo dtc -I fs -O dts -o /tmp/running.dts /proc/device-tree

Why: /proc/device-tree is the “truth” of what the kernel sees right now.

Now search for your overlay node names:

grep -n "hdr40-pin7" /tmp/running.dts
grep -n "hdr40-pin11" /tmp/running.dts
grep -n "exp-header-pinmux" /tmp/running.dts

The full node path depends on the loaded device tree. Use the dump to locate it; a missing hard-coded /bus@0/pinmux@2430000/... path alone does not establish that the overlay failed.

If you see the expected properties, the running device tree contains the overlay changes. That does not alone prove the header produces the intended electrical output; check the GPIO consumer and measure the pin during the output test.

If you don’t see them, investigate:

  • overlay didn’t load

  • the target path is wrong

  • or OVERLAYS line wasn’t parsed

(That’s why the backup step matters.)


10) Find the GPIO line numbers and test output (using gpiod)

10.1 Check the installed libgpiod version

gpioset --version
gpioset --help
gpiodetect
gpioinfo

The commands below use the libgpiod 1.x interface. In 2.x, gpioset uses a different command line and the Python API also changes; do not combine examples from both versions. The upstream release notes describe that compatibility break.

10.2 Find pins 7 and 11 by line name

With the 1.x tools:

gpiofind "PAC.06"
gpiofind "PR.04"

On the original configuration, these returned gpiochip0 144 and gpiochip0 112. Verify your own output: gpiochip0 is an example, not a portable identifier. Check gpioinfo for the matching line and any current consumer before requesting it.

10.3 Hold an output while measuring it

For libgpiod 1.x, if your lookup confirms gpiochip0 144 for physical pin 7:

sudo gpioset --mode=signal gpiochip0 144=1

Leave that process running while you measure the signal. Press Ctrl+C to release it, then request LOW separately:

sudo gpioset --mode=signal gpiochip0 144=0

For physical pin 11, use the same commands with offset 112 only if your lookup confirms it. These are line offsets, not header positions.

The upstream libgpiod 1.x gpioset help explains that the default mode exits immediately and the line state is not guaranteed afterwards. --mode=signal keeps the request alive until a termination signal. This is separate from making pinmux settings survive a reboot.

If you installed libgpiod 2.x, the equivalent explicit-chip form is sudo gpioset --chip gpiochip0 144=1; it holds the line by default. Confirm your chip and offset with the tools and help shipped with that version. See the current upstream GPIO tools guide.

Use a high-impedance meter or suitable buffered test circuit first. Do not connect a motor or relay coil directly to a GPIO, and do not assume generic Raspberry Pi current limits apply to the Orin header. For an LED circuit, select its driver and current-limiting components from the actual board specifications.


11) Python test (libgpiod 1.x)

Install python bindings if needed:

python3 -c "import gpiod; print(gpiod.__version__)"

If that fails, install:

sudo apt install -y python3-gpiod

This example uses the 1.x Python bindings, after pinmux and line lookup are complete. A 2.x module will not provide the same Chip.get_line() interface.

Minimal test script test_pin.py:

import time
import gpiod

CHIP = "gpiochip0"  # change me 
LINE = 112 # change me 
chip = gpiod.Chip(CHIP)
line = chip.get_line(LINE)

line.request(consumer="pin-test", type=gpiod.LINE_REQ_DIR_OUT) 
try:
    for _ in range(5):
        line.set_value(1)
        time.sleep(0.5)
        line.set_value(0)
        time.sleep(0.5)
finally:
    line.release()

Run:

sudo python3 test_pin.py

Use the configured non-root account instead once device permissions are in place. The line is released when the test ends; it does not promise a retained LOW output after process exit.


12) How to add more GPIO output pins (after 7 and 11)

This is the scalable part: you don’t “repeat the whole tutorial,” you only add more pin blocks.

12.1 Step A — Identify the SoC pin name for that header pin

This depends on the carrier board mapping.

Practical ways:

  1. Use JetsonHacks guidance and inspect /proc/device-tree for pinmux entries and existing pin names.

  2. Use jetson-io.py (when available) to see header functions and generate overlays (nice for beginners; still uses DT under the hood).

  3. Use community mappings / reference overlays (but verify against your JetPack version).

12.2 Step B — Add a new node in the overlay

Example for an additional pin name soc_gpioX_yyZ:

some_other_pin_gpio_output {
    nvidia,pins = "soc_gpioX_yyZ";
    nvidia,pull = <0>;
    nvidia,tristate = <0>;
    nvidia,enable-input = <0x1>;
};

We keep input enabled to allow bidirectional / readback; output is controlled by gpioset request direction.

12.3 Step C — Recompile, copy, reboot

Same commands as before:

dtc -@ -I dts -O dtb -o gpio-pins-7-11.dtbo gpio-pins-7-11.dts 
sudo  cp -a gpio-pins-7-11.dtbo /boot/ 
sudo reboot

13) Alternatives to “raw GPIO” (when you want to go further)

GPIO is fine for:

  • LEDs

  • buttons

  • simple enable pins

But robotics/CPS often needs:

  • precise timing

  • safe motor control

  • deterministic behavior

Common alternatives:

  • PWM (for servos / dimming / speed control)

  • I2C/SPI expanders (MCP23017, etc.) to get more I/O cleanly

  • A dedicated microcontroller (Arduino / STM32 / RP2040) handling real-time I/O

    • Jetson does “brains”

    • MCU does “reflexes”

This architecture is extremely common in robotics because Linux is not hard real-time.


14) Troubleshooting checklist (the real-world gotchas)

If you get Permission denied

Check which user runs the command and its access to /dev/gpiochip*. The examples use sudo; for a non-root Jetson.GPIO application, follow NVIDIA’s GPIO group and udev setup. Do not make every device world-writable. A permissions fix does not resolve a line already owned by another consumer.

If you get Device or resource busy

Inspect gpioinfo and identify the consumer. Stop your own previous test before requesting that line again. If a kernel driver owns the line, understand its role before changing the device-tree configuration.

If it worked before reboot but not after

Separate the two cases: if the pinmux configuration is missing after reboot, inspect the boot entry and overlay. If only the requested output level is gone, the application must request the line again after startup. Re-check:

  • OVERLAYS line exists and has correct path

  • overlay file exists in /boot/

  • dump /proc/device-tree and grep for your overlay nodes

If gpioinfo shows the line but output doesn’t change

  • pin might still be muxed to another function

  • or there is a hardware conflict (another driver grabbing it)

If device tree dump doesn’t contain your nodes

  • overlay didn’t apply

  • wrong target-path

  • compilation missing -@

Conclusion (expanded, long-term perspective)

What you actually learned (even if it felt painful)

If you followed this article end to end, you didn’t just enable GPIO pins.

You learned:

  • how Jetson boots

  • how hardware is described to Linux

  • how pinmux works

  • how to safely modify low-level hardware configuration

  • how to debug GPIO properly

This knowledge transfers directly to:

  • PWM

  • SPI

  • I2C

  • camera interfaces

  • audio

  • custom carrier boards

  • robotics deployments


Why this pain is worth it

Once configured correctly:

  • GPIO works reliably

  • survives reboots

  • behaves predictably

  • integrates cleanly with Python, C++, ROS, or systemd

This is exactly what you want in:


A final architectural recommendation

If you find yourself needing:

  • many GPIOs

  • strict timing

  • fast interrupts

  • motor control

  • safety guarantees

Do not fight Linux.

Use this architecture:

Jetson Orin = brain (AI, vision, planning) Microcontroller = reflexes (GPIO, motors, timing)

This is not a workaround — it is industry standard.


Final words

GPIO on Jetson Orin Nano Super is difficult by design, not by accident.

Once you accept that:

  • hardware description comes first

  • boot pinmux configuration and runtime GPIO requests are different layers

  • Jetson-IO, overlays and board pinmux configuration each have a defined scope

Everything becomes consistent.

Scary? Yes.
Fun? Eventually.
Powerful? Absolutely.

And once you’ve done it once — you’ll never be blocked again.

References and next steps

Once your GPIO test works, choose the interface your peripheral actually needs: UART on Jetson Orin Nano for serial links, or the CAN bus, UART, I2C and SPI comparison for a wider robotics design decision.