summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta-facebook/meta-bletchley/conf/machine/bletchley.conf2
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config-native.bb18
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml89
3 files changed, 109 insertions, 0 deletions
diff --git a/meta-facebook/meta-bletchley/conf/machine/bletchley.conf b/meta-facebook/meta-bletchley/conf/machine/bletchley.conf
index 9427df28a..b3480f5c5 100644
--- a/meta-facebook/meta-bletchley/conf/machine/bletchley.conf
+++ b/meta-facebook/meta-bletchley/conf/machine/bletchley.conf
@@ -12,3 +12,5 @@ require conf/machine/include/obmc-bsp-common.inc
require conf/machine/include/facebook-tpm2.inc
FLASH_SIZE = "131072"
+
+PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native = "bletchley-led-manager-config-native"
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config-native.bb b/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config-native.bb
new file mode 100644
index 000000000..d06ec861e
--- /dev/null
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config-native.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Phosphor LED Group Management for Bletchley"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit native
+
+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-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml b/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml
new file mode 100644
index 000000000..4fb482cca
--- /dev/null
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml
@@ -0,0 +1,89 @@
+bmc_booted:
+ sys_log_id:
+ Action: 'On'
+
+sys_identify:
+ sys_log_id:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
+
+fan0_fault:
+ fan0_amber:
+ Action: 'On'
+
+fan0_good:
+ fan0_blue:
+ Action: 'On'
+
+fan1_fault:
+ fan1_amber:
+ Action: 'On'
+
+fan1_good:
+ fan1_blue:
+ Action: 'On'
+
+fan2_fault:
+ fan2_amber:
+ Action: 'On'
+
+fan2_good:
+ fan2_blue:
+ Action: 'On'
+
+fan3_fault:
+ fan3_amber:
+ Action: 'On'
+
+fan3_good:
+ fan3_blue:
+ Action: 'On'
+
+sled0_fault:
+ sled0_amber:
+ Action: 'On'
+
+sled0_good:
+ sled0_blue:
+ Action: 'On'
+
+sled1_fault:
+ sled1_amber:
+ Action: 'On'
+
+sled1_good:
+ sled1_blue:
+ Action: 'On'
+
+sled2_fault:
+ sled2_amber:
+ Action: 'On'
+
+sled2_good:
+ sled2_blue:
+ Action: 'On'
+
+sled3_fault:
+ sled3_amber:
+ Action: 'On'
+
+sled3_good:
+ sled3_blue:
+ Action: 'On'
+
+sled4_fault:
+ sled4_amber:
+ Action: 'On'
+
+sled4_good:
+ sled4_blue:
+ Action: 'On'
+
+sled5_fault:
+ sled5_amber:
+ Action: 'On'
+
+sled5_good:
+ sled5_blue:
+ Action: 'On'