wspoon: Configure zone thermal mode properties

Populate the properties on the Control.ThermalMode interface with the
list of supported modes along with setting the default value of the
current mode.

With setting these modes to uppercase, the events must also be updated
to match to effectively load process the event using this property.

Tested:
    Introspected the zone object and verified the values of each
property when fan control initializes the zone.

Requires:
    https://gerrit.openbmc-project.xyz/18474

Change-Id: I9a7743891e7eaa62e3ebc4b5e08cfa6defca88c5
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml b/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml
index 29dd2c7..d31b304 100644
--- a/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml
+++ b/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml
@@ -16,6 +16,30 @@
       default_floor: 8000
       increase_delay: 5
       decrease_interval: 30
+      interfaces:
+          - name: xyz.openbmc_project.Control.ThermalMode
+            properties:
+                - name: Supported
+                  type: array[string]
+                  values:
+                      - value: DEFAULT
+                        description: >
+                            Default thermal control mode
+                      - value: CUSTOM
+                        description: >
+                            Custom thermal control mode for handling the use of
+                            optical cables located behind the GPU exhaust that
+                            could produce overtemp warnings without this mode
+                            enabled.
+                - name: Current
+                  type: string
+                  persist: true
+                  values:
+                      - value: DEFAULT
+                        description: >
+                            Set current thermal control mode to the
+                            default which will be replaced on startup if
+                            another selected mode was persisted.
 
 #Water cooled zones
 - zone_conditions:
@@ -30,3 +54,20 @@
       default_floor: 8000
       increase_delay: 5
       decrease_interval: 30
+      interfaces:
+          - name: xyz.openbmc_project.Control.ThermalMode
+            properties:
+                - name: Supported
+                  type: array[string]
+                  values:
+                      - value: DEFAULT
+                        description: >
+                            Default thermal control mode
+                - name: Current
+                  type: string
+                  persist: true
+                  values:
+                      - value: DEFAULT
+                        description: >
+                            Set current thermal control mode to the
+                            default. No other modes are supported.