Generic way for verifying GPIO wakeup capability