I’m trying to read GPIO pin 33 on the 40 pin connector. According to the TRM/pinmux this is GPIO pin 248 on the AON PAA.0 from what I can tell this shoudl be at 0x0c2f0000 + 0x1000. When I look at gpio-tegra186.cpp and tegra194-gpio.h thitegra_AON_GPIO_PORTAA is 0 but looking at TEGRA_AON_GPIO_PORT_INFO the reg_offset is cind* 0x200 where cind is 6.
When I map /dev/mem to 0xc2f1000 if I ignore reg_offset I’m able to read the Input (at offset 0x30) but it never changes. If I try to add the reg_offset of 0xc00 I get a segmentation fault.
I’ve seen examples for different versions of the jetson but not for Xavier AGX.
Any help in figuring out the correct address would be appreciated.