> For the complete documentation index, see [llms.txt](https://dev.solid-run.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.solid-run.com/nxp/imx6/sbc-platform/imx6-other-articles/imx6-reset-button.md).

# i.MX6 Reset Button

### Program the reset button

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

```
arch/arm/boot/dts/imx6qdl-cubox-i.dtsi
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. <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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.solid-run.com/nxp/imx6/sbc-platform/imx6-other-articles/imx6-reset-button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
