ath79: fix usb led on wr-1043nd-v1
authorLucian Cristian <lucian.cristian@gmail.com>
Thu, 7 Jun 2018 08:16:56 +0000 (11:16 +0300)
committerMathias Kresin <dev@kresin.me>
Sat, 16 Jun 2018 08:08:51 +0000 (10:08 +0200)
usb port was not triggered correctly
also remove uneded wifi led trigger from the script

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
target/linux/ath79/base-files/etc/board.d/01_leds
target/linux/ath79/dts/ar9132_tl-wr1043nd-v1.dts

index 0ba03b2..4a8b827 100755 (executable)
@@ -37,10 +37,6 @@ case "$board" in
        ucidef_set_led_switch "lan3" "LAN3" "$boardname:green:lan3" "switch0" "0x08"
        ucidef_set_led_switch "lan4" "LAN4" "$boardname:green:lan4" "switch0" "0x10"
        ;;
-"tplink,tl-wr1043nd-v1")
-       ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
-       ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
-       ;;
 esac
 
 board_config_flush
index a7d47dc..8d4cc7f 100644 (file)
 &usb {
        status = "okay";
 
-       port@1 {
+       hub_port: port@1 {
                reg = <1>;
                #trigger-source-cells = <0>;
-
-               hub_port: port@1 {
-                       reg = <1>;
-                       #trigger-source-cells = <0>;
-               };
        };
 };