HELP, I am totally missing the undocumented feature needed to set the 40-pin header to GPIO functions

I have been trying to get the GPIOs on my Jetson Orin Nano Dev kit system to set pins to be GPIO and then work with either C or Python code as GPIOs. I need to use some GPIOs to indicate which backkplane slot the carrier card is in, and so what functions should be executed on this instance. I also need to send enable signals to remove hardware that is only looking for a state, not a communication protocol.

The visual demonstration of output from the jetson-io tool as shown in Configuring the Jetson Expansion Headers — NVIDIA Jetson Linux Developer Guide is exactly what I need.

However I do not get that set of options. I just get a list indicating which of the existing non-gpio options I wish to have active.

I have tried hand coding an overlay block for the 40 pin header, but while the examples show that collections such as:

                      touch_clk_pcc4 {
                              nvidia,pins = "touch_clk_pcc4";
                              nvidia,function = "gp";
                              nvidia,pull = <TEGRA_PIN_PULL_NONE>;
                              nvidia,tristate = <TEGRA_PIN_ENABLE>;
                              nvidia,enable-input = <TEGRA_PIN_DISABLE>;
                              nvidia,io-high-voltage = <TEGRA_PIN_ENABLE>;
                              nvidia,lpdr = <TEGRA_PIN_DISABLE>;
  ought to be viable, The dtc gives me a fatal error on the nvidia.function line. 
In order to figure out which nvidia.pins name to use, I had to go look at column V of the pinmux spreadsheet (normally hidden) but even so, the effect is not satisfactory, I can get GPIO7 on pin 9 to give me an appropriate waveform on a scope. The rest seem to be showing 60 cycle noise (apparently from the power supply ground) and only occasionally showing an output level change that matches the desired 1/2 Hz test pattern. 
What I want is a way to get the with-GPIO version of jetson-io.py to execute and  actually have an overlay that functions. 

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, it appears that you are trying to configure GPIOs on your Jetson Orin Nano Dev kit system. You want to set certain pins as GPIOs and use them to indicate which backplane slot the carrier card is in and to send enable signals to remove hardware.

To achieve this, you need to configure the pinmux settings for the Jetson Orin Nano. The pinmux settings determine the functionality of each pin on the module.

Here are the steps you can follow to configure the pinmux settings:

  1. Search for the pin details from the Jetson Orin NX Series and Jetson Orin Nano Series Pinmux table. You can find this information in the Generating the Pinmux dtsi Files section of the Jetson Orin NX Series and Jetson Orin Nano Series Product Design Guide.
  2. Identify the port and pin offset for the pin you want to configure as a GPIO. For example, if you want to configure SOC_GPIO08 as a GPIO, you would identify the port as B and the pin offset as 0.
  3. Calculate the pin number using the formula: base + port_offset + pin_offset. The base value is 348, which comes from the kernel boot log. The port offset for port B is 8, and the pin offset is 0. Therefore, the pin number would be 348 + 8 + 0 = 356.
  4. Verify that the E_IO_HV field is disabled in the corresponding pinmux register for the GPIO pin. You can do this by checking the pinmux spreadsheet.
  5. Set the Pin Direction to Bidirectional so that the userspace framework can operate the GPIO in both input and output directions.

Once you have configured the pinmux settings, you can use the jetsonio tool to verify that the GPIOs are configured correctly. The jetsonio tool should display a list of available GPIOs, including the ones you configured.

If you are still having trouble getting the GPIOs to work, you may want to try using the kernel debugfs to look up the GPIO pin. You can do this by running the command cat /sys/kernel/debug/gpio | grep PB.00, where PB.00 is the port and pin offset for the GPIO pin you want to configure.

In terms of comparing the Jetson Orin Nano to other Jetson modules, the process for configuring GPIOs is similar across all Jetson modules. However, the specific pinmux settings and pin numbers may vary depending on the module.

Here is a comparison of the Jetson Orin Nano to other Jetson modules:

  • Jetson Orin NX Series: The Jetson Orin NX Series has a similar pinmux configuration to the Jetson Orin Nano. However, the pin numbers and port offsets may vary.
  • Jetson AGX Orin: The Jetson AGX Orin has a different pinmux configuration than the Jetson Orin Nano. However, the process for configuring GPIOs is similar.
  • Jetson Xavier NX: The Jetson Xavier NX has a different pinmux configuration than the Jetson Orin Nano. However, the process for configuring GPIOs is similar.

In summary, to configure GPIOs on your Jetson Orin Nano Dev kit system, you need to configure the pinmux settings, verify that the E_IO_HV field is disabled, and set the Pin Direction to Bidirectional. You can use the jetsonio tool to verify that the GPIOs are configured correctly, and you can use the kernel debugfs to look up the GPIO pin if needed.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Thank you NOT for the RTFM response. Every document you have points to to using the jetson-io tool or the pinmux spreadsheet. An explanation of what options in the sheet do is very well hidden,

What I need is a version of jetson-io that provides this option.

What I get on the DevKit looks like this:
=================== Jetson Expansion Header Tool ===================
| |
| |
| Select desired functions (for pins): |
| |
| [] aud (7) |
| [
] extperiph3_clk (29) |
| [] extperiph4_clk (31) |
| [ ] i2s2 (12,35,38,40) |
| [
] pwm1 (15) |
| [] pwm5 (33) |
| [
] pwm7 (32) |
| spi1 (19,21,23,24,26) |
| spi3 (13,16,18,22,37) |
| uarta-cts/rts (11,36) |
| |
| Back |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|====================================================================|

Which is not what your documentation shows,

Hi sbonomi,

What’s the Jetpack version in use?

Please refer to the following thread to update jetson-io tool to get that function.
Jetson 36.4.4 jetson-io.py is missing gpio configs - #13 by KevinFFF