diff options
author | Lei YU <mine260309@gmail.com> | 2018-01-12 12:18:47 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-01-29 20:02:45 +0300 |
commit | b871318c291a64843e40f781b05ee0fd245836f4 (patch) | |
tree | b406d1a8ec2e166c8b4b1c1869b603f4482c3959 /meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor | |
parent | 7f4e80f5e99fbdf6fb05c0b1abe9a3eb348039df (diff) | |
download | openbmc-b871318c291a64843e40f781b05ee0fd245836f4.tar.xz |
meta-romulus: Add fan presence yaml config
Romulus has 3 fans using aspeed fan tacho, and has no GPIOs to detect
fan presences.
So assuming the fans are present as long as fan tach is there.
Change-Id: I60f36f8127a437511fde22a4c45458b70b4074ed
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor')
2 files changed, 21 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-presence-config-native%.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-presence-config-native%.bbappend new file mode 100644 index 0000000000..72d991c7e5 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-presence-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-presence-config-native%/config.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-presence-config-native%/config.yaml new file mode 100644 index 0000000000..5acb91fc7b --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-presence-config-native%/config.yaml @@ -0,0 +1,20 @@ +- name: fan0 + path: /system/chassis/motherboard/fan0 + methods: + - type: tach + sensors: + - fan0 + +- name: fan1 + path: /system/chassis/motherboard/fan1 + methods: + - type: tach + sensors: + - fan1 + +- name: fan2 + path: /system/chassis/motherboard/fan2 + methods: + - type: tach + sensors: + - fan2 |