leds: add Realtek RTL9300 port LEDs under software control
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: leds: add Realtek RTL9301 port LEDsDocumentation/ | +84 | 0 replies | |
| 2/3 | dt-bindings: net: realtek,rtl9301-switch: add port LED controllerDocumentation/ | +3 | 1 reply | |
| 3/3 | leds: add Realtek RTL9300 port LED driverMAINTAINERS drivers/ drivers/ +1 more | +222 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] leds: add Realtek RTL9300 port LEDs under software control
The RTL9300 switch drives up to four LEDs per port over its LED interface, serial or scanned, each normally showing a hardware function chosen by the LED set of the port. Some boards wire LEDs to it that have no hardware function and that the vendor firmware switches in software, such as the PoE status LEDs of the MokerLink POE-10G07110GSM.
This series adds a binding for such LEDs as a child of the switch, like its I2C and MDIO controllers, and a driver that takes them under software control and exposes them as LED class devices. With the PSE core's LED triggers, the PoE LEDs then follow the power delivery of their ports. The registers come from the vendor SDK's register table. Tested on the MokerLink POE-10G07110GSM.
Ross Cawston (3):
dt-bindings: leds: add Realtek RTL9301 port LEDs
dt-bindings: net: realtek,rtl9301-switch: add port LED controller
leds: add Realtek RTL9300 port LED driver
.../leds/realtek,rtl9301-port-leds.yaml | 84 ++++++++ .../bindings/net/realtek,rtl9301-switch.yaml | 3 + MAINTAINERS | 7 + drivers/leds/Kconfig | 13 ++ drivers/leds/Makefile | 1 + drivers/leds/leds-rtl9300-port.c | 201 ++++++++++++++++++ 6 files changed, 309 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/realtek,rtl9301-port-leds.yaml create mode 100644 drivers/leds/leds-rtl9300-port.c
Signature · 1 line
2.55.0.windows.5