DragonBoard 410c GPIO_107(KEY_VOL_UP_N)


#1

Hello!
I try to use GPIO_107 (#KEY_VOL_UP_N#) across /sys/gpio/export
But I get I/O error and I can not read state of this pin.
If I try exporting pin from LS connector like this 115 or 36 or other I get result successfully.
How I can read state button (S3 Vol UP) from my C program.
I use linaro-jessie-alip-qcom-snapdragon-arm64-20160630-110.img.
Also I tried use this command and get I/O error
$sudo sh -c 'echo 107 > /sys/class/gpio/export’
Thank you.


#2

You read the state of pin via ‘cat /sys/class/gpio//value’. See http://www.96boards.org/blog/96boards-box-experience-guide-4/ and http://www.96boards.org/blog/access-gpio-pins-programmatically/ for more details and references.