aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/patches-4.19/105-goflexhome.patch
diff options
context:
space:
mode:
authorPawel Dembicki <paweldembicki@gmail.com>2020-02-04 17:26:47 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-02-22 14:25:25 +0100
commitae67f5ffae69119eef6509a48b111164a5842346 (patch)
treeedd1669fd7decb13a724f5ffdba90db937c99ee1 /target/linux/kirkwood/patches-4.19/105-goflexhome.patch
parenta9b5473c92c01bce9b5f42659b0271bd141e3428 (diff)
downloadupstream-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-goflexhome.patch')
-rw-r--r--target/linux/kirkwood/patches-4.19/105-goflexhome.patch14
1 files changed, 10 insertions, 4 deletions
diff --git a/target/linux/kirkwood/patches-4.19/105-goflexhome.patch b/target/linux/kirkwood/patches-4.19/105-goflexhome.patch
index 9ac30b6d30..db43a27219 100644
--- a/target/linux/kirkwood/patches-4.19/105-goflexhome.patch
+++ b/target/linux/kirkwood/patches-4.19/105-goflexhome.patch
@@ -10,7 +10,7 @@
kirkwood-ib62x0.dtb \
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-goflexhome.dts
-@@ -0,0 +1,117 @@
+@@ -0,0 +1,123 @@
+/dts-v1/;
+
+#include "kirkwood.dtsi"
@@ -20,6 +20,13 @@
+ model = "Seagate GoFlex Home";
+ compatible = "seagate,goflexhome", "marvell,kirkwood-88f6281", "marvell,kirkwood";
+
++ aliases {
++ led-boot = &led_health;
++ led-failsafe = &led_fault;
++ led-running = &led_health;
++ led-upgrade = &led_fault;
++ };
++
+ memory@0 {
+ device_type = "memory";
+ reg = <0x00000000 0x8000000>;
@@ -62,12 +69,11 @@
+ gpio-leds {
+ compatible = "gpio-leds";
+
-+ health {
++ led_health: health {
+ label = "status:green:health";
+ gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
-+ linux,default-trigger = "default-on";
+ };
-+ fault {
++ led_fault: fault {
+ label = "status:orange:fault";
+ gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+ };