meta-lenovo: hr630: Initial led yaml file equipped with hr630 platform
Add heartbeat and fault led in yaml file.
(From meta-lenovo rev: 8a7b9b0a15f36b6ecbd47442b7095f9d43639e79)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I87418b92d988ba92dd4a4a33e1484d2e42fceca9
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-lenovo/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config-native.bb b/meta-lenovo/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config-native.bb
new file mode 100644
index 0000000..e3efa3d
--- /dev/null
+++ b/meta-lenovo/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-lenovo/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config/led.yaml b/meta-lenovo/meta-hr630/recipes-phosphor/leds/hr630-led-manager-config/led.yaml
new file mode 100644
index 0000000..b8b9ff6
--- /dev/null
+++ b/meta-lenovo/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