lkml.org 
[lkml]   [2019]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH RFC V2 0/3] hwmon: pwm-fan: Add RPM support
Date
Contrary to the gpio-fan the pwm-fan driver isn't easy to setup
with pwmconfig/fancontrol because of the missing hwmon sysfs entry
for actual revolutions per minute. This series adds this feature.

Changes in V2:
- address Guenter's comments:
- improve description of interrupts
- use atomic_t to avoid races of the pulse counter
- measure sample time to make rpm more reliable under load
- make sysfs entry fan1_input conditional
- add dt-property to define interrupts per fan revolution
- example for fan with RPM support

Stefan Wahren (3):
dt-bindings: hwmon: Add tachometer interrupt to pwm-fan
Documentation: pwm-fan: Add description for RPM support
hwmon: pwm-fan: Add RPM support via external interrupt

.../devicetree/bindings/hwmon/pwm-fan.txt | 19 +++++
Documentation/hwmon/pwm-fan | 3 +
drivers/hwmon/pwm-fan.c | 94 +++++++++++++++++++++-
3 files changed, 115 insertions(+), 1 deletion(-)

--
2.7.4

\
 
 \ /
  Last update: 2019-02-25 17:01    [W:1.073 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site