Device Tree and GPIO controll

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Device Tree and GPIO controll

960 Views
btarnowski
Contributor III

Hi all. I can not get work gpio.

In my case this is not working, I do not see any change on the physical GPIO pin

echo 47 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio47/direction

echo 1 > /sys/class/gpio/gpio47/value

 

Some additional details below. What can be wrong?

btarnowski_1-1658315003590.png

 

btarnowski_0-1658313461842.png

 

Labels (1)
0 Kudos
Reply
2 Replies

954 Views
J_W
Contributor III

The pictures are a bit of a mess to follow. Try reading this application note and see if it helps:

 

https://www.nxp.com/docs/en/application-note/AN5078.pdf

0 Kudos
Reply

945 Views
btarnowski
Contributor III

Thanks for the Link.
I found problem, The Controll Mux register for specific pins had incorrect values.
The pins was set for peripheral purpose instead of gpio purpose (MUX_MODE)

0 Kudos
Reply