net: phy: broadcom: Add support for setting LED brightness
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Wed, 7 Jun 2023 18:34:53 +0000 (11:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jun 2023 09:38:43 +0000 (10:38 +0100)
commitbd5736e146e35f9eabe8c1bfc0ab00979ae62930
treedcf87bdccd9a8d356f42e6d868ddbafe3bb19b0c
parent57fd7d59b1c7d6f6a1c34863a2bc4ff1f6c92d40
net: phy: broadcom: Add support for setting LED brightness

Broadcom PHYs have two LEDs selector registers which allow us to control
the LED assignment, including how to turn them on/off.

Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/bcm-phy-lib.h
drivers/net/phy/broadcom.c
include/linux/brcmphy.h