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>
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 d0e4f57..45fa20a 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 @@
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 cc463c4..f9e6ba6 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