summaryrefslogtreecommitdiff
path: root/meta-facebook
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2022-12-09 09:59:45 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-02-08 06:46:07 +0300
commit27ce59d058993f16fabff7430f6db83f9c038a28 (patch)
tree1288befed3835fcacb7cfbe87320e921d8ce9627 /meta-facebook
parent6b8809edf5668b23d1504a6bd4525a2a8d8f3533 (diff)
downloadopenbmc-27ce59d058993f16fabff7430f6db83f9c038a28.tar.xz
meta-bletchley: phosphor-pid-control: remove fan configuration
Move fan configuration to EM. This commit relies on the commit listed below: https://gerrit.openbmc.org/c/openbmc/entity-manager/+/59525 Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ie04abd9b64af8270ee74d764fd687d83daf67676
Diffstat (limited to 'meta-facebook')
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control/config.json345
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control_%.bbappend6
2 files changed, 1 insertions, 350 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control/config.json b/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control/config.json
deleted file mode 100644
index 049429f726..0000000000
--- a/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control/config.json
+++ /dev/null
@@ -1,345 +0,0 @@
-{
- "version": "R06",
- "sensors": [
- {
- "name": "FAN0_TACH_IL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_IL",
- "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan0/consumer/hwmon/**/pwm1",
- "min": 0,
- "max": 255
- },
- {
- "name": "FAN0_TACH_OL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_OL",
- "min": 0,
- "max": 255
- },
- {
- "name": "FAN1_TACH_IL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN1_TACH_IL",
- "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan1/consumer/hwmon/**/pwm1",
- "min": 0,
- "max": 255
- },
- {
- "name": "FAN1_TACH_OL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN1_TACH_OL",
- "min": 0,
- "max": 255
- },
- {
- "name": "FAN2_TACH_IL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN2_TACH_IL",
- "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan2/consumer/hwmon/**/pwm1",
- "min": 0,
- "max": 255
- },
- {
- "name": "FAN2_TACH_OL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN2_TACH_OL",
- "min": 0,
- "max": 255
- },
- {
- "name": "FAN3_TACH_IL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_IL",
- "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan3/consumer/hwmon/**/pwm1",
- "min": 0,
- "max": 255
- },
- {
- "name": "FAN3_TACH_OL",
- "type": "fan",
- "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_OL",
- "min": 0,
- "max": 255
- },
- {
- "name": "Virtual_Inlet_Temp",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/Virtual_Inlet_Temp",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "MB_U19_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/MB_U19_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "MB_U402_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/MB_U402_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "SLED1_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/SLED1_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "SLED2_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/SLED2_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "SLED3_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/SLED3_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "SLED4_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/SLED4_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "SLED5_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/SLED5_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- },
- {
- "name": "SLED6_THERM_LOCAL",
- "type": "temp",
- "readPath": "/xyz/openbmc_project/sensors/temperature/SLED6_THERM_LOCAL",
- "writePath": "",
- "min": 0,
- "max": 0,
- "ignoreDbusMinMax": true,
- "timeout": 0
- }
- ],
- "zones": [
- {
- "id": 1,
- "minThermalOutput": 20.0,
- "failsafePercent": 80.0,
- "pids": [
- {
- "name": "fan_tachs",
- "type": "fan",
- "inputs": [
- "FAN0_TACH_IL",
- "FAN0_TACH_OL",
- "FAN1_TACH_IL",
- "FAN1_TACH_OL",
- "FAN2_TACH_IL",
- "FAN2_TACH_OL",
- "FAN3_TACH_IL",
- "FAN3_TACH_OL"
- ],
- "setpoint": 0.0,
- "pid": {
- "samplePeriod": 1.0,
- "proportionalCoeff": 0.0,
- "integralCoeff": 0.0,
- "feedFwdOffsetCoeff": 0.0,
- "feedFwdGainCoeff": 1.0,
- "integralLimit_min": 0.0,
- "integralLimit_max": 0.0,
- "outLim_min": 0.0,
- "outLim_max": 100.0,
- "slewNeg": 0.0,
- "slewPos": 0.0
- }
- },
- {
- "name": "inlet_Temp",
- "type": "stepwise",
- "inputs": [
- "Virtual_Inlet_Temp"
- ],
- "setpoint": 10.0,
- "pid": {
- "samplePeriod": 1.0,
- "positiveHysteresis": 0.0,
- "negativeHysteresis": 0.0,
- "isCeiling": false,
- "reading": {
- "0": 15.0,
- "1": 20.0,
- "2": 22.0,
- "3": 24.0,
- "4": 26.0,
- "5": 28.0,
- "6": 30.0,
- "7": 31.0,
- "8": 32.0,
- "9": 33.0,
- "10": 34.0,
- "11": 35.0,
- "12": 36.0,
- "13": 37.0,
- "14": 38.0,
- "15": 39.0,
- "16": 40.0
- },
- "output": {
- "0": 20.0,
- "1": 23.0,
- "2": 28.0,
- "3": 30.0,
- "4": 31.0,
- "5": 32.0,
- "6": 35.0,
- "7": 36.0,
- "8": 37.0,
- "9": 38.0,
- "10": 39.0,
- "11": 40.0,
- "12": 43.0,
- "13": 45.0,
- "14": 47.0,
- "15": 50.0,
- "16": 80.0
- }
- }
- },
- {
- "name": "switch_temp",
- "type": "stepwise",
- "inputs": [
- "MB_U402_THERM_LOCAL"
- ],
- "setpoint": 45.0,
- "pid": {
- "samplePeriod": 1.0,
- "positiveHysteresis": 0.0,
- "negativeHysteresis": 0.0,
- "isCeiling": false,
- "reading": {
- "0": 48.0,
- "1": 49.0,
- "2": 50.0,
- "3": 51.0,
- "4": 52.0
- },
- "output": {
- "0": 0.0,
- "1": 15.0,
- "2": 20.0,
- "3": 25.0,
- "4": 40.0
- }
- }
- },
- {
- "name": "retimer_temp",
- "type": "stepwise",
- "inputs": [
- "MB_U19_THERM_LOCAL"
- ],
- "setpoint": 45.0,
- "pid": {
- "samplePeriod": 1.0,
- "positiveHysteresis": 0.0,
- "negativeHysteresis": 0.0,
- "isCeiling": false,
- "reading": {
- "0": 39.0,
- "1": 40.0,
- "2": 43.0,
- "3": 44.0,
- "4": 45.0,
- "5": 46.0,
- "6": 47.0,
- "7": 48.0,
- "8": 49.0
- },
- "output": {
- "0": 0.0,
- "1": 20.0,
- "2": 40.0,
- "3": 42.0,
- "4": 44.0,
- "5": 46.0,
- "6": 48.0,
- "7": 50.0,
- "8": 80.0
- }
- }
- },
- {
- "name": "SLED_THERM_LOCAL",
- "type": "stepwise",
- "inputs": [
- "SLED1_THERM_LOCAL",
- "SLED2_THERM_LOCAL",
- "SLED3_THERM_LOCAL",
- "SLED4_THERM_LOCAL",
- "SLED5_THERM_LOCAL",
- "SLED6_THERM_LOCAL"
- ],
- "setpoint": 35.0,
- "pid": {
- "samplePeriod": 1.0,
- "positiveHysteresis": 0.0,
- "negativeHysteresis": 0.0,
- "isCeiling": false,
- "reading": {
- "0": 29.0,
- "1": 30.0,
- "2": 35.0,
- "3": 47.0,
- "4": 48.0,
- "5": 49.0,
- "6": 50.0
- },
- "output": {
- "0": 0.0,
- "1": 20.0,
- "2": 20.0,
- "3": 45.0,
- "4": 46.0,
- "5": 47.0,
- "6": 50.0
- }
- }
- }
- ]
- }
- ]
-}
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control_%.bbappend b/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control_%.bbappend
index 8d23a1cd21..8b630265f0 100644
--- a/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control_%.bbappend
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control_%.bbappend
@@ -1,9 +1,6 @@
FILESEXTRAPATHS:prepend:bletchley := "${THISDIR}/${PN}:"
-SRC_URI:append:bletchley = " \
- file://config.json \
- "
-FILES:${PN}:append:bletchley = " ${datadir}/swampd/config.json"
+FILES:${PN}:append:bletchley = " ${datadir}/swampd"
FILES:${PN}:append:bletchley = " ${systemd_system_unitdir}/phosphor-pid-control.service.d/*.conf"
do_install:append:bletchley() {
@@ -16,5 +13,4 @@ do_install:append:bletchley() {
echo "After=phosphor-virtual-sensor.service" >> ${override_file}
install -d ${D}${datadir}/swampd
- install -m 0644 -D ${WORKDIR}/config.json ${D}${datadir}/swampd/
}