Jagpal Singh Gill | e6fc3b7 | 2024-11-20 18:09:28 -0800 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$defs": { |
| 4 | "FirmwareInfoDef": { |
| 5 | "description": "This indicates the properties which apply to all firmwares", |
| 6 | "type": "object", |
| 7 | "properties": { |
| 8 | "VendorIANA": { |
| 9 | "description": "The IANA Enterprise Id of the hardware vendor", |
| 10 | "type": "number" |
| 11 | }, |
| 12 | "CompatibleHardware": { |
| 13 | "description": "The compatible hardware with name format com.<vendor>.Hardware.<XXX> specified by vendor in phosphor-dbus-interfaces", |
| 14 | "type": "string" |
| 15 | } |
| 16 | }, |
Jagpal Singh Gill | 34f4d15 | 2025-02-18 22:58:24 -0800 | [diff] [blame] | 17 | "required": ["VendorIANA", "CompatibleHardware"] |
Christopher Meis | d64855f | 2025-01-24 08:36:48 +0100 | [diff] [blame] | 18 | }, |
| 19 | "XDPE1X2XXFirmware": { |
| 20 | "description": "Required information to complete a voltage regulator firmware update", |
| 21 | "object": "object", |
| 22 | "properties": { |
| 23 | "Name": { |
| 24 | "description": "Name of the firmware", |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "Type": { |
| 28 | "description": "The type of configuration object", |
| 29 | "enum": ["XDPE1X2XXFirmware"] |
| 30 | }, |
| 31 | "Bus": { |
| 32 | "description": "I2C bus, the device is connected to", |
| 33 | "type": "integer" |
| 34 | }, |
| 35 | "Address": { |
| 36 | "description": "I2C address of the device", |
| 37 | "type": "integer" |
| 38 | }, |
| 39 | "FirmwareInfo": { |
| 40 | "$ref": "#/$defs/FirmwareInfoDef" |
| 41 | } |
| 42 | }, |
| 43 | "required": ["Name", "Type", "Bus", "Address", "FirmwareInfo"] |
Jagpal Singh Gill | 79b2075 | 2024-11-24 16:25:39 -0800 | [diff] [blame^] | 44 | }, |
| 45 | "BIOS": { |
| 46 | "description": "Required information to complete the host fw update process.", |
| 47 | "type": "object", |
| 48 | "properties": { |
| 49 | "Type": { |
| 50 | "description": "The type of configuration object. IntelSPIFlash implies Intel Flash Descriptor.", |
| 51 | "enum": ["IntelSPIFlash", "SPIFlash"] |
| 52 | }, |
| 53 | "Name": { |
| 54 | "description": "The name of the firmware.", |
| 55 | "type": "string" |
| 56 | }, |
| 57 | "SPIControllerIndex": { |
| 58 | "description": "The index of the SPI controller", |
| 59 | "type": "number" |
| 60 | }, |
| 61 | "SPIDeviceIndex": { |
| 62 | "description": "The index of the SPI device connected to that controller", |
| 63 | "type": "number" |
| 64 | }, |
| 65 | "MuxOutputs": { |
| 66 | "description": "The pin names and values for the mux which toggles the flash to BMC", |
| 67 | "type": "array", |
| 68 | "items": { |
| 69 | "type": "object", |
| 70 | "properties": { |
| 71 | "Name": { |
| 72 | "$ref": "legacy.json#/$defs/Types/Name" |
| 73 | }, |
| 74 | "Polarity": { |
| 75 | "$ref": "legacy.json#/$defs/Types/Polarity" |
| 76 | } |
| 77 | }, |
| 78 | "required": ["Name", "Polarity"] |
| 79 | } |
| 80 | }, |
| 81 | "FirmwareInfo": { |
| 82 | "$ref": "#/$defs/FirmwareInfoDef" |
| 83 | } |
| 84 | }, |
| 85 | "required": [ |
| 86 | "Name", |
| 87 | "Type", |
| 88 | "SPIControllerIndex", |
| 89 | "SPIDeviceIndex", |
| 90 | "MuxOutputs", |
| 91 | "FirmwareInfo" |
| 92 | ] |
Jagpal Singh Gill | e6fc3b7 | 2024-11-20 18:09:28 -0800 | [diff] [blame] | 93 | } |
| 94 | } |
| 95 | } |