summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade/recipes-phosphor/leds
diff options
context:
space:
mode:
authorChanh Nguyen <chanh@os.amperecomputing.com>2021-02-25 18:25:53 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2021-02-26 06:52:33 +0300
commit62feab3abe0e748ad045ab1e43f2d7ee9234961d (patch)
treef0f66ad9de71988dede577f5540296f4079d4325 /meta-ampere/meta-jade/recipes-phosphor/leds
parentc447189fd152352b04134ee4e218c592a989f73f (diff)
downloadopenbmc-62feab3abe0e748ad045ab1e43f2d7ee9234961d.tar.xz
meta-ampere: Support UID button and LED
The UID button is used to provide visual identification of the system when pushed. Pressing the UID button toggles the UID LED. The same action can be done via Redfish (by patching IndicatorLED from redfish/v1/Systems/system) or the IPMI chassis identify command. Tested: 1. Press the UID button to toggles the UID on/off 2. Turn on the UID LED via ipmi command $ ipmitool chassis identify 3. Turn Lit/Blinking/Off UID LED via Redfish then check the IndicatorLED values $ curl -X PATCH --user root:0penBmc -H "Content-Type: application/json" \ -H "If-Match: *" --insecure https://BMC_IP/redfish/v1/Systems/system \ -d '{"IndicatorLED": "Lit/Blinking/Off"}' $curl -X GET --user root:0penBmc -H "Content-Type: application/json" \ --insecure https://BMC_IP/redfish/v1/Systems/system The IndicatorLED is "Lit/Blinking/Off" Signed-off-by: Hieu Huynh <hieu.huynh@amperecomputing.com> Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Change-Id: I58eeae7ac22a9d4ddd4acdfbd167095bdc74072c
Diffstat (limited to 'meta-ampere/meta-jade/recipes-phosphor/leds')
-rw-r--r--meta-ampere/meta-jade/recipes-phosphor/leds/mtjade-led-manager-config/led.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-ampere/meta-jade/recipes-phosphor/leds/mtjade-led-manager-config/led.yaml b/meta-ampere/meta-jade/recipes-phosphor/leds/mtjade-led-manager-config/led.yaml
index ba21c5860..3e321ed5c 100644
--- a/meta-ampere/meta-jade/recipes-phosphor/leds/mtjade-led-manager-config/led.yaml
+++ b/meta-ampere/meta-jade/recipes-phosphor/leds/mtjade-led-manager-config/led.yaml
@@ -18,3 +18,15 @@ systemFault:
DutyOn: 50
Period: 0
Priority: 'Blink'
+
+enclosure_identify:
+ identify:
+ Action: 'On'
+ DutyOn: 50
+ Period: 1000
+
+enclosure_identify_blink:
+ identify:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000