I need to direct access (read/write) VI_CFG_VGP1_0 register in Xavier NX, so tried as usual:
sudo devmem2 0x15C05068
0x15C00000 is VI block address, and 0x5068 is VI_CFG_VGP1_0 byte offset, both from Technical Reference manual.
Unluckily that command crashes the system, maybe I did something wrong in address calculation?
This REG is in VI scope may need to disable the power gate to access it.
Have a check the driver in …/kernel/nvidia/drivers/media/platform/tegra/camera/*