gpio: add trace events for setting direction and value