Character device gpio failing on le potato

I think your issue is due to interrupts not being configured for the GPIO pin you are trying to monitor.

See this thread:
https://hub.libre.computer/t/interrupt-capable-pins-on-aml-s905x-cc/67