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>
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 45fa20a..ec82afe 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 @@
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 f9e6ba6..73104b7 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