[LEDE-DEV] rt5350: second gpio bank

Giuseppe Lippolis giu.lippolis at gmail.com
Sun Jan 29 12:13:23 PST 2017


Hi,
I would like to verify if something is connected on the second gpio bank of
my rt5350.
Therefore I enabled the bank in the dts and now I'm able to see it in /sys:

root at lede:~# ls /sys/class/gpio/
export          gpio7           gpiochip0       gpiochip22
modem3g_enable  unexport
root at lede:~# cat /sys/class/gpio/gpiochip*/base
0
22

But if I try to export one of the pin I get an error:

root at lede:~# echo 23 > /sys/class/gpio/export
-ash: write error: Invalid argument
root at lede:~# echo 22 > /sys/class/gpio/export
-ash: write error: Invalid argument

Can someone help me?
Thanks.
Bye.




More information about the Lede-dev mailing list