It may not work in every Som. You can edit these pins by looking at the pins used by the kernel from your manufacturer's information sheet.
Manufacturers may not have given access to some registration addresses when developing kernels.
In this case, error messages appear and you realize that access is not given.
Good luck to everyone.
Wash your hands abundantly during these times of virus and code them clean 😊
You will learn the registration addresses in detail by clicking the i.MX 6ULL Applications Processor Reference Manual
link.
git clone https://github.com/gzbykyasin/User-Space-dev-mem-Example-for-Embedded-Linux.gitgcc main.c -o main
./main