This is a cache of https://discuss.96boards.org/t/adding-gpios-to-dts/8481. It is a snapshot of the page at 2024-09-27T11:52:26.267+0000.
Adding GPIOs to dts - <strong>dragonboard</strong> 820c - 96Boards Forum

Adding GPIOs to dts

Need to add GPIOs to the dtsi file and recompile so i get two GPIOs one in and another out on boot.
Whats the best way to accomplish this ?

The GPIO controller(s) is already defined in the device tree, up to you, at runtime (e.g. using libgpiod [1]) to control the GPIOs.

[1] README - libgpiod/libgpiod.git - C library and tools for interacting with the linux GPIO character device

This for the pointer this is indeed the exact app we were looking for .
Cheers!