> For the complete documentation index, see [llms.txt](https://amobile-solutions.gitbook.io/yocto-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amobile-solutions.gitbook.io/yocto-developer-guide/test-and-use-the-interface/gpios/gpios-sd52x-sd72x.md).

# GPIOs - SD52x/SD72x

{% hint style="warning" %}

```
The SBC-MB520/SBC-MB720 GPIOs have specific device setting functions and are not available for developers to use for standalone
```

{% endhint %}

## GPIO state

The current state of the system's GPIOs can be obtained in user-mode, as shown in the following example:

```
gpiochip0: GPIOs 512-722, parent: platform/10005000.pinctrl, pinctrl_paris:
 gpio-514 (                    |cd                  ) in  hi IRQ ACTIVE LOW
 gpio-517 (                    |ad82129-pd-pin      ) out hi
 gpio-519 (                    |sdcard-v3v3-en      ) out hi
 gpio-522 (                    |lcm1-tp-avdd        ) out hi
 gpio-527 (                    |lcmen               ) out hi
 gpio-528 (                    |p3v3                ) out hi
 gpio-529 (                    |pp1800              ) out hi
 gpio-537 (                    |reset               ) out hi
 gpio-538 (                    |leden               ) out hi
 gpio-549 (                    |regulator-7         ) out lo
 gpio-561 (                    |sdio-fixed-1v8      ) out lo
 gpio-593 (                    |regulator-0         ) out hi
 gpio-596 (                    |nfc_gpio            ) in  lo IRQ
 gpio-597 (                    |nfc_gpio            ) out lo
 gpio-598 (                    |nfc_gpio            ) out hi
 gpio-650 (                    |mt7921sdio-wcn-en-pi) out hi
 gpio-662 (                    |mt7921sdio-pmu-en-pi) out hi
```

Each GPIO is defined as in or out and the state is shown as lo or hi.\
For example pin 514 is the SD card card-detect. When an SD card is plugged in, the state will be:

```
gpio-514 (                    |cd                  ) in  lo IRQ ACTIVE LOW
```

When the SD card is removed, the state will be:

```
gpio-514 (                    |cd                  ) in  hi IRQ ACTIVE LOW
```

<br>
