diff options
author | Grant O'Connor <grant.oconnor@hpe.com> | 2023-09-20 19:14:02 +0300 |
---|---|---|
committer | Jean-Marie Verdun <jean-marie.verdun@hpe.com> | 2023-12-05 20:58:55 +0300 |
commit | a4efaf7ad34bb953c901da1afb5f0e7238f5afd9 (patch) | |
tree | 44ad1666cc14a53b5602b2899610cef6c657d442 /meta-hpe | |
parent | b30fb5f903c12d001fe02c15f172bca73c6e47e5 (diff) | |
download | openbmc-a4efaf7ad34bb953c901da1afb5f0e7238f5afd9.tar.xz |
meta-hpe: add phosphor-pid-control recipe
append config.json for phosphor-pid-control. HPE DL385 G11
Change-Id: I4887c888804a83f1063c6fbb23422b1dc31caa01
Signed-off-by: Grant O'Connor <grant.oconnor@hpe.com>
Diffstat (limited to 'meta-hpe')
-rw-r--r-- | meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control/config.json | 181 | ||||
-rw-r--r-- | meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control_%.bbappend | 9 |
2 files changed, 190 insertions, 0 deletions
diff --git a/meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control/config.json b/meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control/config.json new file mode 100644 index 0000000000..1e7afcaa4c --- /dev/null +++ b/meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control/config.json @@ -0,0 +1,181 @@ +{ + "sensors": [ + { + "name": "Fan1", + "type": "fan", + "readPath": "/sys/class/hwmon/hwmon0/pwm0", + "writePath": "/sys/class/hwmon/hwmon0/pwm0", + "min": 0, + "max": 255 + }, + { + "name": "Fan2", + "type": "fan", + "readPath": "/sys/class/hwmon/hwmon0/pwm1", + "writePath": "/sys/class/hwmon/hwmon0/pwm1", + "min": 0, + "max": 255 + }, + { + "name": "Fan3", + "type": "fan", + "readPath": "/sys/class/hwmon/hwmon0/pwm2", + "writePath": "/sys/class/hwmon/hwmon0/pwm2", + "min": 0, + "max": 255 + }, + { + "name": "Fan4", + "type": "fan", + "readPath": "/sys/class/hwmon/hwmon0/pwm3", + "writePath": "/sys/class/hwmon/hwmon0/pwm3", + "min": 0, + "max": 255 + }, + { + "name": "Fan5", + "type": "fan", + "readPath": "/sys/class/hwmon/hwmon0/pwm4", + "writePath": "/sys/class/hwmon/hwmon0/pwm4", + "min": 0, + "max": 255 + }, + { + "name": "Fan6", + "type": "fan", + "readPath": "/sys/class/hwmon/hwmon0/pwm6", + "writePath": "/sys/class/hwmon/hwmon0/pwm6", + "min": 0, + "max": 255 + }, + { + "name": "GXP_Temp", + "type": "temp", + "readPath": "/xyz/openbmc_project/sensors/temperature/GXP_Temp", + "timeout": 0 + }, + { + "name": "CPU_1", + "type": "temp", + "readPath": "/xyz/openbmc_project/sensors/temperature/CPU_1", + "ignoreDbusMinMax": true, + "timeout": 0, + "unavailableAsFailed": true + }, + { + "name": "CPU_2", + "type": "temp", + "readPath": "/xyz/openbmc_project/sensors/temperature/CPU_2", + "ignoreDbusMinMax": true, + "timeout": 0, + "unavailableAsFailed": false + } + ], + "zones": [ + { + "id": 1, + "minThermalOutput": 0.0, + "failsafePercent": 90.0, + "pids": [ + { + "name": "Fan1-6", + "type": "fan", + "inputs": ["Fan1", "Fan2", "Fan3", "Fan4", "Fan5", "Fan6"], + "setpoint": 128.0, + "pid": { + "samplePeriod": 0.1, + "proportionalCoeff": 10.0, + "integralCoeff": 2.0, + "feedFwdOffsetCoeff": 0.0, + "feedFwdGainCoeff": 0.0, + "integralLimit_min": 0.0, + "integralLimit_max": 0.0, + "outLim_min": 0.0, + "outLim_max": 100.0, + "slewNeg": -5.0, + "slewPos": 5.0 + } + }, + { + "name": "temppid0", + "type": "temp", + "inputs": ["GXP_Temp"], + "setpoint": 43, + "pid": { + "samplePeriod": 1, + "proportionalCoeff": -60.0, + "integralCoeff": -2.0, + "feedFwdOffsetCoeff": 0.0, + "feedFwdGainCoeff": 0.0, + "integralLimit_min": 0, + "integralLimit_max": 0, + "outLim_min": 0, + "outLim_max": 255, + "slewNeg": -10.0, + "slewPos": 10.0 + } + }, + { + "name": "temp1", + "type": "stepwise", + "inputs": ["CPU_1"], + "setpoint": 30.0, + "pid": { + "samplePeriod": 0.1, + "positiveHysteresis": 1.0, + "negativeHysteresis": 1.0, + "isCeiling": false, + "reading": { + "0": 35, + "1": 45, + "2": 55, + "3": 65, + "4": 75, + "5": 85, + "6": 95 + }, + "output": { + "0": 25, + "1": 50, + "2": 75, + "3": 100, + "4": 150, + "5": 200, + "6": 255 + } + } + }, + { + "name": "temp2", + "type": "stepwise", + "inputs": ["CPU_2"], + "setpoint": 30.0, + "pid": { + "samplePeriod": 0.1, + "positiveHysteresis": 1.0, + "negativeHysteresis": 1.0, + "isCeiling": false, + "reading": { + "0": 35, + "1": 45, + "2": 55, + "3": 65, + "4": 75, + "5": 85, + "6": 95 + }, + "output": { + "0": 25, + "1": 50, + "2": 75, + "3": 100, + "4": 150, + "5": 200, + "6": 255 + } + } + } + ] + } + ] +} diff --git a/meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control_%.bbappend b/meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control_%.bbappend new file mode 100644 index 0000000000..d1228ecafc --- /dev/null +++ b/meta-hpe/meta-dl385-g11/recipes-phosphor/fans/phosphor-pid-control_%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" +SRC_URI:append = " file://config.json" + +FILES:${PN} = "${datadir}/swampd/config.json /usr/share/swampd/* /usr/bin/swampd /usr/bin/setsensor" + +do_install:append(){ + install -d ${D}${datadir}/swampd + install -m 0644 -D ${WORKDIR}/config.json ${D}${datadir}/swampd/ +} |