Skip to content

Commit 3f674e7

Browse files
mmindlag-linaro
authored andcommitted
dt-bindings: mfd: Add binding for qnap,ts433-mcu devices
These MCUs can be found in network attached storage devices made by QNAP. They are connected to a serial port of the host device and provide functionality like LEDs, power-control and temperature monitoring. LEDs, buttons, etc are all elements of the MCU firmware itself, so don't need devicetree input, though the fan gets its cooling settings from a fan-0 subnode. A binding for the LEDs for setting the linux-default-trigger may come later, once all the LEDs are understood and ATA controllers actually can address individual port-LEDs, but are really optional. Signed-off-by: Heiko Stuebner <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent fa52c04 commit 3f674e7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mfd/qnap,ts433-mcu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: QNAP NAS on-board Microcontroller
8+
9+
maintainers:
10+
- Heiko Stuebner <[email protected]>
11+
12+
description:
13+
QNAP embeds a microcontroller on their NAS devices adding system feature
14+
as PWM Fan control, additional LEDs, power button status and more.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- qnap,ts433-mcu
20+
21+
patternProperties:
22+
"^fan-[0-9]+$":
23+
$ref: /schemas/hwmon/fan-common.yaml#
24+
unevaluatedProperties: false
25+
26+
required:
27+
- compatible
28+
29+
additionalProperties: false
30+
31+
examples:
32+
- |
33+
uart {
34+
mcu {
35+
compatible = "qnap,ts433-mcu";
36+
37+
fan-0 {
38+
#cooling-cells = <2>;
39+
cooling-levels = <0 64 89 128 166 204 221 238>;
40+
};
41+
};
42+
};

0 commit comments

Comments
 (0)