]> www.infradead.org Git - users/hch/misc.git/commit
net: phy: qca807x: add support for configurable LED
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 6 Feb 2024 17:31:13 +0000 (18:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Feb 2024 15:36:20 +0000 (15:36 +0000)
commitf508a226b517a6a8afd78a317de46bc83e3e3d51
tree707d64a9dec98c9d136b433ae7d9429cd78732f8
parent47b930d0dd437af927145dba50a2e2ea1ba97c67
net: phy: qca807x: add support for configurable LED

QCA8072/5 have up to 2 LEDs attached for PHY.

LEDs can be configured to be ON/hw blink or be set to HW control.

Hw blink mode is set to blink at 4Hz or 250ms.

PHY can support both copper (TP) or fiber (FIBRE) kind and supports
different HW control modes based on the port type.

HW control modes supported for netdev trigger for copper ports are:
- LINK_10
- LINK_100
- LINK_1000
- TX
- RX
- FULL_DUPLEX
- HALF_DUPLEX

HW control modes supported for netdev trigger for fiber ports are:
- LINK_100
- LINK_1000
- TX
- RX
- FULL_DUPLEX
- HALF_DUPLEX

LED support conflicts with GPIO controller feature and must be disabled
if gpio-controller is used for the PHY.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/qcom/qca807x.c