set_wifi_led "$boardname:blue:wifi"
set_usb_led "$boardname:blue:usb"
;;
-dch-m225)
- ucidef_set_led_default "status" "STATUS" "$board:red:status" "0"
- ;;
dcs-930l-b1)
ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
;;
;;
dir-615-d|\
dir-615-h1)
- ucidef_set_led_default "status" "Status LED (amber)" "$boardname:amber:status" "0"
set_wifi_led "rt2800pci-phy0::radio"
;;
dir-620-d1|\
set_wifi_led "$boardname:green:wlan2g"
;;
hpm)
- ucidef_set_led_default "power" "POWER" "$boardname:orange:power" "1"
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
set_wifi_led "$boardname:green:wifi"
;;
;;
pbr-m1)
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
- ucidef_set_led_default "sys" "sys" "$boardname:blue:sys" "1"
;;
d-team,newifi-d2)
set_usb_led "$boardname:blue:usb"
led_power: power {
label = "dch-m225:green:power";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
+ default-state = "on";
};
status {
label = "dch-m225:red:status";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
+ default-state = "off";
};
};
status {
label = "dir-615-d:amber:status";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ default-state = "off";
};
led_status_green: status2 {
label = "dir-615-d:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ default-state = "on";
};
wan {
status {
label = "dir-615-h1:amber:status";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
};
led_status_green: status2 {
label = "dir-615-h1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
};
wan {
power {
label = "hpm:orange:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ default-state = "on";
};
led_status: status {
label = "hpm:green:status";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+ default-state = "on";
};
eth {
model = "PBR-M1";
aliases {
- led-status = &led_power;
+ led-status = &led_sys;
};
memory@0 {
gpio-leds {
compatible = "gpio-leds";
- led_power: power {
+ power {
label = "pbr-m1:blue:power";
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
+ default-state = "on";
};
- sys {
+ led_sys: sys {
label = "pbr-m1:blue:sys";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
};