com.meta: add device compatible strings for Catalina

Add the 'Catalina' hierarchy under Meta (Facebook) and define compatible
strings for the currently supported devices.

Change-Id: Ie9b3f3c1f8f3ca75c4ba07d3dd6cdab59e714fe6
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
diff --git a/gen/com/meta/Hardware/Catalina/meson.build b/gen/com/meta/Hardware/Catalina/meson.build
new file mode 100644
index 0000000..90c4332
--- /dev/null
+++ b/gen/com/meta/Hardware/Catalina/meson.build
@@ -0,0 +1,38 @@
+# Generated file; do not modify.
+
+sdbusplus_current_path = 'com/meta/Hardware/Catalina'
+
+generated_sources += custom_target(
+    'com/meta/Hardware/Catalina__cpp'.underscorify(),
+    input: ['../../../../../yaml/com/meta/Hardware/Catalina.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/Catalina',
+    ],
+    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 4c7f86a..78831b6 100644
--- a/gen/com/meta/Hardware/meson.build
+++ b/gen/com/meta/Hardware/meson.build
@@ -1,5 +1,6 @@
 # Generated file; do not modify.
 subdir('BMC')
+subdir('Catalina')
 subdir('Harma')
 subdir('Minerva')
 subdir('Santabarbara')
@@ -30,6 +31,28 @@
 )
 
 generated_markdown += custom_target(
+    'com/meta/Hardware/Catalina__markdown'.underscorify(),
+    input: ['../../../../yaml/com/meta/Hardware/Catalina.interface.yaml'],
+    output: ['Catalina.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/Catalina',
+    ],
+    install: should_generate_markdown,
+    install_dir: [inst_markdown_dir / sdbusplus_current_path],
+    build_by_default: should_generate_markdown,
+)
+
+generated_markdown += custom_target(
     'com/meta/Hardware/Harma__markdown'.underscorify(),
     input: ['../../../../yaml/com/meta/Hardware/Harma.interface.yaml'],
     output: ['Harma.md'],
diff --git a/yaml/com/meta/Hardware/Catalina.interface.yaml b/yaml/com/meta/Hardware/Catalina.interface.yaml
new file mode 100644
index 0000000..e8cdf85
--- /dev/null
+++ b/yaml/com/meta/Hardware/Catalina.interface.yaml
@@ -0,0 +1,19 @@
+description: >
+    This interface is never intended to be instantiated, but is used to define
+    devices for Catalina.
+
+enumerations:
+    - name: CPLD
+      description: >
+          The compatible hardware strings for the CPLD on Catalina.
+      values:
+          - name: "LCMXO2_4000HC_hdd"
+          - name: "LCMXO3LF_4300C_pdb"
+
+    - name: VR
+      description: >
+          The compatible hardware strings for the VR on Catalina.
+      values:
+          - name: RAA228004_n1
+          - name: RAA228004_n2
+          - name: RAA228004_aux