meta-inspur: fp5280g2: Add FRU information for Powersupply
Add the fru YAML configuration of Power Supply for fp5280g2.
Tested:
ipmitool -I lanplus -H ${IP} -U root -P 0penBmc -C 17 fru list
FRU Device Description : Builtin FRU Device (ID 0)
Board Mfg Date : Mon Jan 1 08:00:00 1996
Board Serial : 000000000000
Board Part Number : 0000000
FRU Device Description : cpu0 (ID 1)
Board Mfg Date : Mon Jan 1 08:00:00 1996
Board Mfg : IBM
Board Product : PROCESSOR MODULE
Board Serial : YA1934426664
Board Part Number : 02CY296
FRU Device Description : dimm2 (ID 5)
Product Manufacturer : Samsung Electronics
Product Name : DDR4-2666 16GiB 64-bit ECC RDIMM
Product Part Number : M393A2K43BB1-CTD
Product Serial : 367f4c9d
FRU Device Description : powersupply0 (ID 20)
Product Name : powersupply0
Product Part Number : PS-2801-12L
Product Serial : 6K12A0118446MM
FRU Device Description : powersupply1 (ID 21)
Product Name : powersupply1
Product Part Number : PS-2801-12L
Product Serial : 6K12A0118362NS
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I04b45f5839f991f98b3f628db2246d4dced804c8
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru-properties.yaml b/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru-properties.yaml
index a4eab8a..7fbd3b1 100644
--- a/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru-properties.yaml
+++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru-properties.yaml
@@ -138,3 +138,17 @@
FieldReplaceable: 'true'
xyz.openbmc_project.Inventory.Item:
Present: 'true'
+/system/chassis/motherboard/powersupply0:
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'true'
+ xyz.openbmc_project.Inventory.Item:
+ Present: 'true'
+/system/chassis/motherboard/powersupply1:
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'true'
+ xyz.openbmc_project.Inventory.Item:
+ Present: 'true'
\ No newline at end of file
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru.yaml b/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru.yaml
index 0341864..feea630 100644
--- a/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru.yaml
+++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/configuration/fp5280g2-yaml-config/fp5280g2-ipmi-fru.yaml
@@ -593,3 +593,61 @@
IPMIFruProperty: MACAddress
IPMIFruSection: Product
xyz.openbmc_project.Inventory.Item.Ethernet:
+20:
+ /system/chassis/motherboard/powersupply0:
+ entityID: 19
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Inventory.Decorator.Asset:
+ BuildDate:
+ IPMIFruProperty: Mfg Date
+ IPMIFruSection: Product
+ Manufacturer:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Product
+ Model:
+ IPMIFruProperty: Model Number
+ IPMIFruSection: Product
+ PartNumber:
+ IPMIFruProperty: Part Number
+ IPMIFruSection: Product
+ SerialNumber:
+ IPMIFruProperty: Serial Number
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Revision:
+ Version:
+ IPMIFruProperty: Version
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Name
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Item.PowerSupply:
+21:
+ /system/chassis/motherboard/powersupply1:
+ entityID: 19
+ entityInstance: 2
+ interfaces:
+ xyz.openbmc_project.Inventory.Decorator.Asset:
+ BuildDate:
+ IPMIFruProperty: Mfg Date
+ IPMIFruSection: Product
+ Manufacturer:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Product
+ Model:
+ IPMIFruProperty: Model Number
+ IPMIFruSection: Product
+ PartNumber:
+ IPMIFruProperty: Part Number
+ IPMIFruSection: Product
+ SerialNumber:
+ IPMIFruProperty: Serial Number
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Revision:
+ Version:
+ IPMIFruProperty: Version
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Name
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Item.PowerSupply: