summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade/recipes-phosphor/gpio/id-button
AgeCommit message (Collapse)AuthorFilesLines
2021-11-04meta-ampere: fix shellcheck issuesThang Q. Nguyen1-10/+10
Fix all issues from the shellcheck checked on bash shells under meta-ampere. Tested: Verify the following features: 1. Power control (on,off, cycle, graceful shutdown, hard reset). 2. UART switching. 3. UEFI firmware update. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Idabf839b7521ecadb642230cc8bb3472c787002e
2021-02-26meta-ampere: Support UID button and LEDChanh Nguyen3-0/+60
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