commit | ddf25d175d933b6886d5c447727474c90f8dc823 | [log] [tgz] |
---|---|---|
author | Howard Chiu <howard.chiu@quantatw.com> | Thu Dec 02 15:14:44 2021 +0800 |
committer | Potin Lai <potin.lai@quantatw.com> | Fri Apr 29 14:43:32 2022 +0800 |
tree | 23cb011d97213ef899cee81ec3201460c0c99209 | |
parent | 7dd6443b88a52cb17d925bbe0f316d6a0374a703 [diff] |
Fansensor: Support ast26xx pwm/tach Add new fantype for ast26xx tach driver. Use pwm-fan driver to setup ast26xx pwm driver for easier usage. User must define pwm-fan node in dts as below pwm-fanX { compatible = "pwm-fan"; ....... }; refer Documentation/devicetree/bindings/hwmon/pwm-fan.txt for details and Connector in EM configuration "Connector": { "Pwm": X, ...... } where X is integer Tested: On Facebook Bletchley (ast26xx) Platform with 1 fan root@bletchley:/sys/class/leds# busctl set-property xyz.openbmc_project.FanSensor /xyz/openbmc_project/sensors/fan_pwm/Pwm_1 xyz.openbmc_project.Sensor.Value Value d 20 root@bletchley:/sys/class/leds# busctl introspect xyz.openbmc_project.FanSensor /xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_IL xyz.openbmc_project.Sensor.Value NAME TYPE SIGNATURE RESULT/VALUE FLAGS .MaxValue property d 25000 emits-change .MinValue property d 0 emits-change .Unit property s "xyz.openbmc_project.Sensor.Value.Uni... emits-change .Value property d 3189 emits-change writable root@bletchley:/sys/class/leds# busctl introspect xyz.openbmc_project.FanSensor /xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_OL xyz.openbmc_project.Sensor.Value NAME TYPE SIGNATURE RESULT/VALUE FLAGS .MaxValue property d 25000 emits-change .MinValue property d 0 emits-change .Unit property s "xyz.openbmc_project.Sensor.Value.Uni... emits-change .Value property d 3006 emits-change writable Signed-off-by: Howard Chiu <howard.chiu@quantatw.com> Change-Id: Ifda89310590c9d914fa0a302df412fead807daa8 Signed-off-by: Potin Lai <potin.lai@quantatw.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