AnsweredAssumed Answered

GPIO/value is not able to modify in LS1021A-IOT board

Question asked by Victor Mazin on Jan 27, 2016
Latest reply on Jan 27, 2016 by ufedor

Hello,

 

We use the LS1021A-IOT evaluation board.

We tried to get some accesses to GPIO pins.

First, we changed the menuconfig. It can be seen in the picture attached.

We can see all GPIO devices but we cannot modify any value on the pin.

Please see the log below.

How can we set value 1 for GPIO device?

 

root@ls1021aiot:~# cd /sys/class/gpio/

root@ls1021aiot:/sys/class/gpio# ls

export       gpiochip128  gpiochip160  gpiochip192  gpiochip224  unexport

root@ls1021aiot:/sys/class/gpio#

root@ls1021aiot:/sys/class/gpio# echo  160 > /sys/class/gpio/export

root@ls1021aiot:/sys/class/gpio# ls

export       gpio160      gpiochip128  gpiochip160  gpiochip192  gpiochip224  unexport

root@ls1021aiot:/sys/class/gpio# cat gpio160/direction

in

root@ls1021aiot:/sys/class/gpio# cat gpio160/value

0

root@ls1021aiot:/sys/class/gpio# echo out > gpio160/direction

root@ls1021aiot:/sys/class/gpio# cat gpio160/direction

out

root@ls1021aiot:/sys/class/gpio# echo 1 > gpio160/value

root@ls1021aiot:/sys/class/gpio# cat gpio160/value

0   // MUST BE 1 !!!

 

Regards

 

Victor

Attachments

Outcomes