There’s already an example but you didn’t bother to look. libretech-wiring-tool/libre-computer/aml-s905x-cc/dt/gpio-key-power-7j1-31.dts at master · libre-computer-project/libretech-wiring-tool · GitHub
Additionally, use the search function. How to add a Power Button to Le Potato board - #16 by blamphos