Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/4] leds: Add driver for disk leds in synology devices
@ 2026-12-04 12:21 Markus Probst
  2026-12-04 12:21 ` [PATCH v2 1/4] dt-bindings: leds: Add synology disk led controller Markus Probst
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Markus Probst @ 2026-12-04 12:21 UTC (permalink / raw)
  To: Lee Jones, Pavel Machek, Griffin Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Miguel Ojeda, Boqun Feng,
	Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg,
	Alice Ryhl, Trevor Gross, Danilo Krummrich, Daniel Almeida,
	Tamir Duberstein, Alexandre Courbot, Onur Özkan
  Cc: linux-leds, devicetree, linux-kernel, rust-for-linux, driver-core,
	Markus Probst

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@posteo.de/
[2]
https://lore.kernel.org/rust-for-linux/20261201165508.39336-1-muchamadcoirulanwar@gmail.com/
(patch 1+2)

Signed-off-by: Markus Probst <markus.probst@posteo.de>
---
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@posteo.de

---
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@gmail.com
prerequisite-patch-id: 8741958d13c628fd7b19b96c3b3dcbbd30ddfb48
prerequisite-patch-id: 13b003555af95fc3e45de60a39e9a0ff8aabd1bd
prerequisite-patch-id: f28d13f870e227b99920bc10f9990d8f713f8c00
prerequisite-patch-id: 5ede68001055ff3faddde5d3173f84ebce2f3e92


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-12-04 16:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 12:21 [PATCH v2 0/4] leds: Add driver for disk leds in synology devices Markus Probst
2026-12-04 12:21 ` [PATCH v2 1/4] dt-bindings: leds: Add synology disk led controller Markus Probst
2026-12-04 12:35   ` sashiko-bot
2026-12-04 12:21 ` [PATCH v2 2/4] rust: io: Add `RegisterArrayLoc::index` Markus Probst
2026-12-04 12:30   ` sashiko-bot
2026-12-04 12:21 ` [PATCH v2 3/4] rust: io: Implement Copy for RegisterArrayLoc Markus Probst
2026-12-04 12:33   ` sashiko-bot
2026-12-04 13:38   ` Gary Guo
2026-12-04 13:42     ` Markus Probst
2026-12-04 12:22 ` [PATCH v2 4/4] leds: Add driver for disk leds in synology devices Markus Probst
2026-12-04 13:32   ` sashiko-bot
2026-12-04 16:54     ` Markus Probst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox