Correct association of PSU PWM Sensor

Correct association of PSU PWM Sensor which can make redfish get correct PSU
PWM Fan sensors in Thermal/Fans entries.

Tested:
Insert one 1100W PSU and check Web redfish page, below entry can be found.
https://ip/redfish/v1/Chassis/Flextronics_S_1100ADU00_201_PSU_1/Thermal
"@odata.id": "/redfish/v1/Chassis/Flextronics_S_1100ADU00_201_PSU_1/Thermal#/
Fans/1",
"@odata.type": "#Thermal.v1_3_0.Fan",
"MaxReadingRange": 100,
"MemberId": "Pwm_PSU1_Fan_1",
"MinReadingRange": 0,
"Name": "Pwm PSU1 Fan 1",
"Reading": 29,
"ReadingUnits": "Percent",
"Status": {
    "Health": "OK",
    "State": "Enabled"
}

Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
Change-Id: I8f068ef3e5bd246a2432e180b1c86dbd6b0bad97
1 file changed
tree: 4a4174fc159bb3ace8929374a0b20e3cd8a8c828
  1. cmake/
  2. include/
  3. service_files/
  4. src/
  5. tests/
  6. .clang-format
  7. .gitignore
  8. cmake-format.json
  9. CMakeLists.txt
  10. Jenkinsfile
  11. LICENSE
  12. MAINTAINERS
  13. 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