schemas: legacy: extract PSUPresence

This allows to remove some properties from 'Aggregate' schema which are
no longer needed, since there is now a more specific schema to use.

Tested: Schema Validator Pass

Change-Id: I3f5c053a883d35e35a5e909691dc0796cd55db60
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index 8504c7e..e067604 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -94,6 +94,9 @@
                             "$ref": "legacy.json#/$defs/DownstreamPort"
                         },
                         {
+                            "$ref": "legacy.json#/$defs/PSUPresence"
+                        },
+                        {
                             "$ref": "virtual_sensor.json#/$defs/VirtualSensor"
                         },
                         {
diff --git a/schemas/legacy.json b/schemas/legacy.json
index a4b5cf0..1c10578 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -515,6 +515,25 @@
             "required": ["Name", "Type", "ConnectsToType"],
             "type": "object"
         },
+        "PSUPresence": {
+            "additionalProperties": false,
+            "properties": {
+                "Name": {
+                    "$ref": "#/$defs/Types/Name"
+                },
+                "Bus": {
+                    "$ref": "#/$defs/Types/Bus"
+                },
+                "Address": {
+                    "$ref": "#/$defs/Types/Address"
+                },
+                "Type": {
+                    "const": "PSUPresence"
+                }
+            },
+            "required": ["Name", "Type", "Bus", "Address"],
+            "type": "object"
+        },
         "Aggregate": {
             "description": "Don't add additional properties to this schema. Consult README.schema for instructions on adding new Exposes element sub-schema.",
             "additionalProperties": false,
@@ -996,7 +1015,6 @@
                     "UCD90160",
                     "UCD90320",
                     "EmmcDevice",
-                    "PSUPresence",
                     "Intel HSBP CPLD",
                     "IntelHsbpFruDevice",
                     "IntelHsbpTempSensor",