1 From aa4a0ccc41997f2da172165c92803abace43bd1c Mon Sep 17 00:00:00 2001
2 From: Luka Kovacic <luka.kovacic () sartura ! hr>
3 Date: Tue, 24 Aug 2021 12:44:32 +0000
4 Subject: [PATCH 1/7] dt-bindings: Add IEI vendor prefix and IEI WT61P803
7 Add the IEI WT61P803 PUZZLE Device Tree bindings for MFD, HWMON and LED
8 drivers. A new vendor prefix is also added accordingly for
11 Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
12 Signed-off-by: Pavo Banicevic <pavo.banicevic@sartura.hr>
13 Cc: Luka Perkov <luka.perkov@sartura.hr>
14 Cc: Robert Marko <robert.marko@sartura.hr>
16 .../hwmon/iei,wt61p803-puzzle-hwmon.yaml | 53 ++++++++++++
17 .../leds/iei,wt61p803-puzzle-leds.yaml | 39 +++++++++
18 .../bindings/mfd/iei,wt61p803-puzzle.yaml | 82 +++++++++++++++++++
19 .../devicetree/bindings/vendor-prefixes.yaml | 2 +
20 4 files changed, 176 insertions(+)
21 create mode 100644 Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml
22 create mode 100644 Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml
23 create mode 100644 Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml
26 +++ b/Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml
28 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
31 +$id: http://devicetree.org/schemas/hwmon/iei,wt61p803-puzzle-hwmon.yaml#
32 +$schema: http://devicetree.org/meta-schemas/core.yaml#
34 +title: IEI WT61P803 PUZZLE MCU HWMON module from IEI Integration Corp.
37 + - Luka Kovacic <luka.kovacic@sartura.hr>
40 + This module is a part of the IEI WT61P803 PUZZLE MFD device. For more details
41 + see Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml.
43 + The HWMON module is a sub-node of the MCU node in the Device Tree.
47 + const: iei,wt61p803-puzzle-hwmon
56 + "^fan-group@[0-1]$":
69 + Cooling levels for the fans (PWM value mapping)
71 + Properties for each fan group.
80 +additionalProperties: false
82 +++ b/Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml
84 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
87 +$id: http://devicetree.org/schemas/leds/iei,wt61p803-puzzle-leds.yaml#
88 +$schema: http://devicetree.org/meta-schemas/core.yaml#
90 +title: IEI WT61P803 PUZZLE MCU LED module from IEI Integration Corp.
93 + - Luka Kovacic <luka.kovacic@sartura.hr>
96 + This module is a part of the IEI WT61P803 PUZZLE MFD device. For more details
97 + see Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml.
99 + The LED module is a sub-node of the MCU node in the Device Tree.
103 + const: iei,wt61p803-puzzle-leds
115 + Properties for a single LED.
122 +additionalProperties: false
124 +++ b/Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml
126 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
129 +$id: http://devicetree.org/schemas/mfd/iei,wt61p803-puzzle.yaml#
130 +$schema: http://devicetree.org/meta-schemas/core.yaml#
132 +title: IEI WT61P803 PUZZLE MCU from IEI Integration Corp.
135 + - Luka Kovacic <luka.kovacic@sartura.hr>
138 + IEI WT61P803 PUZZLE MCU is embedded in some IEI Puzzle series boards.
139 + It's used for controlling system power states, fans, LEDs and temperature
142 + For Device Tree bindings of other sub-modules (HWMON, LEDs) refer to the
143 + binding documents under the respective subsystem directories.
147 + const: iei,wt61p803-puzzle
151 + Serial bus speed in bps
157 + $ref: /schemas/hwmon/iei,wt61p803-puzzle-hwmon.yaml
160 + $ref: /schemas/leds/iei,wt61p803-puzzle-leds.yaml
166 +additionalProperties: false
170 + #include <dt-bindings/leds/common.h>
173 + compatible = "iei,wt61p803-puzzle";
174 + current-speed = <115200>;
178 + compatible = "iei,wt61p803-puzzle-leds";
179 + #address-cells = <1>;
184 + function = LED_FUNCTION_POWER;
185 + color = <LED_COLOR_ID_BLUE>;
190 + compatible = "iei,wt61p803-puzzle-hwmon";
191 + #address-cells = <1>;
195 + #cooling-cells = <2>;
197 + cooling-levels = <64 102 170 230 250>;
201 + #cooling-cells = <2>;
203 + cooling-levels = <64 102 170 230 250>;
208 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
209 +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
210 @@ -519,6 +519,8 @@ patternProperties:
211 description: IC Plus Corp.
213 description: Integrated Device Technologies, Inc.
215 + description: IEI Integration Corp.
217 description: Ingenieurburo Fur Ic-Technologie (I/F/I)