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.

GPIO Number to use in sysfs

Hello,

I'm trying to use the sysfs to change the value of some GPIO pins in my board using the interfaces /sys/class/gpio/export and /sys/class/gpio/gpioXX/value but I don't know which value I should pass to the echo command that is used to create the pseudo-files under /sys/class/gpio/gpioXX...

Say I want to configure AM335x's GPIO1.25, what would be the value of X below?

$ echo X > /sys/class/gpio/export

Thanks!

DAVI