I am trying to use GPIO1_IO11 as a digital output.
Here are the commands I using in kernel space:
echo 11 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio11/direction
echo 0 > /sys/class/gpio/gpio11/value
The pin state is high no matter what.
I cat the files in /sys/class/gpio/gpio11/ and I don't see anything obviously wrong.
I have verified the pin is not being used by any other nodes in the device tree.
Has anyone ran into this before? Can anyone point me in the right direction to identify what I am doing wrong here?
Thanks
Solved! Go to Solution.
Hi dan_hilgert
for i.MX8M Mini gpio usage one can look at:
https://variwiki.com/index.php?title=DART-MX8M_GPIO&release=RELEASE_DUNFELL_V1.0_DART-MX8M-MINI
Best regards
igor
igor, thanks for the pointer.
I had added the specific pin node with the info for the pin I wanted to control.
However, I was not adding the pinctl-0 property in the iomuxc node.
Once I did that, I had full control over the pin.
Thanks again,
Dan
Hi dan_hilgert
for i.MX8M Mini gpio usage one can look at:
https://variwiki.com/index.php?title=DART-MX8M_GPIO&release=RELEASE_DUNFELL_V1.0_DART-MX8M-MINI
Best regards
igor