All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add Turris Omnia LEDs driver
@ 2020-04-21 17:17 Marek Behún
  2020-04-21 17:17 ` [PATCH 1/2] dt-bindings: leds: add cznic,turris-omnia-leds binding Marek Behún
  2020-04-21 17:17 ` [PATCH 2/2] leds: initial support for Turris Omnia LEDs Marek Behún
  0 siblings, 2 replies; 6+ messages in thread
From: Marek Behún @ 2020-04-21 17:17 UTC (permalink / raw)
  To: linux-leds; +Cc: Pavel Machek, Jacek Anaszewski, Marek Behún

Hi,

this adds support for the Turris Omnia front panel RGB LEDs.
The patches should apply on Pavel's for-next branch.

Changes since RFC:
- added device-tree bindings documentation
- the reg property is abandoned, as discussed previously on mailing
  list, since it can be deduced from led-sources
- setting devicename is dropped

After a call with Pavel I decided that it would be good to first merge
this driver in this state, and then work on improving it, eg:
- adding support for changing global brightness via sysfs file as
  discussed previously
- adding support for proper device name (the first part of the sysfs
  name for the LED classdev). The best way to connect a LED to a device
  (for example a network interface) is via a phandle in device tree
  (utilizing trigger-sources, for example). This could be implemented
  as a LED subsystem library function and then used by drivers

Marek

Marek Behún (2):
  dt-bindings: leds: add cznic,turris-omnia-leds binding
  leds: initial support for Turris Omnia LEDs

 .../leds/cznic,turris-omnia-leds.yaml         | 113 +++++++
 MAINTAINERS                                   |   6 +-
 drivers/leds/Kconfig                          |  11 +
 drivers/leds/Makefile                         |   1 +
 drivers/leds/leds-turris-omnia.c              | 285 ++++++++++++++++++
 5 files changed, 414 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/leds/cznic,turris-omnia-leds.yaml
 create mode 100644 drivers/leds/leds-turris-omnia.c

-- 
2.24.1


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

end of thread, other threads:[~2020-04-23  6:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-21 17:17 [PATCH 0/2] Add Turris Omnia LEDs driver Marek Behún
2020-04-21 17:17 ` [PATCH 1/2] dt-bindings: leds: add cznic,turris-omnia-leds binding Marek Behún
2020-04-23  6:35   ` Pavel Machek
2020-04-23  6:40     ` Marek Behun
2020-04-23  6:49       ` Pavel Machek
2020-04-21 17:17 ` [PATCH 2/2] leds: initial support for Turris Omnia LEDs Marek Behún

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.