commit | 347dd4e7a0a4923583151e4d9eb483b65dba9e7b | [log] [tgz] |
---|---|---|
author | Zhikui Ren <zhikui.ren@intel.com> | Thu Dec 12 13:39:50 2019 -0800 |
committer | Zhikui Ren <zhikui.ren@intel.com> | Mon Jan 06 23:10:58 2020 +0000 |
tree | 15285e78cfecf3d7b1cb99aa1e76a90aa4c275d1 | |
parent | b9122030ef274cdc503bcde71d93fe5eaec20a2a [diff] |
convert sysfs gpio usage to libgpiod Updated Fan presence sensor monitoring call back to use pin name and gpiod APIs. Number based sysfs framework is deprecated and replaced by descriptor based gpiod framework. With named gpio pin, code is more portable provided the device tree defines GPIO pin name consistently. This requires device tree change (225598) and configuration file change (entity-manager/+/28119) Tested By: remove and insert fans and observe fan presence status change on dbus fan sensor objects Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> Change-Id: Ice17a472285373ce866132ccc0da02cd1e70ddbe
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