How to map TEGRA234_MAIN_GPIO to 40 pin GPIO

For the GPIO pin on 40 pin, how to map TEGRA234_MAIN_GPIO to them?

We expect to add a
gpio = <&tegra_main_gpio TEGRA234_MAIN_GPIO(?,?) GPIO_ACTIVE_LOW>
in our device’s dtsi

We would like to add of_get_named_gpio in kernel driver to retrieve and control it.

Hi lykaios1203,

Are you using the devkit or custom board for Orin Nano?

You should check the Jetson Orin Nano Developer Kit Carrier
Board
and pinmux spreadsheet.

In the carrier board document:

Let me take PIN32 (GPIO07) as example, you could also find more information about this pin in the same document.

and also find it from pinmux spreadsheet:

You could see that it is PG.06 if you use it as GPIO.
So, you could configure TEGRA234_MAIN_GPIO(G, 6) in your device tree.

1 Like

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