Skip to content
Commit 3d593b6e authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Thierry Reding
Browse files

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: default avatarFabio Baltieri <fabiobaltieri@chromium.org>
Reviewed-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent a48d66d8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment