From 62feab3abe0e748ad045ab1e43f2d7ee9234961d Mon Sep 17 00:00:00 2001 From: Chanh Nguyen Date: Thu, 25 Feb 2021 22:25:53 +0700 Subject: 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 Signed-off-by: Chanh Nguyen Change-Id: I58eeae7ac22a9d4ddd4acdfbd167095bdc74072c --- .../recipes-phosphor/leds/mtjade-led-manager-config/led.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'meta-ampere/meta-jade/recipes-phosphor/leds/mtjade-led-manager-config/led.yaml') 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 -- cgit v1.2.3