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

From: Ross Cawston

Date: Sun Oct 18 2026 - 15:56:36 EST


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

--
2.55.0.windows.5