pwm-fan.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. Kernel driver pwm-fan
  2. =====================
  3. This driver enables the use of a PWM module to drive a fan. It uses the
  4. generic PWM interface thus it is hardware independent. It can be used on
  5. many SoCs, as long as the SoC supplies a PWM line driver that exposes
  6. the generic PWM API.
  7. Author: Kamil Debski <[email protected]>
  8. Description
  9. -----------
  10. The driver implements a simple interface for driving a fan connected to
  11. a PWM output. It uses the generic PWM interface, thus it can be used with
  12. a range of SoCs. The driver exposes the fan to the user space through
  13. the hwmon's sysfs interface.
  14. The fan rotation speed returned via the optional 'fan1_input' is extrapolated
  15. from the sampled interrupts from the tachometer signal within 1 second.
  16. The driver provides the following sensor accesses in sysfs:
  17. =============== ======= =======================================================
  18. fan1_input ro fan tachometer speed in RPM
  19. pwm1_enable rw keep enable mode, defines behaviour when pwm1=0
  20. 0 -> disable pwm and regulator
  21. 1 -> enable pwm; if pwm==0, disable pwm, keep regulator enabled
  22. 2 -> enable pwm; if pwm==0, keep pwm and regulator enabled
  23. 3 -> enable pwm; if pwm==0, disable pwm and regulator
  24. pwm1 rw relative speed (0-255), 255=max. speed.
  25. =============== ======= =======================================================