summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-01-17 11:24:37 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-12 19:17:48 +0000
commit0e40bfb8b94bed0e24b09bb7fb04fc8a003d54b6 (patch)
treece93613a9112e26fdd5ed2360bd37739dd805584 /meta-openbmc-machines/meta-openpower
parent98861c51c8f99cf4d7ae67ae559375b12142e27c (diff)
downloadtalos-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')
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bbappend1
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-monitor-config-native/monitor.yaml33
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
OpenPOWER on IntegriCloud