net: phy: broadcom: Make LEDs 3+4 shadow LEDs 1+2
authorPhil Elwell <phil@raspberrypi.com>
Tue, 3 Jan 2023 16:00:21 +0000 (16:00 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 4 Jan 2023 08:29:35 +0000 (08:29 +0000)
commit326dea65f88e75d25960ecce49df23a0d76bbac0
tree78ab8a5102c08ee5cbe1874289d068d7642b79ce
parentbedac990ad13541c246f5ab83ee9c361b3a67698
net: phy: broadcom: Make LEDs 3+4 shadow LEDs 1+2

CM4 uses BCM54210PE, which supports 2 additional LEDs, choosing LED3
for the amber LED because it shows activity by default (LED4 is not
connected). However, this makes it uncontrollable by the eth_led<n>
dtparams which target LEDs 1+2.

Solve the problem by making LEDs 3+4 mirror LEDs 1+2 (which is much
simpler than adding baseboard-specific overrides, but comes with a
risk of making one of the LEDs redundant).

See: https://github.com/raspberrypi/linux/issues/5289

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/net/phy/broadcom.c