openwrt/package
Piotr Dymacz a422b171ac base-files: diag: restore default trigger for 'boot' LED
For devices without a dedicated 'diag' LED, we use sometimes one of
other LEDs for indicating at least 'boot', 'failsafe' and 'upgrade'
stages. In some cases, at the same time these LEDs have defined default
triggers in DTS using 'linux,default-trigger' property. Current 'diag'
setup removes the trigger and turns off 'boot' LED after bootup.

One of the examples of such device is TP-Link TL-WR841N v14 (ramips)
which uses 'wlan' LED with defined 'linux,default-trigger' for 'diag':

aliases {
        led-boot = &led_wlan;
        led-failsafe = &led_wlan;
        led-upgrade = &led_wlan;
};

[...]

led_wlan: wlan {
        label = "tl-wr841n-v14:green:wlan";
        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
        linux,default-trigger = "phy0tpt";
};

This patch extends 'diag.sh' and 'leds.sh' scripts to make sure default
trigger defined in DTS is restored for 'diag' LED which isn't used for
indicating 'running' stage.

Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2020-02-24 23:27:50 +01:00
..
base-files base-files: diag: restore default trigger for 'boot' LED 2020-02-24 23:27:50 +01:00
boot packages/boot: bump arm-trusted-firmware-mvebu version 2020-02-22 18:21:37 +01:00
devel strace: update to version 5.5 2020-02-24 23:25:28 +01:00
firmware linux-firmware: update to 20200122 2020-02-22 16:38:41 +01:00
kernel ath10k-ct: Use ath10k-ct version 5.4 2020-02-24 23:25:28 +01:00
libs mbedtls: use correct SPDX License Identifier and add License file 2020-02-24 23:25:28 +01:00
network hostapd: start hostapd/wpa_supplicant for all wiphy devices 2020-02-24 23:27:50 +01:00
system urngd: avoid PKG_NAME in define lines 2020-02-23 22:42:51 +01:00
utils package/utils/f2fs-tools: Update to 1.13.0 2020-02-22 16:38:41 +01:00
Makefile packages: apply usign padding workarounds to package indexes if needed 2019-08-07 07:15:07 +02:00