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.14/108-on100.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.14/108-on100.patch')
-rw-r--r-- | target/linux/kirkwood/patches-4.14/108-on100.patch | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/target/linux/kirkwood/patches-4.14/108-on100.patch b/target/linux/kirkwood/patches-4.14/108-on100.patch index 7856277e40..42da3e7332 100644 --- a/target/linux/kirkwood/patches-4.14/108-on100.patch +++ b/target/linux/kirkwood/patches-4.14/108-on100.patch @@ -1,6 +1,6 @@ --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-on100.dts -@@ -0,0 +1,160 @@ +@@ -0,0 +1,164 @@ +/dts-v1/; + +#include "kirkwood.dtsi" @@ -16,6 +16,10 @@ + }; + + aliases { ++ led-boot = &led_health_green; ++ led-failsafe = &led_health_red; ++ led-running = &led_health_green; ++ led-upgrade = &led_health_red; + serial0 = &uart0; + }; + @@ -43,22 +47,22 @@ + pinctrl-0 = < &pmx_led_health_r &pmx_led_health_g >; + pinctrl-names = "default"; + -+ health-g { ++ led_health_green: health_green { + label = "on100:green:health"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + -+ health-r { ++ led_health_red: health_red { + label = "on100:red:health"; + gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; + }; + -+ health2-g { ++ health2_green { + label = "on100:green:health2"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + }; + -+ health2-r { ++ health2_red { + label = "on100:red:health2"; + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + }; |