Add stepwise FSC configurations for FBTP

Added stepwise config for INLET, Mezz, DTS cpu and Dimm sensors
for Facebook Tiogapass platform based on data from thermal team.

PID configuration needs revision and will update after testing.

Tested and see expected results in  dbus interface.

Change-Id: I01b17edad9948f742c14a29cc2df7dfb5a47ef2f
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
diff --git a/configurations/FBTP.json b/configurations/FBTP.json
index 24d2276..dcaeeb7 100644
--- a/configurations/FBTP.json
+++ b/configurations/FBTP.json
@@ -262,7 +262,7 @@
             ],
             "Name": "MB_FAN0_TACH",
             "OutLimitMax": 100.0,
-            "OutLimitMin": 30.0,
+            "OutLimitMin": 10.0,
             "Outputs": [
                 "Pwm 1"
             ],
@@ -271,7 +271,7 @@
             "SlewPos": 0.0,
             "Type": "Pid",
             "Zones": [
-                "Pid 1"
+                "Left"
             ]
         },
         {
@@ -286,7 +286,7 @@
             ],
             "Name": "MB_FAN1_TACH",
             "OutLimitMax": 100.0,
-            "OutLimitMin": 30.0,
+            "OutLimitMin": 10.0,
             "Outputs": [
                 "Pwm 2"
             ],
@@ -295,7 +295,7 @@
             "SlewPos": 0.0,
             "Type": "Pid",
             "Zones": [
-                "Pid 1"
+                "Left"
             ]
         },
         {
@@ -304,70 +304,285 @@
             "FFOffCoefficient": 0.0,
             "ICoefficient": -0.2,
             "ILimitMax": 70,
-            "ILimitMin": 30,
+            "ILimitMin": 10,
+            "Inputs": [
+                "DTS_CPU1"
+            ],
+            "Name": "DTS_CPU1",
+            "OutLimitMax": 70,
+            "OutLimitMin": 10,
+            "Outputs": [],
+            "PCoefficient": -3.0,
+            "SetPoint": 45.0,
+            "SlewNeg": -1,
+            "SlewPos": 0.0,
+            "Type": "Pid",
+            "Zones": [
+                "Left"
+            ]
+        },
+        {
+            "Class": "temp",
+            "FFGainCoefficient": 0.0,
+            "FFOffCoefficient": 0.0,
+            "ICoefficient": -0.2,
+            "ILimitMax": 70,
+            "ILimitMin": 10,
+            "Inputs": [
+                "DTS_CPU2"
+            ],
+            "Name": "DTS_CPU2",
+            "OutLimitMax": 70,
+            "OutLimitMin": 10,
+            "Outputs": [],
+            "PCoefficient": -3.0,
+            "SetPoint": 45.0,
+            "SlewNeg": -1,
+            "SlewPos": 0.0,
+            "Type": "Pid",
+            "Zones": [
+                "Left"
+            ]
+        },
+        {
+            "Class": "temp",
             "Inputs": [
                 "MB_INLET_TEMP"
             ],
-            "Name": "MB_INLET_TEMP",
-            "OutLimitMax": 70,
-            "OutLimitMin": 30,
-            "Outputs": [],
-            "PCoefficient": -3.0,
-            "SetPoint": 45.0,
-            "SlewNeg": -1,
-            "SlewPos": 0.0,
-            "Type": "Pid",
+            "Name": "MB_INLET_TEMP_STP",
+            "NegativeHysteresis": 0,
+            "Output": [
+                13.0,
+                14.0,
+                16.0,
+                17.0,
+                18.0,
+                19.0,
+                23.0,
+                26.0,
+                30.0,
+                35.0,
+                70.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                20.0,
+                22.0,
+                24.0,
+                26.0,
+                28.0,
+                30.0,
+                32.0,
+                34.0,
+                36.0,
+                38.0,
+                40.0
+            ],
+            "Type": "Stepwise",
             "Zones": [
-                "Pid 1"
+                "Left"
             ]
         },
         {
             "Class": "temp",
-            "FFGainCoefficient": 0.0,
-            "FFOffCoefficient": 0.0,
-            "ICoefficient": -0.2,
-            "ILimitMax": 70,
-            "ILimitMin": 30,
             "Inputs": [
-                "MEZZ_SENSOR_REMOTE_TEMP"
+                "MEZZ_SENSOR_TEMP"
             ],
-            "Name": "MEZZ_SENSOR_REMOTE_TEMP",
-            "OutLimitMax": 70,
-            "OutLimitMin": 30,
-            "Outputs": [],
-            "PCoefficient": -3.0,
-            "SetPoint": 45.0,
-            "SlewNeg": -1,
-            "SlewPos": 0.0,
-            "Type": "Pid",
+            "Name": "MEZZ_SENSOR_TEMP_STP",
+            "NegativeHysteresis": 1,
+            "Output": [
+                10.0,
+                23.0,
+                25.0,
+                27.0,
+                29.0,
+                31.0,
+                70.0
+            ],
+            "PositiveHysteresis": 1,
+            "Reading": [
+                84.0,
+                85.0,
+                87.0,
+                89.0,
+                91.0,
+                93.0,
+                95.0
+            ],
+            "Type": "Stepwise",
             "Zones": [
-                "Pid 1"
+                "Left"
             ]
         },
         {
             "Class": "temp",
-            "FFGainCoefficient": 0.0,
-            "FFOffCoefficient": 0.0,
-            "ICoefficient": -0.2,
-            "ILimitMax": 70,
-            "ILimitMin": 30,
             "Inputs": [
-                "Core 0 CPU1"
+                "DTS_CPU1"
             ],
-            "Name": "Core 0 CPU1",
-            "OutLimitMax": 70,
-            "OutLimitMin": 30,
-            "Outputs": [],
-            "PCoefficient": -3.0,
-            "SetPoint": 45.0,
-            "SlewNeg": -1,
-            "SlewPos": 0.0,
-            "Type": "Pid",
+            "Name": "DTS_CPU1",
+            "NegativeHysteresis": 0,
+            "Output": [
+                14.0,
+                16.0,
+                19.0,
+                22.0,
+                70.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                73.0,
+                75.0,
+                77.0,
+                79.0,
+                91.0
+            ],
+            "Type": "Stepwise",
             "Zones": [
-                "Pid 1"
+                "Left"
             ]
         },
         {
+            "Class": "temp",
+            "Inputs": [
+                "DTS_CPU2"
+            ],
+            "Name": "DTS_CPU2",
+            "NegativeHysteresis": 0,
+            "Output": [
+                14.0,
+                16.0,
+                19.0,
+                22.0,
+                70.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                73.0,
+                75.0,
+                77.0,
+                79.0,
+                91.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Left"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "DIMM_A1_CPU1"
+            ],
+            "Name": "DIMM_A1_CPU1",
+            "NegativeHysteresis": 0,
+            "Output": [
+                10.0,
+                20.0,
+                30.0,
+                50.0,
+                70.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                65.0,
+                70.0,
+                75.0,
+                79.0,
+                81.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Left"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "DIMM_A1_CPU2"
+            ],
+            "Name": "DIMM_A1_CPU2",
+            "NegativeHysteresis": 0,
+            "Output": [
+                10.0,
+                20.0,
+                30.0,
+                50.0,
+                70.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                65.0,
+                70.0,
+                75.0,
+                79.0,
+                81.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Left"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "DIMM_C1_CPU1"
+            ],
+            "Name": "DIMM_C1_CPU1",
+            "NegativeHysteresis": 0,
+            "Output": [
+                10.0,
+                20.0,
+                30.0,
+                50.0,
+                70.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                65.0,
+                70.0,
+                75.0,
+                79.0,
+                81.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Left"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "DIMM_C1_CPU2"
+            ],
+            "Name": "DIMM_C1_CPU2",
+            "NegativeHysteresis": 0,
+            "Output": [
+                10.0,
+                20.0,
+                30.0,
+                50.0,
+                70.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                65.0,
+                70.0,
+                75.0,
+                79.0,
+                81.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Left"
+            ]
+        },
+        {
+            "FailSafePercent": 100,
+            "MinThermalOutput": 10,
+            "Name": "Left",
+            "Type": "Pid.Zone"
+        },
+        {
             "Address": "0x30",
             "Bus": 0,
             "CpuID": 1,