configurations/sbp1: Add MAX6639 thresholds

Use 50 degrees and 60 degrees celsius as upper thresholds for
MAX6639 temperature sensors.

Change-Id: I9003b8b00adf6d5a2b83a857dea9fda3e2921cdf
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
diff --git a/configurations/sbp1_baseboard.json b/configurations/sbp1_baseboard.json
index e88cdc3..692471f 100644
--- a/configurations/sbp1_baseboard.json
+++ b/configurations/sbp1_baseboard.json
@@ -3267,6 +3267,24 @@
             "Name": "Fan01 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3278,6 +3296,24 @@
             "Name": "Fan02 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3289,6 +3325,24 @@
             "Name": "Fan03 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3300,6 +3354,24 @@
             "Name": "Fan04 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3311,6 +3383,24 @@
             "Name": "Fan05 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3322,6 +3412,24 @@
             "Name": "Fan06 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3333,6 +3441,24 @@
             "Name": "Fan07 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3344,6 +3470,24 @@
             "Name": "Fan08 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3355,6 +3499,24 @@
             "Name": "Fan09 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3366,6 +3528,24 @@
             "Name": "Fan10 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3377,6 +3557,24 @@
             "Name": "Fan11 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3388,6 +3586,24 @@
             "Name": "Fan12 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3399,6 +3615,24 @@
             "Name": "Fan13 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3410,6 +3644,24 @@
             "Name": "Fan14 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3421,6 +3673,24 @@
             "Name": "Fan15 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3432,6 +3702,24 @@
             "Name": "Fan16 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3443,6 +3731,24 @@
             "Name": "Fan17 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3454,6 +3760,24 @@
             "Name": "Fan18 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3465,6 +3789,24 @@
             "Name": "Fan19 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3476,6 +3818,24 @@
             "Name": "Fan20 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3487,6 +3847,24 @@
             "Name": "Fan21 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3498,6 +3876,24 @@
             "Name": "Fan22 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3509,6 +3905,24 @@
             "Name": "Fan23 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {
@@ -3520,6 +3934,24 @@
             "Name": "Fan24 Temperature",
             "PollRate": 5.0,
             "PowerState": "Always",
+            "Thresholds": [
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.6,
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Hysteresis": 0.5,
+                    "Label": "temp1",
+                    "Name": "upper non critical",
+                    "Severity": 0,
+                    "Value": 50.0
+                }
+            ],
             "Type": "MAX6639"
         },
         {