Add new interface Debug.Pid.Thermal/Power

- According to the issue#27, adding new interface to record the driver
  sensor name, driver sensor value and PID loop result to dbus.

interface:
Debug.Pid.ThermalPower => Record the sensor name and reading with the
                          highest temperature or power in the input
                          list. And record the result of pid loop

Debug.Pid.Zone => Record the pid config name that that is driving the
                  fans

refs:
https://github.com/openbmc/phosphor-pid-control/issues/27

Change-Id: I67051616958e07c148eabee658165082855c674d
Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com>
diff --git a/gen/xyz/openbmc_project/Debug/Pid/ThermalPower/meson.build b/gen/xyz/openbmc_project/Debug/Pid/ThermalPower/meson.build
new file mode 100644
index 0000000..36b8d0f
--- /dev/null
+++ b/gen/xyz/openbmc_project/Debug/Pid/ThermalPower/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Debug/Pid/ThermalPower__cpp'.underscorify(),
+    input: [ '../../../../../../yaml/xyz/openbmc_project/Debug/Pid/ThermalPower.interface.yaml',  ],
+    output: [ 'common.hpp', 'server.cpp', 'server.hpp', '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',
+        'xyz/openbmc_project/Debug/Pid/ThermalPower',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Debug/Pid/Zone/meson.build b/gen/xyz/openbmc_project/Debug/Pid/Zone/meson.build
new file mode 100644
index 0000000..3d00581
--- /dev/null
+++ b/gen/xyz/openbmc_project/Debug/Pid/Zone/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Debug/Pid/Zone__cpp'.underscorify(),
+    input: [ '../../../../../../yaml/xyz/openbmc_project/Debug/Pid/Zone.interface.yaml',  ],
+    output: [ 'common.hpp', 'server.cpp', 'server.hpp', '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',
+        'xyz/openbmc_project/Debug/Pid/Zone',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Debug/Pid/meson.build b/gen/xyz/openbmc_project/Debug/Pid/meson.build
new file mode 100644
index 0000000..380351f
--- /dev/null
+++ b/gen/xyz/openbmc_project/Debug/Pid/meson.build
@@ -0,0 +1,31 @@
+# Generated file; do not modify.
+subdir('ThermalPower')
+generated_others += custom_target(
+    'xyz/openbmc_project/Debug/Pid/ThermalPower__markdown'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/Debug/Pid/ThermalPower.interface.yaml',  ],
+    output: [ 'ThermalPower.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',
+        'xyz/openbmc_project/Debug/Pid/ThermalPower',
+    ],
+)
+
+subdir('Zone')
+generated_others += custom_target(
+    'xyz/openbmc_project/Debug/Pid/Zone__markdown'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/Debug/Pid/Zone.interface.yaml',  ],
+    output: [ 'Zone.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',
+        'xyz/openbmc_project/Debug/Pid/Zone',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Debug/meson.build b/gen/xyz/openbmc_project/Debug/meson.build
new file mode 100644
index 0000000..e2d099a
--- /dev/null
+++ b/gen/xyz/openbmc_project/Debug/meson.build
@@ -0,0 +1,2 @@
+# Generated file; do not modify.
+subdir('Pid')
diff --git a/gen/xyz/openbmc_project/meson.build b/gen/xyz/openbmc_project/meson.build
index 9a092ad..f03b941 100644
--- a/gen/xyz/openbmc_project/meson.build
+++ b/gen/xyz/openbmc_project/meson.build
@@ -51,6 +51,7 @@
 subdir('Condition')
 subdir('Console')
 subdir('Control')
+subdir('Debug')
 subdir('Dump')
 subdir('HardwareIsolation')
 generated_others += custom_target(
diff --git a/yaml/xyz/openbmc_project/Debug/Pid/ThermalPower.interface.yaml b/yaml/xyz/openbmc_project/Debug/Pid/ThermalPower.interface.yaml
new file mode 100644
index 0000000..eda0ce7
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Debug/Pid/ThermalPower.interface.yaml
@@ -0,0 +1,41 @@
+description: >
+    Implement to show the states of the first PID control loop(thermal/power).
+
+properties:
+    - name: Leader
+      type: string
+      flags:
+          - readonly
+      description: >
+          This means the name of the thermal sensor that is the highest temp in
+          input sensor list.
+
+    - name: ClassType
+      type: string
+      flags:
+          - readonly
+      description: >
+          The class of this PID loop. It can be "Temperature", "Margin", "Power"
+          or "PowerSum".
+
+    - name: Setpoint
+      type: double
+      flags:
+          - readonly
+      description: >
+          This pid config's setpoint.
+
+    - name: Input
+      type: double
+      flags:
+          - readonly
+      description: >
+          The "Leader" sensor reading.
+
+    - name: Output
+      type: double
+      flags:
+          - readonly
+      description: >
+          This property is the thermal PID loop result. This data doesn't have
+          static unit, it can be RPM or PWM depending on PID parameter settings.
diff --git a/yaml/xyz/openbmc_project/Debug/Pid/Zone.interface.yaml b/yaml/xyz/openbmc_project/Debug/Pid/Zone.interface.yaml
new file mode 100644
index 0000000..076d4fc
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Debug/Pid/Zone.interface.yaml
@@ -0,0 +1,11 @@
+description: >
+    Implement to show the states of the zone.
+
+properties:
+    - name: Leader
+      type: string
+      flags:
+          - readonly
+      description: >
+          This means the name of the thermal/Power PID config that is driving
+          the fans.