gpio: provide an api to allow performance timing of pulses

the us020 driver is the first consumer of this functionality