This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Reading SW1-SW4 keys on the AM335x-EVM-SK?

Hello,

I've been searching through /sys/class and /sys/device/platform and I can't seem to figure out how to read the values of the four switches on the dev board.  I can see in the sources that if the board is identified as a "starter kit" it should assign the GPIOs as mode7 inputs.

I can look at:

$ mount -t debugfs debugfs /sys/kernel/debug

$ cat /sys/kernel/debug/gpio

and see SW1-SW4 change to "hi" when I press the keys and "cat" the gpio, so they are working.

Can someone point me in the right direction (code snippet) to read the keys?

Thanks for your help!

James