lantiq: add support for upgrade led
authorMathias Kresin <dev@kresin.me>
Wed, 15 Aug 2018 18:18:26 +0000 (20:18 +0200)
committerMathias Kresin <dev@kresin.me>
Thu, 16 Aug 2018 19:20:57 +0000 (21:20 +0200)
Indicate a (sys)upgrade via leds as well. It brings the lantiq diag.sh
script en par with the other implementations using devicetree aliases
to define multiple leds for boot status indication.

By default, use the boot finished led to indicate an upgrade for now.

Signed-off-by: Mathias Kresin <dev@kresin.me>
36 files changed:
target/linux/lantiq/base-files/etc/diag.sh
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ALL0333CJ.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV4510PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV4518PWR01.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV4519PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV4520PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV452CQW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7506PW11.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7510PW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7518PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7519PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7519RW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV7525PW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV752DPW.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV752DPW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ARV8539PW22.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/ASL56026.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV2B.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV3A.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN1000B.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/DM200.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/EASY80920.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ7312.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ7320.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ7360SL.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/H201L.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/P2601HNFX.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/P2812HNUFX.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/VG3503J.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/VGV7510KW22.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/VGV7519.dtsi
target/linux/lantiq/files-4.14/arch/mips/boot/dts/WBMR.dts
target/linux/lantiq/files-4.14/arch/mips/boot/dts/WBMR300.dts

index 4fb47bd2731828316cdadb7fe930ef4e353d7571..06cf7e2714cdec8202354564f40b9b291be27c39 100644 (file)
@@ -6,6 +6,7 @@
 boot="$(get_dt_led boot)"
 failsafe="$(get_dt_led failsafe)"
 running="$(get_dt_led running)"
+upgrade="$(get_dt_led upgrade)"
 
 set_state() {
        status_led="$boot"
@@ -26,6 +27,14 @@ set_state() {
        preinit_regular)
                status_led_blink_preinit_regular
                ;;
+       upgrade)
+               [ -n "$running" ] && {
+                       status_led="$running"
+                       status_led_off
+               }
+               status_led="$upgrade"
+               status_led_blink_preinit_regular
+               ;;
        done)
                status_led_off
                [ -n "$running" ] && {
index 0d128e038532ffb62503d65a3d09d5ea217152bb..a157104dbf21f379bd7d14bb631096a4e7110684 100644 (file)
@@ -13,6 +13,7 @@
                        led-boot = &power;
                        led-failsafe = &power;
                        led-running = &power;
+                       led-upgrade = &power;
 
                        led-dsl = &dsl;
                        led-internet = &online_green;
index 0d0b70c68aae152b5d35aecb4dbe6f419e8a9508..6598a60f58f08963683a6e7a5d22f4faca55c00c 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power;
                led-failsafe = &power2;
                led-running = &power;
+               led-upgrade = &power;
 
                led-dsl = &adsl;
                led-internet = &internet;
index e95c4036829545094c49257704062e19b1601c71..f29c416c06f8f27c387000284056fa75c597fb7a 100644 (file)
@@ -11,6 +11,7 @@
                led-boot = &power;
                led-failsafe = &power;
                led-running = &power;
+               led-upgrade = &power;
 
                led-dsl = &dsl;
                led-internet = &online;
index 690c12f4229831918209f524a5cea8c15347fc0d..05e9da2297cae5c2c8557cca0523b7d426ffc8c4 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &internet_green;
index 68d6dc3e7e6a9a9e5515d6a7bb70ffb1026b2b99..cd76bf579968002744b51761da2f435ddf7930c4 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_blue;
                led-failsafe = &power_red;
                led-running = &power_blue;
+               led-upgrade = &power_blue;
 
                led-dsl = &dsl;
                led-internet = &internet_blue;
index 3854ac2dbeed77dd395a24673d0e295ad5785a0c..203a30df5cd33fefe73cc69df9e6e2d26333bfff 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_blue;
                led-failsafe = &power_red;
                led-running = &power_blue;
+               led-upgrade = &power_blue;
 
                led-dsl = &dsl_blue;
                led-usb = &led_usb;
index 0c251c61ff1099559d2bbc948771617977b5aff3..8fe22e9a44efd546e531a45dbaf31ec80b21abf5 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power;
                led-failsafe = &power_red;
                led-running = &power;
+               led-upgrade = &power;
 
                led-dsl = &dsl;
                led-internet = &internet;
index 2c52ec62b739b23d2d88f5848ce59b36d27a1726..92d01b4dcc3507a06bb3576bb41c2dcbab717363 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power;
                led-failsafe = &power;
                led-running = &power;
+               led-upgrade = &power;
 
                led-dsl = &internet;
                led-usb = &umts;
index a033b0de7d9a28fea9743ac6c4b92ca03d2000e6..72f3a686b5fdb0c4424e538d6f482f7613175823 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &online_green;
index 39dcf4561962ba150d34d21ef2b2cba4c4cd47d2..bcb3b502af497d6d3faf4fafaf377430bb63ac65 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power;
                led-failsafe = &power2;
                led-running = &power;
+               led-upgrade = &power;
 
                led-dsl = &dsl;
                led-internet = &online;
index 2d557f4734216fe27cfd65497ebfea31b25da968..baa9adcc9cbf4a0989f12a202171c2bef3699585 100644 (file)
@@ -17,6 +17,7 @@
                led-boot = &power_green;
                led-failsafe = &power_green;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &internet_green;
        };
index 425222633181982e7c2b48fb684352fff84da074..a395d4ff45a6198f7b085cfed1debdb008fd4c44 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &power_green;
                led-internet = &online;
index 911e71a2cdcd929631c4294718cfb4809c44347c..5f877723f6d0097ff44d449a2c8c0d5c8310035a 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_red;
                led-failsafe = &power_blue;
                led-running = &power_red;
+               led-upgrade = &power_red;
 
                led-dsl = &internet_red;
                led-usb = &umts;
index 88d9d7fdc3ad5413da3e723ead53ccb24b46076f..1d4d662ab3eb58fcb145d7f5afeacf445a9a78f8 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_red;
                led-failsafe = &power_blue;
                led-running = &power_red;
+               led-upgrade = &power_red;
 
                led-dsl = &internet_red;
                led-usb = &umts;
index 7b201ff8d3c240aca10b48db9a0f9ef5f853ee7b..1e55d81590a95959cca8bb4f123d7d7beca254c6 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl_green;
                led-internet = &online_green;
index 9a78822be300b6046cecfdcd37c27e839bd565bc..aea3de41c619be87e40818dd9fda32258ca6c11e 100644 (file)
@@ -17,6 +17,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
        };
index 105dae408dee38cc99a416431ffe4406412c930a..e126065ea682c8c85771df08df66dc50bf7ec5a0 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_orange;
                led-failsafe = &power_red;
                led-running = &power_blue;
+               led-upgrade = &power_blue;
 
                led-dsl = &broadband_blue;
                led-wifi = &wireless_blue;
index d3e2bf761c52e3c0311a5ff4cf0421f39749e0b2..b854ac0a9968d38a0bd243afca597ab095bad7df 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_orange;
                led-failsafe = &power_red;
                led-running = &power_blue;
+               led-upgrade = &power_blue;
 
                led-dsl = &broadband_blue;
                led-wifi = &wireless_blue;
index 90228667fd7833653b39676745383edc2a29bcef..c251fc3fc7a1b77cbf678b06148eaf27181ededa 100644 (file)
@@ -17,6 +17,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_blue;
+               led-upgrade = &power_blue;
 
                led-dsl = &broadband_blue;
                led-wifi = &wireless_blue;
index 8982c27befe73f4ff1cf29fb1c88ba3fc8894a91..8c61e1b743bc29c1297bc261ce84a0e6afaa79c2 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power;
                led-failsafe = &power;
                led-running = &power;
+               led-upgrade = &power;
 
                led-dsl = &dsl;
                led-internet = &online_green;
index 614845f09d9f811420e1743f5186951d0a8d3417..b0facb410710c08e3a659472bbddf0a405cf3a41 100644 (file)
@@ -11,6 +11,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &internet;
index 8302336bd40ecfc2e2d99c598870ff1cb035aeb5..8cf3456ee2b5793bc8b16ee471e0e5c6f8d7b267 100644 (file)
@@ -17,6 +17,7 @@
                led-boot = &power_green;
                led-failsafe = &power_amber;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl_green;
        };
index b7cfc03a1e8c6a02389f80ac34aa7779c748e88b..781cdfdb5b8705747331fa9f1cdc75f1abd3193e 100644 (file)
@@ -14,6 +14,7 @@
                led-boot = &power;
                led-failsafe = &power;
                led-running = &power;
+               led-upgrade = &power;
 
                led-usb = &led_usb1;
                led-usb2 = &led_usb2;
index 815c01f89cbb1f59422f13f76d3e6c684118b888..a7e0c71915839fdc15dbb3af9be48c9359c42fc6 100644 (file)
@@ -15,6 +15,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &info_green;
index eca127ab4cba47b06c96b9004747cebbfc27e1a6..c14695413e87fb959079a8097cfbd6b5487dc20d 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power;
                led-failsafe = &power;
                led-running = &power;
+               led-upgrade = &power;
 
                led-internet = &info_green;
                led-dsl = &power;
index eed4ae316a4bd9f0bcde2b6af2e981bdfdb7eb07..45a59c012dea0669101781ea244a41b8304caaa4 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power;
                led-failsafe = &power;
                led-running = &power;
+               led-upgrade = &power;
 
                led-internet = &info_green;
                led-dsl = &power;
index a0f5d8ee0595e07e577901d96a3fa040d178a9d6..91520c8137f60cac2de2c467acdae4be3790b2aa 100644 (file)
@@ -17,6 +17,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &info_green;
                led-wifi = &wifi;
index 90f74bb38490302da5fb8585dd637fb52749f64e..46cae21a58bc18aaf13cc9f4eb7032d7c709f848 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_green;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &online;
index 444dc563b31661082b82b1577949265e103f970c..6e01068ed8ca791549d3343f7f18d1fe32ff807d 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &online;
index 579e562c385a31fa66a9105bcadebd6310d58741..65424e3effca2234a83ac353beabc918f6f6af2c 100644 (file)
@@ -14,6 +14,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl_green;
                led-internet = &internet_green;
index bb001cb219cca492b811ad671b751ff0338bc097..9735b2e011dfa36e06bc07d81e8848987cbd0e85 100644 (file)
@@ -17,6 +17,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
        };
index ab558372ee03a11a206c7cbcac42cbb32f4f94a9..811f39d08b92e57fdcba78539e71c87b03ca7c86 100644 (file)
@@ -14,6 +14,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &internet_green;
index b9276025bd2a6fb5d75eb0455820133ecac5d829..8ffa9146d933679a0407bf5c5a5eb27e6fad59c4 100644 (file)
@@ -14,6 +14,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &broadband_green;
                led-internet = &internet_green;
index 02c11823050de99e90f669c406a660c9f37ed782..9759b311b7c0352d9c248afb7ae30ab116128944 100644 (file)
@@ -16,6 +16,7 @@
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_green;
 
                led-dsl = &dsl;
                led-internet = &online_green;
index df7bc9fce11fba4d057961e665752ba17eeda8c8..5dcf13912e40405d5afd5d6961ea6b854e2dfc0f 100644 (file)
@@ -17,6 +17,7 @@
                led-boot = &power_g;
                led-failsafe = &diag_r;
                led-running = &power_g;
+               led-upgrade = &power_g;
 
                led-dsl = &dsl;
                led-internet = &router_g;