Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <heiko@sntech.de>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20241107114712.538976-4-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Heiko Stuebner and committed by
Lee Jones
3f674e74 fa52c04d

+42
+42
Documentation/devicetree/bindings/mfd/qnap,ts433-mcu.yaml
··· 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 <heiko@sntech.de> 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 + };