Export pin 20


I am trying to export gpio pin 20 but I couldn’t, the following message appear although I didn’t use this pin befor.

root@domino:/# echo 20 > /sys/class/gpio/export

ash: write error: Device or resource busy


The GPIO20 is used as Input for WPS.

You can verify that by doing “cat /sys/kernel/debug/gpio”, then you can unbind all those GPIOs by doing “echo “leds-gpio” > /sys/bus/platform/drivers/leds-gpio/unbind”

EDIT : oupps ! even after unbind, the GPIO20 still binded to WPS, so, I’m not sure how you can unbind it …

EDIT2 : I got it ! “echo “gpio-keys-polled” > /sys/bus/platform/drivers/gpio-keys-polled/unbind”


Thank you very much.