configuration: add fan table in yosemite4 config files

Add fan table in the config files so that the fan table could be created
dynamically according to the FRU devices.

Change-Id: I9895e376daf6ecceab09882b960db3eb3b4c785b
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/configurations/yosemite4_sentineldome.json b/configurations/yosemite4_sentineldome.json
index 5c298e5..9d368ee 100644
--- a/configurations/yosemite4_sentineldome.json
+++ b/configurations/yosemite4_sentineldome.json
@@ -1,5 +1,419 @@
 {
-    "Exposes": [],
+    "Exposes": [
+        {
+            "CheckHysteresisWithSetpoint": true,
+            "Class": "temp",
+            "DCoefficient": 0.0,
+            "FFGainCoefficient": 0.0,
+            "FFOffCoefficient": 0.0,
+            "ICoefficient": -0.035,
+            "ILimitMax": 100,
+            "ILimitMin": -50,
+            "InputUnavailableAsFailed": false,
+            "Inputs": [
+                "MB_DIMM_A_TEMP_C_5 $bus % 15 * 10",
+                "MB_DIMM_B_TEMP_C_6 $bus % 15 * 10",
+                "MB_DIMM_C_TEMP_C_7 $bus % 15 * 10",
+                "MB_DIMM_D_TEMP_C_8 $bus % 15 * 10",
+                "MB_DIMM_E_TEMP_C_9 $bus % 15 * 10",
+                "MB_DIMM_F_TEMP_C_10 $bus % 15 * 10",
+                "MB_DIMM_G_TEMP_C_11 $bus % 15 * 10",
+                "MB_DIMM_H_TEMP_C_12 $bus % 15 * 10",
+                "MB_DIMM_I_TEMP_C_13 $bus % 15 * 10",
+                "MB_DIMM_J_TEMP_C_14 $bus % 15 * 10",
+                "MB_DIMM_K_TEMP_C_15 $bus % 15 * 10",
+                "MB_DIMM_L_TEMP_C_16 $bus % 15 * 10"
+            ],
+            "Name": "PID_MB_DIMM $bus % 15 * 10",
+            "NegativeHysteresis": 2.0,
+            "OutLimitMax": 100,
+            "OutLimitMin": 0,
+            "PCoefficient": -3.0,
+            "PositiveHysteresis": 0.0,
+            "SetPoint": 75.0,
+            "SlewNeg": 0.0,
+            "SlewPos": 0.0,
+            "Type": "Pid",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "CheckHysteresisWithSetpoint": true,
+            "Class": "temp",
+            "DCoefficient": 0.0,
+            "FFGainCoefficient": 0.0,
+            "FFOffCoefficient": 0.0,
+            "ICoefficient": -0.035,
+            "ILimitMax": 100,
+            "ILimitMin": -50,
+            "Inputs": [
+                "MB_CPU_TEMP_C_4 $bus % 15 * 10"
+            ],
+            "Name": "PID_MB_CPU $bus % 15 * 10",
+            "NegativeHysteresis": 3.0,
+            "OutLimitMax": 100,
+            "OutLimitMin": 0,
+            "PCoefficient": -5.5,
+            "PositiveHysteresis": 0.0,
+            "SetPoint": 74.0,
+            "SlewNeg": 0.0,
+            "SlewPos": 0.0,
+            "Type": "Pid",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "CheckHysteresisWithSetpoint": true,
+            "Class": "temp",
+            "DCoefficient": 0.0,
+            "FFGainCoefficient": 0.0,
+            "FFOffCoefficient": 0.0,
+            "ICoefficient": -0.02,
+            "ILimitMax": 100,
+            "ILimitMin": -50,
+            "Inputs": [
+                "MB_SSD_BOOT_TEMP_C_17 $bus % 15 * 10"
+            ],
+            "Name": "PID_MB_SSD_BOOT $bus % 15 * 10",
+            "NegativeHysteresis": 2.0,
+            "OutLimitMax": 100,
+            "OutLimitMin": 0,
+            "PCoefficient": -1.5,
+            "PositiveHysteresis": 0.0,
+            "SetPoint": 68.0,
+            "SlewNeg": 0.0,
+            "SlewPos": 0.0,
+            "Type": "Pid",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "CheckHysteresisWithSetpoint": true,
+            "Class": "temp",
+            "DCoefficient": 0.0,
+            "FFGainCoefficient": 0.0,
+            "FFOffCoefficient": 0.0,
+            "ICoefficient": -0.02,
+            "ILimitMax": 100,
+            "ILimitMin": -50,
+            "InputUnavailableAsFailed": false,
+            "Inputs": [
+                "MB_SSD_DATA_TEMP_C_18 $bus % 15 * 10"
+            ],
+            "Name": "PID_MB_SSD_DATA $bus % 15 * 10",
+            "NegativeHysteresis": 2.0,
+            "OutLimitMax": 100,
+            "OutLimitMin": 0,
+            "PCoefficient": -1.5,
+            "PositiveHysteresis": 0.0,
+            "SetPoint": 68.0,
+            "SlewNeg": 0.0,
+            "SlewPos": 0.0,
+            "Type": "Pid",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "CheckHysteresisWithSetpoint": true,
+            "Class": "temp",
+            "DCoefficient": 0.0,
+            "FFGainCoefficient": 0.0,
+            "FFOffCoefficient": 0.0,
+            "ICoefficient": -0.02,
+            "ILimitMax": 100,
+            "ILimitMin": -50,
+            "Inputs": [
+                "MB_VR_CPU0_TEMP_C_19 $bus % 15 * 10",
+                "MB_VR_SOC_TEMP_C_20 $bus % 15 * 10",
+                "MB_VR_CPU1_TEMP_C_21 $bus % 15 * 10",
+                "MB_VR_PVDDIO_TEMP_C_22 $bus % 15 * 10",
+                "MB_VR_PVDD11_TEMP_C_23 $bus % 15 * 10"
+            ],
+            "Name": "PID_SD_VR $bus % 15 * 10",
+            "NegativeHysteresis": 3.0,
+            "OutLimitMax": 100,
+            "OutLimitMin": 0,
+            "PCoefficient": -3.0,
+            "PositiveHysteresis": 0.0,
+            "SetPoint": 90.0,
+            "SlewNeg": 0.0,
+            "SlewPos": 0.0,
+            "Type": "Pid",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "MB_INLET_TEMP_C_1 $bus % 15 * 10",
+                "MB_OUTLET_TEMP_C_2 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_MB_INLET_OUTLET_TEMP $bus % 15 * 10",
+            "NegativeHysteresis": 0,
+            "Output": [
+                20.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                20.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "InputUnavailableAsFailed": false,
+            "Inputs": [
+                "MB_X8_RETIMER_TEMP_C_24 $bus % 15 * 10",
+                "MB_X16_RETIMER_TEMP_C_25 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_MB_RETIMER_TEMP $bus % 15 * 10",
+            "NegativeHysteresis": 0,
+            "Output": [
+                20.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                20.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "Calibrated_MB_FIO_TEMP_C_3 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_MB_FIO $bus % 15 * 10",
+            "NegativeHysteresis": 2,
+            "Output": [
+                20.0,
+                21.0,
+                22.0,
+                23.0,
+                24.0,
+                25.0,
+                26.0,
+                27.0,
+                28.0,
+                29.0,
+                30.0,
+                31.0,
+                31.0,
+                33.0,
+                35.0,
+                37.0,
+                38.0,
+                39.0,
+                40.0,
+                41.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                20.0,
+                21.0,
+                22.0,
+                23.0,
+                24.0,
+                25.0,
+                26.0,
+                27.0,
+                28.0,
+                29.0,
+                30.0,
+                31.0,
+                32.0,
+                33.0,
+                34.0,
+                35.0,
+                36.0,
+                37.0,
+                38.0,
+                39.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "InputUnavailableAsFailed": false,
+            "Inputs": [
+                "MB_DIMM_A_TEMP_C_5 $bus % 15 * 10",
+                "MB_DIMM_B_TEMP_C_6 $bus % 15 * 10",
+                "MB_DIMM_C_TEMP_C_7 $bus % 15 * 10",
+                "MB_DIMM_D_TEMP_C_8 $bus % 15 * 10",
+                "MB_DIMM_E_TEMP_C_9 $bus % 15 * 10",
+                "MB_DIMM_F_TEMP_C_10 $bus % 15 * 10",
+                "MB_DIMM_G_TEMP_C_11 $bus % 15 * 10",
+                "MB_DIMM_H_TEMP_C_12 $bus % 15 * 10",
+                "MB_DIMM_I_TEMP_C_13 $bus % 15 * 10",
+                "MB_DIMM_J_TEMP_C_14 $bus % 15 * 10",
+                "MB_DIMM_K_TEMP_C_15 $bus % 15 * 10",
+                "MB_DIMM_L_TEMP_C_16 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_MB_DIMM $bus % 15 * 10",
+            "NegativeHysteresis": 2,
+            "Output": [
+                20.0,
+                22.0,
+                24.0,
+                26.0,
+                28.0,
+                30.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                65.0,
+                66.0,
+                67.0,
+                68.0,
+                69.0,
+                70.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "MB_CPU_TEMP_C_4 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_MB_CPU $bus % 15 * 10",
+            "NegativeHysteresis": 3,
+            "Output": [
+                20.0,
+                25.0,
+                30.0,
+                35.0,
+                40.0,
+                45.0,
+                50.0,
+                55.0,
+                60.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                66.0,
+                67.0,
+                68.0,
+                69.0,
+                70.0,
+                71.0,
+                72.0,
+                73.0,
+                74.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "MB_SSD_BOOT_TEMP_C_17 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_MB_SSD_BOOT $bus % 15 * 10",
+            "NegativeHysteresis": 2,
+            "Output": [
+                20.0,
+                22.0,
+                24.0,
+                26.0,
+                28.0,
+                30.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                58.0,
+                59.0,
+                60.0,
+                61.0,
+                62.0,
+                63.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "InputUnavailableAsFailed": false,
+            "Inputs": [
+                "MB_SSD_DATA_TEMP_C_18 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_MB_SSD_DATA $bus % 15 * 10",
+            "NegativeHysteresis": 2,
+            "Output": [
+                20.0,
+                22.0,
+                24.0,
+                26.0,
+                28.0,
+                30.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                58.0,
+                59.0,
+                60.0,
+                61.0,
+                62.0,
+                63.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "Inputs": [
+                "MB_VR_CPU0_TEMP_C_19 $bus % 15 * 10",
+                "MB_VR_SOC_TEMP_C_20 $bus % 15 * 10",
+                "MB_VR_CPU1_TEMP_C_21 $bus % 15 * 10",
+                "MB_VR_PVDDIO_TEMP_C_22 $bus % 15 * 10",
+                "MB_VR_PVDD11_TEMP_C_23 $bus % 15 * 10"
+            ],
+            "Name": "Stepwise_SD_VR $bus % 15 * 10",
+            "NegativeHysteresis": 3,
+            "Output": [
+                20.0,
+                22.0,
+                24.0,
+                26.0,
+                28.0,
+                30.0
+            ],
+            "PositiveHysteresis": 0,
+            "Reading": [
+                80.0,
+                81.0,
+                82.0,
+                83.0,
+                84.0,
+                85.0
+            ],
+            "Type": "Stepwise",
+            "Zones": [
+                "Zone 1"
+            ]
+        }
+    ],
     "Name": "Yosemite 4 Sentinel Dome Slot $bus % 15",
     "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'Sentinel Dome', 'PRODUCT_PRODUCT_NAME': 'Yosemite V4'})",
     "Type": "Board",