From 78c28a4e34610b7d087471341a131d8a7d05bc1e Mon Sep 17 00:00:00 2001 From: George Liu Date: Thu, 3 Jun 2021 16:57:11 +0800 Subject: fp5280g2: hwmon: Add total_power configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: Iba09b549b0b0661ece8404d6d0ab307db8335779 --- .../fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-inspur') 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" -- cgit v1.2.3