]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: pwm-cros-ec: Add channel type support
authorFabio Baltieri <fabiobaltieri@chromium.org>
Thu, 28 Apr 2022 10:04:19 +0000 (10:04 +0000)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 May 2022 14:40:01 +0000 (16:40 +0200)
commit8dfffbc2edb2db58b8f7a35a4ffcfd3355257d1e
tree32f28ebd34cc4e759f0158c72a473f38fb9e4a06
parent80ffb5c9ae0f7717b91e6e73ad42964386660beb
pwm: pwm-cros-ec: Add channel type support

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@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-cros-ec.c