Skip to content

leds: add Realtek RTL9300 port LEDs under software control

Ross Cawston linux-devicetree linux-leds lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: leds: add Realtek RTL9301 port LEDsDocumentation/devicetree/bindings/leds/realtek,rtl9301-port-leds.yaml+84 -00 replies
2/3dt-bindings: net: realtek,rtl9301-switch: add port LED controllerDocumentation/devicetree/bindings/net/realtek,rtl9301-switch.yaml+3 -01 reply
3/3leds: add Realtek RTL9300 port LED driverMAINTAINERS drivers/leds/Kconfig drivers/leds/Makefile +1 more+222 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] leds: add Realtek RTL9300 port LEDs under software control

The RTL9300 switch drives up to four LEDs per port over its LED interface, serial or scanned, each normally showing a hardware function chosen by the LED set of the port. Some boards wire LEDs to it that have no hardware function and that the vendor firmware switches in software, such as the PoE status LEDs of the MokerLink POE-10G07110GSM.

This series adds a binding for such LEDs as a child of the switch, like its I2C and MDIO controllers, and a driver that takes them under software control and exposes them as LED class devices. With the PSE core's LED triggers, the PoE LEDs then follow the power delivery of their ports. The registers come from the vendor SDK's register table. Tested on the MokerLink POE-10G07110GSM.

Ross Cawston (3):
dt-bindings: leds: add Realtek RTL9301 port LEDs
dt-bindings: net: realtek,rtl9301-switch: add port LED controller
leds: add Realtek RTL9300 port LED driver

 .../leds/realtek,rtl9301-port-leds.yaml       |  84 ++++++++
 .../bindings/net/realtek,rtl9301-switch.yaml  |   3 +
 MAINTAINERS                                   |   7 +
 drivers/leds/Kconfig                          |  13 ++
 drivers/leds/Makefile                         |   1 +
 drivers/leds/leds-rtl9300-port.c              | 201 ++++++++++++++++++
 6 files changed, 309 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/realtek,rtl9301-port-leds.yaml
 create mode 100644 drivers/leds/leds-rtl9300-port.c
Signature · 1 line
2.55.0.windows.5