xref: /linux/Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml (revision 098b6e44cbaa2d526d06af90c862d13fb414a0ec)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/iei,wt61p803-puzzle.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: IEI WT61P803 PUZZLE MCU from IEI Integration Corp.
8
9maintainers:
10  - Luka Kovacic <luka.kovacic@sartura.hr>
11
12description: |
13  IEI WT61P803 PUZZLE MCU is embedded in some IEI Puzzle series boards.
14  It's used for controlling system power states, fans, LEDs and temperature
15  sensors.
16
17  For Device Tree bindings of other sub-modules (HWMON, LEDs) refer to the
18  binding documents under the respective subsystem directories.
19
20properties:
21  compatible:
22    const: iei,wt61p803-puzzle
23
24  current-speed: true
25
26  enable-beep:
27    type: boolean
28
29  hwmon:
30    $ref: /schemas/hwmon/iei,wt61p803-puzzle-hwmon.yaml
31
32  leds:
33    $ref: /schemas/leds/iei,wt61p803-puzzle-leds.yaml
34
35required:
36  - compatible
37  - current-speed
38
39additionalProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/leds/common.h>
44    serial {
45        mcu {
46            compatible = "iei,wt61p803-puzzle";
47            current-speed = <115200>;
48            enable-beep;
49
50            leds {
51                compatible = "iei,wt61p803-puzzle-leds";
52                #address-cells = <1>;
53                #size-cells = <0>;
54
55                led@0 {
56                    reg = <0>;
57                    function = LED_FUNCTION_POWER;
58                    color = <LED_COLOR_ID_BLUE>;
59                };
60            };
61
62            hwmon {
63                compatible = "iei,wt61p803-puzzle-hwmon";
64                #address-cells = <1>;
65                #size-cells = <0>;
66
67                fan-group@0 {
68                    #cooling-cells = <2>;
69                    reg = <0x00>;
70                    cooling-levels = <64 102 170 230 250>;
71                };
72
73                fan-group@1 {
74                    #cooling-cells = <2>;
75                    reg = <0x01>;
76                    cooling-levels = <64 102 170 230 250>;
77                };
78            };
79        };
80    };
81