From d67828082c65c0b4091265a16a78863ae0928997 Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Mon, 3 Apr 2017 08:34:02 +0530 Subject: Inventory: Add functional/presence sensor support for palmetto Add the config.yaml which defines the mapping between sensor numbers and Dbus Properties(present,functional) for CPU,Core and DIMM inventory objects. Change-Id: I5d720b09135c2b7b95e705a607c9f2a18373ec54 Signed-off-by: Ratan Gupta --- .../ipmi/phosphor-ipmi-sensor-inventory%.bbappend | 1 + .../phosphor-ipmi-sensor-inventory%/config.yaml | 289 +++++++++++++++++++++ 2 files changed, 290 insertions(+) create mode 100644 meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%.bbappend create mode 100755 meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml (limited to 'meta-openbmc-machines/meta-openpower') diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%.bbappend new file mode 100644 index 000000000..72d991c7e --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml new file mode 100755 index 000000000..195b084b4 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml @@ -0,0 +1,289 @@ +0x1e: + sensorType: 0x0C + path: /system/chassis/motherboard/dimm0 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.Inventory.Item: + Present: + 0x06: + type: bool + assert: true + deassert: false + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x04: + assert: false + deassert: true + type: bool +0x1f: + sensorType: 0x0C + path: /system/chassis/motherboard/dimm1 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.Inventory.Item: + Present: + 0x06: + type: bool + assert: true + deassert: false + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x04: + assert: false + deassert: true + type: bool +0x20: + sensorType: 0x0C + path: /system/chassis/motherboard/dimm2 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.Inventory.Item: + Present: + 0x06: + type: bool + assert: true + deassert: false + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x04: + assert: false + deassert: true + type: bool +0x21: + sensorType: 0x0C + path: /system/chassis/motherboard/dimm3 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.Inventory.Item: + Present: + 0x06: + type: bool + assert: true + deassert: false + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x04: + assert: false + deassert: true + type: bool +0x2f: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x22: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core0 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x23: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core1 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x24: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core2 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x25: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core3 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x26: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core4 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x27: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core5 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x28: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core6 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x29: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core7 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x2a: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core8 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x2b: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core9 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x2c: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core10 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool +0x2d: + sensorType: 0x07 + path: /system/chassis/motherboard/cpu0/core11 + sensorReadingType: 0x6F + interfaces: + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: + 0x08: + deassert: true + assert: false + type: bool + xyz.openbmc_project.Inventory.Item: + Present: + 0x07: + deassert: false + assert: true + type: bool -- cgit v1.2.3