PEL: Add PSU firmware update PELs

Add PEL entries for PSU firmware update and firmware file issues

- Added PEL for successful PSU firmware update (PEL 0x15F8)
- Added PEL for PSU firmware update failure, callout of PSU and BMC (PEL
  0x15F9)
- Added PEL for PSU firmware file issues, referencing procedure BMC001
  (PEL 0x15FA)

Test:
  Tested all new PEL message in simulation and verified the output.

Change-Id: I4e26a9c4a3764429931f3a509e63c5c9d0638851
Signed-off-by: Faisal Awada <faisal@us.ibm.com>
diff --git a/extensions/openpower-pels/registry/message_registry.json b/extensions/openpower-pels/registry/message_registry.json
index 2f28b1f..77193c6 100644
--- a/extensions/openpower-pels/registry/message_registry.json
+++ b/extensions/openpower-pels/registry/message_registry.json
@@ -2292,6 +2292,149 @@
         },
 
         {
+            "Name": "xyz.openbmc_project.Power.PowerSupply.Info.FirmwareUpdateSuccessful",
+            "Subsystem": "power_supply",
+            "ActionFlags": ["report"],
+            "ComponentID": "0x2700",
+
+            "SRC": {
+                "Type": "11",
+                "ReasonCode": "0x15F8",
+                "Words6To9": {}
+            },
+
+            "Documentation": {
+                "Description": "Power Supply firmware update successful",
+                "Message": "Successful PSU code update",
+                "Notes": [
+                    "Successful PSU firmware update, verify current firmware level",
+                    "in the PEL detail data"
+                ]
+            },
+            "JournalCapture": {
+                "Sections": [
+                    {
+                        "SyslogID": "psutils",
+                        "NumLines": 30
+                    },
+                    {
+                        "SyslogID": "phosphor-psu-monitor",
+                        "NumLines": 30
+                    },
+                    {
+                        "SyslogID": "phosphor-psu-code-manager",
+                        "NumLines": 30
+                    }
+                ]
+            }
+        },
+
+        {
+            "Name": "xyz.openbmc_project.Power.PowerSupply.Error.FirmwareUpdateFailed",
+            "Subsystem": "power_supply",
+            "ActionFlags": ["service_action", "report", "call_home"],
+            "ComponentID": "0x2700",
+
+            "SRC": {
+                "Type": "11",
+                "ReasonCode": "0x15F9",
+                "Words6To9": {}
+            },
+
+            "Callouts": [
+                {
+                    "System": "com.ibm.Hardware.Chassis.Model.Rainier",
+                    "CalloutList": [
+                        { "Priority": "low", "LocCode": "P0-C5" },
+                        { "Priority": "low", "LocCode": "P0" }
+                    ]
+                },
+                {
+                    "System": "com.ibm.Hardware.Chassis.Model.Everest",
+                    "CalloutList": [
+                        { "Priority": "low", "LocCode": "P0-C0" },
+                        { "Priority": "low", "LocCode": "P0" }
+                    ]
+                }
+            ],
+
+            "Documentation": {
+                "Description": "Power Supply firmware update failed",
+                "Message": "Unsuccessful PSU code update",
+                "Notes": [
+                    "This message may indicate failure triggered due to multiple reasons,",
+                    "an issue with I2C transactions, an I2C exception, or a failure in the",
+                    "firmware download procedure. Some of the callout severity is set dynamically",
+                    "by the application based on the failure. Detailed information in the PEL",
+                    "journal data for further debugging."
+                ]
+            },
+            "JournalCapture": {
+                "Sections": [
+                    {
+                        "SyslogID": "psutils",
+                        "NumLines": 30
+                    },
+                    {
+                        "SyslogID": "phosphor-psu-monitor",
+                        "NumLines": 30
+                    },
+                    {
+                        "SyslogID": "phosphor-psu-code-manager",
+                        "NumLines": 30
+                    }
+                ]
+            }
+        },
+
+        {
+            "Name": "xyz.openbmc_project.Power.PowerSupply.Error.FirmwareIssue",
+            "Subsystem": "power_supply",
+            "ActionFlags": ["service_action", "report", "call_home"],
+            "ComponentID": "0x2700",
+
+            "SRC": {
+                "Type": "11",
+                "ReasonCode": "0x15FA",
+                "Words6To9": {}
+            },
+
+            "Callouts": [
+                {
+                    "CalloutList": [
+                        { "Priority": "high", "Procedure": "BMC0001" }
+                    ]
+                }
+            ],
+
+            "Documentation": {
+                "Description": "Power Supply firmware missing",
+                "Message": "Unsuccessful PSU code update",
+                "Notes": [
+                    "This PEL can be triggered by a missing firmware path, empty firmware",
+                    "file, or failure to open. Possible causes in the image firmware",
+                    "path. Detailed information in the PEL journal data."
+                ]
+            },
+            "JournalCapture": {
+                "Sections": [
+                    {
+                        "SyslogID": "psutils",
+                        "NumLines": 30
+                    },
+                    {
+                        "SyslogID": "phosphor-psu-monitor",
+                        "NumLines": 30
+                    },
+                    {
+                        "SyslogID": "phosphor-psu-code-manager",
+                        "NumLines": 30
+                    }
+                ]
+            }
+        },
+
+        {
             "Name": "xyz.openbmc_project.Power.PowerSupply.Error.FanFault",
             "Subsystem": "power_supply",
             "ActionFlags": ["service_action", "report", "call_home"],