IMX6 Reset Button

Program the reset button

That is exposed to linux as a GPIO key. You can see it in the device-tree here:


    pinctrl_gpio_key: gpio-key {
                        fsl,pins = <
                                MX6QDL_PAD_EIM_DA8__GPIO3_IO08  0x17059

If you want you can customize this to look like a custom button.

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.