This is not redundant topic - I request for explanation of gpio mechanism related to mt7621, not the specific device. There is also same unanswered topic #1#2, not explained, etc.
I'd email Sergio about this. Small and incomplete quote from him:
For kernel developers, setting base in GPIOs is a no go. You have to
let the kernel to assign its numbers so you can handle different GPIO
layouts with multiple chips.
This is the reason we have 'gpio-line-names' property so you can set
up names for your pins and use it together with actual user space
tools libgpiod and gpiod. Any other gpio user space library is
considered deprecated in these days.