[PATCH v2 0/4] leds: Add driver for disk leds in synology devices
From: Markus Probst
Date: Fri Dec 04 2026 - 07:22:08 EST
Yet another user for the rust led abstractions.
This adds a driver to control the disk leds on synology devices.
Dependencies:
- LED Rust Abstraction [1]
- Rust I2C SMBus IO backend implementation [2]
[1] https://lore.kernel.org/rust-for-linux/20261113-rust_leds-v28-0-b8cf2f74fa57@xxxxxxxxx/
[2]
https://lore.kernel.org/rust-for-linux/20261201165508.39336-1-muchamadcoirulanwar@xxxxxxxxx/
(patch 1+2)
Signed-off-by: Markus Probst <markus.probst@xxxxxxxxx>
---
Changes in v2:
- fixed issues reported by Sashiko:
- add missing I2C=y dependency in Kconfig
- remove register clean in unbind
- clear led modes on probe
- sort Makefile
- capitalize subject line
- dt binding rejecting hexadecimal numbers in unit name
- use () as type for IdInfo
- add missing LEDS_CLASS=y && LEDS_CLASS_MULTICOLOR=y dependency in
Kconfig
- refactored to use register! (2 additional patches required)
- move initialization code into own init function
- move unbind() code into Drop
- adapt to rust_leds v29
- Link to v1: https://patch.msgid.link/20261202-synology_disk_leds-v1-0-53249fd3a2ad@xxxxxxxxx
---
Markus Probst (4):
dt-bindings: leds: Add synology disk led controller
rust: io: Add `RegisterArrayLoc::index`
rust: io: Implement Copy for RegisterArrayLoc
leds: Add driver for disk leds in synology devices
.../bindings/leds/synology,disk-leds.yaml | 151 +++++++
MAINTAINERS | 7 +
drivers/leds/Kconfig | 9 +
drivers/leds/Makefile | 1 +
drivers/leds/leds_synology_disk.rs | 453 +++++++++++++++++++++
rust/kernel/io/register.rs | 13 +
6 files changed, 634 insertions(+)
---
base-commit: c8cbaa094f4f7cc4e4d5a1e3ea7be5dfb362dcbb
change-id: 20261122-synology_disk_leds-182da42b8902
prerequisite-change-id: 20251114-rust_leds-a959f7c2f7f9:v29
prerequisite-patch-id: 89aa72aea271e8b3d6dbaffe46d93c1bff4014a9
prerequisite-patch-id: 9d6a38e90660f59652540ad258808c8bfa6c0d8c
prerequisite-patch-id: 8c8dcfb3cca3fd63b704edc30737268d525d0b54
prerequisite-patch-id: 9976190872fe26c2a980c66a4ebc050fd2bcaf71
prerequisite-message-id: 20261201165508.39336-1-muchamadcoirulanwar@xxxxxxxxx
prerequisite-patch-id: 8741958d13c628fd7b19b96c3b3dcbbd30ddfb48
prerequisite-patch-id: 13b003555af95fc3e45de60a39e9a0ff8aabd1bd
prerequisite-patch-id: f28d13f870e227b99920bc10f9990d8f713f8c00
prerequisite-patch-id: 5ede68001055ff3faddde5d3173f84ebce2f3e92