ath79: add support for TP-Link TL-WPA8630P v2
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index f93d91437485d7ff3eba8a4c9ca45ce1ccaca17f..b4e18296188d6b72d587e4e7a79e72c0749606ad 100755 (executable)
@@ -63,6 +63,7 @@ ath79_setup_interfaces()
        ubnt,picostation-m|\
        ubnt,powerbeam-5ac-500|\
        ubnt,powerbeam-5ac-gen2|\
+       ubnt,powerbridge-m|\
        ubnt,rocket-m|\
        ubnt,unifiac-lite|\
        ubnt,unifiac-lr|\
@@ -134,7 +135,8 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "6@eth1"
                ;;
-       compex,wpj344-16m)
+       compex,wpj344-16m|\
+       compex,wpj563)
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan" "2:wan"
                ;;
@@ -291,6 +293,12 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:1" "2:lan:3" "3:lan:2"
                ;;
+       tplink,tl-wpa8630p-v2-eu|\
+       tplink,tl-wpa8630p-v2-int)
+               # port 5 (internal) is the power-line port
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4"
+               ;;
        tplink,tl-wr842n-v2)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
@@ -382,7 +390,8 @@ ath79_setup_macs()
                lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
                wan_mac=$(fritz_tffs -n macb -i $(find_mtd_part "tffs (1)"))
                ;;
-       compex,wpj344-16m)
+       compex,wpj344-16m|\
+       compex,wpj563)
                wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
                ;;
        devolo,magic-2-wifi)
@@ -513,6 +522,7 @@ ath79_setup_macs()
        ubnt,nanostation-loco-m|\
        ubnt,nanostation-m|\
        ubnt,picostation-m|\
+       ubnt,powerbridge-m|\
        ubnt,rocket-m|\
        ubnt,unifi)
                label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)