aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/patches-4.19/103-iomega-ix2-200.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/103-iomega-ix2-200.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/103-iomega-ix2-200.patch')
-rw-r--r--target/linux/kirkwood/patches-4.19/103-iomega-ix2-200.patch37
1 files changed, 35 insertions, 2 deletions
diff --git a/target/linux/kirkwood/patches-4.19/103-iomega-ix2-200.patch b/target/linux/kirkwood/patches-4.19/103-iomega-ix2-200.patch
index 9036ead951..73655e1293 100644
--- a/target/linux/kirkwood/patches-4.19/103-iomega-ix2-200.patch
+++ b/target/linux/kirkwood/patches-4.19/103-iomega-ix2-200.patch
@@ -1,6 +1,39 @@
--- a/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
+++ b/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
-@@ -186,18 +186,18 @@
+@@ -8,6 +8,13 @@
+ model = "Iomega StorCenter ix2-200";
+ compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
+
++ aliases {
++ led-boot = &led_power;
++ led-failsafe = &led_health;
++ led-running = &led_power;
++ led-upgrade = &led_health;
++ };
++
+ memory {
+ device_type = "memory";
+ reg = <0x00000000 0x10000000>;
+@@ -127,16 +134,15 @@
+ &pmx_led_rebuild &pmx_led_health >;
+ pinctrl-names = "default";
+
+- power_led {
++ led_power: power_led {
+ label = "status:white:power_led";
+ gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
+- default-state = "keep";
+ };
+ rebuild_led {
+ label = "status:white:rebuild_led";
+ gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
+ };
+- health_led {
++ led_health: health_led {
+ label = "status:red:health_led";
+ gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
+ };
+@@ -186,18 +192,18 @@
};
partition@a0000 {
@@ -22,7 +55,7 @@
reg = <0x400000 0x1C00000>;
};
};
-@@ -211,7 +211,7 @@
+@@ -211,7 +217,7 @@
};
&eth0 {