diff options
author | Lei YU <mine260309@gmail.com> | 2018-01-17 11:24:37 +0800 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-03-12 19:17:48 +0000 |
commit | 0e40bfb8b94bed0e24b09bb7fb04fc8a003d54b6 (patch) | |
tree | ce93613a9112e26fdd5ed2360bd37739dd805584 /meta-openbmc-machines/meta-openpower | |
parent | 98861c51c8f99cf4d7ae67ae559375b12142e27c (diff) | |
download | talos-openbmc-0e40bfb8b94bed0e24b09bb7fb04fc8a003d54b6.tar.gz talos-openbmc-0e40bfb8b94bed0e24b09bb7fb04fc8a003d54b6.zip |
meta-romulus: Add fan monitor config
1. Enable fan monitor;
2. Add FanPwm interface;
3. Set the factor, offset for calculation from pwm to rpm
Tested: Verifid fan monitor works fine;
Manually change pwm, fan monitor will set fan non-functional
after a while; change pwm back, it will set fan functional
again, as expected.
Change-Id: Ic56cbe291959368218b60c4a5b8e305f39ff7edb
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower')
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bbappend new file mode 100644 index 000000000..72d991c7e --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native/monitor.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native/monitor.yaml new file mode 100644 index 000000000..445a111a8 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native/monitor.yaml @@ -0,0 +1,33 @@ +fans: + - inventory: /system/chassis/motherboard/fan0 + allowed_out_of_range_time: 30 + deviation: 15 + num_sensors_nonfunc_for_fan_nonfunc: 1 + sensors: + - name: fan0 + has_target: true + target_interface: xyz.openbmc_project.Control.FanPwm + factor: 21 + offset: 1600 + + - inventory: /system/chassis/motherboard/fan1 + allowed_out_of_range_time: 30 + deviation: 15 + num_sensors_nonfunc_for_fan_nonfunc: 1 + sensors: + - name: fan1 + has_target: true + target_interface: xyz.openbmc_project.Control.FanPwm + factor: 21 + offset: 1600 + + - inventory: /system/chassis/motherboard/fan2 + allowed_out_of_range_time: 30 + deviation: 15 + num_sensors_nonfunc_for_fan_nonfunc: 1 + sensors: + - name: fan2 + has_target: true + target_interface: xyz.openbmc_project.Control.FanPwm + factor: 21 + offset: 1600 |