Re: [PATCH net-next v2] net: phy: marvell: add support for PHY LEDs polarity modes

From: Aleksander Jan Bajkowski

Date: Thu Sep 24 2026 - 14:49:24 EST


Hi Andrew,

On 24/09/2026 00:54, Andrew Lunn wrote:
The number of LEDs depends on the PHY variant:
88E1112 -> 4
88E1116R -> 3
88E1240 -> 4
88E1318S -> 3
88E1510 -> 3
88E1545 -> 4
88E1548P -> 4
Ah, i had a quick look at the current code, and all the functions have
a switch statement with case 0, 1, 2. So i assumed that all PHYs have
the same number of LEDs.

So any PHY which does have 4 is currently not supported?
Correct. Although some PHY variants support 4 LEDs, only three can be
configured via the LED API. The fourth LED can only be configured via
the 'marvell,reg-init' property.

Best regards,
Aleksander