fan-common.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/fan-common.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Common Fan Properties
  7. maintainers:
  8. - Naresh Solanki <naresh.solanki@9elements.com>
  9. - Billy Tsai <billy_tsai@aspeedtech.com>
  10. properties:
  11. max-rpm:
  12. description:
  13. Max RPM supported by fan.
  14. $ref: /schemas/types.yaml#/definitions/uint32
  15. maximum: 100000
  16. min-rpm:
  17. description:
  18. Min RPM supported by fan.
  19. $ref: /schemas/types.yaml#/definitions/uint32
  20. maximum: 1000
  21. pulses-per-revolution:
  22. description:
  23. The number of pulse from fan sensor per revolution.
  24. $ref: /schemas/types.yaml#/definitions/uint32
  25. maximum: 4
  26. tach-div:
  27. description:
  28. Divisor for the tach sampling clock, which determines the sensitivity of the tach pin.
  29. $ref: /schemas/types.yaml#/definitions/uint32
  30. target-rpm:
  31. description:
  32. The default desired fan speed in RPM.
  33. $ref: /schemas/types.yaml#/definitions/uint32
  34. fan-driving-mode:
  35. description:
  36. Select the driving mode of the fan.(DC, PWM and so on)
  37. $ref: /schemas/types.yaml#/definitions/string
  38. enum: [ dc, pwm ]
  39. pwms:
  40. description:
  41. PWM provider.
  42. maxItems: 1
  43. "#cooling-cells":
  44. const: 2
  45. cooling-levels:
  46. description:
  47. The control value which correspond to thermal cooling states.
  48. $ref: /schemas/types.yaml#/definitions/uint32-array
  49. tach-ch:
  50. description:
  51. The tach channel used for the fan.
  52. $ref: /schemas/types.yaml#/definitions/uint8-array
  53. label:
  54. description:
  55. Optional fan label
  56. fan-supply:
  57. description:
  58. Power supply for fan.
  59. reg:
  60. maxItems: 1
  61. additionalProperties: true
  62. ...