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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

289 Views
Contributor II

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

Labels (1)
0 Kudos
1 Reply

4 Views
NXP TechSupport
NXP TechSupport

Based on feedback from SW/design team if we want to use all the GPIO3, we should set all the GPIO3 options by RCW (EC1,EC2,EC3 and MDC_MDIO).
You don't have an option to only select subset of the GPIO3 pins.
416-418 EC1 = 001 GPIO3[2:14]
419-421 EC2 = 001 GPIO3[15:27]
422-424 EC3 = 001 GPIO3[28:31]
425-426 MDC_MDIO = 01 GPIO3[0:1]

0 Kudos