From c6a41036bb2f2fedb9a37ab3e1721839110b32a1 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Fri, 19 Apr 2019 08:35:02 +0000 Subject: [Subtree] Bring openbmc machines to top level --- .../leds/talos-led-manager-config-native.bb | 19 +++++++++++ .../leds/talos-led-manager-config/led.yaml | 38 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config-native.bb create mode 100755 meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config/led.yaml (limited to 'meta-rcs/meta-talos/recipes-phosphor/leds') diff --git a/meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config-native.bb b/meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config-native.bb new file mode 100644 index 000000000..dd8502ca3 --- /dev/null +++ b/meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config-native.bb @@ -0,0 +1,19 @@ +SUMMARY = "Phosphor LED Group Management for Talos II" +PR = "r1" + +inherit native +inherit obmc-phosphor-utils +inherit obmc-phosphor-license + +PROVIDES += "virtual/phosphor-led-manager-config-native" + +SRC_URI += "file://led.yaml" +S = "${WORKDIR}" + +# Overwrite the example led layout yaml file prior +# to building the phosphor-led-manager package +do_install() { + SRC=${S} + DEST=${D}${datadir}/phosphor-led-manager + install -D ${SRC}/led.yaml ${DEST}/led.yaml +} diff --git a/meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config/led.yaml b/meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config/led.yaml new file mode 100755 index 000000000..884353b04 --- /dev/null +++ b/meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config/led.yaml @@ -0,0 +1,38 @@ +bmc_booted: + power: + Action: 'Blink' + DutyOn: 50 + Period: 1000 + Priority: 'On' + + bmc_ready: + Action: 'On' + +power_on: + power: + Action: 'On' + DutyOn: 50 + Period: 0 + Priority: 'On' + +enclosure_fault: + fault: + Action: 'On' + +enclosure_identify: + identify: + Action: 'Blink' + DutyOn: 50 + Period: 1000 + +# The Op Panel on the Talos II system holds a multicolor LED. +# Both the 'fault' and 'identify' gpios are wired to the same LED. +# By holding one in 'on' while the other in 'blink' state, ensures +# the manufacturing process can verify both colors function +lamp_test: + fault: + Action: 'Blink' + DutyOn: 50 + Period: 1000 + identify: + Action: 'On' -- cgit v1.2.1