Jetson tx2 gpio

My gpio file does not match Tx2 gpio pins. tx2 gpio pin number is different. how can i solve this.

Screenshot from 2020-04-04 16-38-51

This might be helpful


There is a mapping between system gpio number and the pinout. Please refer to below file to understand the calculation.

Also, there is a offset for each group GPIO. You could check it by reading the debug node.
root@nvidia-desktop:/sys/kernel/debug# cat gpio

gpiochip0: GPIOs 320-511, parent: platform/2200000.gpio, tegra-gpio:
gpiochip1: GPIOs 256-319, parent: platform/c2f0000.gpio, tegra-gpio-aon: