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/101-iconnect.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/101-iconnect.patch')
-rw-r--r-- | target/linux/kirkwood/patches-4.14/101-iconnect.patch | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/target/linux/kirkwood/patches-4.14/101-iconnect.patch b/target/linux/kirkwood/patches-4.14/101-iconnect.patch index ab47b5a724..f36f50eae4 100644 --- a/target/linux/kirkwood/patches-4.14/101-iconnect.patch +++ b/target/linux/kirkwood/patches-4.14/101-iconnect.patch @@ -1,6 +1,20 @@ --- a/arch/arm/boot/dts/kirkwood-iconnect.dts +++ b/arch/arm/boot/dts/kirkwood-iconnect.dts -@@ -16,8 +16,6 @@ +@@ -8,6 +8,13 @@ + model = "Iomega Iconnect"; + compatible = "iom,iconnect-1.1", "iom,iconnect", "marvell,kirkwood-88f6281", "marvell,kirkwood"; + ++ aliases { ++ led-boot = &led_power_blue; ++ led-failsafe = &led_power_red; ++ led-running = &led_power_blue; ++ led-upgrade = &led_power_red; ++ }; ++ + memory { + device_type = "memory"; + reg = <0x00000000 0x10000000>; +@@ -16,8 +23,6 @@ chosen { bootargs = "console=ttyS0,115200n8 earlyprintk"; stdout-path = &uart0; @@ -9,7 +23,22 @@ }; ocp@f1000000 { -@@ -146,28 +144,23 @@ +@@ -89,12 +94,11 @@ + gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; +- power-blue { ++ led_power_blue: power-blue { + label = "power:blue"; + gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; +- default-state = "keep"; + }; +- power-red { ++ led_power_red: power-red { + label = "power:red"; + gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; + }; +@@ -146,28 +150,23 @@ status = "okay"; partition@0 { |