IMX6ULL代表每个BANK是32个管脚, io端口号= (((bank) - 1) * 32 + (nr))
GPIO1_IO03代表第1组gpio中的第3个gpio口,其中每组32个gpio口
io端口号为IMX_GPIO_NR(1,11)=32×(1-1)+3=3
root@myimx6ek140p:~# echo 3 > /sys/class/gpio/export
root@myimx6ek140p:~# echo out > /sys/class/gpio/gpio3/direction
root@myimx6ek140p:~# echo 1 > /sys/class/gpio/gpio3/value
root@myimx6ek140p:~# echo 0 > /sys/class/gpio/gpio3/value
|