g762.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. GMT G762/G763 PWM Fan controller
  2. Required node properties:
  3. - "compatible": must be either "gmt,g762" or "gmt,g763"
  4. - "reg": I2C bus address of the device
  5. - "clocks": a fixed clock providing input clock frequency
  6. on CLK pin of the chip.
  7. Optional properties:
  8. - "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3.
  9. The higher the more.
  10. - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty)
  11. and 1 (negative duty).
  12. - "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2.
  13. If an optional property is not set in .dts file, then current value is kept
  14. unmodified (e.g. u-boot installed value).
  15. Additional information on operational parameters for the device is available
  16. in Documentation/hwmon/g762. A detailed datasheet for the device is available
  17. at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.
  18. Example g762 node:
  19. clocks {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. g762_clk: fixedclk {
  23. compatible = "fixed-clock";
  24. #clock-cells = <0>;
  25. clock-frequency = <8192>;
  26. }
  27. }
  28. g762: g762@3e {
  29. compatible = "gmt,g762";
  30. reg = <0x3e>;
  31. clocks = <&g762_clk>
  32. fan_gear_mode = <0>; /* chip default */
  33. fan_startv = <1>; /* chip default */
  34. pwm_polarity = <0>; /* chip default */
  35. };