aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-12 00:36:15 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-12 16:57:45 +0200
commit026fe1308c4eea0b629bec617fc7c45ab48c1deb (patch)
tree47bebe5fa9fda1c0eb0651ac37294f8d699a4f0b /target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
parent96414047c957df8b217aaacd9f6b2316bcf20580 (diff)
downloadupstream-026fe1308c4eea0b629bec617fc7c45ab48c1deb.tar.gz
upstream-026fe1308c4eea0b629bec617fc7c45ab48c1deb.tar.bz2
upstream-026fe1308c4eea0b629bec617fc7c45ab48c1deb.zip
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>
Diffstat (limited to 'target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts')
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts b/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
index c123832803..2edb802c60 100644
--- a/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
@@ -8,6 +8,13 @@
model = "Zyxel P870HW-51a v2";
compatible = "zyxel,p870hw-51a-v2", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
@@ -37,7 +44,7 @@
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "P870HW-51a:green:power";
gpios = <&pinctrl 0 0>;
default-state = "on";