meta-lenovo: hr630: Initial led yaml file equipped with hr630 platform
Add heartbeat and fault led in yaml file.
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I2ab7974f2f92d2160702408894cb5d9dd082429c
diff --git a/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config-native.bb b/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config-native.bb
new file mode 100644
index 0000000..e3efa3d
--- /dev/null
+++ b/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config-native.bb
@@ -0,0 +1,21 @@
+#"Copyright (c) 2019-present Lenovo"
+
+SUMMARY = "Phosphor LED Group Management for hr630"
+PR = "r1"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${LENOVOBASE}/COPYING.BSD;md5=efc72ac5d37ea632ccf0001f56126210"
+
+inherit native
+inherit obmc-phosphor-utils
+
+PROVIDES += "virtual/phosphor-led-manager-config-native"
+
+SRC_URI += "file://led.yaml"
+S = "${WORKDIR}"
+
+# Copies example led layout yaml file
+do_install() {
+ SRC=${S}
+ DEST=${D}${datadir}/phosphor-led-manager
+ install -D ${SRC}/led.yaml ${DEST}/led.yaml
+}
diff --git a/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config/led.yaml b/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config/led.yaml
new file mode 100644
index 0000000..b8b9ff6
--- /dev/null
+++ b/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config/led.yaml
@@ -0,0 +1,14 @@
+#"Copyright (c) 2019-present Lenovo
+#Licensed under BSD-3, see COPYING.BSD file for details."
+
+bmc_booted:
+ heartbeat:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
+
+enclosure_fault:
+ fault:
+ Action: 'On'
+ DutyOn: 50
+ Period: 0