ramips: fix LED labels not updated during device name changes
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 6 Aug 2019 12:30:42 +0000 (14:30 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 9 Aug 2019 22:32:28 +0000 (00:32 +0200)
In commit d93969a13a5b ("ramips: Improve compatible for TP-Link
Archer devices") and subsequent ones, names of several devices
in ramips have been changed.
Since LED names are frequently invoked by $boardname, this has
broken LED setup in 01_leds, as $boardname and prefix in DTS
do not match anymore.

This patch updates device name prefixes for LEDs in DTS files,
and provides a migration script.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
19 files changed:
target/linux/ramips/base-files/etc/uci-defaults/04_led_migration [new file with mode: 0644]
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
target/linux/ramips/dts/mt7620a_youku_yk1.dts
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
target/linux/ramips/dts/rt5350_intenso_memory2move.dts

diff --git a/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration
new file mode 100644 (file)
index 0000000..e84d023
--- /dev/null
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+. /lib/functions.sh
+. /lib/functions/migrations.sh
+
+board=$(board_name)
+
+case "$board" in
+fon,fonera-20n)
+       migrate_leds "^fonera20n:=fonera-20n:"
+       ;;
+intenso,memory2move)
+       migrate_leds "^m2m:=memory2move:"
+       ;;
+lenovo,newifi-y1)
+       migrate_leds "^y1:=newifi-y1:"
+       ;;
+lenovo,newifi-y1s)
+       migrate_leds "^y1s:=newifi-y1s:"
+       ;;
+netgear,wn3000rp-v3)
+       migrate_leds "^wn3000rpv3:=wn3000rp-v3:"
+       ;;
+netgear,wndr3700-v5)
+       migrate_leds "^wndr3700v5:=wndr3700-v5:"
+       ;;
+tplink,archer-c2-v1)
+       migrate_leds "^c2-v1:=archer-c2-v1:"
+       ;;
+tplink,archer-c20-v1)
+       migrate_leds "^c20-v1:=archer-c20-v1:"
+       ;;
+tplink,archer-c20-v4)
+       migrate_leds "^c20-v4:=archer-c20-v4:"
+       ;;
+tplink,archer-c20i)
+       migrate_leds "^c20i:=archer-c20i:"
+       ;;
+tplink,archer-c50-v1)
+       migrate_leds "^c50:=archer-c50-v1:"
+       ;;
+tplink,archer-c50-v3)
+       migrate_leds "^c50-v3:=archer-c50-v3:"
+       ;;
+tplink,archer-c50-v4)
+       migrate_leds "^c50-v4:=archer-c50-v4:"
+       ;;
+tplink,archer-mr200)
+       migrate_leds "^mr200:=archer-mr200:"
+       ;;
+youku,yk1)
+       migrate_leds "^youku-yk1:=yk1:"
+       ;;
+zyxel,keenetic-omni)
+       migrate_leds "^kn_rc:=keenetic-omni:"
+       ;;
+zyxel,keenetic-omni-ii)
+       migrate_leds "^kn_rc:=keenetic-omni-ii:"
+       ;;
+zyxel,keenetic-viva)
+       migrate_leds "^kng_rc:=keenetic-viva:"
+       ;;
+esac
+
+migrations_apply system
+
+exit 0
index 47505b09849d538bcb7893a18cdce25889e97f8a..c573a28d73d6f8bf29a344f3df1d9993eecf1c26 100644 (file)
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "y1:blue:power";
+                       label = "newifi-y1:blue:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan1 {
-                       label = "y1:blue:wifi";
+                       label = "newifi-y1:blue:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan2 {
-                       label = "y1:blue:wifi5g";
+                       label = "newifi-y1:blue:wifi5g";
                        gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "y1:blue:usb";
+                       label = "newifi-y1:blue:usb";
                        gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                lan {
-                       label = "y1:blue:lan";
+                       label = "newifi-y1:blue:lan";
                        gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                };
 
                internet {
-                       label = "y1:blue:internet";
+                       label = "newifi-y1:blue:internet";
                        gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
                };
        };
index ccb0d18eadbcc23e6fcb5d1191404b9017c00f09..007e0e69e81a8b9bc194b3dbcfe0d327fc561c90 100644 (file)
                compatible = "gpio-leds";
 
                power1 {
-                       label = "y1s:yellow:power";
+                       label = "newifi-y1s:yellow:power";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_blue: power2 {
-                       label = "y1s:blue:power";
+                       label = "newifi-y1s:blue:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan1 {
-                       label = "y1s:yellow:wifi";
+                       label = "newifi-y1s:yellow:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan2 {
-                       label = "y1s:blue:wifi";
+                       label = "newifi-y1s:blue:wifi";
                        gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
                };
 
                usb1 {
-                       label = "y1s:yellow:usb";
+                       label = "newifi-y1s:yellow:usb";
                        gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
                };
 
                usb2 {
-                       label = "y1s:blue:usb";
+                       label = "newifi-y1s:blue:usb";
                        gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                internet {
-                       label = "y1s:blue:internet";
+                       label = "newifi-y1s:blue:internet";
                        gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
                };
        };
index cc339da5e2f58dcf3bb830ea0b51a7f9b10b9095..40ae5ee58ab9e720609b769c095ea9061bb29410 100644 (file)
                compatible = "gpio-leds";
 
                led_power_green: power_g {
-                       label = "wn3000rpv3:green:power";
+                       label = "wn3000rp-v3:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                power_r {
-                       label = "wn3000rpv3:red:power";
+                       label = "wn3000rp-v3:red:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                client_g {
-                       label = "wn3000rpv3:green:client";
+                       label = "wn3000rp-v3:green:client";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                client_r {
-                       label = "wn3000rpv3:red:client";
+                       label = "wn3000rp-v3:red:client";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                router_g {
-                       label = "wn3000rpv3:green:router";
+                       label = "wn3000rp-v3:green:router";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                router_r {
-                       label = "wn3000rpv3:red:router";
+                       label = "wn3000rp-v3:red:router";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "wn3000rpv3:green:wps";
+                       label = "wn3000rp-v3:green:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                l_arrow {
-                       label = "wn3000rpv3:blue:leftarrow";
+                       label = "wn3000rp-v3:blue:leftarrow";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                r_arrow {
-                       label = "wn3000rpv3:blue:rightarrow";
+                       label = "wn3000rp-v3:blue:rightarrow";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
        };
index e20b8735693294802d0d70bf3af6910c26e103fa..2d7f6c03a32032b9e8502be23a7f287688445bd4 100644 (file)
                compatible = "gpio-leds";
 
                lan {
-                       label = "c2-v1:green:lan";
+                       label = "archer-c2-v1:green:lan";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "c2-v1:green:usb";
+                       label = "archer-c2-v1:green:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                led_wps: wps {
-                       label = "c2-v1:green:wps";
+                       label = "archer-c2-v1:green:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "c2-v1:green:wan";
+                       label = "archer-c2-v1:green:wan";
                        gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "c2-v1:green:wlan";
+                       label = "archer-c2-v1:green:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
index 602cc70e027b194cd47fb069c3600007dd33019c..258c2f21c94897fd0bb811cf50a61a7dd4594c28 100644 (file)
                compatible = "gpio-leds";
 
                lan {
-                       label = "c20-v1:blue:lan";
+                       label = "archer-c20-v1:blue:lan";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "c20-v1:blue:power";
+                       label = "archer-c20-v1:blue:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                usb {
-                       label = "c20-v1:blue:usb";
+                       label = "archer-c20-v1:blue:usb";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wan {
-                       label = "c20-v1:blue:wan";
+                       label = "archer-c20-v1:blue:wan";
                        gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
 
                wan_orange {
-                       label = "c20-v1:orange:wan";
+                       label = "archer-c20-v1:orange:wan";
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                wlan5g {
-                       label = "c20-v1:blue:wlan5g";
+                       label = "archer-c20-v1:blue:wlan5g";
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
-                       label = "c20-v1:blue:wlan2g";
+                       label = "archer-c20-v1:blue:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "c20-v1:blue:wps";
+                       label = "archer-c20-v1:blue:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
index 7dfaddeee461c9c03197fb762160df88ca49b7ee..36dceecce10c92a50c299331966fa450ea7e3717 100644 (file)
        leds {
                compatible = "gpio-leds";
                lan {
-                       label = "c20i:blue:lan";
+                       label = "archer-c20i:blue:lan";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
                usb {
-                       label = "c20i:blue:usb";
+                       label = "archer-c20i:blue:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
                wps {
-                       label = "c20i:blue:wps";
+                       label = "archer-c20i:blue:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
                wan {
-                       label = "c20i:blue:wan";
+                       label = "archer-c20i:blue:wan";
                        gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
                wlan {
-                       label = "c20i:blue:wlan";
+                       label = "archer-c20i:blue:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
index b1e13bebea5d08bc9e58366d6325d5b7127d9915..20000374b1049a05c366b8d7a2ee4569d174db1c 100644 (file)
                compatible = "gpio-leds";
 
                lan {
-                       label = "c50:green:lan";
+                       label = "archer-c50-v1:green:lan";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "c50:green:power";
+                       label = "archer-c50-v1:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                usb {
-                       label = "c50:green:usb";
+                       label = "archer-c50-v1:green:usb";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wan {
-                       label = "c50:green:wan";
+                       label = "archer-c50-v1:green:wan";
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "c50:orange:wan";
+                       label = "archer-c50-v1:orange:wan";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
-                       label = "c50:green:wlan5g";
+                       label = "archer-c50-v1:green:wlan5g";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
-                       label = "c50:green:wlan2g";
+                       label = "archer-c50-v1:green:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "c50:green:wps";
+                       label = "archer-c50-v1:green:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
index 566b2431fc5ba8d7d1ea9fd723d60685d3dd3406..4beb737606fcad4ad0cb74b305d2fa44290191ef 100644 (file)
                compatible = "gpio-leds";
 
                lan {
-                       label = "mr200:white:lan";
+                       label = "archer-mr200:white:lan";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "mr200:white:wan";
+                       label = "archer-mr200:white:wan";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "mr200:white:power";
+                       label = "archer-mr200:white:power";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                4g {
-                       label = "mr200:white:4g";
+                       label = "archer-mr200:white:4g";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "mr200:white:wps";
+                       label = "archer-mr200:white:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                signal1 {
-                       label = "mr200:white:signal1";
+                       label = "archer-mr200:white:signal1";
                        gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                signal2 {
-                       label = "mr200:white:signal2";
+                       label = "archer-mr200:white:signal2";
                        gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                };
 
                signal3 {
-                       label = "mr200:white:signal3";
+                       label = "archer-mr200:white:signal3";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                signal4 {
-                       label = "mr200:white:signal4";
+                       label = "archer-mr200:white:signal4";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "mr200:white:wlan";
+                       label = "archer-mr200:white:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
index 5d90b17a04e9c095a29aacb4c8bf8b97e4aa5c59..6ddb2c5d39838ecd09296721ae7f3df67418b205 100644 (file)
        leds {
                compatible = "gpio-leds";
                wan {
-                       label = "youku-yk1:blue:wan";
+                       label = "yk1:blue:wan";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
                air {
-                       label = "youku-yk1:blue:air";
+                       label = "yk1:blue:air";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
                usb {
-                       label = "youku-yk1:blue:usb";
+                       label = "yk1:blue:usb";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
                led_power: power {
-                       label = "youku-yk1:blue:power";
+                       label = "yk1:blue:power";
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
        };
index 3d6d2c6f06a8259879221faf237d4d6f50edc927..725339e77abf457a8b072fc07abf402cd06a7560 100644 (file)
                compatible = "gpio-leds";
 
                wan {
-                       label = "kng_rc:green:wan";
+                       label = "keenetic-viva:green:wan";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "kng_rc:green:usb";
+                       label = "keenetic-viva:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                power_alert {
-                       label = "kng_rc:red:power";
+                       label = "keenetic-viva:red:power";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
-                       label = "kng_rc:green:wifi";
+                       label = "keenetic-viva:green:wifi";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power {
-                       label = "kng_rc:green:power";
+                       label = "keenetic-viva:green:power";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
index 765629548cd435eaaee30c0430b01ec485cc78e2..b57c008ef37757ff98592766044d44be641bba1c 100644 (file)
                compatible = "gpio-leds";
 
                wan {
-                       label = "kn_rc:green:wan";
+                       label = "keenetic-omni-ii:green:wan";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "kn_rc:green:usb";
+                       label = "keenetic-omni-ii:green:usb";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wifi {
-                       label = "kn_rc:green:wifi";
+                       label = "keenetic-omni-ii:green:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "kn_rc:green:power";
+                       label = "keenetic-omni-ii:green:power";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
index 74396d1fc2dfce857e8cc799461cbd2dc130acc6..2d7d3e83868792cdcdd083fa34cd4ff53f948002 100644 (file)
                compatible = "gpio-leds";
 
                wan {
-                       label = "kn_rc:green:wan";
+                       label = "keenetic-omni:green:wan";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "kn_rc:green:usb";
+                       label = "keenetic-omni:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wifi {
-                       label = "kn_rc:green:wifi";
+                       label = "keenetic-omni:green:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "kn_rc:green:power";
+                       label = "keenetic-omni:green:power";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
        };
index dd20c83fdcc59600554f965163f8df9d90404e92..090020d5e00e29db3ad019c4508fff7afdd4ecb4 100644 (file)
 };
 
 &led_power {
-       label = "wndr3700v5:green:power";
+       label = "wndr3700-v5:green:power";
 };
 
 &led_usb {
-       label = "wndr3700v5:green:usb";
+       label = "wndr3700-v5:green:usb";
 };
 
 &led_internet {
-       label = "wndr3700v5:green:wan";
+       label = "wndr3700-v5:green:wan";
 };
 
 &led_wifi {
-       label = "wndr3700v5:green:wifi";
+       label = "wndr3700-v5:green:wifi";
 };
 
 &led_wps {
-       label = "wndr3700v5:green:wps";
+       label = "wndr3700-v5:green:wps";
 };
 
 &spi0 {
index 222e4a665e81c792dbc3bf500ba4359d01cc8adb..641e5089a54fedf6929b580441863c8c87791311 100644 (file)
                compatible = "gpio-leds";
 
                lan {
-                       label = "c20-v4:green:lan";
+                       label = "archer-c20-v4:green:lan";
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "c20-v4:green:power";
+                       label = "archer-c20-v4:green:power";
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "c20-v4:green:wan";
+                       label = "archer-c20-v4:green:wan";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "c20-v4:orange:wan";
+                       label = "archer-c20-v4:orange:wan";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
-                       label = "c20-v4:green:wlan5g";
+                       label = "archer-c20-v4:green:wlan5g";
                        gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
-                       label = "c20-v4:green:wlan2g";
+                       label = "archer-c20-v4:green:wlan2g";
                        gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "c20-v4:green:wps";
+                       label = "archer-c20-v4:green:wps";
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
        };
index d3d13296478d2ad54598816b3c73d120a06a32f4..3da61288974a9c614dfc6b471d173fc8db8aa1f9 100644 (file)
                compatible = "gpio-leds";
 
                lan {
-                       label = "c50-v3:green:lan";
+                       label = "archer-c50-v3:green:lan";
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "c50-v3:green:power";
+                       label = "archer-c50-v3:green:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "c50-v3:green:wan";
+                       label = "archer-c50-v3:green:wan";
                        gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "c50-v3:orange:wan";
+                       label = "archer-c50-v3:orange:wan";
                        gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "c50-v3:green:wlan2g";
+                       label = "archer-c50-v3:green:wlan2g";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
 
                wlan5 {
-                       label = "c50-v3:green:wlan5g";
+                       label = "archer-c50-v3:green:wlan5g";
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "c50-v3:green:wps";
+                       label = "archer-c50-v3:green:wps";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
        };
index cd8731201d0d7918ada9338cab7f2e74e3370e93..30132b4c8502dca7b83c54f8e12eb6a338c230b6 100644 (file)
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "c50-v4:green:power";
+                       label = "archer-c50-v4:green:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan2 {
-                       label = "c50-v4:green:wlan2g";
+                       label = "archer-c50-v4:green:wlan2g";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
 
                wlan5 {
-                       label = "c50-v4:green:wlan5g";
+                       label = "archer-c50-v4:green:wlan5g";
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "c50-v4:green:lan";
+                       label = "archer-c50-v4:green:lan";
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "c50-v4:green:wan";
+                       label = "archer-c50-v4:green:wan";
                        gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "c50-v4:orange:wan";
+                       label = "archer-c50-v4:orange:wan";
                        gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "c50-v4:green:wps";
+                       label = "archer-c50-v4:green:wps";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
        };
index cd452fa782e5f5a0f6c4ab512e9e1f2be048b891..dfe55a257569bbe92230661e1477b250f7a2e742 100644 (file)
                compatible = "gpio-leds";
 
                wifi {
-                       label = "fonera20n:orange:wifi";
+                       label = "fonera-20n:orange:wifi";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "fonera20n:green:power";
+                       label = "fonera-20n:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "fonera20n:orange:usb";
+                       label = "fonera-20n:orange:usb";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&otg_port1>;
                        linux,default-trigger = "usbport";
index def61cabf38971ebd4b2857711221d8d613ab469..763256934ddc11918cdde1be885ba36e20809401 100644 (file)
                compatible = "gpio-leds";
 
                led_wifi: wifi {
-                       label = "m2m:blue:wifi";
+                       label = "memory2move:blue:wifi";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "m2m:green:wan";
+                       label = "memory2move:green:wan";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };