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

From: Chris Packham

Date: Tue Oct 20 2026 - 16:19:56 EST


Hi Ross,

On 19/10/2026 12:20, Ross Cawston wrote:
> On Sun, Oct 18, 2026 at 10:36 PM UTC, Andrew Lunn wrote:
>> Port LEDs should be within the port node of the switch in DT. Ideally
>> you want all LEDs for a port to start the with basics, on/off control.
> [...]
>> So please don't make these LEDs special.
> That makes sense. The catch is that RTL9300 has no switch driver
> upstream yet, so there is no port node with a driver behind it to put
> them in: mainline only has drivers for the switch's I2C and MDIO
> controllers.
>
> Unless you see a place they could go in the meantime, I'll withdraw
> this series until there is one.
>
> Chris, do you know of anyone working on an RTL9300 switch driver? If
> so, I'd be glad to help with the port LEDs there.

I don't know of anyone actively working on it. I did have something
vaguely functional as a switchdev driver, I'll see if I can dig it up
and send it to you directly. I did look at the DSA driver from openwrt
but I consider DSA the wrong model for the RTL9300 (mainly because the
"nic" is not a true Ethernet interface it's just the DMA channel for
trapped packets and FDB updates).

I'm still vaguely working on RTL stuff but we've pivoted to the ARMv8
based RTL9311B. For our commercial product we'll be starting with the
Realtek SDK but personally I'd really like to see an in-kernel driver
for these switches.