diff options
author | wen zhang <zhangwen6@huaqin.corp-partner.google.com> | 2023-04-23 17:01:52 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-17 03:47:23 +0000 |
commit | 764c88f6b9a4f2363609a5f5bf0d4ce3dee7250d (patch) | |
tree | 519fdcd27f94e7397e6cb8324c421237d72a18f9 /zephyr/program/rex/screebo/led_pins.dtsi | |
parent | b34dc2ae9022e2fbb57ae6477891ff32954c62fd (diff) | |
download | chrome-ec-764c88f6b9a4f2363609a5f5bf0d4ce3dee7250d.tar.gz |
screebo: Implement LED behavior
This defines the LED's behavior according to
the OEM specification. Check more detail in the bug.
BUG=b:278153037
TEST=1.ectool led battery {color} can set the right color
2.led works as intended behavior in different states
Change-Id: I42b67170d0d07554626b2a0158cebc8406be60a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4463817
Tested-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Commit-Queue: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Diffstat (limited to 'zephyr/program/rex/screebo/led_pins.dtsi')
-rw-r--r-- | zephyr/program/rex/screebo/led_pins.dtsi | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/zephyr/program/rex/screebo/led_pins.dtsi b/zephyr/program/rex/screebo/led_pins.dtsi new file mode 100644 index 0000000000..a71f0562d0 --- /dev/null +++ b/zephyr/program/rex/screebo/led_pins.dtsi @@ -0,0 +1,31 @@ +/* Copyright 2023 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/ { + gpio-led-pins { + compatible = "cros-ec,gpio-led-pins"; + + combo_led: combo-led { + led-id = "EC_LED_ID_BATTERY_LED"; + led-pins = <&gpio_led_1_l &gpio_led_2_l>; + color_off: color-off { + led-color = "LED_OFF"; + led-values = <1 1>; + }; + + color_amber: color-amber { + led-color = "LED_AMBER"; + br-color = "EC_LED_COLOR_AMBER"; + led-values = <1 0>; + }; + + color_white: color-white { + led-color = "LED_WHITE"; + br-color = "EC_LED_COLOR_WHITE"; + led-values = <0 1>; + }; + }; + }; +}; |