2
0
forked from Ivasoft/openwrt

bcm63xx: use generic diag.sh

This commit removes the target-specific diag.sh script. This way, the
generic one is used for the target, which uses DT-aliases to specify the
LEDs used.

Though generic diag.sh allows to use different LEDs to indicate different
states, this patch just moves the old assignment and does not try to
"improve" the assignment by using additional colors.
However, individual proposals to do so are welcome.

For the few cases where status_led2 was used in old diag.sh, only the
primary LED was migrated.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler
2020-05-12 00:36:15 +02:00
parent 96414047c9
commit 026fe1308c
48 changed files with 377 additions and 216 deletions

View File

@@ -8,6 +8,13 @@
model = "Broadcom bcm963281TAN reference board";
compatible = "brcm,bcm963281tan", "brcm,bcm6328";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
@@ -20,7 +27,7 @@
label = "963281TAN::internet";
gpios = <&pinctrl 1 1>;
};
power {
led_power: power {
label = "963281TAN::power";
gpios = <&pinctrl 4 1>;
default-state = "on";