Re: [PATCH net-next 1/4] dt-bindings: net: dsa: realtek: describe LED usage

From: Luiz Angelo Daros de Luca
Date: Thu Mar 21 2024 - 07:57:48 EST


Hi Linus,

>
> > Each port can have up to 4 LEDs (3 for current rtl8365mb devices). The
> > LED reg property will indicate its LED group.
> >
> > An example of LED usage was included in an existing switch example.
> >
> > Cc: devicetree@xxxxxxxxxxxxxxx
> > Signed-off-by: Luiz Angelo Daros de Luca <luizluca@xxxxxxxxx>
>
> But... is this patch even needed at all?

Yes, leds is a property already supported. The only purpose for this
patch is to limit led numbers to 0-3 and describe that the reg number
is the group.

I don't know if there is a better way to add restrictions to something
already defined. Anyway, if that is not necessary, I can drop it.

Regards,

Luiz