I am using Jetson Xavier NX on one of our custom carrier board and using NX stock BSP L4T32.6.1.
If I set below GPIOs as OUTPUT and HIGH I get what I set if I check it in command line, but if I check it on actual hardware, the value is inversed, May I know it is because of software settings or something. I do not made any changes to the Pinmux and also on the BSP.
Pin 124 - GPIO02 - GPIO3_PQ.03 , Sysfs GPIO number 288+(8*16)+3 = 419
Pin 126 - GPIO03 - GPIO3_PCC.00, Sysfs GPIO number248+(8*2)+0 = 264
I use below commands to set GPIO direction and value:
echo out > /sys/class/gpio/gpio264/direction // sets GPIO as output
echo 1 > /sys/class/gpio/gpio264/value // sets GPIO as HIGH
Please suggest me on this.
In pinmux I see these GPIOs as below:
24 GPIO02 GPIO3_PQ.03 288+(8*16)+3 = 419 gpio-419 (|cam-reset) out hi (changed in pinmux)default: input int PU. wake yes. may need code change and pinmux update
26 GPIO03 GPIO3_PCC.00 248+(8*2)+0 = 264 AON GPIO gpio-264 (|w-disable2) out lo. default: output drive LOW