Hi,
I am using custom board having yocto image version-6.6.52. Here there is no /sys/class/gpio. Because it is depreceated here. So i need to use lipgpiod.
I am having external gpio pin in board which is GPIO1_IO15. I have checked the device tree. There is no other operations for this pin. So how can i proceed with libgpiod. I have tried, whenever i am trying to access, it is hanging.
Please share any relevant document or methods to try?
Please respond as soon as possible.
Regards,
Kamalesh
Hi @kamalesh!
You only have to configure your device tree to manage the gpio.
Please share your device tree and I will help you.
Best Regards!
Chavira
Hi @kamalesh!
I have added the GPIO1_IO15 to the device tree as a GPIO, please ensure that the same pin is not configured in imx8mp-axon.dtsi file.
After that you should be able to use the GPIO using the next commands:
$ gpioset -c gpiochip0 15=0
$ gpioset -c gpiochip0 15=1
$ gpioget -c gpiochip0 15
You can consult our documentation in the link below:
Embedded Linux for i.MX Applications Processors
The Linux Kernel documentation
Best Regards!
Chavira