AnsweredAssumed Answered

How to toggle GPIO in user space in iMx8 M mini

Question asked by Anusha N on Jun 11, 2020
Latest reply on Jun 12, 2020 by Anusha N

Hi Everyone,

I am trying to toggle gpio's from user space, to find the gpio number a I am using the formula ==>(bank number * 64) + Pin number, I am exporting the gpio and trying to toggle it but when I probe the gpio its voltage remains the same.

 Am I using the correct formula for iMx8 M mini custom board ?

 

Also, the gpio numbers in /sys/class/gpio/ are named gpiochip32, gpiochip64 etc and not gpio32 or gpio64 . Why is it like that? With what name should I export the gpio?

 

Regards,

Anusha

Outcomes