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 --- .../mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts') diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts index 600426bb6e..40b8014a53 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts @@ -6,6 +6,13 @@ model = "Sophos RED 15w Rev.1"; compatible = "sophos,red-15w-rev1"; + aliases { + led-boot = &system_green; + led-failsafe = &system_red; + led-running = &system_green; + led-upgrade = &system_red; + }; + memory { device_type = "memory"; }; @@ -13,12 +20,12 @@ leds { compatible = "gpio-leds"; - system_green { + system_green: system_green { gpios = <&gpio0 7 0>; label = "red-15w-rev1:green:system"; }; - system_red { + system_red: system_red { gpios = <&gpio0 3 0>; label = "red-15w-rev1:red:system"; }; -- cgit v1.2.3