openwrt-pf/target/linux
Mieczyslaw Nalewaj 2aa1185fb0 leds: add "network" LED trigger (lan/wan/wlan)
LED trigger for network interfaces.

 - Aggregated per-family (lan/wan/wlan).
 - Family and flags are taken from device tree properties:
   - "family" : simple family string "lan" | "wan" | "wlan"
   - "mode"   : any combination of "link", "tx", "rx" flags
  Priority/combination:
   * If "mode" present: flags come from "mode" and take precedence.
     Family is taken from "family" if present, otherwise from the LED name.
   * If only "family" present: use its family and default flags = link+tx+rx.
   * If neither present: fall back to LED device name parsing.

 - Suffix "-online" is valid ONLY in the LED name (label),
   e.g. "green:wlan-online". It indicates the online variant but is applied
   only when DT "mode" is absent.

Behaviour:
 - wlan (normal): blink/solid driven by throughput table
 - lan/wan (normal): one-shot blink on TX/RX packet change
 - *-online variants: steady ON while any interface of the family has carrier

 Interfaces are auto-tracked by name match (lan0, wan1, wlan2, phy0, wl1,
 ath0, ra0...). Up to MAX_IFACES (16) interfaces per family

This trigger is intended for board/device authors and drivers to provide simple
network-activity LED behaviour without per-interface wiring in userspace.

Refresh bcm27xx patches in the same commit to account for line shifts in
drivers/leds/trigger/Kconfig and Makefile, ensuring clean applies for
bisectability.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/19903
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-06-05 20:30:34 +02:00
..
airoha airoha: disable Ampere cpu core errata 2026-06-05 12:02:30 +02:00
apm821xx apm821xx: slightly improve routing performance 2026-05-25 10:16:50 +02:00
armsr armsr: enable 6.18 as a testing kernel 2026-05-25 22:12:04 +02:00
at91
ath79 kernel: bump 6.12 to 6.12.92 2026-06-02 21:15:21 +02:00
bcm27xx leds: add "network" LED trigger (lan/wan/wlan) 2026-06-05 20:30:34 +02:00
bcm47xx bcm47xx: base-files: hack sysinfo to allow ASU sysupgrades 2026-05-25 23:27:34 +02:00
bcm53xx bcm53xx: enable 6.18 testing kernel 2026-05-24 20:36:09 +02:00
bcm4908
bmips
d1
econet
gemini
generic leds: add "network" LED trigger (lan/wan/wlan) 2026-06-05 20:30:34 +02:00
imx imx: add support for Kontron OSM-S/BL i.MX8MP 2026-06-01 17:49:36 +02:00
ipq40xx ipq40xx: add support for Linksys MR9000 2026-06-04 22:49:38 +02:00
ipq806x
ixp4xx
kirkwood
lantiq kernel: bump 6.18 to 6.18.33 2026-05-25 21:04:53 +02:00
layerscape
loongarch64 loongarch64: add upstream dwmac-loongson patches for 2K3000/3B6000M 2026-05-26 00:58:05 +02:00
malta
mediatek mediatek: mt7622: enable CONFIG_MTD_VIRT_CONCAT 2026-06-01 00:32:38 +02:00
microchipsw
mpc85xx mpc85xx: p1010: TL-WDR4900v1: DTS update for RFKILL switch 2026-06-05 12:44:29 +02:00
mvebu mvebu: enable coherent crypto on armada 37x0 2026-06-04 22:44:10 +02:00
mxs
octeon octeon: drop v6.12 and default to v6.18 2026-05-23 19:13:22 +02:00
omap
pistachio
qoriq qoriq: drop kernel config for 6.12 2026-05-24 23:43:54 +02:00
qualcommax qualcommax: refresh patches 2026-06-04 22:37:30 +02:00
qualcommbe qualcommbe: 6.18: refresh config 2026-05-28 10:47:03 +02:00
ramips ramips: fix Phicomm K2G WAN by enabling rgmii1 2026-06-05 15:09:20 +02:00
realtek realtek: clk: change to __raw reads and writes 2026-06-01 19:17:58 +02:00
rockchip rockchip: enable maskrom button for NanoPi R5C/R5S 2026-05-29 08:29:03 +02:00
sifiveu
siflower
starfive kernel: bump 6.18 to 6.18.33 2026-05-25 21:04:53 +02:00
stm32
sunxi
tegra
uml
x86 x86: onie-installer: wire up sysupgrade via ONIE install mode 2026-05-23 17:23:54 +02:00
zynq
Makefile