diff options
author | Andrew McRae <amcrae@google.com> | 2022-03-23 10:31:36 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-30 00:16:35 +0000 |
commit | ec1089e769fa0bb736e0ef960081a9164275a4e2 (patch) | |
tree | e2b0cb1813b6f05c9776ea98b17878df6d3a7bda /zephyr/Kconfig.led_dt | |
parent | e21f0fd3fc9b406375fbaddb67e8d13026a07931 (diff) | |
download | chrome-ec-ec1089e769fa0bb736e0ef960081a9164275a4e2.tar.gz |
zephyr: Add alternative LED handling
Add alternative LED handling.
Provides a Zephyr based LED module that splits
policy from LED behaviour and actions.
Supports both multi or single PWM and GPIO based LEDs.
v2: Use range instead of value, allow alt-colors for flash.
v3: Use common dts and add LED PWM config to nereid.
v4: Reworked to allow multiple color sets cycling through.
Added charger support.
v5: Added skeleton of GPIO support. Added common LED API.
v6: Split from Nissa config
v7: Move actions into policy.
BUG=b:225323731
TEST=zmake build nivviks; flash and look at LEDs
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ied03970b6c4a50fe78f3bf7763672239a76a64b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3545737
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.led_dt')
-rw-r--r-- | zephyr/Kconfig.led_dt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/Kconfig.led_dt b/zephyr/Kconfig.led_dt index 16b5842c06..6842473a1a 100644 --- a/zephyr/Kconfig.led_dt +++ b/zephyr/Kconfig.led_dt @@ -7,3 +7,16 @@ menuconfig PLATFORM_EC_LED_DT help Enable devicetree based LED module supporting automatic control of the battery and power LEDs. + +menuconfig PLATFORM_EC_LED_ALT + bool "Alternative LED Support" + select PLATFORM_EC_LED_COMMON + help + Enable alternative devicetree based LED module supporting + automatic control of the both PWM and GPIO based LEDs. + The actions, policy and LED selection are all configured + via devicetree, using the cros-ec,led-policy compat (for + defining the policy), cros-ec,multi-pwm-leds for + configuring PWM based LEDs, and cros-ec,gpio-leds for + supporting GPIO based LEDs. + The EC host command for controlling the LEDs is supported. |