diff options
author | Pawel Dembicki <paweldembicki@gmail.com> | 2020-02-04 17:26:47 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-02-22 14:25:25 +0100 |
commit | ae67f5ffae69119eef6509a48b111164a5842346 (patch) | |
tree | edd1669fd7decb13a724f5ffdba90db937c99ee1 /target/linux/kirkwood/patches-4.19/105-ea4500.patch | |
parent | a9b5473c92c01bce9b5f42659b0271bd141e3428 (diff) | |
download | upstream-ae67f5ffae69119eef6509a48b111164a5842346.tar.gz upstream-ae67f5ffae69119eef6509a48b111164a5842346.tar.bz2 upstream-ae67f5ffae69119eef6509a48b111164a5842346.zip |
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 <paweldembicki@gmail.com>
[remove unrelated cosmetic changes, rename some labels, add pogo_e02]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/kirkwood/patches-4.19/105-ea4500.patch')
-rw-r--r-- | target/linux/kirkwood/patches-4.19/105-ea4500.patch | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/target/linux/kirkwood/patches-4.19/105-ea4500.patch b/target/linux/kirkwood/patches-4.19/105-ea4500.patch index c7c8b38f95..601c1cad6d 100644 --- a/target/linux/kirkwood/patches-4.19/105-ea4500.patch +++ b/target/linux/kirkwood/patches-4.19/105-ea4500.patch @@ -1,6 +1,26 @@ --- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts +++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts -@@ -67,9 +67,23 @@ +@@ -24,6 +24,10 @@ + }; + + aliases { ++ led-boot = &led_white_health; ++ led-failsafe = &led_white_health; ++ led-running = &led_white_health; ++ led-upgrade = &led_white_health; + serial0 = &uart0; + }; + +@@ -56,7 +60,7 @@ + pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >; + pinctrl-names = "default"; + +- white-health { ++ led_white_health: white-health { + label = "viper:white:health"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; +@@ -67,9 +71,23 @@ }; }; @@ -26,7 +46,7 @@ compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>; -@@ -161,22 +175,22 @@ +@@ -161,22 +179,22 @@ }; partition@200000 { @@ -53,7 +73,7 @@ reg = <0x1EA0000 0x1760000>; }; -@@ -207,53 +221,6 @@ +@@ -207,53 +225,6 @@ &mdio { status = "okay"; @@ -107,7 +127,7 @@ }; &uart0 { -@@ -272,10 +239,14 @@ +@@ -272,10 +243,14 @@ }; /* eth1 is connected to the switch at port 6. However DSA only supports a |