summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor/sensors
AgeCommit message (Collapse)AuthorFilesLines
2021-10-11rainier: Get virtual temp sensor config from D-BusRashmica Gupta1-25/+3
This tells phosphor-virtual-sensors to look on D-Bus for a virtual sensor config of type ModifiedMedian. This way we can use the same recipe for different hardware configurations. Change-Id: I3ebd0a636f07a0854251e06b952ad9646f12f637 Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
2021-09-30ibm: Drop hwmon support for water cooled wspoonMatt Spinler10-88/+3
There is an upcoming systemd change that doesn't handle what was being done, which was to delay starting phosphor-hwmon from udev until the chassis cooling type was on D-Bus. This commit removes this method and goes down to a single hwmon config file that only supports the air cooled system, which has 2 more fan rotors than the water cooled one does. This change also applies to the similar systems witherspoon-tacoma and swift. Resolves openbmc/phosphor-hwmon/#19. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ic4ed46a5bf310fb1fef8704dcafc0376c441f8c4
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-7/+7
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-17Fix path to udev rules filesAnton Blanchard1-2/+2
Use nonarch_base_libdir instead of base_libdir, because the files are always in /lib/udev/rules.d/. On ppc64le base_libdir is lib64, and the files end up in the wrong spot. Signed-off-by: Anton Blanchard <anton@ozlabs.org> Change-Id: I3c24dae293f4166f1ed1826d09d4bde7cd7d0357
2021-08-11meta-ibm: prep for new override syntaxAdriana Kobylak3-37/+37
Change-Id: I9116ed7260e369136acb39eec15075db2d4dbeba Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2021-06-30meta-ibm: Adds virtual Altitude sensorBruce Mitchell1-0/+26
The Altitude measurement is from the computation of the DPS310 pressure sensor with this "Expression": "44330.0 * (1.0 - ((P0/101325.0) ^ (1/5.255)))" Tested: busctl introspect xyz.openbmc_project.VirtualSensor \ /xyz/openbmc_project/sensors/altitude/Altitude returned results consistent with location of the Rainier system. Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> Change-Id: I07b83dd6b8f4ccf0755ccbdc81c40976a3e571cd
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-04-01ibm: sensors: Replace rainier with p10bmcAdriana Kobylak6-4/+4
The IBM rainier machine name is being replaced with the generic p10bmc. Change-Id: I43d08c3be45d8cc8b03914b9bc257df2668e9fe0 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2021-01-12rainier: Add max31785 hwmon device for EverestMatthew Barth2-0/+18
Everest has the max31785 at a different i2c address that is behind a mux, so install its hwmon config at that associated location. Tested: Hwmon instance for the max31785 starts successfully on Everest (From meta-ibm rev: cd84eb53a79edcabddd5e7720f9e0389f4e96151) Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Change-Id: Ide9ca8bd76d708ef9453dc7d02526dfbb1dd8a30 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-15sensors:rainier: Add max31785 hwmon configMatthew Barth2-0/+31
Add the max31785 fan controller device to hwmon. (From meta-ibm rev: 71404ba4966e32bb4ed9a120062d669ed642d851) Change-Id: I4b2cd1c5379e76ccf40f52dc6ceca6a98f931f40 Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-23sensors:max31785-msl: Enable/install max31785-msl packageMatthew Barth1-0/+2
The max31785-msl application is now a package within the phosphor-hwmon recipe, so that package needs to be enabled and installed on `ibm-ac-server` alias of machines which have a max31785 chip. These machines require that the minimum ship level(msl) be verified on them using this application. Tested: Built phosphor-hwmon package after enabling max31785-msl package Verified application, config file, and service existed in image (From meta-ibm rev: 33184059fa07ca12e11fb9e8dde2d6a31e1f029e) Change-Id: I186fb6ca930e4107738d4ed90d31b6233be3d6f2 Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-18rainier: Add virtual ambient temp thresholdsMatt Spinler1-0/+7
The phosphor-virtual-sensor code recently started checking the values of the upper/lower warning/critical thresholds for the virtual sensors and prints to the journal if they are exceeded. If the threshold values to use aren't specified in the JSON file, it will just set them to zero so any nonzero sensor value will trigger the trace. So, even though code will not use the threshold values for the virtual ambient temperature sensor, put some into the JSON anyway that should never be exceeded to avoid these traces. If the temperature does happen to go outside the range of between 0 and 100, then seeing the trace may be interesting anyway. (From meta-ibm rev: 9fdb9598d0eee4d9820962320391bb9f7e4568ea) Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I1c6c5f1faaaf58599a3840eed6ec4749a70a1364 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-17rainier: Only install one dbus-sensors serviceMatt Spinler1-0/+1
Rainier is only using the hwmontempsensor dbus-sensors service for now, so remove the other ones. Without this, 8 other services would be running at BMC ready state. (From meta-ibm rev: b51345ced440ca935f8678d8521a690301e63db5) Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: If60d9a0ba585c029877c5fda77b5085cec394d04 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-12rainier: Add a virtual ambient temp sensorMatt Spinler2-0/+30
Use the virtual-sensor application to put a virtual ambient temperature sensor on D-Bus. Currently, it just mirrors the value of the TMP275 ambient temperature sensor, but in the future the output will be based on all three temp sensors on the panel after the remaining two show up on D-Bus. (From meta-ibm rev: f43eab1e5637cf87a38ca2e9a6acc33e5db3a0c3) Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I187d88c7e1245c7014aee8b9b6c0840daf1e622d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-16sensors:max31785: Remove `x` perms from udev rule fileMatthew Barth1-1/+1
Remove executable permissions from the `70-max31785-hwmon.rules` file to eliminate the systemd-udevd warning that its marked executable. (From meta-ibm rev: 46984b5eda5c40e63cb9fab6aa5e667cec7f5b68) Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Change-Id: Ic7405ed73f2d7875c57696ae4e5b30e380502fd6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-30meta-ibm: mihawk: Solve the issue of cannot reading 250 soc temperatureBen Pai5-4/+4
Mihawk cannot read the 250 soc sensor on the riser, this is because dts defines pca9545riser@70 instead of pca9545@70. (From meta-ibm rev: 731297ebde0eb4272d39260a30cd5f5b1f4e6f1a) Change-Id: Ibcb72ef6be7c953cc35cc216e8cc45e283949e61 Signed-off-by: Ben Pai <Ben_Pai@wistron.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-ibm: mihawk: Add 250 soc thermal sensorBen Pai9-0/+48
Mihawk can use up to eight 250-soc. Tested: The user can see the temperature when using 250-soc. (From meta-ibm rev: 74b7557b08ed2582861cd7da390d84371ec2ff86) Change-Id: I17b0d969d0902f6470287c6164f542ad84412f7d Signed-off-by: Ben Pai <Ben_Pai@wistron.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-27meta-ibm: move all meta-witherspoon metadataBrad Bishop76-0/+3281
The metadata common to all IBM systems is confusingly split between meta-ibm and meta-witherspoon. Move everything to meta-ibm. The meta-ibm README is re-written to more accurately reflect the scope of the layer. Allow the configuration samples (bblayers.conf.sample, local.conf.sample) to be sourced from either meta-ibm or meta-witherspoon until such a time that any workflows and tooling have had the opportunity to move to meta-ibm. (From meta-ibm rev: 6e05ef2e90b214eaf4e43ee7027bbbb1d8d09442) Change-Id: I3ec890d5300f9649c974ea6b9dca93a2e8a889ab Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>