]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: dp83822: Add support for PHY LEDs on DP83822
authorDimitri Fedrau <dima.fedrau@gmail.com>
Tue, 7 Jan 2025 08:23:04 +0000 (09:23 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Jan 2025 21:08:27 +0000 (13:08 -0800)
commitc5a965701866e53be00b2412aae2c3833b0197ca
treed84f0d835e8360c679c19b1990f4e721343d48e9
parent7dc8f809b87dd55271ccbbd6043df1490ec5066a
net: phy: dp83822: Add support for PHY LEDs on DP83822

The DP83822 supports up to three configurable Light Emitting Diode (LED)
pins: LED_0, LED_1 (GPIO1), COL (GPIO2) and RX_D3 (GPIO3). Several
functions can be multiplexed onto the LEDs for different modes of
operation. LED_0 and COL (GPIO2) use the MLED function. MLED can be routed
to only one of these two pins at a time. Add minimal LED controller driver
supporting the most common uses with the 'netdev' trigger.

Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250107-dp83822-leds-v2-1-5b260aad874f@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/dp83822.c