ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33"
ucidef_set_led_default "etactica" "etactica" "$boardname:red:etactica" "ignore"
;;
-glinet,gl-ar150)
- ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
- ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
- ;;
glinet,gl-ar300m-nand|\
glinet,gl-ar300m-nor)
ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth0"
ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
;;
-thinkpenguin,tpe-r1100)
- ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
- ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
- ;;
thinkpenguin,tpe-r1200-nand|\
thinkpenguin,tpe-r1200-nor)
ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth0"
aliases {
serial0 = &uart;
- led-boot = &wlan;
- led-failsafe = &wlan;
- led-upgrade = &wlan;
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
- wlan: wlan {
+ wlan {
label = "gl-ar150:orange:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
- lan {
- label = "gl-ar150:green:lan";
+ configurable {
+ label = "gl-ar150:green:configurable";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
- wan {
- label = "gl-ar150:green:wan";
+ led_power: power {
+ label = "gl-ar150:green:power";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
};
};
aliases {
serial0 = &uart;
- led-boot = &wlan;
- led-failsafe = &wlan;
- led-upgrade = &wlan;
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
- wlan: wlan {
+ wlan {
label = "gl-ar150:orange:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
- lan {
- label = "gl-ar150:green:lan";
+ configurable {
+ label = "gl-ar150:green:configurable";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
- wan {
- label = "gl-ar150:green:wan";
+ led_power: power {
+ label = "gl-ar150:green:power";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
};
};