commit | 544e7dc58cecef898fe7d684c3ba0fbce178cf2d | [log] [tgz] |
---|---|---|
author | Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> | Thu Jul 29 18:05:49 2021 -0500 |
committer | Ed Tanous <ed@tanous.net> | Fri Dec 10 04:36:25 2021 +0000 |
tree | 4dd0c43f128c7192f8b4153040b25f32334821ed | |
parent | b58ac3ac8e4224d48c46f2ce81f39bd2d9d5f63d [diff] |
DPS310 temperature pressure, SI7020 temperature Infineon DPS310 pressure and temperature sensors for the Blyth and Storm King Panel, as well as the Silicon Laboratories SI7020 type sensors. This provide OpenBMC with the ability to have the DPS310 pressure and temperature sensors also the Silicon Laboratories SI7020 type sensors provide OpenBMC with temperature sensor on dbus via dbus-sensors through HwmonTempSensor. And adds "pressure" as a type of sensor. Changed sensorScaleFactor to have offsetValue and scaleValue for _raw IIO devices, scaleValue is a multiplier where sensorScaleFactor was a divisor. Pulling this into HwmonTempSensor came about from this Discord discussion: https://discord.com/channels/775381525260664832/775381525260664836/869641817220595772 Tested: on Rainier's Blyth and Everest's Storm King Op Panels busctl tree --no-pager xyz.openbmc_project.HwmonTempSensor busctl introspect --no-pager xyz.openbmc_project.HwmonTempSensor \ /xyz/openbmc_project/sensors/temperature/Ambient_0_Temp busctl introspect --no-pager xyz.openbmc_project.HwmonTempSensor \ /xyz/openbmc_project/sensors/temperature/Ambient_1_Temp busctl introspect --no-pager xyz.openbmc_project.HwmonTempSensor \ /xyz/openbmc_project/sensors/temperature/Ambient_2_Temp busctl introspect --no-pager xyz.openbmc_project.HwmonTempSensor \ /xyz/openbmc_project/sensors/temperature/PCIE_0_Temp busctl introspect --no-pager xyz.openbmc_project.HwmonTempSensor \ /xyz/openbmc_project/sensors/temperature/PCIE_1_Temp busctl introspect --no-pager xyz.openbmc_project.HwmonTempSensor \ /xyz/openbmc_project/sensors/pressure/Station_Pressure Results consistent with location of the systems. Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> Change-Id: I5c0d56b486a671ee507c7bfe18fea72e7eaf9ebe
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access