Hello,
I'm turning my head around this problem, I have read numerous forum posts and docs but I didn't found an answer:
Following https://linux-sunxi.org/GPIO, the same pin number calculation applies for sysfs and gpiod.
But, for example, for PL2 it will be 11*32+2=354, or for opi3 lts there are only 255 line numbers for gpiochip1 (as per `gpioinfo gpiochip1`) :-S
Pleeease tell me what am I missing !?!