configurations: yosemite4: Support for CPU Configurations

- Configurations type support CPU
- Displays CPU serial number

Change-Id: I3fe7da27b1729bd11c267849e2154629b65638b6
Signed-off-by: Ingrid Chen <ingrid.chen.wiwynn@gmail.com>
diff --git a/configurations/yosemite4_cpu.json b/configurations/yosemite4_cpu.json
new file mode 100644
index 0000000..6eaaeca
--- /dev/null
+++ b/configurations/yosemite4_cpu.json
@@ -0,0 +1,15 @@
+{
+    "Exposes": [],
+    "Name": "Yosemite 4 Sentinel Dome Slot $bus % 15 CPU",
+    "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'Sentinel Dome', 'PRODUCT_PRODUCT_NAME': 'Yosemite V4'})",
+    "Type": "CPU",
+    "xyz.openbmc_project.Inventory.Decorator.Asset": {
+        "Manufacturer": "N/A",
+        "Model": "N/A",
+        "PartNumber": "N/A",
+        "SerialNumber": "$CHASSIS_INFO_AM1"
+    },
+    "xyz.openbmc_project.Inventory.Decorator.Slot": {
+        "SlotNumber": "$bus % 15"
+    }
+}
diff --git a/meson.build b/meson.build
index 4c76439..0b90c4d 100644
--- a/meson.build
+++ b/meson.build
@@ -235,6 +235,7 @@
     'yosemite4_sentineldome_t2_retimer.json',
     'yosemite4_spiderboard_adc_max_pwr_ti.json',
     'yosemite4_spiderboard_adc_ti_pwr_ti.json',
+    'yosemite4_cpu.json',
     'yosemite4_wailuafalls.json',
     'yosemite4n.json',
 ]
diff --git a/schemas/global.json b/schemas/global.json
index e963774..fcf057b 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -91,7 +91,7 @@
                 "Type": {
                     "title": "Configuration Type",
                     "description": "The schema for the type property. The type property identifies the type of the configuration.  When exported, configurations will be instantiated as children of: /xyz/openbmc_project/configuration/<Type>",
-                    "enum": ["Board", "Chassis", "NVMe", "PowerSupply"]
+                    "enum": ["Board", "Chassis", "NVMe", "PowerSupply", "CPU"]
                 },
                 "xyz.openbmc_project.Common.UUID": {
                     "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Common/UUID"