mbox series

[net-next,0/2] net: dsa: mv88e6xxx: Add LED support for 6393X

Message ID 20240103103351.1188835-1-tobias@waldekranz.com (mailing list archive)
Headers show
Series net: dsa: mv88e6xxx: Add LED support for 6393X | expand

Message

Tobias Waldekranz Jan. 3, 2024, 10:33 a.m. UTC
This series adds support for the port LEDs on 6393X (Amethyst).

First, add the generic infrastructure needed by all chips. The idea is
that adding support for more chips in the future will only require
adding a new implementation of mv88e6xxx_led_ops.

Then, provide the first concrete implementation for 6393X.

Tobias Waldekranz (2):
  net: dsa: mv88e6xxx: Add LED infrastructure
  net: dsa: mv88e6xxx: Add LED support for 6393X

 drivers/net/dsa/mv88e6xxx/Makefile |   1 +
 drivers/net/dsa/mv88e6xxx/chip.c   |   6 +
 drivers/net/dsa/mv88e6xxx/chip.h   |   4 +
 drivers/net/dsa/mv88e6xxx/leds.c   | 422 +++++++++++++++++++++++++++++
 drivers/net/dsa/mv88e6xxx/leds.h   |  14 +
 drivers/net/dsa/mv88e6xxx/port.c   |  33 +++
 drivers/net/dsa/mv88e6xxx/port.h   |   7 +
 7 files changed, 487 insertions(+)
 create mode 100644 drivers/net/dsa/mv88e6xxx/leds.c
 create mode 100644 drivers/net/dsa/mv88e6xxx/leds.h