diff options
Diffstat (limited to 'meta-rcs/meta-talos/recipes-phosphor/leds')
-rw-r--r-- | meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config-native.bb | 19 | ||||
-rwxr-xr-x | meta-rcs/meta-talos/recipes-phosphor/leds/talos-led-manager-config/led.yaml | 38 |
2 files changed, 57 insertions, 0 deletions
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' |