Add reporting of Relative Humidity for Hwmon

By checking for IIO devies of in_humidityrelative_input or
in_humidityrelative_raw we add to the reading of those devices too.
Also the units for "Percent" now have become overloaded, as humidity
is "Percent" Relative Humidity and not a a Utilization. I believe
Utilization should NOT be a "Percent" but a fraction from 0 to 1.

Tested: on Rainier's Blyth and Everest's Storm King Op Panels
busctl introspect --no-pager xyz.openbmc_project.HwmonTempSensor \
/xyz/openbmc_project/sensors/humidity/Relative_Humidity
Results consistent with location of the systems.

Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I62c2464177542e7a2234f277be30d4fa4a849381
1 file changed
tree: 56ec3a47037ae0edecf692a879d332782c65d180
  1. include/
  2. service_files/
  3. src/
  4. subprojects/
  5. tests/
  6. .clang-format
  7. .clang-ignore
  8. .clang-tidy
  9. .gitignore
  10. Jenkinsfile
  11. LICENSE
  12. MAINTAINERS
  13. meson.build
  14. meson_options.txt
  15. OWNERS
  16. README.md
README.md

dbus-sensors

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.

key features

  • 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

sensor documentation