From 026fe1308c4eea0b629bec617fc7c45ab48c1deb Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Tue, 12 May 2020 00:36:15 +0200 Subject: 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 --- target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-a.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-a.dts') diff --git a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-a.dts b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-a.dts index 1827e8e235..25f771cd28 100644 --- a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-a.dts +++ b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-a.dts @@ -8,6 +8,13 @@ model = "Huawei EchoLife HG556a (version A)"; compatible = "huawei,echolife-hg556a-a", "brcm,bcm6358"; + aliases { + led-boot = &led_power_red; + led-failsafe = &led_power_red; + led-running = &led_power_red; + led-upgrade = &led_power_red; + }; + chosen { bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"; stdout-path = "serial0:115200n8"; @@ -63,7 +70,7 @@ label = "HW556:red:dsl"; gpios = <&pinctrl 2 1>; }; - power_red { + led_power_red: power_red { label = "HW556:red:power"; gpios = <&pinctrl 3 1>; default-state = "on"; -- cgit v1.2.3