dm: gpio: Add a way to update flags