...
(*) from the schematics you can find the name of the pin/pad (find the pad name of the imx8mm processor side) and from here pins-imx8mm.h can find the GPIO define name of the pin/pad with the GPIO option like (MX8MM_IOMUXC_SAI2_RXD0_GPIO4_IO23), then you can calculate the GPIO number XX
...