# Default GPIO state

Source: https://forum.modalai.com/topic/2174/default-gpio-state
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-05-19 13:44:46 UTC by Peter VW
Replies: 2 · Views: 628

## Peter VW · 2023-05-19 13:44:46 UTC

Hello,

I'm currently working on a reset pin for our hardware. Currently it's connected to GPIO 53 (on J3 pin 9)

I would like this pin to be zero (instead of default HIGH). Currently i did it with a init script. But this runs after the initial value of input pullup.

Is there an easy way to make this happen? At default we would like this pin to be OUTPUT and LOW.

Thank you in advance.

## Reply by modaltb (ModalAI staff) · 2023-05-19 18:19:34 UTC

Hi @Peter-VW ,

Yes correct, we have that defaulted HIGH for one of our modems, that's being set in the kernel here, which is the only way I know how to set a default value....

https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/master/recipes-kernel/linux-msm/files/dts/common/m0xxx-kona-pinctrl.dtsi#L125

So, I don't know if this is 'easy' but a kernel rebuild to set default state is currently needed.  We've not figured out a way to do DT changes 'run time' at this point.

## Reply by Peter VW · 2023-05-22 06:20:29 UTC

Thank you, then we will take a look into this.
For now, a simple RC circuit works.
