how to gpıo configuration for imx8mm board

hello.
i have been trying to develop in embedded linux for a while. i have an imx8mm card. i aim to develop a yocto based project. i am using ubuntu version 20.04. first of all i created an image with the basic settings required for the operating system. then i want to turn on and off a led by configuring the gpio, but i cannot set the gpio configuration. everything is getting very complicated. at this point i need the support of my friends who know. i would be very grateful if you can guide me and help me. thanks