gpio: add interrupted callback