diff options
author | Lei YU <yulei.sh@bytedance.com> | 2020-12-25 09:39:23 +0300 |
---|---|---|
committer | Lei YU <yulei.sh@bytedance.com> | 2021-08-20 12:37:19 +0300 |
commit | f5e95c90d666f89e007bc3c6d5f06cfa97b5beb3 (patch) | |
tree | bd8bc018ab1d86c00f94466302cede13aad65783 /meta-bytedance/meta-g220a | |
parent | 88b675a08d66e2a70419195f81a4d3f9132c42d1 (diff) | |
download | openbmc-f5e95c90d666f89e007bc3c6d5f06cfa97b5beb3.tar.xz |
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 <yulei.sh@bytedance.com>
Change-Id: I334fe602f949bbd95cb59bcdfba390ea5147df33
Diffstat (limited to 'meta-bytedance/meta-g220a')
2 files changed, 25 insertions, 3 deletions
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 |