schemas: legacy: extract UCD90XXX
Used in [1].
Tested: Schema Validator Pass
References:
[1] https://github.com/openbmc/phosphor-power
Change-Id: I720ddbb497061a710018436fdea7aa4d12c23fa2
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index 31b2333..52657ec 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -139,6 +139,9 @@
"$ref": "legacy.json#/$defs/BMC"
},
{
+ "$ref": "legacy.json#/$defs/UCD90XXX"
+ },
+ {
"$ref": "virtual_sensor.json#/$defs/VirtualSensor"
},
{
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 263b09c..ddeeb81 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -1032,6 +1032,24 @@
}
}
},
+ "UCD90XXX": {
+ "description": "used in https://github.com/openbmc/phosphor-power",
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "$ref": "#/$defs/Types/Name"
+ },
+ "Address": {
+ "$ref": "#/$defs/Types/Address"
+ },
+ "Bus": {
+ "$ref": "#/$defs/Types/Bus"
+ },
+ "Type": {
+ "enum": ["UCD90160", "UCD90320"]
+ }
+ }
+ },
"Aggregate": {
"description": "Don't add additional properties to this schema. Consult README.schema for instructions on adding new Exposes element sub-schema.",
"additionalProperties": false,
@@ -1093,8 +1111,6 @@
"ISL69269",
"LTC4282",
"XDPE152C4D",
- "UCD90160",
- "UCD90320",
"PSM7"
]
}