diff options
author | Mathias Kresin <dev@kresin.me> | 2018-08-13 17:14:08 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-10-07 11:34:18 +0200 |
commit | a58535771f115c1c95c91ce6af769852d64a8f27 (patch) | |
tree | 63c6604d8321fd382e094bf239f01f6a9eb95988 /target/linux/ramips/base-files/etc | |
parent | fa3c2676ab0ce5fbb648249da31e31bbc61a3e3d (diff) | |
download | upstream-a58535771f115c1c95c91ce6af769852d64a8f27.tar.gz upstream-a58535771f115c1c95c91ce6af769852d64a8f27.tar.bz2 upstream-a58535771f115c1c95c91ce6af769852d64a8f27.zip |
ramips: set usb led trigger via devicetree
Assign the usbdev trigger via devicetree for all subtargets and drop
the userspace handling of the usb leds.
With the change all usb ports are triggering the usb led instead of
only usb 1.1 XOR usb 2.0 XOR usb 3.0 as it was before.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 293e91ea21..4935d14537 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -17,24 +17,8 @@ boardname="${board##*,}" board_config_update case $board in -11acnas|\ -all0239-3g|\ -ew1200|\ -hw550-3g|\ -mofi3500-3gn|\ -sap-g3200u3|\ -sk-wb8|\ -w2914nsv2|\ -wf-2881) - set_usb_led "$boardname:green:usb" - ;; -3g150b|\ -3g300m) - set_usb_led "$boardname:blue:3g" - ;; 3g-6200n) set_wifi_led "$boardname:amber:wlan" - set_usb_led "$boardname:blue:3g" ;; 3g-6200nl|\ wnce2001) @@ -50,7 +34,6 @@ ai-br100) ;; air3gii) set_wifi_led "$boardname:green:wlan" - set_usb_led "$boardname:green:mobile" ;; alfa-network,ac1200rm) set_wifi_led "$boardname:green:wlan2g" "wlan1" @@ -76,13 +59,8 @@ asl26555-8M|\ asl26555-16M) ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0" set_wifi_led "asl26555:green:wlan" - set_usb_led "asl26555:green:3g" - ;; -bc2) - set_usb_led "$boardname:blue:usb" ;; broadway) - set_usb_led "$boardname:red:diskmounted" set_wifi_led "$boardname:red:wps_active" ;; c108) @@ -92,13 +70,11 @@ c108) c20i) ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01" - set_usb_led "$boardname:blue:usb" "2-1" ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio" ;; c50) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - set_usb_led "$boardname:green:usb" ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1 set_wifi_led "$boardname:green:wlan5g" ;; @@ -108,14 +84,9 @@ cf-wr800n) ;; cy-swr1100) ucidef_set_led_default "wps" "WPS" "$boardname:blue:wps" "0" - set_usb_led "$boardname:blue:usb" - ;; -d105) - set_usb_led "$boardname:green:usb" ;; d240) set_wifi_led "$boardname:blue:wifi" - set_usb_led "$boardname:blue:usb" ;; dcs-930l-b1) ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps" @@ -150,7 +121,6 @@ dlink,dwr-118-a2) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" set_wifi_led "$boardname:green:wlan2g" "wlan1" - set_usb_led "$boardname:green:usb" ucidef_set_led_default "internet" "internet" "$boardname:green:internet" "0" ;; dlink,dwr-921-c1) @@ -163,7 +133,6 @@ dir-860l-b1) ;; edimax,br-6478ac-v2) set_wifi_led "$boardname:blue:wlan" - set_usb_led "$boardname:blue:usb" ;; ex2700|\ wn3000rpv3) @@ -178,11 +147,7 @@ f5d8235-v1) set_usb_led "$boardname:blue:storage" set_wifi_led "$boardname:blue:wireless" ;; -f5d8235-v2) - set_usb_led "$boardname:blue:storage" - ;; fonera20n) - set_usb_led "$boardname:orange:usb" set_wifi_led "$boardname:orange:wifi" ;; gnubee,gb-pc1|\ @@ -215,7 +180,6 @@ hc5861) ;; hg255d) set_wifi_led "$boardname:green:wlan" - set_usb_led "$boardname:green:usb" ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2" ;; hiwifi,hc5861b) @@ -235,13 +199,11 @@ kimax,u35wf) ;; kn|\ nbg-419n2) - set_usb_led "$boardname:green:usb" set_wifi_led "rt2800pci-phy0::radio" ;; kn_rc|\ kn_rf|\ kng_rc) - set_usb_led "$boardname:green:usb" set_wifi_led "$boardname:green:wifi" ;; linkits7688) @@ -261,7 +223,6 @@ mikrotik,rbm11g) ;; miniembplug) set_wifi_led "$boardname:red:wlan" - set_usb_led "$boardname:green:mobile" ;; mir3g) ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08" @@ -278,7 +239,6 @@ mpr-a2) ;; mr-102n) set_wifi_led "$boardname:green:wlan" - set_usb_led "$boardname:green:usb" ;; mr200) ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1" @@ -288,28 +248,18 @@ mr200) mzk-ex750np) set_wifi_led "$boardname:red:wifi" ;; -na930) - set_usb_led "$boardname:blue:status" - ;; netgear,r6120) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f" ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt" ucidef_set_led_wlan "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "phy1tpt" ;; -nw718) - set_usb_led "$boardname:amber:usb" - ;; oy-0001) set_wifi_led "$boardname:green:wifi" ;; -pbr-d1) - set_usb_led "$boardname:orange:usb" - ;; pbr-m1) ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2" ;; d-team,newifi-d2) - set_usb_led "$boardname:blue:usb" ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10" ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0" ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1" @@ -320,12 +270,10 @@ psg1208) px-4885-4M|\ px-4885-8M) set_wifi_led "px-4885:orange:wifi" - set_usb_led "px-4885:blue:storage" ;; r6220) ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2 set_wifi_led "$boardname:green:wifi" - set_usb_led "$boardname:green:usb" ;; re350-v1) ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0" @@ -339,7 +287,6 @@ rp-n53) ;; rt-ac51u) set_wifi_led "$boardname:blue:wifi" - set_usb_led "$boardname:blue:usb" "1-1" ;; rt-n12p) ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1 @@ -350,19 +297,16 @@ rt-n14u) ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2 set_wifi_led "$boardname:blue:air" - set_usb_led "$boardname:blue:usb" ;; tama,w06) ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt" ;; tew-714tru) - set_usb_led "$boardname:red:usb" set_wifi_led "$boardname:green:wifi" ;; tiny-ac) set_wifi_led "$boardname:orange:wifi" - set_usb_led "$boardname:green:usb" ;; tl-wr840n-v4) ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" @@ -380,13 +324,11 @@ tl-wr841n-v13) tplink,c2-v1) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01" - set_usb_led "$boardname:green:usb" "2-1" set_wifi_led "$boardname:green:wlan" ;; tplink,c20-v1) ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01" - set_usb_led "$boardname:blue:usb" ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0" ;; tplink,c20-v4) @@ -405,19 +347,16 @@ tplink,tl-wa801nd-v5) ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" ;; tplink,tl-mr3020-v3) - set_usb_led "$boardname:green:3g" set_wifi_led "$boardname:green:wlan" ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0" ;; tplink,tl-mr3420-v5|\ tplink,tl-wr842n-v5) - set_usb_led "$boardname:green:usb" ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" ;; tplink,tl-wr902ac-v3) - set_usb_led "$boardname:green:usb" ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10" ;; @@ -431,7 +370,6 @@ u7628-01-128M-16M) ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8" ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10" ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01" - set_usb_led "u7628-01:green:usb" set_wifi_led "u7628-01:green:wlan" ;; vocore-8M|\ @@ -446,16 +384,11 @@ vocore2lite) set_wifi_led "$boardname:green:status" ;; w502u) - set_usb_led "$boardname:blue:usb" set_wifi_led "rt2800pci-phy0::radio" ;; -wcr-150gn) - set_usb_led "$boardname:amber:user" - ;; we1026-5g-16m) ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0" set_wifi_led "we1026-5g:green:wifi" - set_usb_led "we1026-5g:green:usb" "1-1.1" ;; wl-wn575a3) ucidef_set_rssimon "wlan1" "200000" "1" @@ -468,20 +401,17 @@ wrh-300cr) ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0" ;; y1) - set_usb_led "$boardname:blue:usb" ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1" ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0" ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03" ;; y1s) - set_usb_led "$boardname:blue:usb" ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1" ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0" ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx" ;; youhua,wr1200js) ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01" - ucidef_set_led_usbdev "usb" "USB" "$boardname:blue:usb" "1-2" ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0" ;; zbt-ape522ii) @@ -494,7 +424,6 @@ zbt-cpe102) ;; zbt-wa05) set_wifi_led "$boardname:blue:air" - set_usb_led "$boardname:blue:usb" ;; zbt-we2026) set_wifi_led "$boardname:green:wlan" @@ -502,7 +431,6 @@ zbt-we2026) zbt-we826-16M|\ zbt-we826-32M) set_wifi_led "zbt-we826:green:wifi" - set_usb_led "zbt-we826:green:usb" ;; zbtlink,zbt-we1226) set_wifi_led "$boardname:green:wlan" @@ -511,7 +439,6 @@ zbtlink,zbt-we1226) ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10" ;; zbt-wr8305rt) - set_usb_led "$boardname:green:usb" set_wifi_led "$boardname:green:wifi" ;; zorlik,zl5900v2) @@ -522,12 +449,10 @@ zte-q7) ;; zyxel,keenetic-extra-ii) set_wifi_led "$boardname:green:wifi" - set_usb_led "$boardname:green:usb" ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01" ;; youku-yk1) set_wifi_led "$boardname:blue:air" - set_usb_led "$boardname:blue:usb" ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10" ;; esac |