[PATCH 1/2] dt-bindings: leds: Add synology disk led controller
From: Markus Probst
Date: Wed Dec 02 2026 - 10:21:29 EST
Add devicetree bindings for the synology disk led controller. It uses
the Atmega1608 microcontroller with I2C interface.
The led controller supports up to 24 leds. It is common that multiple leds
in Synology devices share the same slot and thus are grouped as multicolor
led.
Signed-off-by: Markus Probst <markus.probst@xxxxxxxxx>
---
.../bindings/leds/synology,disk-leds.yaml | 151 +++++++++++++++++++++
1 file changed, 151 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/synology,disk-leds.yaml b/Documentation/devicetree/bindings/leds/synology,disk-leds.yaml
new file mode 100644
index 000000000000..e9a8df77c8b4
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/synology,disk-leds.yaml
@@ -0,0 +1,151 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/synology,disk-leds.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Synology disk led controller
+
+maintainers:
+ - Markus Probst <markus.probst@xxxxxxxxx>
+
+description: |
+ Led controller used for disk leds in Synology devices. It uses the
+ Atmega1608 microcontroller with I2C interface.
+
+properties:
+ compatible:
+ const: synology,disk-leds
+
+ reg:
+ maxItems: 1
+
+patternProperties:
+ "^disk-[0-9]+$":
+ type: object
+ $ref: leds-class-multicolor.yaml#
+ unevaluatedProperties: false
+
+ properties:
+ "#address-cells":
+ const: 1
+
+ "#size-cells":
+ const: 0
+
+ patternProperties:
+ "^led@[0-9]+$":
+ type: object
+ additionalProperties: false
+
+ properties:
+ reg:
+ description: Index of the LED.
+ minimum: 0
+ maximum: 23
+
+ color:
+ description: Color of the LED.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 0
+ maximum: 14
+
+ required:
+ - reg
+ - color
+
+ required:
+ - "#address-cells"
+ - "#size-cells"
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/leds/common.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led-controller@60 {
+ compatible = "synology,disk-leds";
+ reg = <0x60>;
+
+ disk-1 {
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <1>;
+ color = <LED_COLOR_ID_MULTI>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@0 {
+ reg = <0>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@1 {
+ reg = <1>;
+ color = <LED_COLOR_ID_AMBER>;
+ };
+ };
+
+ disk-2 {
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <2>;
+ color = <LED_COLOR_ID_MULTI>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@2 {
+ reg = <2>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_AMBER>;
+ };
+ };
+
+ disk-3 {
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <3>;
+ color = <LED_COLOR_ID_MULTI>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@4 {
+ reg = <4>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@5 {
+ reg = <5>;
+ color = <LED_COLOR_ID_AMBER>;
+ };
+ };
+
+ disk-4 {
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <4>;
+ color = <LED_COLOR_ID_MULTI>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@6 {
+ reg = <6>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@7 {
+ reg = <7>;
+ color = <LED_COLOR_ID_AMBER>;
+ };
+ };
+ };
+ };
--
2.56.1