diff options
author | Kumar Thangavel <thangavel.k@hcl.com> | 2021-02-17 10:36:10 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-04-07 22:16:51 +0300 |
commit | 76202e16f8ab80774060fe0d36f31a8e667ed691 (patch) | |
tree | d036f9c174c7e6dc7cb38ac63c6289623a0b5537 /meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor | |
parent | 88cb23d1d705f4158d7869a98fca9c8da3799324 (diff) | |
download | openbmc-76202e16f8ab80774060fe0d36f31a8e667ed691.tar.xz |
Add Airflow virtual sensor support
Added support in the machine layer for Airflow sensor as
virtual sensor.
TESTED : Built Facebook YosemiteV2 images and loaded on the target hardware.
Verified the airflow sensor values in the phosphor-virtual-sensor
dbus objects.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: I46b377cc119a31f76286ba2d03f14764f578283f
Diffstat (limited to 'meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor')
2 files changed, 97 insertions, 0 deletions
diff --git a/meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor/tiogapass/tiogapass_sensor_config.json b/meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor/tiogapass/tiogapass_sensor_config.json new file mode 100644 index 000000000..a394faef8 --- /dev/null +++ b/meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor/tiogapass/tiogapass_sensor_config.json @@ -0,0 +1,46 @@ +[ + { + "Desc" : + { + "Name" : "Virtual_Inlet_Temp", + "SensorType" : "temperature" + }, + "Threshold" : + { + "CriticalHigh": 90, + "CriticalLow": 20, + "WarningHigh": 70, + "WarningLow": 30 + }, + "Params": + { + "ConstParam" : + [ + { + "ParamName" : "P1", + "Value" : 1.1 + } + ], + "DbusParam" : + [ + { + "ParamName" : "P2", + "Desc" : + { + "Name" : "MB_INLET_TEMP", + "SensorType" : "temperature" + } + }, + { + "ParamName" : "P3", + "Desc" : + { + "Name" : "MB_FAN0_TACH", + "SensorType" : "fan_tach" + } + } + ] + }, + "Expression" : "P1 * (P2 + 5 - P3 * 0.01)" + } +] diff --git a/meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor/yosemitev2/yosemitev2_sensor_config.json b/meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor/yosemitev2/yosemitev2_sensor_config.json new file mode 100644 index 000000000..c56712dbd --- /dev/null +++ b/meta-facebook/recipes-phosphor/sensors/phosphor-virtual-sensor/yosemitev2/yosemitev2_sensor_config.json @@ -0,0 +1,51 @@ +[ + { + "Desc" : + { + "Name" : "Virtual_CFM_Sensor", + "SensorType" : "airflow" + }, + "Threshold" : + { + "CriticalHigh": 40, + "CriticalLow": 10, + "WarningHigh": 30, + "WarningLow": 15 + }, + "Params": + { + "ConstParam" : + [ + { + "ParamName" : "P1", + "Value" : 0.00565 + }, + { + "ParamName" : "P2", + "Value" : 3.7427 + } + ], + "DbusParam" : + [ + { + "ParamName" : "P3", + "Desc" : + { + "Name" : "SP_FAN0_TACH", + "SensorType" : "fan_tach" + } + }, + { + "ParamName" : "P4", + "Desc" : + { + "Name" : "SP_FAN1_TACH", + "SensorType" : "fan_tach" + } + } + ] + }, + "Expression" : "(P3 * P1) + (P4 * P1) - P2" + } +] + |