summaryrefslogtreecommitdiffstats
path: root/monitor/example
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-01-31 15:24:46 +0800
committerLei YU <mine260309@gmail.com>2018-02-26 10:34:36 +0800
commit80f271b296488e12d4edd29b5bb908a407fbda1f (patch)
tree9009dca91bfa4fd5335a809a52746d02674c8078 /monitor/example
parent8e5d197b840d4498dcb714b60cc1d38202a7a7a7 (diff)
downloadphosphor-fan-presence-80f271b296488e12d4edd29b5bb908a407fbda1f.tar.gz
phosphor-fan-presence-80f271b296488e12d4edd29b5bb908a407fbda1f.zip
Add target interface for fan monitor
Current fan monitor assumes the use of the FanSpeed interface for fan targets. For fans controlled by pwm, FanPwm interface is added. This commit adds a "target_interface" config parameter, so that user can specify the interface for the fan targets. E.g. - name: fan0 has_target: true target_interface: xyz.openbmc_project.Control.FanPwm This config is optional and defaults to FanSpeed, so the current code will not be affected. Tested: Use this config on Romulus, ensures fan monitor gets fan target from FanPwm interface and works OK. Change-Id: I262a486c335b2b43a46af7abdd0e71e95a133b98 Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'monitor/example')
-rw-r--r--monitor/example/monitor.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/monitor/example/monitor.yaml b/monitor/example/monitor.yaml
index 1692800..fc6ca5e 100644
--- a/monitor/example/monitor.yaml
+++ b/monitor/example/monitor.yaml
@@ -19,6 +19,8 @@
# - name [The name of the fan sensor]
# has_target [true|false If this sensor has a Target property for
# setting a fan speed (otherwise just for reads)]
+# target_interface [The fan target interface used by the sensor.
+# Default is "xyz.openbmc_project.Control.FanSpeed"]
# factor [The factor to multiply with target to calculate the expected
# fan speed. Default is 1 for fan speed target;
# Customized value for pwm target]
OpenPOWER on IntegriCloud