diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2018-08-20 23:22:32 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-07 00:02:29 +0300 |
commit | 9055051cdd409d5b59399a7f9a6d6555c958e0c2 (patch) | |
tree | ad8c379d7d127e50323b7c2954ab66fde3167dde /meta-phosphor | |
parent | 3d1d189fb50cb2c2c0a8020eb0aaf7bf67341d12 (diff) | |
download | openbmc-9055051cdd409d5b59399a7f9a6d6555c958e0c2.tar.xz |
ipmi-sensor: Add power supply derating factor
Add the power supply derating factor sensor to the ipmi yaml file.
This sensor was currently hardcoded in the /org/openbmc/sensors
path but that is being deprecated in favor of having the sensors
defined in the ipmi yaml config files.
Tested:
With this change the get sensor command was successful.
(From meta-phosphor rev: 8605fa1ad9512fdc2bea2a3f5ad3be9b2828f9ee)
Change-Id: Ie221521e91b47639cb9d24eb23ab2b8bf774d110
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor')
-rw-r--r-- | meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml | 11 | ||||
-rw-r--r-- | meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory/config.yaml | 16 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml index 45fa20a9b..ec82afed6 100644 --- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml +++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml @@ -343,3 +343,14 @@ memory_temp_sensor: Offsets: 0xFF: type: int64_t +ps_derating_sensor: + serviceInterface: org.freedesktop.DBus.Properties + readingType: assertion + mutability: Mutability::Read + sensorNamePattern: nameProperty + interfaces: + xyz.openbmc_project.Control.PowerSupplyAttributes: + DeratingFactor: + Offsets: + 0xFF: + type: uint32_t diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory/config.yaml b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory/config.yaml index f9e6ba693..73104b70c 100644 --- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory/config.yaml +++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory/config.yaml @@ -2126,3 +2126,19 @@ assert: true deassert: false type: bool +0xd8: + entityID: 0x15 + entityInstance: 1 + sensorType: 0xC8 + path: /xyz/openbmc_project/control/power_supply_attributes + sensorReadingType: 0x6F + serviceInterface: org.freedesktop.DBus.Properties + readingType: assertion + mutability: Mutability::Read + sensorNamePattern: nameProperty + interfaces: + xyz.openbmc_project.Control.PowerSupplyAttributes: + DeratingFactor: + Offsets: + 0xFF: + type: uint32_t |