why i can't get the GPIO3_PAA.02 ?

the GPIO3_PAA.02

#define TEGRA_AON_GPIO_PORT_AA 5

#define TEGRA_AON_GPIO(port, offset)
((TEGRA_AON_GPIO_PORT_##port * 8) + offset)//256-319

the GPIO3_PAA.02 → ( 8 * 5) + 256 + 2 = 298

i
echo 298 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio298/direction
cat /sys/class/gpio/gpio298/value

i can’t get the correct value. the value is always 1.

hello 504566020,

it’s due to GPIO9/MOTION_INT on Jetson-TX2 have LEVEL TRANSLATION on module.
hence, GPIO9/MOTION_INT(CAN_GPIO2) is input only, and have on module board pull-up.

you might refer to similar discussion thread as see-also, Topic 1063247.
please also download Pinmux spreadsheets for checking.
thanks