diff options
author | George Liu <liuxiwei@inspur.com> | 2021-06-03 11:57:11 +0300 |
---|---|---|
committer | George Liu <liuxiwei@inspur.com> | 2021-06-04 06:43:32 +0300 |
commit | 78c28a4e34610b7d087471341a131d8a7d05bc1e (patch) | |
tree | 2e8253012af20589019cc860dc67c54c15083894 /meta-inspur | |
parent | 8625c491e383fc47eb93b8f98ca0f169b5c155e9 (diff) | |
download | openbmc-78c28a4e34610b7d087471341a131d8a7d05bc1e.tar.xz |
fp5280g2: hwmon: Add total_power configuration
The intent behind this commit is to add the configuration of
total_power, after power on, read the sensor value of total_power
from occ-hwmon and successfully read it through D-Bus.
Tested:
~# mapper get-service /xyz/openbmc_project/sensors/power/total_power
xyz.openbmc_project.Hwmon-b7759d36485edc452dd4ab56fcddbc713138c18574d600852a5ebf252410dd34.Hwmon1
~# busctl introspect xyz.openbmc_project.Hwmon-b7759d36485edc452dd4ab56fcddbc713138c18574d600852a5ebf252410dd34.Hwmon1 /xyz/openbmc_project/sensors/power/total_power
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Sensor.Value interface - - -
.MaxValue property d inf emits-change writable
.MinValue property d -inf emits-change writable
.Unit property s "xyz.openbmc_project.Sensor.Value.Unit.… emits-change writable
.Value property d 122 emits-change writable
xyz.openbmc_project.State.Decorator.OperationalStatus interface - - -
.Functional
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Iba09b549b0b0661ece8404d6d0ab307db8335779
Diffstat (limited to 'meta-inspur')
-rw-r--r-- | meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf index b629dfc4c..e6cec3b93 100644 --- a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf @@ -67,3 +67,4 @@ LABEL_power2 = "hdd" LABEL_power3 = "gpu_01" LABEL_power4 = "gpu_23" LABEL_power5 = "standby" +LABEL_power16 = "total_power" |