Let’s say I’m looking at the carrier board description (latest version, May 1, 2017)
Let’s say I see a signal that I’d like to use as a GPIO. For example, ‘GPIO15_AP2MDM_READY’ which is on pin 6 of the 30-pin L26 header.
How do I translate the name “GPIO15_AP2MDM_READY” into the actual GPIO number to use for /sys/class/gpio/export?
If I try to use “15” (as in the “GPIO15” name) I get an error:
for example.
please search GPIO15_AP2MDM_READY in the Jetson-TX2-Generic-Customer-Pinmux.xlsm (from [url]https://developer.nvidia.com/embedded/dlc/jetson-tx2-module-pinmux[/url]), you should mapping it to GPIO3_PBB.00.
since PBB00 belong to GPIOs 320-511, platform/2200000.gpio, tegra-gpio.
here’s formula to calculate the actual gpio num = (21*8)+320 = 488.
thanks