pwm-fan.txt 938 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Bindings for a fan connected to the PWM lines
  2. Required properties:
  3. - compatible : "pwm-fan"
  4. - pwms : the PWM that is used to control the PWM fan
  5. - cooling-levels : PWM duty cycle values in a range from 0 to 255
  6. which correspond to thermal cooling states
  7. Example:
  8. fan0: pwm-fan {
  9. compatible = "pwm-fan";
  10. cooling-min-state = <0>;
  11. cooling-max-state = <3>;
  12. #cooling-cells = <2>;
  13. pwms = <&pwm 0 10000 0>;
  14. cooling-levels = <0 102 170 230>;
  15. };
  16. thermal-zones {
  17. cpu_thermal: cpu-thermal {
  18. thermal-sensors = <&tmu 0>;
  19. polling-delay-passive = <0>;
  20. polling-delay = <0>;
  21. trips {
  22. cpu_alert1: cpu-alert1 {
  23. temperature = <100000>; /* millicelsius */
  24. hysteresis = <2000>; /* millicelsius */
  25. type = "passive";
  26. };
  27. };
  28. cooling-maps {
  29. map0 {
  30. trip = <&cpu_alert1>;
  31. cooling-device = <&fan0 0 1>;
  32. };
  33. };
  34. };