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