I've put together a patch for the linux kernel which would expose the LED drivers available on this PHY (and potentially the RTL8226 / RTL8226b PHYs).
Does anyone know of any (ideally cheap) devices that leverage the LED drivers on these PHYs?
I'd like to test this code around the PHY LED drivers.
I've got a Hasivo S1100WP-8GT which uses 8 of these PHYs, but drives the LEDs using HC595 chips.
Some of the Cudy devices have it. I have a WR3000P and use mdio to turn off the WAN LED. The WR3000H (also with RTL8221b) is slightly cheaper due to less RAM I believe.
The LED configuration panel in LuCI (or anything in /sys/class/leds) does not have any effect on the LAN/WAN LEDs for me. I use mdio mt7530-0 0:0x1f raw 0x21 0x0008 to disable the LAN LEDs which I took from this GitHub issue, and mdio mdio-bus 6:0x1f 0xd044 0x4089 to disable the WAN LED according to the datasheet
That definitely seems to be the RTL8221b PHY LEDs for the WAN
So if I put together a github branch which would include patches to get your WAN (and maybe LAN) LEDs working, would you be able to test it out?
The WAN I've already got code for, would just need to edit the DTS for your board.
The LAN I'd need to look into the MT753x switch chip to see what can be done.
[EDIT] Ahh.. that's right, the LAN looks to be an upstream limitation, where the gpio-controller takes all the outputs from PHY LED => GPIO.. and putting them back with a software netdev trigger doesn't result in the same behaviour as default. I'll have to dig more into the MT753x switch stuff for that (I've got such a switch, so I can likely test that myself first).
So if I put together a github branch which would include patches to get your WAN (and maybe LAN) LEDs working, would you be able to test it out?
Sure, I wouldn't mind - as long as it's relatively low risk as I'm quite new to OpenWrt (and am actively using that device), though I don't mind tinkering when necessary.
That's someone elses... I hadn't allowed for the software on/off, so I'll need to check to see if there is an ability to support that and add it if so.
I think apart from support software on/off (which this other patch doesn't appear to implement correctly), my patch is a more complete implementation, mine just hasn't been tested (hence why I haven't submitted upstream yet).
So coordinate your efforts to implement this feature
Unfortunately, I don't have the hardware to test it. The WAX206 doesn't have any LEDs connected to the PHY.