summaryrefslogtreecommitdiff
path: root/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon
diff options
context:
space:
mode:
authorGeorge Liu <liuxiwei@inspur.com>2021-03-03 04:38:09 +0300
committerGeorge Liu <liuxiwei@inspur.com>2021-03-03 04:38:09 +0300
commit96a04f77907daa21457d2d5ef891f14e3d5c02fe (patch)
tree7a0c94c3f62697a147ade9914876aba45ba013ea /meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon
parentde35523d6ea726c828d904d7d6e5bf842f4374c9 (diff)
downloadopenbmc-96a04f77907daa21457d2d5ef891f14e3d5c02fe.tar.xz
meta-inspur: fp5280g2: Update the power-supply label name
- In the BmcWeb repo, according to the `LABEL` in the power-supply configuration, get the `unit` value of the power type (PowerInputWatts & PowerOutputWatts). link: https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/sensors.hpp#L912 - Since the `LABEL` naming of the previous configuration file was wrong, it needs to be updated and conforms to the `LABEL` naming convention. - Also, sync update association.json to ensure that the correct sensor value can be obtained. Tested: - Built image-bmc successfully on fp5280g2 machine. - Obtain the correct `PowerInputWatts` & `PowerOutputWatts` by viewing the BmcWeb log. - Obtain `redfish/v1/Chassis/chassis/Power` by the Redfish command: ... ... "PowerSupplies": [ { "@odata.id": "/redfish/v1/Chassis/chassis/Power#/PowerSupplies/0", "EfficiencyPercent": 90, "IndicatorLED": "Off", "Manufacturer": "", "MemberId": "powersupply0", "Model": "PS-2801-12L", "Name": "powersupply0", "PartNumber": "", "PowerInputWatts": 13.9375, "PowerOutputWatts": 5.5, "SerialNumber": "6K12A0117473YX", "Status": { "Health": "OK", "State": "Enabled" } } ] ... ... Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ie88a629c97ab8ad3136a49f71b810b930a820ab2
Diffstat (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon')
-rw-r--r--meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@58.conf10
-rw-r--r--meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@59.conf10
2 files changed, 12 insertions, 8 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@58.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@58.conf
index 362b4b017..437d4b515 100644
--- a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@58.conf
+++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@58.conf
@@ -1,4 +1,6 @@
-LABEL_in1 = "psu0_vin"
-LABEL_in2 = "psu0_vout"
-LABEL_power1 = "psu0_pin"
-LABEL_power2 = "psu0_pout"
+LABEL_in1 = "ps0_input_voltage"
+LABEL_in2 = "ps0_output_voltage"
+LABEL_curr1 = "ps0_input_current"
+LABEL_curr2 = "ps0_output_current"
+LABEL_power1 = "ps0_input_power"
+LABEL_power2 = "ps0_output_power"
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@59.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@59.conf
index 8ffe44179..7d4333c7f 100644
--- a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@59.conf
+++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@59.conf
@@ -1,4 +1,6 @@
-LABEL_in1 = "psu1_vin"
-LABEL_in2 = "psu1_vout"
-LABEL_power1 = "psu1_pin"
-LABEL_power2 = "psu1_pout"
+LABEL_in1 = "ps1_input_voltage"
+LABEL_in2 = "ps1_output_voltage"
+LABEL_curr1 = "ps1_input_current"
+LABEL_curr2 = "ps1_output_current"
+LABEL_power1 = "ps1_input_power"
+LABEL_power2 = "ps1_output_power"