1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/generic/files/drivers/net/phy
Lech Perczak 3ba4a4e32c kernel: ar8327: support LED device tree bindings
The ar8216 switch driver supports exposing configuration of AR8327 and
AR8337 switch LEDs to the userspace, however it is only configurable
through platform data, causing the devices ported from ar71xx target to
lack the support.
Since there is still a long way to go until we can migrate the target to
qca8k, an interim solution is needed.
Extend ar8327_hw_config_of function to parse a "leds"
subnode, which will populate the missing platform data based on device
tree contents, and restore the existing support for the LEDs.
Standard bindings apply, mapping "reg" property to LED index, with
addition of "qca,led-mode" property, which selects HW (0) or SW (1)
mode, defaulting to HW mode.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/12487
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-03-17 16:40:46 +01:00
..
b53 generic: b53: rename exported symbols to avoid upstream conflict 2023-06-02 21:20:53 +02:00
rtl8261n generic: import rtl8261n patches from mediatek 2025-03-16 19:05:56 +01:00
adm6996.c target: remove obsolete kernel version switches for 4.19 2020-10-30 19:45:24 +01:00
adm6996.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ar8216.c generic: ar8216: remove support for Linux before version 6.1 2024-09-20 19:24:17 +01:00
ar8216.h kernek: use struct_group to wipe ar8216 volatile priv data 2023-05-22 22:28:18 +02:00
ar8327.c kernel: ar8327: support LED device tree bindings 2025-03-17 16:40:46 +01:00
ar8327.h kernel: ar8327: support LED device tree bindings 2025-03-17 16:40:46 +01:00
ip17xx.c kernel: remove an unused callback from the ip17xx switch driver 2020-12-05 12:06:28 +01:00
psb6970.c kernel: use struct group to wipe psb6970 volatile priv data 2023-06-08 17:25:22 +02:00
rtl8306.c generic: drop outdated kernel version switches in local drivers 2020-05-17 18:35:59 +02:00
rtl8366_smi.c kernel: rtl8366_smi: explicitly set phy addr for switch 2024-02-24 19:20:52 +01:00
rtl8366_smi.h kernel: set vlan mc emulation for rtl8367d family chips 2024-08-29 20:50:01 +02:00
rtl8366rb.c treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
rtl8366s.c treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
rtl8367.c treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
rtl8367b.c treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
swconfig.c generic: remove support for older kernels from swconfig 2024-09-20 19:26:52 +01:00
swconfig_leds.c generic: remove support for older kernels from swconfig 2024-09-20 19:26:52 +01:00