Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / Documentation / devicetree / bindings / hwmon / microchip,emc2305.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4
5 $id: http://devicetree.org/schemas/hwmon/emc2305.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
7
8 title: Microchip EMC230[1|2|3|5] RPM-based PWM Fan Speed Controller
9
10 properties:
11   compatible:
12     enum:
13       - microchip,emc2305
14       - microchip,emc2301
15   emc2305,pwm-min:
16     description:
17       Min pwm of emc2305
18     maxItems: 1
19   emc2305,pwm-max:
20     description:
21       Max pwm of emc2305
22     maxItems: 1
23   emc2305,pwm-channel:
24     description:
25       Max number of pwm channels
26     maxItems: 1
27   emcs205,max-state:
28     description:
29     maxItems: 1
30   emc2305,cooling-levels:
31     description:
32       Quantity of cooling level state.
33     maxItems: 1
34
35 required:
36   - compatible
37
38 optional:
39   - emc2305,min-pwm
40   - emc2305,max-pwm
41   - emc2305,pwm-channels
42   - emc2305,cooling-levels
43
44 additionalProperties: false
45
46 examples:
47   - |
48     fan {
49         compatible = "microchip,emc2305";
50         emc2305,pwm-min = <0>;
51         emc2305,pwm-max = <255>;
52         emc2305,pwm-channel = <5>
53         emc2305,cooling-levels = <10>;
54     };