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.

AM335x GPIO key wakeup source

So I noticed that when I configure gpio pins to be keys in the device tree my board never go down in sleep.

turns out that for some reason when a gpio is used as an interrupt source(edge detect) it is automatically also set as a wakeup source so its not possible to select what key is a wakeup source in the device tree anymore. 

Now since this is highly unlikely to be a coding error I'm not sure what is intended or what is breaking when I remove this. but on the system I run the following patch has so far had no bad side effects and I can now control what pin to wake up on.