Dear @vrutik7781 ,
Let us see iMX8MP-11X11-evk schematic, please!

1. Connections between PCA6416 & J21
PCA6416.P1_1--->J21.pin13 ( EXP_P1_1)
PCA6416.P1_2--->J21.pin15 ( EXP_P1_2)
PCA6416.P1_3--->J21.pin16 ( EXP_P1_3)
PCA6416.P1_4--->J21.pin13 ( EXP_P1_4)
2. Numbering of PCA6416 on linux platform
Let us assume the base number of PCA6416 is BASE on linux platform,
Then each GPIO number of PCA6416 on linux will be:
--P0 port
P0_0 : BASE + 0
P0_1: BASE + 1
...
P0_7: BASE + 7
--P1 port
P1_0 : BASE + 8
P1_1 : BASE + 9
...
P1_7 : BASE +15
So we only need to know the BASE of PCA6416 on linux system.
3. Checking BSAE of PCA6416
Try the following steps, please!
# cd /sys/class/gpio
# ls -l
gpiochipBASE -->.../.../devices/platform/30a40000.i2c/i2c-1/1-0020/gpio/gpiochipBASE
[Note]
BASE should be a concrete number you will see.
Let us assume the BASE is 500, then the PCA6416's starting gpio number is 500, what you found above is :
gpiochip500 -->.../.../devices/platform/30a40000.i2c/i2c-1/1-0020/gpio/gpiochip500
THEN:
EXP_P1_1 : gpio number is 500 + 9 = 509
EXP_P1_2 : gpio number is 500 + 10 = 510
EXP_P1_3 : gpio number is 500 + 11 = 511
EXP_P1_4 : gpio number is 500 + 12 = 512
4. Operating expansion gpios
Taking EXP_P1_0 as an example:
# cd /sys/class/gpio/gpiochip500
# echo out > direction (set it to be OUTPUT, "in" is used to set it INPUT )
# echo 1 > value (set it to output High, 0 output Low)
Above steps are on how to operate expansion GPIO on linux platform, for you reference.
Try it, please!
Thanks!
Regards,
weidong