Add PS derating and redundancy to sensor config
Change-Id: I1c5ff51637cfd749a08a6136c7ad0b3479a24480
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
index ee474ad..2971536 100644
--- a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
+++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
@@ -120,4 +120,28 @@
assert: false
0x01:
type: "bool"
- assert: true
\ No newline at end of file
+ assert: true
+
+ps_derating_sensor:
+ path: /xyz/openbmc_project/control/host0/powersupply_derating
+ serviceInterface: org.freedesktop.DBus.Properties
+ readingType: readingAssertion
+ interfaces:
+ xyz.openbmc_project.Control.PowerSupply.Derating:
+ PowerSupplyDerating:
+ 0xFF:
+ type: uint32_t
+
+ps_redundancy_state_sensor:
+ path: /xyz/openbmc_project/control/host0/powersupply_redundancy
+ serviceInterface: org.freedesktop.DBus.Properties
+ readingType: assertion
+ interfaces:
+ xyz.openbmc_project.Control.PowerSupply.Redundancy:
+ PowerSupplyRedundancy:
+ 0x00:
+ type: "bool"
+ assert: false
+ 0x01:
+ type: "bool"
+ assert: true