configuration: santabarbara: move GPIO property to defs
The debug card and the CPLD updater share the same I2C bus. When the
debug card is present, it can interfere with the update process and
cause failures.
BIOS and EEPROM already define this property, so move it to defs to
make it available for all devices.
test with the CPLD setting
```
root@bmc:~# busctl introspect xyz.openbmc_project.EntityManager /xyz/openbmc_project/inventory/system/board/Santa_Barbara_SCM/Santabarbara_SCM_CPLD xyz.openbmc_project.Configuration.LatticeLCMXO3D_9400Firmware.MuxOutputs0
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
.Name property s "debug-card-mux" emits-change
.Polarity property s "High" emits-change
```
test with the BIOS setting
```
root@bmc:~# busctl introspect xyz.openbmc_project.EntityManager /xyz/openbmc_project/inventory/system/board/Santa_Barbara_SCM/Santabarbara_BIOS xyz.openbmc_project.Configuration.SPIFlash.MuxOutputs0
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
.Name property s "FM_MUX1_SEL_R" emits-change
.Polarity property s "High" emits-change
```
Change-Id: I9e99c31525c363c3c1c122c511af49298608ff65
Signed-off-by: Henry Wu <Henry_Wu@quantatw.com>
diff --git a/configurations/meta/santabarbara/santabarbara_scm.json b/configurations/meta/santabarbara/santabarbara_scm.json
index 1388e7b..4738152 100644
--- a/configurations/meta/santabarbara/santabarbara_scm.json
+++ b/configurations/meta/santabarbara/santabarbara_scm.json
@@ -452,6 +452,12 @@
"CompatibleHardware": "com.meta.Hardware.Santabarbara.CPLD.LCMXO3D_9400_scm",
"VendorIANA": 40981
},
+ "MuxOutputs": [
+ {
+ "Name": "debug-card-mux",
+ "Polarity": "High"
+ }
+ ],
"Name": "Santabarbara_SCM_CPLD",
"Type": "LatticeLCMXO3D_9400Firmware"
},
diff --git a/schemas/cpld.json b/schemas/cpld.json
index bd9709a..198a7b1 100644
--- a/schemas/cpld.json
+++ b/schemas/cpld.json
@@ -29,6 +29,9 @@
"LatticeLCMXO3LF_4300CFirmware",
"LatticeLFMXO5_25Firmware"
]
+ },
+ "MuxOutputs": {
+ "$ref": "firmware.json#/$defs/MuxOutputs"
}
},
"required": ["Address", "Bus", "FirmwareInfo", "Name", "Type"]
diff --git a/schemas/firmware.json b/schemas/firmware.json
index d4a5f98..b6b4254 100644
--- a/schemas/firmware.json
+++ b/schemas/firmware.json
@@ -17,6 +17,23 @@
},
"required": ["VendorIANA", "CompatibleHardware"]
},
+ "MuxOutputs": {
+ "description": "The pin names and values for the mux which toggles the flash to BMC",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "$ref": "legacy.json#/$defs/Types/Name"
+ },
+ "Polarity": {
+ "$ref": "legacy.json#/$defs/Types/Polarity"
+ }
+ },
+ "required": ["Name", "Polarity"]
+ }
+ },
"I2CVRFirmware": {
"description": "Required information to complete I2C voltage regulator firmware update",
"object": "object",
@@ -72,21 +89,7 @@
"type": "number"
},
"MuxOutputs": {
- "description": "The pin names and values for the mux which toggles the flash to BMC",
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "Name": {
- "$ref": "legacy.json#/$defs/Types/Name"
- },
- "Polarity": {
- "$ref": "legacy.json#/$defs/Types/Polarity"
- }
- },
- "required": ["Name", "Polarity"]
- }
+ "$ref": "#/$defs/MuxOutputs"
},
"FirmwareInfo": {
"$ref": "#/$defs/FirmwareInfoDef"
@@ -125,21 +128,7 @@
"type": "string"
},
"MuxOutputs": {
- "description": "The pin names and polarities for the mux which toggles the flash to BMC",
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "Name": {
- "$ref": "legacy.json#/$defs/Types/Name"
- },
- "Polarity": {
- "$ref": "legacy.json#/$defs/Types/Polarity"
- }
- },
- "required": ["Name", "Polarity"]
- }
+ "$ref": "#/$defs/MuxOutputs"
},
"FirmwareInfo": {
"$ref": "#/$defs/FirmwareInfoDef"