From 90bfbed7c2b2977776154010459cecb03b239ec0 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Thu, 17 Jan 2019 00:43:12 +0100 Subject: mpc85xx: 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. This way, we are also able to use different LEDs to indicate different states. We use green status LEDs for indicating boot and a running system. Where possible, the red status LED is used to indicate failsafe mode and a running upgrade. Signed-off-by: David Bauer --- target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts') diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index 0969b272a8..ab4952aad5 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -24,6 +24,10 @@ aliases { spi0 = &spi0; + led-boot = &system_green; + led-failsafe = &system_green; + led-running = &system_green; + led-upgrade = &system_green; }; memory { @@ -192,7 +196,7 @@ leds { compatible = "gpio-leds"; - system { + system_green: system { gpios = <&gpio0 2 1>; /* active low */ label = "tp-link:blue:system"; }; -- cgit v1.2.3