...
If you want you can customize this to look like a custom button. https://github.com/SolidRun/linux-stable/blob/linux-4.9.y-imx6/Documentation/devicetree/bindings/input/gpio-keys.txt
Then you would need to write a userspace daemon to listen for the key event and then perform whatever action you wanted depending on the length it was held down for.