diff options
author | Ben_Pai <ben_pai@wistron.com> | 2019-09-12 05:58:00 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-09-19 02:23:40 +0300 |
commit | 3ded63d40c63666ebb8d549a93bff87e130914ca (patch) | |
tree | af91b3a5450f2d7c627df219afd1c4eb5e5740aa /meta-ibm/meta-witherspoon/recipes-phosphor | |
parent | c0323d67aec4605ee2136bd0b0f42442bed47d3c (diff) | |
download | openbmc-3ded63d40c63666ebb8d549a93bff87e130914ca.tar.xz |
meta-ibm: Add mihawk total power sensor
Get total power from occ.
(From meta-ibm rev: 5f74841d980f274383dd0bf1c16b1c3df18142e2)
Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
Change-Id: I97bf6b2229890dca1a0bda421b85b10392c2a814
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-ibm/meta-witherspoon/recipes-phosphor')
2 files changed, 24 insertions, 2 deletions
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/configuration/acx22-yaml-config/mihawk/acx22-ipmi-hwmon-sensors.yaml b/meta-ibm/meta-witherspoon/recipes-phosphor/configuration/acx22-yaml-config/mihawk/acx22-ipmi-hwmon-sensors.yaml index 03b9700dc..71b79b73b 100644 --- a/meta-ibm/meta-witherspoon/recipes-phosphor/configuration/acx22-yaml-config/mihawk/acx22-ipmi-hwmon-sensors.yaml +++ b/meta-ibm/meta-witherspoon/recipes-phosphor/configuration/acx22-yaml-config/mihawk/acx22-ipmi-hwmon-sensors.yaml @@ -420,6 +420,27 @@ unit: xyz.openbmc_project.Sensor.Value.Unit.Amperes 252: bExp: 0 + entityID: 10 + entityInstance: 15 + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 255: + type: int64_t + multiplierM: 20 + offsetB: 0 + path: /xyz/openbmc_project/sensors/power/total_power + rExp: 0 + readingType: readingData + scale: -6 + sensorNamePattern: nameLeaf + sensorReadingType: 1 + sensorType: 8 + serviceInterface: org.freedesktop.DBus.Properties + unit: xyz.openbmc_project.Sensor.Value.Unit.Watts +253: + bExp: 0 entityID: 35 entityInstance: 1 interfaces: @@ -439,7 +460,7 @@ sensorType: 1 serviceInterface: org.freedesktop.DBus.Properties unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC -253: +254: bExp: 0 entityID: 35 entityInstance: 2 @@ -460,7 +481,7 @@ sensorType: 1 serviceInterface: org.freedesktop.DBus.Properties unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC -254: +255: bExp: 0 entityID: 64 entityInstance: 1 diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf index f47b49a82..5b347c10c 100644 --- a/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf +++ b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf @@ -288,3 +288,4 @@ LABEL_power8 = "fans_power" LABEL_power9 = "storage_b_power" LABEL_power10 = "storage_a_power" LABEL_power11 = "gpu0_power" +LABEL_power14 = "total_power" |