summaryrefslogtreecommitdiff
path: root/zephyr/program/rex/screebo/led_pins.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/program/rex/screebo/led_pins.dtsi')
-rw-r--r--zephyr/program/rex/screebo/led_pins.dtsi31
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>;
+ };
+ };
+ };
+};