mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-11-01 22:44:28 -04:00
Similiar to the lantiq target use a dts alias to define the wlan led
instead of static mapping in /etc/board.d/01_leds. Reduce code
duplication.
A device tree must define the alias "led-wlan" similiar to "led-boot".
/ {
aliases {
led-wlan = &led_wlan;
};
[..]
led_wlan: wlan {
label = "tl-wr841n-v14:green:wlan";
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
};
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
|
||
|---|---|---|
| .. | ||
| base-files | ||
| dts | ||
| files-4.14/drivers | ||
| image | ||
| mt76x8 | ||
| mt7620 | ||
| mt7621 | ||
| patches-4.14 | ||
| rt288x | ||
| rt305x | ||
| rt3883 | ||
| Makefile | ||
| modules.mk | ||