led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-internet = &led_internet_green;
- led-usb = &led_mobile_green;
- led-wireless = &led_wireless_green;
};
keys {
label = "red:mobile";
};
- led_mobile_green: led@1 {
+ led@1 {
reg = <1>;
label = "green:mobile";
};
led_power_red: led@8 {
reg = <8>;
label = "red:power";
+ panic-indicator;
};
- led_wireless_green: led@9 {
+ led@9 {
reg = <9>;
label = "green:wifi";
};
label = "red:internet";
};
- led_internet_green: led@15 {
+ led@15 {
reg = <15>;
label = "green:internet";
};
led-failsafe = &led_power_green;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
- led-usb = &led_usb_green;
};
keys {
label = "red:internet";
};
- led_dsl_green: led@3 {
+ led@3 {
reg = <3>;
active-low;
label = "green:dsl";
};
- led_usb_green: led@4 {
+ led@4 {
reg = <4>;
active-low;
label = "green:usb";
label = "green:wps";
};
- led_internet_green: led@8 {
+ led@8 {
reg = <8>;
active-low;
label = "green:internet";
led-failsafe = &led_power_red;
led-running = &led_power_red;
led-upgrade = &led_power_red;
-
- led-internet = &led_internet_green;
- led-usb = &led_modem_green;
- led-wireless = &led_wireless_green;
};
i2c {
label = "red:modem";
};
- led_modem_green: led@2 {
+ led@2 {
reg = <2>;
label = "green:modem";
};
label = "green:phone";
};
- led_wireless_green: led@7 {
+ led@7 {
reg = <7>;
label = "green:wifi";
};
label = "red:power";
};
- led_internet_green: led@9 {
+ led@9 {
reg = <9>;
label = "green:internet";
};
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
- led-usb = &led_usb_green;
};
keys {
label = "green:power";
};
- led_usb_green: led@2 {
+ led@2 {
reg = <2>;
active-low;
label = "green:usb";
};
led@4 {
+ /* EPHY0 Act */
reg = <4>;
brcm,hardware-controlled;
brcm,link-signal-sources = <4>;
- /* EPHY0 Act */
};
led@5 {
+ /* EPHY1 Act */
reg = <5>;
brcm,hardware-controlled;
brcm,link-signal-sources = <5>;
- /* EPHY1 Act */
};
led@6 {
+ /* EPHY2 Act */
reg = <6>;
brcm,hardware-controlled;
brcm,link-signal-sources = <6>;
- /* EPHY2 Act */
};
led@7 {
+ /* EPHY3 Act */
reg = <7>;
brcm,hardware-controlled;
brcm,link-signal-sources = <7>;
- /* EPHY3 Act */
};
- led_internet_green: led@8 {
+ led@8 {
reg = <8>;
active-low;
label = "green:internet";
label = "red:internet";
};
- led_dsl_green: led@10 {
+ led@10 {
reg = <10>;
active-low;
label = "green:dsl";
reg = <11>;
active-low;
label = "red:power";
+ panic-indicator;
};
};
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
};
keys {
led_power_red: led@4 {
reg = <4>;
label = "red:power";
+ panic-indicator;
};
- led_internet_green: led@7 {
+ led@7 {
reg = <7>;
label = "green:internet";
};
label = "green:power";
};
- led_dsl_green: led@11 {
+ led@11 {
reg = <11>;
active-low;
label = "green:dsl";
#include "bcm6358.dtsi"
/ {
- compatible = "huawei,hg556a-b", "brcm,bcm6358";
model = "Huawei EchoLife HG556a (version B)";
+ compatible = "huawei,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;
-
- led-dsl = &led_dsl_red;
- led-usb = &led_hspa_red;
};
keys {
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
- led_hspa_red: led@1 {
+ led@1 {
label = "red:hspa";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
- led_dsl_red: led@2 {
+ led@2 {
label = "red:dsl";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
led-boot = &led_phone_green;
led-failsafe = &led_phone_green;
led-upgrade = &led_phone_green;
-
- led-internet = &led_internet_green;
- led-usb = &led_usb_green;
- led-wireless = &led_wireless_green;
};
keys {
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
- led_usb_green: led@30 {
+ led@30 {
label = "green:usb";
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
};
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_leds>;
- led_internet_green: led@3 {
+ led@3 {
reg = <3>;
active-low;
label = "green:internet";
};
- led_wireless_green: led@5 {
+ led@5 {
reg = <5>;
active-low;
label = "green:wifi";
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-ethernet = &led_ethernet_green;
- led-internet = &led_internet_green;
- led-usb = &led_usb1_green;
- led-usb2 = &led_usb2_green;
};
keys {
leds {
compatible = "gpio-leds";
- led_dsl_green: led@28 {
+ led@28 {
label = "green:dsl";
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
led_power_red: led@34 {
label = "red:power";
gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
+ panic-indicator;
};
};
};
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led>;
- led_internet_green: led@1 {
+ led@1 {
reg = <1>;
active-low;
label = "green:internet";
label = "green:wps";
};
- led_usb1_green: led@10 {
+ led@10 {
reg = <10>;
active-low;
label = "green:usb1";
};
- led_usb2_green: led@11 {
+ led@11 {
reg = <11>;
active-low;
label = "green:usb2";
label = "amber:internet";
};
- led_ethernet_green: led@13 {
+ led@13 {
reg = <13>;
active-low;
label = "green:ethernet";
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
};
keys {
leds {
compatible = "gpio-leds";
- led_dsl_green: led@2 {
+ led@2 {
label = "green:dsl";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
- led_internet_green: led@5 {
+ led@5 {
label = "green:internet";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
led_power_red: led@24 {
label = "red:power";
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
+ panic-indicator;
};
led@31 {
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
- /* usb front */
led@13 {
+ /* Front USB port */
label = "green:usb2";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
- /* usb back */
led@14 {
+ /* Back USB port */
label = "green:usb1";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_power_green: led@24 {
label = "green:power";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
- default-state = "on";
};
led@26 {
led_power_blue: led@22 {
label = "blue:power";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
- default-state = "on";
};
led_power_red: led@24 {
label = "red:power";
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
+ panic-indicator;
};
led@25 {
led_power_green: led@22 {
label = "green:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
- default-state = "on";
};
led_power_red: led@23 {
label = "red:power";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
+ panic-indicator;
};
led@24 {