UPSTREAM: pwm: Introduce the pwm_state concept