UPSTREAM: pwm: Add PWM capture support