]> www.infradead.org Git - users/willy/linux.git/commit
net: phy: mxl-gpy: add basic LED support
authorDaniel Golle <daniel@makrotopia.org>
Tue, 1 Oct 2024 00:17:18 +0000 (01:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Oct 2024 00:28:25 +0000 (17:28 -0700)
commit78997e9a5e4d8a4df561e083a92c91ae23010e07
tree216145237534ab5bd515e38c8731fa5280bb93bf
parent44badc908f2c85711cb18e45e13119c10ad3a05f
net: phy: mxl-gpy: add basic LED support

Add basic support for LEDs connected to MaxLinear GPY2xx and GPY115 PHYs.
The PHYs allow up to 4 LEDs to be connected.
Implement controlling LEDs in software as well as netdev trigger offloading
and LED polarity setup.

The hardware claims to support 16 PWM brightness levels but there is no
documentation on how to use that feature, hence this is not supported.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/b6ec9050339f8244ff898898a1cecc33b13a48fc.1727741563.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mxl-gpy.c