Skip to content

dt-bindings: support Ethernet devices as LED triggers

Rafał Miłecki linux-arm-kernel linux-devicetree linux-doc linux-leds lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/24 of 5 patches 5 repliesIn review
  2. v1 posting 1/24 patches 5 repliesSuperseded

4 of 5 patches are in this archive. The cover letter announces 5.

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: net: add bitfield defines for Ethernet speedsinclude/dt-bindings/net/eth.h+27 -01 reply
2/5dt-bindings: net: allow Ethernet devices as LED triggersDocumentation/devicetree/bindings/net/ethernet-controller.yaml+3 -01 reply
3/5dt-bindings: leds: add Ethernet triggered LEDs to exampleDocumentation/devicetree/bindings/leds/common.yaml+21 -00 replies
4/5ARM: dts: BCM5301X: Add triggers for Luxul XWR-1200 network LEDsarch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts+17 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RESEND 0/5] dt-bindings: support Ethernet devices as LED triggers

From: Rafał Miłecki <[email protected]>

Some LEDs are designed to represent a state of another device. That may be USB port, Ethernet interface, CPU, hard drive and more.

We already have support for LEDs that are designed to indicate USB port (e.g. light on when USB device gets connected). There is DT binding for that and Linux implementation in USB trigger.

This patchset adds support for describing LEDs that should react to Ethernet interface status. That is commonly used in routers. They often have LED to display state and activity of selected physical port. It's also common to have multiple LEDs, each reacting to a specific link speed.

Patch 5/5 is proof of concept and is not meant to be applied yet.

Rafał Miłecki (5):
dt-bindings: net: add bitfield defines for Ethernet speeds
dt-bindings: net: allow Ethernet devices as LED triggers
dt-bindings: leds: add Ethernet triggered LEDs to example
ARM: dts: BCM5301X: Add triggers for Luxul XWR-1200 network LEDs
leds: trigger: netdev: support DT "trigger-sources" property

 .../devicetree/bindings/leds/common.yaml      | 21 +++++++++++++++
 .../bindings/net/ethernet-controller.yaml     |  3 +++
 arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 22 +++++++++++----
 drivers/leds/trigger/ledtrig-netdev.c         | 26 ++++++++++++++++++
 include/dt-bindings/net/eth.h                 | 27 +++++++++++++++++++
 5 files changed, 94 insertions(+), 5 deletions(-)
 create mode 100644 include/dt-bindings/net/eth.h
Signature · 1 line
2.34.1