commit | a5b1bbcc6c633220512ed6d78a18965eeeb6c2d2 | [log] [tgz] |
---|---|---|
author | Zhu, Yunge <yunge.zhu@linux.intel.com> | Tue Apr 09 19:49:36 2019 -0400 |
committer | Zhu, Yunge <yunge.zhu@linux.intel.com> | Wed Apr 10 23:16:34 2019 +0000 |
tree | fae717fe24d3b6dc00cc672d9071a0efd9b25f55 | |
parent | e50345b36f794afecc4b63d01b8341de49be7234 [diff] |
[ADC-GPIO]Enabling ADC-Gpio Bridge Commit 2: bridge In case a channel has a bridge circuit, we have to turn the bridge on prior to reading a value at least for one scan cycle to get a valid value. Add support for ADC channel controlled by GPIO. For example,ADC channel8, connected to CMOS battery, is controlled by a GPIO. Need set 1 to gpio when Channel8 sampling, and set 0 to gpio when finish sampling. Another Commit 1:Enable ADC Gpio bridge configuration Tested: P3VBAT previous value is 0.4V P3VBAT sensor reading now:3.0843V Change-Id: I64325845dfd4a931d0beda28993f6b15fa31ae95 Signed-off-by: Zhu, Yunge <yunge.zhu@linux.intel.com>
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