diff options
author | Jerry Wan <jerry.wan@quantatw.com> | 2022-03-07 10:25:57 +0300 |
---|---|---|
committer | Jerry Wan <jerry.wan@quantatw.com> | 2022-03-11 05:56:39 +0300 |
commit | 7bd6f0973aa2f3a95b199447d88dbaeed68aec4b (patch) | |
tree | b6c99bbb175225b991d63052ca45f58424b46211 | |
parent | 7e6f26144b5f8e3148f11cdba2c9df3d66234021 (diff) | |
download | openbmc-7bd6f0973aa2f3a95b199447d88dbaeed68aec4b.tar.xz |
meta-quanta: s6q: Add led-manager config
Add heartbeat LED and identification LED for S6Q.
Tested:
The LEDs work properly according to their function.
Signed-off-by: Jerry Wan <jerry.wan@quantatw.com>
Change-Id: I3abde7552b7ebd415ae77e21e51c699c5b9f5474
-rw-r--r-- | meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json | 26 | ||||
-rw-r--r-- | meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager_%.bbappend | 9 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json b/meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json new file mode 100644 index 0000000000..e7d935a2a5 --- /dev/null +++ b/meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json @@ -0,0 +1,26 @@ +{ + "leds": [ + { + "group" : "bmc_booted", + "members" : [ + { + "Name" : "bmc_heartbeat_n", + "Action" : "Blink", + "DutyOn" : 50, + "Period" : 1000 + } + ] + }, + { + "group": "enclosure_identify", + "members": [ + { + "Name": "fm_id_led_n", + "Action": "Blink", + "DutyOn": 50, + "Period": 250 + } + ] + } + ] +} diff --git a/meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager_%.bbappend b/meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager_%.bbappend new file mode 100644 index 0000000000..b329b84361 --- /dev/null +++ b/meta-quanta/meta-s6q/recipes-phosphor/leds/phosphor-led-manager_%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS:prepend:s6q := "${THISDIR}/${PN}:" + +SRC_URI:append:s6q = " file://led-group-config.json" + +PACKAGECONFIG:append:s6q = " use-json use-lamp-test" + +do_install:append:s6q() { + install -m 0644 ${WORKDIR}/led-group-config.json ${D}${datadir}/phosphor-led-manager/ +} |