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