summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Malkan <parthmalkan@google.com>2022-04-26 15:41:04 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-29 00:14:29 +0000
commita88b6ac322030ca27eb3abe39f23dc6b5e7653f5 (patch)
tree0cb5fb007be5e57f76f2aafdec1984b645edc6f0
parenta570c080fbb8729176f09c42b3c8fd5abee84b24 (diff)
downloadchrome-ec-a88b6ac322030ca27eb3abe39f23dc6b5e7653f5.tar.gz
zephyr: villager: Add led-id property in color-nodes
led-id property is needed in color nodes to identify the color nodes based on the led-id in case of multi leds. BUG=b:227528898 TEST=zmake build villager BRANCH=none Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3612219 Change-Id: I6e9c7e788ab351af05a10a8d34b38f83f21946f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3609113 Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r--zephyr/projects/herobrine/led_villager.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/projects/herobrine/led_villager.dts b/zephyr/projects/herobrine/led_villager.dts
index a4f78b82ee..aa9f43c3d9 100644
--- a/zephyr/projects/herobrine/led_villager.dts
+++ b/zephyr/projects/herobrine/led_villager.dts
@@ -7,6 +7,7 @@
color-0 {
led-color = "LED_AMBER";
+ led-id = "EC_LED_ID_BATTERY_LED";
};
};
@@ -16,6 +17,7 @@
color-0 {
led-color = "LED_BLUE";
+ led-id = "EC_LED_ID_BATTERY_LED";
};
};
@@ -26,10 +28,12 @@
/* Amber 1 sec, off 3 sec */
color-0 {
led-color = "LED_AMBER";
+ led-id = "EC_LED_ID_BATTERY_LED";
period-ms = <1000>;
};
color-1 {
led-color = "LED_OFF";
+ led-id = "EC_LED_ID_BATTERY_LED";
period-ms = <3000>;
};
};
@@ -40,6 +44,7 @@
color-0 {
led-color = "LED_OFF";
+ led-id = "EC_LED_ID_BATTERY_LED";
};
};
@@ -49,10 +54,12 @@
/* Amber 1 sec, off 1 sec */
color-0 {
led-color = "LED_AMBER";
+ led-id = "EC_LED_ID_BATTERY_LED";
period-ms = <1000>;
};
color-1 {
led-color = "LED_OFF";
+ led-id = "EC_LED_ID_BATTERY_LED";
period-ms = <1000>;
};
};
@@ -62,6 +69,7 @@
color-0 {
led-color = "LED_BLUE";
+ led-id = "EC_LED_ID_BATTERY_LED";
};
};
@@ -72,10 +80,12 @@
/* Blue 2 sec, Amber 2 sec */
color-0 {
led-color = "LED_BLUE";
+ led-id = "EC_LED_ID_BATTERY_LED";
period-ms = <2000>;
};
color-1 {
led-color = "LED_AMBER";
+ led-id = "EC_LED_ID_BATTERY_LED";
period-ms = <2000>;
};
};
@@ -86,6 +96,7 @@
color-0 {
led-color = "LED_BLUE";
+ led-id = "EC_LED_ID_BATTERY_LED";
};
};
};