+++ /dev/null
-#!/bin/sh
-# Copyright (C) 2007-2013 OpenWrt.org
-
-. /lib/functions.sh
-. /lib/functions/leds.sh
-
-set_state() {
- case "$(board_name)" in
- actiontec,r1000h)
- status_led="R1000H:green:power"
- ;;
- adb,a4001n)
- status_led="A4001N:green:power"
- ;;
- adb,a4001n1)
- status_led="A4001N1:green:power"
- ;;
- adb,av4202n)
- status_led="AV4202N:white:power"
- ;;
- asmax,ar-1004g)
- status_led="AR1004G:green:power"
- ;;
- brcm,bcm963281tan)
- status_led="963281TAN::power"
- ;;
- brcm,bcm96328avng)
- status_led="96328avng::power"
- ;;
- brcm,bcm96348gw)
- status_led="96348GW:green:power"
- ;;
- brcm,bcm96348gw-11)
- status_led="96348GW-11:green:power"
- ;;
- bt,home-hub-2-a)
- status_led="HOMEHUB2A:green:upgrading"
- status_led2="HOMEHUB2A:blue:upgrading"
- ;;
- bt,voyager-2110)
- status_led="V2110:power:green"
- ;;
- comtrend,ar-5315u)
- status_led="AR-5315u:green:power"
- ;;
- comtrend,ar-5381u)
- status_led="AR-5381u:green:power"
- ;;
- comtrend,ar-5387un)
- status_led="AR-5387un:green:power"
- ;;
- comtrend,ct-536plus)
- status_led="CT536_CT5621:green:power"
- ;;
- comtrend,vr-3025u)
- status_led="VR-3025u:green:power"
- ;;
- comtrend,vr-3025un)
- status_led="VR-3025un:green:power"
- ;;
- comtrend,vr-3026e)
- status_led="VR-3026e:green:power"
- ;;
- comtrend,wap-5813n)
- status_led="WAP-5813n:green:power"
- ;;
- d-link,dsl-2640b-b)
- status_led="D-4P-W:green:power"
- ;;
- d-link,dsl-274xb-c2|\
- d-link,dsl-274xb-f1)
- status_led="dsl-274xb:green:power"
- ;;
- d-link,dsl-275xb-d1)
- status_led="dsl-275xb:green:power"
- ;;
- dynalink,rta770bw)
- status_led="RTA770BW:green:diag"
- ;;
- dynalink,rta770w)
- status_led="RTA770W:green:diag"
- ;;
- huawei,echolife-hg520v)
- status_led="HW520:green:net"
- ;;
- huawei,echolife-hg553)
- status_led="HW553:blue:power"
- ;;
- huawei,echolife-hg556a-a|\
- huawei,echolife-hg556a-b|\
- huawei,echolife-hg556a-c)
- status_led="HW556:red:power"
- ;;
- huawei,echolife-hg655b)
- status_led="HW65x:green:power"
- ;;
- inventel,livebox-1)
- status_led="Livebox1:red:adsl-fail-power"
- ;;
- netgear,cvg834g)
- status_led="CVG834G:green:power"
- ;;
- netgear,dgnd3700-v1)
- status_led="DGND3700v1_3800B:green:power"
- ;;
- netgear,evg2000)
- status_led="EVG2000:green:power"
- ;;
- nucom,r5010un-v2)
- status_led="R5010UNv2:green:power"
- ;;
- observa,vh4032n)
- status_led="VH4032N:blue:power"
- ;;
- sagem,fast-2504n)
- status_led="fast2504n:green:ok"
- ;;
- sagem,fast-2704n)
- status_led2="F@ST2704N:red:power"
- ;;
- sagem,fast-2704-v2)
- status_led="F@ST2704V2:green:power"
- ;;
- sercomm,ad1018-nor)
- status_led="AD1018:green:power"
- ;;
- sky,sr102)
- status_led="SR102:white:power"
- status_led2="SR102:red:power"
- ;;
- t-com,speedport-w-303v)
- status_led="spw303v:green:power+adsl"
- ;;
- t-com,speedport-w-500v)
- status_led="SPW500V:green:power"
- ;;
- tecom,gw6200)
- status_led="GW6200:green:line1"
- status_led2="GW6200:green:tel"
- ;;
- telsey,cpva642)
- status_led="CPVA642:green:power:"
- ;;
- zyxel,p870hw-51a-v2)
- status_led="P870HW-51a:green:power"
- ;;
- esac
-
- case "$1" in
- preinit)
- status_led_blink_preinit
- ;;
- failsafe)
- status_led_blink_failsafe
- ;;
- preinit_regular)
- status_led_blink_preinit_regular
- ;;
- done)
- if [ "${status_led/power}" != "$status_led" ]; then
- status_led_on
- else
- status_led_off
- fi
- ;;
- esac
-}
model = "Netgear CVG834G";
compatible = "netgear,cvg834g", "brcm,bcm3368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "CVG834G:green:power";
gpios = <&gpio1 5 0>;
default-state = "on";
model = "SKY SR102";
compatible = "sky,sr102", "brcm,bcm63168", "brcm,bcm63268";
+ aliases {
+ led-boot = &led_power_white;
+ led-failsafe = &led_power_white;
+ led-running = &led_power_white;
+ led-upgrade = &led_power_white;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "SR102:white:inet";
gpios = <&pinctrl 5 0>;
};
- power_white {
+ led_power_white: power_white {
label = "SR102:white:power";
gpios = <&pinctrl 6 0>;
default-state = "on";
model = "Comtrend AR-5315u";
compatible = "comtrend,ar-5315u", "brcm,bcm6318";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "AR-5315u:green:wps";
gpios = <&pinctrl 0 1>;
};
- power_green {
+ led_power_green: power_green {
label = "AR-5315u:green:power";
gpios = <&pinctrl 1 1>;
default-state = "on";
model = "D-Link DSL-2750B/DSL-2751 rev D1";
compatible = "d-link,dsl-275xb-d1", "brcm,bcm6318";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "dsl-275xb:green:power";
gpios = <&pinctrl 3 1>;
default-state = "on";
model = "Sagem F@st 2704N";
compatible = "sagem,fast-2704n", "brcm,bcm6318";
+ aliases {
+ led-boot = &led_power_red;
+ led-failsafe = &led_power_red;
+ led-running = &led_power_red;
+ led-upgrade = &led_power_red;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "F@ST2704N:green:dsl";
gpios = <&pinctrl 10 1>;
};
- power_red {
+ led_power_red: power_red {
label = "F@ST2704N:red:power";
gpios = <&pinctrl 11 1>;
};
model = "ADB P.DG A4001N";
compatible = "adb,a4001n", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "A4001N:red:power";
gpios = <&pinctrl 4 0>;
};
- power_green {
+ led_power_green: power_green {
label = "A4001N:green:power";
gpios = <&pinctrl 8 0>;
default-state = "on";
model = "ADB P.DG A4001N1";
compatible = "adb,a4001n1", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "A4001N1:green:ppp";
gpios = <&pinctrl 3 1>;
};
- power_green {
+ led_power_green: power_green {
label = "A4001N1:green:power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "Broadcom bcm963281TAN reference board";
compatible = "brcm,bcm963281tan", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "963281TAN::internet";
gpios = <&pinctrl 1 1>;
};
- power {
+ led_power: power {
label = "963281TAN::power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "Broadcom BCM96328avng reference board";
compatible = "brcm,bcm96328avng", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "96328avng::dsl";
gpios = <&pinctrl 3 1>;
};
- power {
+ led_power: power {
label = "96328avng::power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "Comtrend AR-5381u";
compatible = "comtrend,ar-5381u", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "AR-5381u:green:inet";
gpios = <&pinctrl 3 1>;
};
- power_green {
+ led_power_green: power_green {
label = "AR-5381u:green:power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "Comtrend AR-5387un";
compatible = "comtrend,ar-5387un", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "AR-5387un:green:inet";
gpios = <&pinctrl 7 0>;
};
- power_green {
+ led_power_green: power_green {
label = "AR-5387un:green:power";
gpios = <&pinctrl 8 0>;
default-state = "on";
model = "D-Link DSL-2740B/DSL-2741B rev F1";
compatible = "d-link,dsl-274xb-f1", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "dsl-274xb:green:dsl";
gpios = <&pinctrl 3 1>;
};
- power_green {
+ led_power_green: power_green {
label = "dsl-274xb:green:power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "NuCom R5010UN v2";
compatible = "nucom,r5010un-v2", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};
-
keys {
compatible = "gpio-keys-polled";
#address-cells = <1>;
label = "R5010UNv2:green:dsl";
gpios = <&pinctrl 3 1>;
};
- power_green {
+ led_power_green: power_green {
label = "R5010UNv2:green:power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "Sagem F@st 2704 V2";
compatible = "sagem,fast-2704-v2", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "F@ST2704V2:green:dsl";
gpios = <&pinctrl 3 1>;
};
- power_green {
+ led_power_green: power_green {
label = "F@ST2704V2:green:power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "Sercomm AD1018 (SPI flash mod)";
compatible = "sercomm,ad1018-nor", "brcm,bcm6328";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "AD1018:green:internet";
};
- power_green@8 {
+ led_power_green: power_green@8 {
reg = <8>;
active-low;
label = "AD1018:green:power";
model = "Siemens Gigaset SE515";
compatible = "dynalink,rta770bw", "brcm,bcm6345";
+ aliases {
+ led-boot = &led_diag;
+ led-failsafe = &led_diag;
+ led-running = &led_diag;
+ led-upgrade = &led_diag;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
gpios = <&gpio0 8 0>;
};
- diag {
+ led_diag: diag {
label = "RTA770BW:green:diag";
gpios = <&gpio0 10 1>;
};
model = "Dynalink RTA770W";
compatible = "dynalink,rta770w", "brcm,bcm6345";
+ aliases {
+ led-boot = &led_diag;
+ led-failsafe = &led_diag;
+ led-running = &led_diag;
+ led-upgrade = &led_diag;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
gpios = <&gpio0 8 0>;
};
- diag {
+ led_diag: diag {
label = "RTA770W:green:diag";
gpios = <&gpio0 10 1>;
};
model = "ASMAX AR 1004g";
compatible = "asmax,ar-1004g", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "AR1004G:green:power";
gpios = <&pinctrl 0 1>;
default-state = "on";
model = "Broadcom BCM96348GW-11 reference board";
compatible = "brcm,bcm96348gw-11", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "96348GW-11:green:power";
gpios = <&pinctrl 0 1>;
default-state = "on";
model = "Broadcom BCM96348GW reference board";
compatible = "brcm,bcm96348gw", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "96348GW:green:power";
gpios = <&pinctrl 0 1>;
default-state = "on";
model = "BT Voyager 2110";
compatible = "bt,voyager-2110", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "V2110:green:power";
gpios = <&pinctrl 0 1>;
};
model = "Comtrend CT-536+/CT-5621T";
compatible = "comtrend,ct-536plus", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "CT536_CT5621:green:power";
gpios = <&pinctrl 0 1>;
default-state = "on";
model = "D-Link DSL-2640B rev B2";
compatible = "d-link,dsl-2640b-b", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "D-4P-W:green:power";
gpios = <&pinctrl 0 1>;
default-state = "on";
model = "Inventel Livebox 1";
compatible = "inventel,livebox-1", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_red_adsl_fail;
+ led-failsafe = &led_red_adsl_fail;
+ led-running = &led_red_adsl_fail;
+ led-upgrade = &led_red_adsl_fail;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- red_adsl_fail {
+ led_red_adsl_fail: red_adsl_fail {
label = "Livebox1:red:adsl-fail-power";
gpios = <&pinctrl 0 0>;
default-state = "on";
model = "T-Com Speedport W 500V";
compatible = "t-com,speedport-w-500v", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "SPW500V:green:power";
gpios = <&pinctrl 0 1>;
default-state = "on";
model = "TECOM GW6200";
compatible = "tecom,gw6200", "brcm,bcm6348";
+ aliases {
+ led-boot = &led_line1_green;
+ led-failsafe = &led_line1_green;
+ led-running = &led_line1_green;
+ led-upgrade = &led_line1_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- line1_green {
+ led_line1_green: line1_green {
label = "GW6200:green:line1";
gpios = <&pinctrl 4 1>;
};
model = "BT Home Hub 2.0 Type A";
compatible = "bt,home-hub-2-a", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_upgrading_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "HOMEHUB2A:red:power";
};
- led@1 {
+ led_power_green: led@1 {
reg = <0>;
active-low;
label = "HOMEHUB2A:green:power";
label = "HOMEHUB2A:red:upgrading";
};
- led@13 {
+ led_upgrading_green: led@13 {
reg = <13>;
active-low;
label = "HOMEHUB2A:green:upgrading";
model = "D-Link DSL-2740B/DSL-2741B rev C2/3";
compatible = "d-link,dsl-274xb-c2", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "dsl-274xb:red:power";
gpios = <&pinctrl 4 1>;
};
- power_green {
+ led_power_green: power_green {
label = "dsl-274xb:green:power";
gpios = <&pinctrl 5 1>;
default-state = "on";
model = "Huawei EchoLife HG553";
compatible = "huawei,echolife-hg553", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_blue;
+ led-failsafe = &led_power_blue;
+ led-running = &led_power_blue;
+ led-upgrade = &led_power_blue;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_blue: power_blue {
label = "HW553:blue:power";
gpios = <&pinctrl 4 1>;
default-state = "on";
model = "Huawei EchoLife HG556a (version A)";
compatible = "huawei,echolife-hg556a-a", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_red;
+ led-failsafe = &led_power_red;
+ led-running = &led_power_red;
+ led-upgrade = &led_power_red;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "HW556:red:dsl";
gpios = <&pinctrl 2 1>;
};
- power_red {
+ led_power_red: power_red {
label = "HW556:red:power";
gpios = <&pinctrl 3 1>;
default-state = "on";
model = "Huawei EchoLife HG556a (version B)";
compatible = "huawei,echolife-hg556a-b", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_red;
+ led-failsafe = &led_power_red;
+ led-running = &led_power_red;
+ led-upgrade = &led_power_red;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "HW556:red:dsl";
gpios = <&pinctrl 2 1>;
};
- power_red {
+ led_power_red: power_red {
label = "HW556:red:power";
gpios = <&pinctrl 3 1>;
default-state = "on";
model = "Huawei EchoLife HG556a (version C)";
compatible = "huawei,echolife-hg556a-c", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_red;
+ led-failsafe = &led_power_red;
+ led-running = &led_power_red;
+ led-upgrade = &led_power_red;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "HW556:red:dsl";
gpios = <&pinctrl 2 1>;
};
- power_red {
+ led_power_red: power_red {
label = "HW556:red:power";
gpios = <&pinctrl 3 1>;
default-state = "on";
model = "T-Com Speedport W 303V";
compatible = "t-com,speedport-w-303v", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_adsl_green;
+ led-failsafe = &led_power_adsl_green;
+ led-running = &led_power_adsl_green;
+ led-upgrade = &led_power_adsl_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "spw303v:green:ppp";
gpios = <&pinctrl 5 1>;
};
- power_adsl_green {
+ led_power_adsl_green: power_adsl_green {
label = "spw303v:green:power+adsl";
gpios = <&pinctrl 22 1>;
default-state = "on";
model = "Telsey CPVA642-type (CPA-ZNTE60T)";
compatible = "telsey,cpva642", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "CPVA642:green:link";
gpios = <&pinctrl 10 1>;
};
- power_green {
+ led_power_green: power_green {
label = "CPVA642:green:power";
gpios = <&pinctrl 11 1>;
default-state = "on";
model = "Huawei EchoLife HG520v";
compatible = "huawei,echolife-hg520v", "brcm,bcm6359", "brcm,bcm6358";
+ aliases {
+ led-boot = &led_inet_green;
+ led-failsafe = &led_inet_green;
+ led-running = &led_inet_green;
+ led-upgrade = &led_inet_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- inet_green {
+ led_inet_green: inet_green {
label = "HW520:green:net";
gpios = <&pinctrl 32 1>;
};
model = "Sagem F@st 2504N";
compatible = "sagem,fast-2504n", "brcm,bcm6362";
+ aliases {
+ led-boot = &led_ok_green;
+ led-failsafe = &led_ok_green;
+ led-running = &led_ok_green;
+ led-upgrade = &led_ok_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "fast2504n:red:internet";
gpios = <&pinctrl 26 1>;
};
- ok_green {
+ led_ok_green: ok_green {
label = "fast2504n:green:ok";
gpios = <&pinctrl 28 1>;
};
model = "Actiontec R1000H";
compatible = "actiontec,r1000h", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
gpios = <&pinctrl 21 1>;
};
- power_green {
+ led_power_green: power_green {
label = "R1000H:green:power";
gpios = <&pinctrl 22 0>;
default-state = "on";
model = "ADB P.DG AV4202N";
compatible = "adb,av4202n", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_white;
+ led-failsafe = &led_power_white;
+ led-running = &led_power_white;
+ led-upgrade = &led_power_white;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_white {
+ led_power_white: power_white {
label = "AV4202N:white:power";
gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
default-state = "on";
model = "Comtrend VR-3025u";
compatible = "comtrend,vr-3025u", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "VR-3025u:green:inet";
gpios = <&pinctrl 5 0>;
};
- power_green {
+ led_power_green: power_green {
label = "VR-3025u:green:power";
gpios = <&pinctrl 22 0>;
default-state = "on";
model = "Comtrend VR-3025un";
compatible = "comtrend,vr-3025un", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "VR-3025un:green:inet";
gpios = <&pinctrl 5 0>;
};
- power_green {
+ led_power_green: power_green {
label = "VR-3025un:green:power";
gpios = <&pinctrl 22 0>;
default-state = "on";
model = "Comtrend VR-3026e";
compatible = "comtrend,vr-3026e", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "VR-3026e:green:inet";
gpios = <&pinctrl 5 0>;
};
- power_green {
+ led_power_green: power_green {
label = "VR-3026e:green:power";
gpios = <&pinctrl 22 0>;
default-state = "on";
model = "Huawei EchoLife HG655b";
compatible = "huawei,echolife-hg655b", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "HW65x:green:usb";
gpios = <&pinctrl 14 1>;
};
- power_green {
+ led_power_green: power_green {
label = "HW65x:green:power";
gpios = <&pinctrl 22 1>;
default-state = "on";
model = "Netgear DGND3700v1/DGND3800B";
compatible = "netgear,dgnd3700-v1", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "DGND3700v1_3800B:green:lan";
gpios = <&pinctrl 23 1>;
};
- power_green {
+ led_power_green: power_green {
label = "DGND3700v1_3800B:green:power";
gpios = <&pinctrl 24 1>;
default-state = "on";
model = "Observa VH4032N";
compatible = "observa,vh4032n", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_blue;
+ led-failsafe = &led_power_blue;
+ led-running = &led_power_blue;
+ led-upgrade = &led_power_blue;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "VH4032N:red:hspa";
gpios = <&pinctrl 12 1>;
};
- power_blue {
+ led_power_blue: power_blue {
label = "VH4032N:blue:power";
gpios = <&pinctrl 22 0>;
default-state = "on";
model = "Zyxel P870HW-51a v2";
compatible = "zyxel,p870hw-51a-v2", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
leds {
compatible = "gpio-leds";
- power_green {
+ led_power_green: power_green {
label = "P870HW-51a:green:power";
gpios = <&pinctrl 0 0>;
default-state = "on";
model = "Comtrend WAP-5813n";
compatible = "comtrend,wap-5813n", "brcm,bcm6369", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "WAP-5813n:green:inet";
gpios = <&pinctrl 5 0>;
};
- power_green {
+ led_power_green: power_green {
label = "WAP-5813n:green:power";
gpios = <&pinctrl 22 0>;
default-state = "on";
model = "Netgear EVG2000";
compatible = "netgear,evg2000", "brcm,bcm6369", "brcm,bcm6368";
+ aliases {
+ led-boot = &led_power_green;
+ led-failsafe = &led_power_green;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
chosen {
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
label = "EVG2000:green:usb";
gpios = <&pinctrl 15 1>;
};
- power_green {
+ led_power_green: power_green {
label = "EVG2000:green:power";
gpios = <&pinctrl 22 1>;
default-state = "on";