From ae67f5ffae69119eef6509a48b111164a5842346 Mon Sep 17 00:00:00 2001 From: Pawel Dembicki Date: Tue, 4 Feb 2020 17:26:47 +0100 Subject: kirkwood: 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. Generic diag.sh allow to use different LEDs to indicate different states. Non-red status LEDs for indicating boot and a running system. Where possible, the red or orange LEDs are used to indicate failsafe mode and a running upgrade. Compile-tested: all target devices. Run-tested: CheckPoint L-50 Signed-off-by: Pawel Dembicki [remove unrelated cosmetic changes, rename some labels, add pogo_e02] Signed-off-by: Adrian Schmutzler --- target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch') diff --git a/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch b/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch index f8b963e03f..5e2b1d8d9c 100644 --- a/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch +++ b/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch @@ -20,7 +20,7 @@ NOTE: this patch can be upstreamed as-is, LEDE-specific kirkwood-openblocks_a6.dtb \ --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-nsa310b.dts -@@ -0,0 +1,124 @@ +@@ -0,0 +1,131 @@ +/dts-v1/; + +#include "kirkwood-nsa3x0-common.dtsi" @@ -34,6 +34,13 @@ NOTE: this patch can be upstreamed as-is, LEDE-specific + model = "ZyXEL NSA310b"; + compatible = "zyxel,nsa310b", "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood"; + ++ aliases { ++ led-boot = &led_green_sys; ++ led-failsafe = &led_red_sys; ++ led-running = &led_green_sys; ++ led-upgrade = &led_red_sys; ++ }; ++ + memory@0 { + device_type = "memory"; + reg = <0x00000000 0x10000000>; @@ -103,11 +110,11 @@ NOTE: this patch can be upstreamed as-is, LEDE-specific + gpio-leds { + compatible = "gpio-leds"; + -+ green-sys { ++ led_green_sys: green-sys { + label = "nsa310:green:sys"; + gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; + }; -+ red-sys { ++ led_red_sys: red-sys { + label = "nsa310:red:sys"; + gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; + }; -- cgit v1.2.3