ventura: Add max setting for sensor trigger

RMC add max setting and threshold value for sensor threshold trigger.

Change-Id: I7d9f60f21af0ce3fea0a10eb07beac25f139aafe
Signed-off-by: Jason Hsu <jason-hsu@quantatw.com>
diff --git a/configurations/meta/ventura_fanboard_adc_tic.json b/configurations/meta/ventura_fanboard_adc_tic.json
index 525e095..4605572 100644
--- a/configurations/meta/ventura_fanboard_adc_tic.json
+++ b/configurations/meta/ventura_fanboard_adc_tic.json
@@ -42,10 +42,12 @@
                     }
                 ],
                 "Type": "ADC128D818",
+                "in0_Max": 18,
                 "in0_Name": "FCB_0_FAN_0_VOLT_V",
                 "in0_Scale": 166.667,
                 "in1_Name": "FCB_0_FAN_0_CURR_A",
                 "in1_Scale": 464,
+                "in2_Max": 18,
                 "in2_Name": "FCB_0_FAN_1_VOLT_V",
                 "in2_Scale": 166.667,
                 "in3_Name": "FCB_0_FAN_1_CURR_A",
@@ -237,10 +239,12 @@
                     }
                 ],
                 "Type": "ADC128D818",
+                "in0_Max": 18,
                 "in0_Name": "FCB_1_FAN_2_VOLT_V",
                 "in0_Scale": 166.667,
                 "in1_Name": "FCB_1_FAN_2_CURR_A",
                 "in1_Scale": 464,
+                "in2_Max": 18,
                 "in2_Name": "FCB_1_FAN_3_VOLT_V",
                 "in2_Scale": 166.667,
                 "in3_Name": "FCB_1_FAN_3_CURR_A",
diff --git a/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json b/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json
index 13b5256..a8f6f2e 100644
--- a/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json
+++ b/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json
@@ -205,13 +205,7 @@
                     "Direction": "greater than",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 45
-                },
-                {
-                    "Direction": "less than",
-                    "Name": "lower critical",
-                    "Severity": 1,
-                    "Value": 0
+                    "Value": 50
                 }
             ],
             "Type": "TMP75"
diff --git a/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json b/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json
index 815c430..024c68e 100644
--- a/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json
+++ b/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json
@@ -36,6 +36,7 @@
             "curr1_Name": "RMC_M12_P24V_CURR_A",
             "curr1_Offset": 0.0015,
             "curr1_Scale": 103.8152089281,
+            "in1_Max": 36,
             "in1_Name": "RMC_M12_P24V_VOLT_V",
             "power1_Name": "RMC_M12_P24V_PWR_W",
             "power1_Offset": 0.0015,
@@ -77,6 +78,7 @@
             "curr1_Name": "RMC_RJ14_P24V_CURR_A",
             "curr1_Offset": -0.0003,
             "curr1_Scale": 104.4004802422,
+            "in1_Max": 36,
             "in1_Name": "RMC_RJ14_P24V_VOLT_V",
             "power1_Name": "RMC_RJ14_P24V_PWR_W",
             "power1_Offset": -0.0161,
@@ -135,13 +137,7 @@
                     "Direction": "greater than",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 45
-                },
-                {
-                    "Direction": "less than",
-                    "Name": "lower critical",
-                    "Severity": 1,
-                    "Value": 0
+                    "Value": 50
                 }
             ],
             "Type": "TMP75"
@@ -205,7 +201,9 @@
             "iout1_Name": "RMC_HSC_CURR_A",
             "pin_Name": "RMC_HSC_PWR_W",
             "temp1_Name": "RMC_HSC_TEMP_C",
+            "vin_Max": 76,
             "vin_Name": "RMC_HSC_VIN_VOLT_V",
+            "vout1_Max": 18,
             "vout1_Name": "RMC_HSC_VOUT_VOLT_V"
         },
         {
@@ -224,7 +222,7 @@
                     "Label": "temp1",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 100
+                    "Value": 105
                 },
                 {
                     "Direction": "less than",
@@ -258,7 +256,9 @@
             "Type": "pmbus",
             "iout1_Name": "RMC_BRICK_CURR_A",
             "temp1_Name": "RMC_BRICK_TEMP_C",
+            "vin_Max": 76,
             "vin_Name": "RMC_BRICK_INPUT_VOLT_V",
+            "vout1_Max": 18,
             "vout1_Name": "RMC_BRICK_OUTPUT_VOLT_V"
         }
     ],
diff --git a/configurations/meta/ventura_scm.json b/configurations/meta/ventura_scm.json
index ea6e56e..e43111a 100644
--- a/configurations/meta/ventura_scm.json
+++ b/configurations/meta/ventura_scm.json
@@ -201,6 +201,14 @@
             "Address": "0x4b",
             "Bus": 9,
             "Name": "SCM_TEMP_C",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 45
+                }
+            ],
             "Type": "TMP75"
         }
     ],