Edit: Note that the following comment does not apply to the MTK-based GL-MT300N-v2. My error.

The ar71xx platform is not DTS-based, so you should be able to access the GPIOs directly, with the proper kernel module (driver) installed. I haven’t tried to configure the GPIO driver for the ar71xx platform.