> 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-sd510.md).

# GPIOs - SD510

{% hint style="warning" %}

```
The SBC-MB510 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:

```
root@sd510:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 322-511, parent: platform/10005000.pinctrl, pinctrl_paris:
 gpio-322 (                    |cd                  ) in  lo IRQ ACTIVE LOW
 gpio-323 (                    |regulator@2         ) out hi
 gpio-327 (                    |usb-p1-vbus         ) out hi
 gpio-329 (                    |GPIO7_SD3V_EN       ) out hi
 gpio-333 (                    |GPIO11_MUX_3V3_EN   ) out hi
 gpio-350 (                    |regulator@0         ) out lo
 gpio-400 (                    |lcm1-tp-avdd        ) out lo
 gpio-405 (                    |type_c_port0-IRQ    ) in  hi IRQ
 gpio-406 (                    |usb0-otg-vbus       ) out lo
 gpio-408 (                    |regulator@4         ) out hi
 gpio-410 (                    |regulator@5         ) out lo ACTIVE LOW
 gpio-429 (                    |ad82129-pd-pin      ) out hi
 gpio-433 (                    |reset               ) out hi ACTIVE LOW
 gpio-451 (                    |GPIO129_WIFI_3V3_EN ) out hi
 gpio-452 (                    |GPIO130_VSYS3V3_EN  ) out hi
 gpio-469 (                    |snps,reset          ) out lo
 gpio-494 (                    |eint                ) in  hi IRQ
```

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

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

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

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

<br>
