configurations: asrock_altrad8: Move PID config into EM

Move the PID configuration from phosphor-pid-control config.json into
the EM asrock_altrad8.json.

Monitor the temperature of the CPU/SoC, DIMMs, VRs and the onboard
10Gb (1L2T) or 25Gb (1L2Q) chips. On the 1L2Q board the Broadcom
BCM57414 is wrongly labeled as X550. That will be fixed in a follow-up
commit.

The setpoint chosen works well on my system with a Fractal Design Define
7 case with 6 case fans and 2 CPU fans cooling an Ampere Altra Q64-22
with 2TB RAM (8x 256GB DIMMs). The CPU remains around 30C while the
DIMMs stay around 60-70C.

Change-Id: If3fe6ea34bac6545ad563e856cb7216c9977dee7
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
diff --git a/configurations/asrock/asrock_altrad8.json b/configurations/asrock/asrock_altrad8.json
index 5bee348..cf57810 100644
--- a/configurations/asrock/asrock_altrad8.json
+++ b/configurations/asrock/asrock_altrad8.json
@@ -422,51 +422,131 @@
             "Type": "ADC"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 1",
+                "Pwm": 0,
+                "PwmName": "pwm1",
+                "Tachs": [
+                    0
+                ]
+            },
             "Index": 0,
             "Name": "FAN1",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 1_1",
+                "Pwm": 0,
+                "PwmName": "pwm1",
+                "Tachs": [
+                    0
+                ]
+            },
             "Index": 1,
             "Name": "FAN1_1",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 2",
+                "Pwm": 1,
+                "PwmName": "pwm2",
+                "Tachs": [
+                    1
+                ]
+            },
             "Index": 2,
             "Name": "FAN2",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 2_1",
+                "Pwm": 1,
+                "PwmName": "pwm2",
+                "Tachs": [
+                    1
+                ]
+            },
             "Index": 3,
             "Name": "FAN2_1",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 3",
+                "Pwm": 2,
+                "PwmName": "pwm3",
+                "Tachs": [
+                    2
+                ]
+            },
             "Index": 4,
             "Name": "FAN3",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 3_1",
+                "Pwm": 2,
+                "PwmName": "pwm3",
+                "Tachs": [
+                    2
+                ]
+            },
             "Index": 5,
             "Name": "FAN3_1",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 4",
+                "Pwm": 3,
+                "PwmName": "pwm4",
+                "Tachs": [
+                    3
+                ]
+            },
             "Index": 6,
             "Name": "FAN4",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 4_1",
+                "Pwm": 3,
+                "PwmName": "pwm4",
+                "Tachs": [
+                    3
+                ]
+            },
             "Index": 7,
             "Name": "FAN4_1",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 5",
+                "Pwm": 4,
+                "PwmName": "pwm5",
+                "Tachs": [
+                    4
+                ]
+            },
             "Index": 8,
             "Name": "FAN5",
             "Type": "AspeedFan"
         },
         {
+            "Connector": {
+                "Name": "FAN Connector 5_1",
+                "Pwm": 4,
+                "PwmName": "pwm5",
+                "Tachs": [
+                    4
+                ]
+            },
             "Index": 9,
             "Name": "FAN5_1",
             "Type": "AspeedFan"
@@ -478,6 +558,11 @@
             "Type": "ChassisIntrusionSensor"
         },
         {
+            "AllowedFailures": 10,
+            "Name": "FanRedundancy",
+            "Type": "FanRedundancy"
+        },
+        {
             "Address": "0x29",
             "Bus": 4,
             "Labels": [
@@ -648,6 +733,86 @@
             "Type": "NVME1000"
         },
         {
+            "Class": "fan",
+            "FFGainCoefficient": 1,
+            "FFOffCoefficient": 0,
+            "ICoefficient": 0,
+            "ILimitMax": 0,
+            "ILimitMin": 0,
+            "Inputs": [
+                "FAN1",
+                "FAN2",
+                "FAN3",
+                "FAN4",
+                "FAN5"
+            ],
+            "Name": "System Fans",
+            "NegativeHysteresis": 0,
+            "OutLimitMax": 100,
+            "OutLimitMin": 0,
+            "Outputs": [
+                "pwm1",
+                "pwm2",
+                "pwm3",
+                "pwm4",
+                "pwm5"
+            ],
+            "PCoefficient": 0,
+            "PositiveHysteresis": 0,
+            "SetPoint": 0,
+            "SlewNeg": 0,
+            "SlewPos": 0,
+            "Type": "Pid",
+            "Zones": [
+                "Zone 1"
+            ]
+        },
+        {
+            "Class": "temp",
+            "FFGainCoefficient": 0,
+            "FFOffCoefficient": 0,
+            "ICoefficient": -0.2,
+            "ILimitMax": 95,
+            "ILimitMin": 5,
+            "Inputs": [
+                "TEMP SOC",
+                "TEMP DIMM A1",
+                "TEMP DIMM B1",
+                "TEMP DIMM C1",
+                "TEMP DIMM D1",
+                "TEMP DIMM E1",
+                "TEMP DIMM F1",
+                "TEMP DIMM G1",
+                "TEMP X550",
+                "TEMP DIMM VRD",
+                "TEMP CORE VRD",
+                "TEMP SOC VRD",
+                "TEMP RCA VRD",
+                "TEMP VR"
+            ],
+            "Name": "Temperatures",
+            "NegativeHysteresis": 0,
+            "OutLimitMax": 100,
+            "OutLimitMin": 0,
+            "Outputs": [],
+            "PCoefficient": -10,
+            "PositiveHysteresis": 0,
+            "SetPoint": 60,
+            "SlewNeg": -0.2,
+            "SlewPos": 0,
+            "Type": "Pid",
+            "Zones": [
+                "Zone 1"
+            ],
+            "samplePeriod": 1
+        },
+        {
+            "FailSafePercent": 100,
+            "MinThermalOutput": 10,
+            "Name": "Zone 1",
+            "Type": "Pid.Zone"
+        },
+        {
             "Address": "0x4c",
             "Bus": "4",
             "Labels": [