gpio-fan.txt 684 B

12345678910111213141516171819202122232425
  1. Bindings for fan connected to GPIO lines
  2. Required properties:
  3. - compatible : "gpio-fan"
  4. - gpios: Specifies the pins that map to bits in the control value,
  5. ordered MSB-->LSB.
  6. - gpio-fan,speed-map: A mapping of possible fan RPM speeds and the
  7. control value that should be set to achieve them. This array
  8. must have the RPM values in ascending order.
  9. Optional properties:
  10. - alarm-gpios: This pin going active indicates something is wrong with
  11. the fan, and a udev event will be fired.
  12. Examples:
  13. gpio_fan {
  14. compatible = "gpio-fan";
  15. gpios = <&gpio1 14 1
  16. &gpio1 13 1>;
  17. gpio-fan,speed-map = <0 0
  18. 3000 1
  19. 6000 2>;
  20. alarm-gpios = <&gpio1 15 1>;
  21. };