Can I set the GPIO High/Low by register on JetPack6?

Hi Nvidia,

I’m using custom board for Orin NX and L4T 36.4.0.

I know the /sys/class/gpio is removed and be using libgpiod in JetPack6.

For this website.
https://docs.nvidia.com/jetson/archives/r36.4/DeveloperGuide/HR/JetsonModuleAdaptationAndBringUp/JetsonOrinNxNanoSeries.html#changing-the-pinmux

  1. To use the pin as GPIO, update the following fields in the PADCTL register:Find the register information from the Pinmux Registers section in TRM as mentioned in step 2.
  2. Set GPIO to Bit 10 = 0.
  3. For the output, set Bit 4 = 0 ; Bit 6 = 0.
  4. For Input, set Bit 4 = 1 ; Bit 6 = 1.

I can set the pin in/out for gpio.
But how can I set the high/low (Drive 1/0) for output by register?

PADCTL and GPIO register are separately.

Each GPIO has its own register too and that one can control the output high/low.

You can refer to the following thread for both PADCTL and GPIO registers and how to calculate their address.
Calculating/Getting register adresses of gpio pins - #7 by jost38

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.