[PATCH v5 17/46] pwm: add the PWM initial state retrieval infra