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", |
Jagpal Singh Gill | 4f44b69 | 2025-06-09 10:23:01 -0700 | [diff] [blame] | 7 | "additionalProperties": false, |
Jagpal Singh Gill | e6fc3b7 | 2024-11-20 18:09:28 -0800 | [diff] [blame] | 8 | "properties": { |
| 9 | "VendorIANA": { |
| 10 | "description": "The IANA Enterprise Id of the hardware vendor", |
| 11 | "type": "number" |
| 12 | }, |
| 13 | "CompatibleHardware": { |
| 14 | "description": "The compatible hardware with name format com.<vendor>.Hardware.<XXX> specified by vendor in phosphor-dbus-interfaces", |
| 15 | "type": "string" |
| 16 | } |
| 17 | }, |
Jagpal Singh Gill | 34f4d15 | 2025-02-18 22:58:24 -0800 | [diff] [blame] | 18 | "required": ["VendorIANA", "CompatibleHardware"] |
Christopher Meis | d64855f | 2025-01-24 08:36:48 +0100 | [diff] [blame] | 19 | }, |
Christopher Meis | 6d452d1 | 2025-04-22 09:18:26 +0200 | [diff] [blame] | 20 | "I2CVRFirmware": { |
| 21 | "description": "Required information to complete I2C voltage regulator firmware update", |
Christopher Meis | d64855f | 2025-01-24 08:36:48 +0100 | [diff] [blame] | 22 | "object": "object", |
Jagpal Singh Gill | 4f44b69 | 2025-06-09 10:23:01 -0700 | [diff] [blame] | 23 | "additionalProperties": false, |
Christopher Meis | d64855f | 2025-01-24 08:36:48 +0100 | [diff] [blame] | 24 | "properties": { |
| 25 | "Name": { |
| 26 | "description": "Name of the firmware", |
| 27 | "type": "string" |
| 28 | }, |
| 29 | "Type": { |
| 30 | "description": "The type of configuration object", |
Christopher Meis | 6d452d1 | 2025-04-22 09:18:26 +0200 | [diff] [blame] | 31 | "enum": ["XDPE1X2XXFirmware", "ISL69269Firmware"] |
Christopher Meis | d64855f | 2025-01-24 08:36:48 +0100 | [diff] [blame] | 32 | }, |
| 33 | "Bus": { |
Christopher Meis | 6d452d1 | 2025-04-22 09:18:26 +0200 | [diff] [blame] | 34 | "$ref": "legacy.json#/$defs/Types/Bus" |
Christopher Meis | d64855f | 2025-01-24 08:36:48 +0100 | [diff] [blame] | 35 | }, |
| 36 | "Address": { |
Christopher Meis | 6d452d1 | 2025-04-22 09:18:26 +0200 | [diff] [blame] | 37 | "$ref": "legacy.json#/$defs/Types/Address" |
Christopher Meis | d64855f | 2025-01-24 08:36:48 +0100 | [diff] [blame] | 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", |
Jagpal Singh Gill | 4f44b69 | 2025-06-09 10:23:01 -0700 | [diff] [blame] | 48 | "additionalProperties": false, |
Jagpal Singh Gill | 79b2075 | 2024-11-24 16:25:39 -0800 | [diff] [blame] | 49 | "properties": { |
| 50 | "Type": { |
| 51 | "description": "The type of configuration object. IntelSPIFlash implies Intel Flash Descriptor.", |
| 52 | "enum": ["IntelSPIFlash", "SPIFlash"] |
| 53 | }, |
| 54 | "Name": { |
| 55 | "description": "The name of the firmware.", |
| 56 | "type": "string" |
| 57 | }, |
| 58 | "SPIControllerIndex": { |
| 59 | "description": "The index of the SPI controller", |
| 60 | "type": "number" |
| 61 | }, |
| 62 | "SPIDeviceIndex": { |
| 63 | "description": "The index of the SPI device connected to that controller", |
| 64 | "type": "number" |
| 65 | }, |
| 66 | "MuxOutputs": { |
| 67 | "description": "The pin names and values for the mux which toggles the flash to BMC", |
| 68 | "type": "array", |
| 69 | "items": { |
| 70 | "type": "object", |
Jagpal Singh Gill | 4f44b69 | 2025-06-09 10:23:01 -0700 | [diff] [blame] | 71 | "additionalProperties": false, |
Jagpal Singh Gill | 79b2075 | 2024-11-24 16:25:39 -0800 | [diff] [blame] | 72 | "properties": { |
| 73 | "Name": { |
| 74 | "$ref": "legacy.json#/$defs/Types/Name" |
| 75 | }, |
| 76 | "Polarity": { |
| 77 | "$ref": "legacy.json#/$defs/Types/Polarity" |
| 78 | } |
| 79 | }, |
| 80 | "required": ["Name", "Polarity"] |
| 81 | } |
| 82 | }, |
| 83 | "FirmwareInfo": { |
| 84 | "$ref": "#/$defs/FirmwareInfoDef" |
| 85 | } |
| 86 | }, |
| 87 | "required": [ |
| 88 | "Name", |
| 89 | "Type", |
| 90 | "SPIControllerIndex", |
| 91 | "SPIDeviceIndex", |
| 92 | "MuxOutputs", |
| 93 | "FirmwareInfo" |
| 94 | ] |
Kevin Tung | f75a499 | 2025-01-13 19:14:27 +0800 | [diff] [blame] | 95 | }, |
| 96 | "EEPROMDeviceFirmware": { |
| 97 | "description": "Required information to complete the EEPROM device firmware update process", |
| 98 | "type": "object", |
| 99 | "additionalProperties": false, |
| 100 | "properties": { |
| 101 | "Name": { |
| 102 | "description": "Unique identifier or label for the EEPROM device", |
| 103 | "type": "string" |
| 104 | }, |
| 105 | "Type": { |
| 106 | "description": "The type of configuration object", |
Kevin Tung | a98861f | 2025-05-13 18:34:46 +0800 | [diff] [blame] | 107 | "enum": ["PT5161LFirmware"] |
Kevin Tung | f75a499 | 2025-01-13 19:14:27 +0800 | [diff] [blame] | 108 | }, |
| 109 | "Bus": { |
| 110 | "$ref": "legacy.json#/$defs/Types/Bus" |
| 111 | }, |
| 112 | "Address": { |
| 113 | "$ref": "legacy.json#/$defs/Types/Address" |
| 114 | }, |
| 115 | "FirmwareDevice": { |
| 116 | "description": "The device that stores the EEPROM device firmware", |
| 117 | "type": "string" |
| 118 | }, |
| 119 | "MuxOutputs": { |
| 120 | "description": "The pin names and polarities for the mux which toggles the flash to BMC", |
| 121 | "type": "array", |
| 122 | "items": { |
| 123 | "type": "object", |
Jagpal Singh Gill | 4f44b69 | 2025-06-09 10:23:01 -0700 | [diff] [blame] | 124 | "additionalProperties": false, |
Kevin Tung | f75a499 | 2025-01-13 19:14:27 +0800 | [diff] [blame] | 125 | "properties": { |
| 126 | "Name": { |
| 127 | "$ref": "legacy.json#/$defs/Types/Name" |
| 128 | }, |
| 129 | "Polarity": { |
| 130 | "$ref": "legacy.json#/$defs/Types/Polarity" |
| 131 | } |
| 132 | }, |
| 133 | "required": ["Name", "Polarity"] |
| 134 | } |
| 135 | }, |
| 136 | "FirmwareInfo": { |
| 137 | "$ref": "#/$defs/FirmwareInfoDef" |
| 138 | } |
| 139 | }, |
| 140 | "required": [ |
| 141 | "Name", |
| 142 | "Type", |
| 143 | "Bus", |
| 144 | "Address", |
| 145 | "FirmwareDevice", |
| 146 | "FirmwareInfo" |
| 147 | ] |
Jagpal Singh Gill | e6fc3b7 | 2024-11-20 18:09:28 -0800 | [diff] [blame] | 148 | } |
| 149 | } |
| 150 | } |