summaryrefslogtreecommitdiff
path: root/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors
AgeCommit message (Collapse)AuthorFilesLines
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-2/+2
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-08-12meta-inspur: Cleanup for Yocto override syntax changeGeorge Liu1-4/+4
Refer to: https://lore.kernel.org/openbmc/YQ1FD5q8KbhbXVBK@heinlein/ ``` poky/scripts/contrib/convert-overrides.py meta-inspur git grep "_[a-z0-9_/-]*[ :]" -- meta-inspur | grep ".bb" git grep -l _fp5280g2 -- meta-inspur | xargs sed -i \ 's/_fp5280g2/:fp5280g2/' git grep -l _on5263m5 -- meta-inspur | xargs sed -i \ 's/_on5263m5/:on5263m5/' git grep -l _virtual -- meta-inspur | xargs sed -i \ 's/_virtual/:virtual/' ``` Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I5ef5039691caf5e33fb865da0fdd70d95d7e3bdf
2021-06-04fp5280g2: hwmon: Add total_power configurationGeorge Liu1-0/+1
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
2021-04-22build phosphor-hwmon with mesonMatt Spinler1-1/+1
The repository supports it, so switch it over in bitbake. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I8d96c79b395ee2614ddd869091569f245426c5c7
2021-03-03meta-inspur: fp5280g2: Update the power-supply label nameGeorge Liu2-8/+12
- 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
2020-10-06fp5280g2: Fix the occ-hwmon.*.conf config pathGeorge Liu3-1/+1
Add the fsi-master file path to get the correct OCC information. Tested: built successfully on fp5280g2 and get the corrent OCC information by the D-Bus command. (From meta-inspur rev: bf4c44199ffa9cb3804df09932440002f9d0d2c7) Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I35ef99d98b3078b625e809e911265a56c4849cc9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2019-08-02fp5280g2: phosphor-hwmon: Add power supply sensors configsGeorge Liu3-0/+10
Tested: Build fp5280g2 board and load on the target hardware successfully and manually verified via DBUS interface (From meta-inspur rev: cb39b871faa21244a3d1bb55f8d153ba87bfd3a6) Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I3adb14da90f72bdbac0cefcf64ff1b8a274dd916 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2019-06-20fp5280g2: Add occ sensorsJohn Wang3-1/+143
Tested: booted a fp5280g2,manually binded the OCC driver when OCC activated, and saw core-temp,dimm-temp and power sensors via REST API. (From meta-inspur rev: f24af46e265e6541f26fb88c650e5ef681e51898) Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I5b99d406159b080a2d6be53f23250ef356e8bfe2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-18fp5280g2: Add sensor configsGeorge Liu9-0/+179
temperature sensors inlet and outlet of tmp112, adc voltage sensors and fan-tach sensors. Tested: Built fp5280g2 board and loaded on the target hardware successfully and manually verified via DBUS interface. (From meta-inspur rev: f3c4afcb935e605f727e0552842e418db4eef6fc) Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I231d14195bffac5451c98bfbabc4ecd836aead67 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>