1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

fix 1000l LED

This commit is contained in:
suyuan 2020-12-22 23:41:05 +08:00
parent 02e39d0cca
commit a34822b089
2 changed files with 13 additions and 6 deletions

View file

@ -62,7 +62,7 @@ pangu,l1000)
ucidef_set_led_default "power" "POWER" "${boardname}:blue:power" "1"
ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:blue:wlan2g" "phy0tpt"
ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:blue:wlan5g" "phy1tpt"
ucidef_set_led_switch "wan" "WAN" "${boardname}:blue:wan" "switch0" "0x20"
ucidef_set_led_netdev "wan" "WAN" "${boardname}:blue:wan" "eth1"
;;
netgear,ex6100v2 |\
netgear,ex6150v2)

View file

@ -123,24 +123,31 @@
compatible = "gpio-leds";
power: status {
label = "l1000:blue:status";
label = "blue:status";
gpios = <&tlmm 3 GPIO_ACTIVE_LOW>;
};
wlan2g {
label = "l1000:blue:wlan2g";
label = "blue:wlan2g";
gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
};
wlan5g {
label = "l1000:bule:wlan5g";
label = "bule:wlan5g";
gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
};
wan: wan {
label = "l1000:bule:usb";
label = "bule:wan";
gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
};
};
led_usb: usb {
label = "green:usb";
gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
trigger-sources = <&usb3_port1>, <&usb3_port2>,
<&usb2_port1>;
linux,default-trigger = "usbport";
};
};
};