valve: add inventory item and related decorator
Add Valve as an inventory item alongwith a valve decorator. The valves
will be used to control the coolant flow in case of liquid cooled
systems. The valve decorator helps to depict the valve direction and the
pair name (if any).
Change-Id: I62f4f4f0a953ffdf5a05b09e52e05c852a9d5cbf
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/schemas/global.json b/schemas/global.json
index a001b26..2a4037d 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -47,7 +47,8 @@
"NVMe",
"PowerSupply",
"CPU",
- "Cable"
+ "Cable",
+ "Valve"
]
},
"xyz.openbmc_project.Common.UUID": {
@@ -103,6 +104,9 @@
},
"xyz.openbmc_project.Inventory.Item.Dimm": {
"$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/Dimm"
+ },
+ "xyz.openbmc_project.Inventory.Item.Valve": {
+ "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/Valve"
}
},
"required": ["Exposes", "Name", "Probe", "Type"]
diff --git a/schemas/openbmc-dbus.json b/schemas/openbmc-dbus.json
index ed75330..7f49810 100644
--- a/schemas/openbmc-dbus.json
+++ b/schemas/openbmc-dbus.json
@@ -171,6 +171,20 @@
"Dimm": {
"additionalProperties": false,
"type": "object"
+ },
+ "Valve": {
+ "additionalProperties": false,
+ "properties": {
+ "Direction": {
+ "enum": ["Supply", "Return", "Unknown"]
+ },
+ "PairName": {
+ "description": "This property specifies the pair name for valves when they form a supply and return valve pair; otherwise, it is set to NA.",
+ "type": "string"
+ }
+ },
+ "required": ["Direction", "PairName"],
+ "type": "object"
}
}
},