1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/generic/files/include/linux
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
..
mtd kernel: move mediatek BMT support patch to generic patches 2022-01-13 18:33:06 +01:00
platform_data kernel: Move modifications of b53.h into patch 2018-12-15 12:50:06 +01:00
ar8216_platform.h kernel: ar8327: support LED device tree bindings 2025-03-17 16:40:46 +01:00
ath5k_platform.h
ath9k_platform.h Revert "kernel: remove custom ath9k_platform.h" 2025-01-01 11:22:39 +01:00
myloader.h
routerboot.h
rt2x00_platform.h mac80211: rt2x00: fold patches 2016-11-09 20:02:18 +01:00
rtl8366.h kernel: add reset control support to rtl8366 driver 2018-05-24 15:43:39 +02:00
rtl8367.h kernel: rtl8367b: fix external interface modes 2020-06-11 21:50:01 +08:00
switch.h generic: make switch_port_stats tx/rx_bytes long long 2017-09-01 09:30:35 +02:00