schemas: legacy: extract EmmcDevice

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: I4f826286205b84442a41d407b3058b8e56273c0e
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index e067604..f0f4715 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -97,6 +97,9 @@
                             "$ref": "legacy.json#/$defs/PSUPresence"
                         },
                         {
+                            "$ref": "legacy.json#/$defs/EmmcDevice"
+                        },
+                        {
                             "$ref": "virtual_sensor.json#/$defs/VirtualSensor"
                         },
                         {
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 1c10578..af4acb6 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -534,6 +534,19 @@
             "required": ["Name", "Type", "Bus", "Address"],
             "type": "object"
         },
+        "EmmcDevice": {
+            "additionalProperties": false,
+            "properties": {
+                "Name": {
+                    "$ref": "#/$defs/Types/Name"
+                },
+                "Type": {
+                    "const": "EmmcDevice"
+                }
+            },
+            "required": ["Name", "Type"],
+            "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,
@@ -1014,7 +1027,6 @@
                     "W83773G",
                     "UCD90160",
                     "UCD90320",
-                    "EmmcDevice",
                     "Intel HSBP CPLD",
                     "IntelHsbpFruDevice",
                     "IntelHsbpTempSensor",