I tried 13.0-RC2 on a Raspberry Pi 3B+, and observe that the Ethernet LEDs are not functional. It looks like the issue originally addressed in PR237325 has returned. if_muge.c is at 9dd3156e546b29b1e6c3047578e91b1d098af171 in releng/13.0. More details to be added after further investigation.
LEDs on external EVB_LAN7800 (w/ eeprom config) are functional.
in muge_set_leds() we see the LED modes should be obtained from OF_getencprop(node, "microchip,led-modes", modes, sizeof(modes)) I do not see "microchip,led-modes" in ofwdump -a. Looks like this should come from sys/contrib/device-tree/src/arm/bcm283x-rpi-lan7515.dtsi
Booting into Raspberry Pi OS (kernel 5.10.17-v7+ Mon Feb 22 11:29:51 GMT 2021) I see microchip,led-modes (From `dtc -I fs -o dts /proc/device-tree/`. That command emitted many warnings though).
microchip,led-modes does appear in `sysctl -b hw.fdt.dtb | dtc -I dtb -O dts` however.
Created attachment 223302 [details] sysctl -b hw.fdt.dtb | dtc -I dtb -O dts
Setting `sysctl hw.usb.muge.debug=1` and then forcing it to reattach via `usbconfig reset` I see muge0: debug: MAC assigned from FDT data muge0: debug: setting mac address to XX:XX:XX:XX:XX:XX muge0: Chip ID 0x7800 rev 0002 muge0: debug: Initializing PHY. I would expect "LED modes set from FDT data" after the MAC info in the working case.
Created attachment 226287 [details] Excerpt of sdiff -w 166 bcm2710-rpi-3-b-plus.old.dts bcm2710-rpi-3-b-plus.new.dts
Created attachment 226289 [details] Locate the LED-modes again. Some time in the past the device node in the dts got a child node and that child node got a child node as well. See attachment #226287 [details]. The LED-modes property moved into the grandchild of the device node and the driver was not prepared for this. I thought about implementing a recursive search for the LED-modes property but that seems to heavy for a almost static subtree with no peer nodes. Finally I accessed the grandchild node directly. This might not be the smartest solution but now the LEDs are working again. Ralf