AnsweredAssumed Answered

How to declare a GPIO pin in devicetree ?

Question asked by Dao Van Toan on Sep 15, 2019
Latest reply on Sep 15, 2019 by Yuri Muhin

Hi NXP,

As question above, I get a trouble when approach GPIO in iMX6UL-EVK board. 

After find out location of GPIO 25 pin, I try to configure it by: 

$ echo 25 > /sys/class/gpio/export

$ echo "out" > /sys/class/gpio/gpio25/direction

$ echo 1 > /sys/class/gpio/gpio25/value

And I test with a red LED. But LED is still no light. (LED is working good with other device and GPIO pin is exactly. )

Does this problem is belong to declare GPIO pin devicetree ? And what should I do now ?

 

Thank you so much,

         Toan

Outcomes