Tx2Nx Pinmux

I use Jetpack4.5.1 on Tx2Nx.
Where is Pinmux-Template doc for Tx2Nx?
I see pin 216 is defined CAM_I2C_MUX TEGRA_MAIN_GPIO(C, 4).
I want add pin 228 for another CAM_I2C_MUX2.
How to defined pin 228 in dtb?
#define CAM_I2C_MUX2 TEGRA_MAIN_GPIO(?, ?)

hello hlong1981,

there’s Jetson TX2 NX Series Pinmux Table available via download center.
as you can see, it’s GPIO3_PU.05 of pin-228, you could use the marco, TEGRA_MAIN_GPIO(U, 5) for the usage.

The 228 pin is a input pin.
How can i change 228 pin to output pin?

Hi @hlong1981 ,

sudo echo 228 > /sys/class/gpio/export
sudo echo in > /sys/class/gpio/gpio228/direction

For setting the pin,

sudo echo 1 > /sys/class/gpio/gpio228/value

For resetting the pin,

sudo echo 0 > /sys/class/gpio/gpio228/value

Regards.

I use this pin in dtb and camera driver.
How can i define in dtb?

You should use Jetson TX2 NX Series Pinmux Table which declared by @JerryChang , you can create the dtb file from Pinmux Table.

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