control:p10bmc: Add inc/dec actions for PCIe temps

Add the net increase and decrease actions for IBM's PCIe cable card
temperatures.  These are provided by a TMP435 sitting on either:
* Flett NVMe JBOF card (Rainier only)
* Bear River(Rainier-2U)/Bear Lake(Rainier 4U/Everest) PCIe cable card

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I0ab4f3ddbf5b1f40b7337a1bb4d1c961b0c3c41f
diff --git a/control/config_files/p10bmc/ibm,everest/events.json b/control/config_files/p10bmc/ibm,everest/events.json
index 584a260..812d42e 100644
--- a/control/config_files/p10bmc/ibm,everest/events.json
+++ b/control/config_files/p10bmc/ibm,everest/events.json
@@ -1246,6 +1246,18 @@
          "delta": 255
        },
        {
+         "name": "set_net_increase_target",
+         "groups": [
+           {
+             "name": "bear lake temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 70.0,
+         "delta": 255
+       },
+       {
          "name": "set_net_decrease_target",
          "groups": [
            {
@@ -1532,6 +1544,18 @@
          ],
          "state": 63.0,
          "delta": 80
+       },
+       {
+         "name": "set_net_decrease_target",
+         "groups": [
+           {
+             "name": "bear lake temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 65.0,
+         "delta": 80
        }
      ]
    },
diff --git a/control/config_files/p10bmc/ibm,everest/groups.json b/control/config_files/p10bmc/ibm,everest/groups.json
index 59235cf..95df1c8 100644
--- a/control/config_files/p10bmc/ibm,everest/groups.json
+++ b/control/config_files/p10bmc/ibm,everest/groups.json
@@ -868,5 +868,18 @@
      "/xyz/openbmc_project/sensors/temperature/PCIE_0_Temp",
      "/xyz/openbmc_project/sensors/temperature/PCIE_1_Temp"
    ]
+ },
+ {
+   "name": "bear lake temps",
+   "members": [
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_1_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_2_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_3_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_4_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_5_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_6_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_7_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_8_Temp"
+   ]
  }
 ]
diff --git a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
index 9e3be2e..6771da4 100644
--- a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
@@ -538,6 +538,30 @@
          "delta": 255
        },
        {
+         "name": "set_net_increase_target",
+         "groups": [
+           {
+             "name": "flett temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 70.0,
+         "delta": 255
+       },
+       {
+         "name": "set_net_increase_target",
+         "groups": [
+           {
+             "name": "bear lake temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 70.0,
+         "delta": 255
+       },
+       {
          "name": "set_net_decrease_target",
          "groups": [
            {
@@ -680,6 +704,30 @@
          ],
          "state": 60.0,
          "delta": 80
+       },
+       {
+         "name": "set_net_decrease_target",
+         "groups": [
+           {
+             "name": "flett temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 65.0,
+         "delta": 80
+       },
+       {
+         "name": "set_net_decrease_target",
+         "groups": [
+           {
+             "name": "bear lake temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 65.0,
+         "delta": 80
        }
      ]
    },
diff --git a/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json b/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
index 3f3b6f9..bfbddb3 100644
--- a/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
+++ b/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
@@ -296,5 +296,18 @@
      "/xyz/openbmc_project/sensors/temperature/PCIE_0_Temp",
      "/xyz/openbmc_project/sensors/temperature/PCIE_1_Temp"
    ]
+ },
+ {
+   "name": "flett temps",
+   "members": [
+       "/xyz/openbmc_project/sensors/temperature/NVMe_JBOF_Card_1_Temp",
+       "/xyz/openbmc_project/sensors/temperature/NVMe_JBOF_Card_2_Temp"
+   ]
+ },
+ {
+   "name": "bear lake temps",
+   "members": [
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_1_Temp"
+   ]
  }
 ]
diff --git a/control/config_files/p10bmc/ibm,rainier-2u/events.json b/control/config_files/p10bmc/ibm,rainier-2u/events.json
index 0844a55..7db19bb 100644
--- a/control/config_files/p10bmc/ibm,rainier-2u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-2u/events.json
@@ -784,6 +784,30 @@
          "delta": 255
        },
        {
+         "name": "set_net_increase_target",
+         "groups": [
+           {
+             "name": "flett temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 70.0,
+         "delta": 255
+       },
+       {
+         "name": "set_net_increase_target",
+         "groups": [
+           {
+             "name": "bear river temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 70.0,
+         "delta": 255
+       },
+       {
          "name": "set_net_decrease_target",
          "groups": [
            {
@@ -974,6 +998,30 @@
          ],
          "state": 60.0,
          "delta": 80
+       },
+       {
+         "name": "set_net_decrease_target",
+         "groups": [
+           {
+             "name": "flett temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 65.0,
+         "delta": 80
+       },
+       {
+         "name": "set_net_decrease_target",
+         "groups": [
+           {
+             "name": "bear river temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 65.0,
+         "delta": 80
        }
      ]
    },
diff --git a/control/config_files/p10bmc/ibm,rainier-2u/groups.json b/control/config_files/p10bmc/ibm,rainier-2u/groups.json
index 0b2c9ea..f2ea582 100644
--- a/control/config_files/p10bmc/ibm,rainier-2u/groups.json
+++ b/control/config_files/p10bmc/ibm,rainier-2u/groups.json
@@ -494,5 +494,21 @@
      "/xyz/openbmc_project/sensors/temperature/PCIE_0_Temp",
      "/xyz/openbmc_project/sensors/temperature/PCIE_1_Temp"
    ]
+ },
+ {
+   "name": "flett temps",
+   "members": [
+       "/xyz/openbmc_project/sensors/temperature/NVMe_JBOF_Card_1_Temp",
+       "/xyz/openbmc_project/sensors/temperature/NVMe_JBOF_Card_2_Temp"
+   ]
+ },
+ {
+   "name": "bear river temps",
+   "members": [
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_1_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_2_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_3_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_4_Temp"
+   ]
  }
 ]
diff --git a/control/config_files/p10bmc/ibm,rainier-4u/events.json b/control/config_files/p10bmc/ibm,rainier-4u/events.json
index 0652943..b563dee 100644
--- a/control/config_files/p10bmc/ibm,rainier-4u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-4u/events.json
@@ -785,6 +785,30 @@
          "delta": 255
        },
        {
+         "name": "set_net_increase_target",
+         "groups": [
+           {
+             "name": "flett temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 70.0,
+         "delta": 255
+       },
+       {
+         "name": "set_net_increase_target",
+         "groups": [
+           {
+             "name": "bear lake temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 70.0,
+         "delta": 255
+       },
+       {
          "name": "set_net_decrease_target",
          "groups": [
            {
@@ -975,6 +999,30 @@
          ],
          "state": 60.0,
          "delta": 80
+       },
+       {
+         "name": "set_net_decrease_target",
+         "groups": [
+           {
+             "name": "flett temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 65.0,
+         "delta": 80
+       },
+       {
+         "name": "set_net_decrease_target",
+         "groups": [
+           {
+             "name": "bear lake temps",
+             "interface": "xyz.openbmc_project.Sensor.Value",
+             "property": { "name": "Value" }
+           }
+         ],
+         "state": 65.0,
+         "delta": 80
        }
      ]
    },
diff --git a/control/config_files/p10bmc/ibm,rainier-4u/groups.json b/control/config_files/p10bmc/ibm,rainier-4u/groups.json
index d125512..0df885c 100644
--- a/control/config_files/p10bmc/ibm,rainier-4u/groups.json
+++ b/control/config_files/p10bmc/ibm,rainier-4u/groups.json
@@ -504,5 +504,21 @@
      "/xyz/openbmc_project/sensors/temperature/PCIE_0_Temp",
      "/xyz/openbmc_project/sensors/temperature/PCIE_1_Temp"
    ]
+ },
+ {
+   "name": "flett temps",
+   "members": [
+       "/xyz/openbmc_project/sensors/temperature/NVMe_JBOF_Card_1_Temp",
+       "/xyz/openbmc_project/sensors/temperature/NVMe_JBOF_Card_2_Temp"
+   ]
+ },
+ {
+   "name": "bear lake temps",
+   "members": [
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_1_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_2_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_3_Temp",
+       "/xyz/openbmc_project/sensors/temperature/PCIe_Cable_Card_4_Temp"
+   ]
  }
 ]