From f5e95c90d666f89e007bc3c6d5f06cfa97b5beb3 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Fri, 25 Dec 2020 14:39:23 +0800 Subject: bytedance: g220a: ipmi: Add total power sensor It adjusts some sensors' number and adds the total power sensor. Tested: Verify the "Total_Power" is shwon in ipmi sensor list. Signed-off-by: Lei YU Change-Id: I334fe602f949bbd95cb59bcdfba390ea5147df33 --- .../g220a-ipmi-inventory-sensors.yaml | 2 +- .../g220a-yaml-config/g220a-ipmi-sensors.yaml | 26 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) (limited to 'meta-bytedance') diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml index bb2502d1f..26360234d 100644 --- a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml +++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml @@ -1,5 +1,5 @@ /xyz/openbmc_project/inventory/system/board/G220A: eventReadingType: 111 offset: 2 - sensorID: 144 + sensorID: 251 sensorType: 18 diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml index 3e68a7aa1..2c731b0a9 100644 --- a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml +++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml @@ -834,7 +834,7 @@ sensorType: 4 serviceInterface: org.freedesktop.DBus.Properties unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS -165: +150: bExp: 0 entityID: 50 entityInstance: 1 @@ -856,7 +856,7 @@ sensorType: 11 serviceInterface: org.freedesktop.DBus.Properties unit: xyz.openbmc_project.Sensor.Value.Unit.Watts -166: +151: bExp: 0 entityID: 50 entityInstance: 1 @@ -878,3 +878,25 @@ sensorType: 11 serviceInterface: org.freedesktop.DBus.Properties unit: xyz.openbmc_project.Sensor.Value.Unit.Watts +165: + bExp: 0 + entityID: 10 + entityInstance: 0 + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 255: + type: double + multiplierM: 96 + mutability: Mutability::Read + path: /xyz/openbmc_project/sensors/power/total_power + offsetB: 0 + rExp: 0 + readingType: readingData + scale: 0 + sensorNamePattern: nameLeaf + sensorReadingType: 1 + sensorType: 11 + serviceInterface: org.freedesktop.DBus.Properties + unit: xyz.openbmc_project.Sensor.Value.Unit.Watts -- cgit v1.2.3