commit | abf91de1876278b8b8f98787577a539804833ad4 | [log] [tgz] |
---|---|---|
author | Jeff Lin <JeffLin2@quantatw.com> | Wed Dec 23 10:55:42 2020 +0800 |
committer | Jeff Lin <JeffLin2@quantatw.com> | Fri Apr 09 14:03:14 2021 +0800 |
tree | 3537dcc5e6f7513901ffaa42f441d157fe1f295c | |
parent | 0362738df78e3bb511105f9fe28637ec2d7b0ffa [diff] |
FanSensor: Add initial of pwm enable file For some fan controller, they need to set the specific regulator mode to make the corresponding fan be able to be updated. For example, we are using fan controller MAX31790 and it need to write 1 into ./hwmon1/pwm1_enable to make ./hwmon1/fan1_input be able to be updated. Add MAX31790 in sensor type and make it write 1 into pwm*_enable file automatically. Tested: 1. Remove entry "Pwm" in connector of some I2CFan in json and verify pass. Signed-off-by: Jeff Lin <JeffLin2@quantatw.com> Change-Id: Id97282bcd12b70fb7fc92f4d06e0e326522894a3
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