Is the pin number and gpio correctly matched in the Xavier NX Pinmux Configuration Template excel file?

Hello,

Is the pin number and gpio correctly matched in the Xavier NX Pinmux Configuration Template excel file?

I have a question because the gpios of 104 and 106 seem to have changed.

I’m testing the motor, but it works in the opposite direction to the expected direction, so I’m asking if the value in the excel is correct.

Thank you.

may I know which JetPack release you’re using? had you also refer to developer guide for identify the GPIO numbers.

1 Like

Hello, @JerryChang

may I know which JetPack release you’re using?
=> R32 (release), REVISION: 7.1

had you also refer to developer guide for identify the GPIO numbers.
=> yes. I have refered to Jetson_Xavier_NX_Pinmux_Configuration_Template_v1.06.xlsm

Thank you.

hello mszeta,

according to GPIO allocation ranges and its formula.

$ dmesg | grep "registered GPIOs"
[    0.989710] gpiochip_setup_dev: registered GPIOs 288 to 511 on device: gpiochip0 (tegra-gpio)
...
#define TEGRA194_MAIN_GPIO_PORT_Y 24
...
#define TEGRA194_MAIN_GPIO(port, offset) \
  	((TEGRA194_MAIN_GPIO_PORT_##port * 8) + offset)

you should able to controls these two pins via sysfs.
GPIO3_PY.00 = ((24 * 8) + 0) + 288 = 480
GPIO3_PY.02 = ((24 * 8) + 2) + 288 = 482

please enter the location of the GPIOs, /sys/class/gpio/
you should generate gpio480 name with… # echo 480 > /sys/class/gpio/export
after that, you’ll be able to enable the GPIO for controlling.
$ cd /sys/class/gpio/gpio480
$ echo out > direction && echo 1 > value

1 Like

Hello, @JerryChang

Yes. I also calcuate pin number using formula you have mentioned.
It resulted in following table.

Function SODIMM Pin No. gpio
FOCUS_B- 106 480
FOCUS_B+ 104 482
FOCUS_A+ 108 481
FOCUS_A- 110 483
ZOOM _B- 112 484
ZOOM _B+ 209 429
ZOOM _A+ 105 479
ZOOM _A- 130 267

It is related to Motorized Lenz control.
Motorized lenz proceed the other direction that I expected.

Could you inspect the xnx’s pinmux table using motorized lenz?

Motorized lenz spec is like below.
image

Regards,
Thank you.

hello mszeta,

I don’t see other user report issues related to pinmux spreadsheets.
you may review the schematic, thanks

1 Like