Re: [PATCH v4 2/4] pwm: pwm-cros-ec: add channel type support

From: Tzung-Bi Shih
Date: Thu Apr 14 2022 - 05:46:19 EST


On Thu, Apr 14, 2022 at 09:28:29AM +0000, Fabio Baltieri wrote:
> Add support for EC_PWM_TYPE_DISPLAY_LIGHT and EC_PWM_TYPE_KB_LIGHT pwm
> types to the PWM cros_ec_pwm driver. This allows specifying one of these
> PWM channel by functionality, and let the EC firmware pick the correct
> channel, thus abstracting the hardware implementation from the kernel
> driver.
>
> To use it, define the node with the "google,cros-ec-pwm-type"
> compatible.
>
> Signed-off-by: Fabio Baltieri <fabiobaltieri@xxxxxxxxxxxx>

Reviewed-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>