diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2018-08-17 22:59:11 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-06 21:08:42 +0300 |
commit | f76cbd0b2f2bff73e42caba3f9a710fc80da6313 (patch) | |
tree | 3c47fe59e8dba8a8da9babb8de02297fbfeac9c3 | |
parent | 066be20a36c3f99cf5f0ba237f4e464b3378148a (diff) | |
download | openbmc-f76cbd0b2f2bff73e42caba3f9a710fc80da6313.tar.xz |
ipmi-sensor: Add power supply redundancy
Add the power supply redundancy sensor to the ipmi yaml file.
This D-Bus object already exists in the Settings app.
Tested: Verifed that the generated phosphor-ipmi-host sensor.yaml
file contained the new sensor. Removed the legacy sensor from the
/org/openbmc path and powered on a Witherspoon to the Host OS
without errors.
(From meta-phosphor rev: 46adbb00b0b672789bd8fc47bee82e46c5880956)
Change-Id: Id8a2494848d6b13710d0f6365438086ce1a42513
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml | 17 | ||||
-rw-r--r-- | meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory/config.yaml | 20 |
2 files changed, 37 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 d0e4f57d5..45fa20a9b 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 @@ -11,6 +11,23 @@ boot_count_sensor: 0xFF: type: uint32_t +ps_redundancy_state_sensor: + path: /xyz/openbmc_project/control/power_supply_redundancy + serviceInterface: org.freedesktop.DBus.Properties + readingType: assertion + mutability: Mutability::Read + sensorNamePattern: nameProperty + interfaces: + xyz.openbmc_project.Control.PowerSupplyRedundancy: + PowerSupplyRedundancyEnabled: + Offsets: + 0x00: + type: "bool" + assert: false + 0x01: + type: "bool" + assert: true + os_boot_sensor: path: /xyz/openbmc_project/state/host0 serviceInterface: org.freedesktop.DBus.Properties 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 cc463c421..f9e6ba693 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 @@ -78,6 +78,26 @@ Offsets: 0xFF: type: uint32_t +0x0b: + entityID: 0x22 + entityInstance: 3 + sensorType: 0xCA + path: /xyz/openbmc_project/control/power_supply_redundancy + sensorReadingType: 0x03 + serviceInterface: org.freedesktop.DBus.Properties + readingType: assertion + mutability: Mutability::Read + sensorNamePattern: nameProperty + interfaces: + xyz.openbmc_project.Control.PowerSupplyRedundancy: + PowerSupplyRedundancyEnabled: + Offsets: + 0x00: + type: "bool" + assert: false + 0x01: + type: "bool" + assert: true 0x12: entityID: 0xD0 entityInstance: 1 |