com.meta: add compatible device strings for yosemite5

Add compatible device strings specific to yosemite5 hardware.
These compatible strings will be used to identify supported devices
in firmware updates.

Change-Id: I1e143486e72c41b6b6e6c4190f9ec122f6e70a4e
Signed-off-by: Kevin Tung <Kevin.Tung@quantatw.com>
diff --git a/gen/com/meta/Hardware/Yosemite5/meson.build b/gen/com/meta/Hardware/Yosemite5/meson.build
new file mode 100644
index 0000000..7ca594b
--- /dev/null
+++ b/gen/com/meta/Hardware/Yosemite5/meson.build
@@ -0,0 +1,38 @@
+# Generated file; do not modify.
+
+sdbusplus_current_path = 'com/meta/Hardware/Yosemite5'
+
+generated_sources += custom_target(
+    'com/meta/Hardware/Yosemite5__cpp'.underscorify(),
+    input: ['../../../../../yaml/com/meta/Hardware/Yosemite5.interface.yaml'],
+    output: [
+        'common.hpp',
+        'server.hpp',
+        'server.cpp',
+        'aserver.hpp',
+        'client.hpp',
+    ],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog,
+        '--command',
+        'cpp',
+        '--output',
+        meson.current_build_dir(),
+        '--tool',
+        sdbusplusplus_prog,
+        '--directory',
+        meson.current_source_dir() / '../../../../../yaml',
+        'com/meta/Hardware/Yosemite5',
+    ],
+    install: should_generate_cpp,
+    install_dir: [
+        get_option('includedir') / sdbusplus_current_path,
+        get_option('includedir') / sdbusplus_current_path,
+        false,
+        get_option('includedir') / sdbusplus_current_path,
+        get_option('includedir') / sdbusplus_current_path,
+    ],
+    build_by_default: should_generate_cpp,
+)
+
diff --git a/gen/com/meta/Hardware/meson.build b/gen/com/meta/Hardware/meson.build
index d385a20..f766a28 100644
--- a/gen/com/meta/Hardware/meson.build
+++ b/gen/com/meta/Hardware/meson.build
@@ -1,6 +1,7 @@
 # Generated file; do not modify.
 subdir('BMC')
 subdir('Harma')
+subdir('Yosemite5')
 
 sdbusplus_current_path = 'com/meta/Hardware'
 
@@ -48,3 +49,25 @@
     build_by_default: should_generate_markdown,
 )
 
+generated_markdown += custom_target(
+    'com/meta/Hardware/Yosemite5__markdown'.underscorify(),
+    input: ['../../../../yaml/com/meta/Hardware/Yosemite5.interface.yaml'],
+    output: ['Yosemite5.md'],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog,
+        '--command',
+        'markdown',
+        '--output',
+        meson.current_build_dir(),
+        '--tool',
+        sdbusplusplus_prog,
+        '--directory',
+        meson.current_source_dir() / '../../../../yaml',
+        'com/meta/Hardware/Yosemite5',
+    ],
+    install: should_generate_markdown,
+    install_dir: [inst_markdown_dir / sdbusplus_current_path],
+    build_by_default: should_generate_markdown,
+)
+
diff --git a/yaml/com/meta/Hardware/Yosemite5.interface.yaml b/yaml/com/meta/Hardware/Yosemite5.interface.yaml
new file mode 100644
index 0000000..b13bced
--- /dev/null
+++ b/yaml/com/meta/Hardware/Yosemite5.interface.yaml
@@ -0,0 +1,18 @@
+description: >
+    This interface is not meant to be instantiated directly. It defines the
+    supported hardware devices specific to the Yosemite5.
+
+enumerations:
+    - name: SPI
+      description: >
+          The compatible hardware strings for the SPI flash on Yosemite5.
+      values:
+          - name: Host
+
+    - name: CPLD
+      description: >
+          The compatible hardware strings for the CPLD on Yosemite5.
+      values:
+          - name: "LCMXO3D_9400HC_scm"
+          - name: "LCMXO3D_9400HC_mb"
+          - name: "LFMXO5_25_pdb"