configurations: yosemite5: modify e1s board threshold

* modify sensor threshold
* add ADC sensor scale
* add sensor power state

build and test on YV5:
E1S_EB_ADC_P12V_E1S_0_R_VOLT_V  | 12.051612051612052 | Volts
E1S_EB_ADC_P12V_E1S_0_VOLT_V    | 11.985611985611987 | Volts
E1S_EB_ADC_P12V_E1S_1_R_VOLT_V  | 12.051612051612052 | Volts
E1S_EB_ADC_P12V_E1S_1_VOLT_V    | 11.985611985611987 | Volts
E1S_EB_ADC_P12V_STBY_VOLT_V     | 11.985611985611987 | Volts
E1S_EB_ADC_P3V3_AUX_VOLT_V      | 3.34               | Volts
E1S_EB_ADC_P3V3_E1S_0_VOLT_V    | 3.34               | Volts
E1S_EB_ADC_P3V3_E1S_1_VOLT_V    | 3.34               | Volts
E1S_EB_E1S0_TEMP_C              | 42.0               | DegreesC
E1S_EB_E1S1_TEMP_C              | 33.0               | DegreesC
E1S_EB_PMON_E1S0_P12V_CURR_A    | 0.354              | Amperes
E1S_EB_PMON_E1S0_P12V_PWR_W     | 4.225              | Watts
E1S_EB_PMON_E1S0_P12V_VOLT_V    | 12.058             | Volts
E1S_EB_PMON_E1S1_P12V_CURR_A    | 0.259              | Amperes
E1S_EB_PMON_E1S1_P12V_PWR_W     | 3.125              | Watts
E1S_EB_PMON_E1S1_P12V_VOLT_V    | 12.052             | Volts

Change-Id: I144350d8d0fd27a541484231d17070ec5ff45434
Signed-off-by: Ken Chen <Ken.Chen@quantatw.com>
diff --git a/configurations/meta/yosemite5_e1s_expansion_board.json b/configurations/meta/yosemite5_e1s_expansion_board.json
index 7e696f8..6930f8b 100644
--- a/configurations/meta/yosemite5_e1s_expansion_board.json
+++ b/configurations/meta/yosemite5_e1s_expansion_board.json
@@ -65,35 +65,35 @@
                 },
                 {
                     "Direction": "less than",
-                    "Hysteresis": 0.228,
+                    "Hysteresis": 0.2232,
                     "Label": "in3",
                     "Name": "lower critical",
                     "Severity": 1,
-                    "Value": 11.4
+                    "Value": 11.16
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.252,
+                    "Hysteresis": 0.2568,
                     "Label": "in3",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 12.6
+                    "Value": 12.84
                 },
                 {
                     "Direction": "less than",
-                    "Hysteresis": 0.228,
+                    "Hysteresis": 0.2232,
                     "Label": "in4",
                     "Name": "lower critical",
                     "Severity": 1,
-                    "Value": 11.4
+                    "Value": 11.16
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.252,
+                    "Hysteresis": 0.2568,
                     "Label": "in4",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 12.6
+                    "Value": 12.84
                 },
                 {
                     "Direction": "less than",
@@ -113,46 +113,60 @@
                 },
                 {
                     "Direction": "less than",
-                    "Hysteresis": 0.228,
+                    "Hysteresis": 0.2232,
                     "Label": "in6",
                     "Name": "lower critical",
                     "Severity": 1,
-                    "Value": 11.4
+                    "Value": 11.16
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.252,
+                    "Hysteresis": 0.2568,
                     "Label": "in6",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 12.6
+                    "Value": 12.84
                 },
                 {
                     "Direction": "less than",
-                    "Hysteresis": 0.228,
+                    "Hysteresis": 0.2232,
                     "Label": "in7",
                     "Name": "lower critical",
                     "Severity": 1,
-                    "Value": 11.4
+                    "Value": 11.16
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.252,
+                    "Hysteresis": 0.2568,
                     "Label": "in7",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 12.6
+                    "Value": 12.84
                 }
             ],
             "Type": "ADS7830",
-            "in0_Name": "E1S_EB_P12V_STBY_VOLT_V",
-            "in1_Name": "E1S_EB_P3V3_AUX_VOLT_V",
-            "in2_Name": "E1S_EB_P3V3_E1S_0_VOLT_V",
-            "in3_Name": "E1S_EB_P12V_E1S_0_VOLT_V",
-            "in4_Name": "E1S_EB_P12V_E1S_0_R_VOLT_V",
-            "in5_Name": "E1S_EB_P3V3_E1S_1_VOLT_V",
-            "in6_Name": "E1S_EB_P12V_E1S_1_VOLT_V",
-            "in7_Name": "E1S_EB_P12V_E1S_1_R_VOLT_V"
+            "in0_Name": "E1S_EB_ADC_P12V_STBY_VOLT_V",
+            "in0_Scale": 151.515,
+            "in1_Name": "E1S_EB_ADC_P3V3_AUX_VOLT_V",
+            "in1_Scale": 500,
+            "in2_Name": "E1S_EB_ADC_P3V3_E1S_0_VOLT_V",
+            "in2_PowerState": "On",
+            "in2_Scale": 500,
+            "in3_Name": "E1S_EB_ADC_P12V_E1S_0_VOLT_V",
+            "in3_PowerState": "On",
+            "in3_Scale": 151.515,
+            "in4_Name": "E1S_EB_ADC_P12V_E1S_0_R_VOLT_V",
+            "in4_PowerState": "On",
+            "in4_Scale": 151.515,
+            "in5_Name": "E1S_EB_ADC_P3V3_E1S_1_VOLT_V",
+            "in5_PowerState": "On",
+            "in5_Scale": 500,
+            "in6_Name": "E1S_EB_ADC_P12V_E1S_1_VOLT_V",
+            "in6_PowerState": "On",
+            "in6_Scale": 151.515,
+            "in7_Name": "E1S_EB_ADC_P12V_E1S_1_R_VOLT_V",
+            "in7_PowerState": "On",
+            "in7_Scale": 151.515
         },
         {
             "Address": "$address",
@@ -164,197 +178,135 @@
             "Address": "0x40",
             "Bus": 10,
             "Labels": [
-                "vout1",
                 "iout1",
+                "vin",
                 "pout1"
             ],
             "Name": "E1S_EB_PMON_E1S1",
+            "PowerState": "On",
             "Thresholds": [
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.05,
-                    "Label": "iout1",
-                    "Name": "upper non recoverable",
-                    "Severity": 4,
-                    "Value": 2.5
-                },
-                {
-                    "Direction": "greater than",
                     "Hysteresis": 0.044,
                     "Label": "iout1",
-                    "Name": "upper critical",
-                    "Severity": 1,
+                    "Name": "upper non recoverable",
+                    "Severity": 4,
                     "Value": 2.2
                 },
                 {
-                    "Direction": "less than",
-                    "Hysteresis": 0.036,
+                    "Direction": "greater than",
+                    "Hysteresis": 0.0367,
                     "Label": "iout1",
-                    "Name": "lower critical",
+                    "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 1.8
+                    "Value": 1.837
                 },
                 {
                     "Direction": "greater than",
                     "Hysteresis": 0.264,
                     "Label": "vout1",
-                    "Name": "upper non recoverable",
-                    "Severity": 4,
-                    "Value": 13.2
-                },
-                {
-                    "Direction": "greater than",
-                    "Hysteresis": 0.252,
-                    "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 12.6
-                },
-                {
-                    "Direction": "less than",
-                    "Hysteresis": 0.228,
-                    "Label": "vout1",
-                    "Name": "lower critical",
-                    "Severity": 1,
-                    "Value": 11.4
+                    "Value": 13.2
                 },
                 {
                     "Direction": "less than",
                     "Hysteresis": 0.216,
                     "Label": "vout1",
-                    "Name": "lower non recoverable",
-                    "Severity": 4,
+                    "Name": "lower critical",
+                    "Severity": 1,
                     "Value": 10.8
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.6,
+                    "Hysteresis": 0.5,
                     "Label": "pout1",
                     "Name": "upper non recoverable",
                     "Severity": 4,
-                    "Value": 30
+                    "Value": 25
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.55,
+                    "Hysteresis": 0.412,
                     "Label": "pout1",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 27.5
-                },
-                {
-                    "Direction": "less than",
-                    "Hysteresis": 0.45,
-                    "Label": "pout1",
-                    "Name": "lower critical",
-                    "Severity": 1,
-                    "Value": 22.5
+                    "Value": 20.6
                 }
             ],
             "Type": "INA233",
             "iout1_Name": "E1S_EB_PMON_E1S1_P12V_CURR_A",
             "pout1_Name": "E1S_EB_PMON_E1S1_P12V_PWR_W",
-            "vout1_Name": "E1S_EB_PMON_E1S1_P12V_VOLT_V"
+            "vin_Name": "E1S_EB_PMON_E1S1_P12V_VOLT_V"
         },
         {
             "Address": "0x45",
             "Bus": 10,
             "Labels": [
-                "vout1",
                 "iout1",
+                "vin",
                 "pout1"
             ],
             "Name": "E1S_EB_PMON_E1S0",
+            "PowerState": "On",
             "Thresholds": [
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.05,
-                    "Label": "iout1",
-                    "Name": "upper non recoverable",
-                    "Severity": 4,
-                    "Value": 2.5
-                },
-                {
-                    "Direction": "greater than",
                     "Hysteresis": 0.044,
                     "Label": "iout1",
-                    "Name": "upper critical",
-                    "Severity": 1,
+                    "Name": "upper non recoverable",
+                    "Severity": 4,
                     "Value": 2.2
                 },
                 {
-                    "Direction": "less than",
-                    "Hysteresis": 0.036,
+                    "Direction": "greater than",
+                    "Hysteresis": 0.0367,
                     "Label": "iout1",
-                    "Name": "lower critical",
+                    "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 1.8
+                    "Value": 1.837
                 },
                 {
                     "Direction": "greater than",
                     "Hysteresis": 0.264,
                     "Label": "vout1",
-                    "Name": "upper non recoverable",
-                    "Severity": 4,
-                    "Value": 13.2
-                },
-                {
-                    "Direction": "greater than",
-                    "Hysteresis": 0.252,
-                    "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 12.6
-                },
-                {
-                    "Direction": "less than",
-                    "Hysteresis": 0.228,
-                    "Label": "vout1",
-                    "Name": "lower critical",
-                    "Severity": 1,
-                    "Value": 11.4
+                    "Value": 13.2
                 },
                 {
                     "Direction": "less than",
                     "Hysteresis": 0.216,
                     "Label": "vout1",
-                    "Name": "lower non recoverable",
-                    "Severity": 4,
+                    "Name": "lower critical",
+                    "Severity": 1,
                     "Value": 10.8
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.6,
+                    "Hysteresis": 0.5,
                     "Label": "pout1",
                     "Name": "upper non recoverable",
                     "Severity": 4,
-                    "Value": 30
+                    "Value": 25
                 },
                 {
                     "Direction": "greater than",
-                    "Hysteresis": 0.55,
+                    "Hysteresis": 0.412,
                     "Label": "pout1",
                     "Name": "upper critical",
                     "Severity": 1,
-                    "Value": 27.5
-                },
-                {
-                    "Direction": "less than",
-                    "Hysteresis": 0.45,
-                    "Label": "pout1",
-                    "Name": "lower critical",
-                    "Severity": 1,
-                    "Value": 22.5
+                    "Value": 20.6
                 }
             ],
             "Type": "INA233",
             "iout1_Name": "E1S_EB_PMON_E1S0_P12V_CURR_A",
             "pout1_Name": "E1S_EB_PMON_E1S0_P12V_PWR_W",
-            "vout1_Name": "E1S_EB_PMON_E1S0_P12V_VOLT_V"
+            "vin_Name": "E1S_EB_PMON_E1S0_P12V_VOLT_V"
         },
         {
             "Address": "0x6a",
-            "Bus": 18,
+            "Bus": 20,
             "Name": "E1S_EB_E1S0_TEMP_C",
             "PowerState": "On",
             "Thresholds": [
@@ -377,7 +329,7 @@
         },
         {
             "Address": "0x6a",
-            "Bus": 19,
+            "Bus": 21,
             "Name": "E1S_EB_E1S1_TEMP_C",
             "PowerState": "On",
             "Thresholds": [