Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 1 | // This JSON has the information needed to create General FRU record for FRU of |
| 2 | // type Cpu. The FRU fields are based on the PLDM specification DSP0257. |
Tom Joseph | 1f4df21 | 2020-02-06 15:48:41 +0530 | [diff] [blame] | 3 | { |
| 4 | "record_details": |
| 5 | { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 6 | // FRU Record Type - General FRU Record |
Tom Joseph | 1f4df21 | 2020-02-06 15:48:41 +0530 | [diff] [blame] | 7 | "fru_record_type" : 1, |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 8 | // Encoding Type for FRU fields - ASCII |
Tom Joseph | 1f4df21 | 2020-02-06 15:48:41 +0530 | [diff] [blame] | 9 | "fru_encoding_type": 1, |
| 10 | "dbus_interface_name": "xyz.openbmc_project.Inventory.Item.Cpu" |
| 11 | }, |
| 12 | "fru_fields":[ |
| 13 | { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 14 | // FRU Field Type 3 - Part Number |
Tom Joseph | 1f4df21 | 2020-02-06 15:48:41 +0530 | [diff] [blame] | 15 | "fru_field_type" : 3, |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 16 | // D-Bus property to read and populate the FRU field |
Tom Joseph | 1f4df21 | 2020-02-06 15:48:41 +0530 | [diff] [blame] | 17 | "dbus": |
| 18 | { |
| 19 | "interface" : "xyz.openbmc_project.Inventory.Decorator.Asset", |
| 20 | "property_name" : "PartNumber", |
| 21 | "property_type" : "string" |
| 22 | } |
| 23 | }, |
| 24 | { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 25 | // FRU Field Type 4 - Serial Number |
Tom Joseph | 1f4df21 | 2020-02-06 15:48:41 +0530 | [diff] [blame] | 26 | "fru_field_type" : 4, |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 27 | // D-Bus property to read and populate the FRU field |
Tom Joseph | 1f4df21 | 2020-02-06 15:48:41 +0530 | [diff] [blame] | 28 | "dbus": |
| 29 | { |
| 30 | "interface" : "xyz.openbmc_project.Inventory.Decorator.Asset", |
| 31 | "property_name" : "SerialNumber", |
| 32 | "property_type" : "string" |
| 33 | } |
| 34 | } |
| 35 | ] |
| 36 | } |