ath79: add support for TP-Link TL-WPA8630P v2
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index 4b74565aa325e341830aa1c3d5f96fabc524865a..b4e18296188d6b72d587e4e7a79e72c0749606ad 100755 (executable)
@@ -12,6 +12,7 @@ ath79_setup_interfaces()
        adtran,bsap1800-v2|\
        adtran,bsap1840|\
        alfa-network,ap121f|\
+       arduino,yun|\
        aruba,ap-105|\
        avm,fritz1750e|\
        avm,fritz300e|\
@@ -22,6 +23,8 @@ ath79_setup_interfaces()
        devolo,dvl1750c|\
        devolo,dvl1750i|\
        devolo,dvl1750x|\
+       dlink,dap-1330-a1|\
+       dlink,dap-1365-a1|\
        dlink,dir-505|\
        engenius,ecb1750|\
        enterasys,ws-ap3705i|\
@@ -60,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|\
@@ -108,6 +112,7 @@ ath79_setup_interfaces()
        comfast,cf-e110n-v2|\
        comfast,cf-e120a-v3|\
        comfast,cf-e314n-v2|\
+       compex,wpj531-16m|\
        tplink,cpe210-v1|\
        tplink,cpe220-v2|\
        tplink,cpe220-v3|\
@@ -130,6 +135,11 @@ 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,wpj563)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "3:lan" "2:wan"
+               ;;
        devolo,dvl1200e|\
        devolo,dvl1750e|\
        ocedo,ursus)
@@ -142,6 +152,10 @@ ath79_setup_interfaces()
        dlink,dap-2695-a1)
                ucidef_add_switch "switch0" "0@eth0" "2:lan" "3:wan" "6@eth1"
                ;;
+       dlink,dch-g020-a1)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan:2" "2:lan:1"
+               ;;
        dlink,dir-825-b1)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
@@ -279,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" \
@@ -352,6 +372,11 @@ ath79_setup_macs()
        alfa-network,ap121f)
                label_mac=$(mtd_get_mac_binary art 0x1002)
                ;;
+       arduino,yun)
+               base_mac=$(mtd_get_mac_binary art 0x1002)
+               lan_mac=$(macaddr_setbit $base_mac 29)
+               [ $lan_mac = $base_mac ] && lan_mac=$(macaddr_unsetbit $base_mac 29)
+               ;;
        avm,fritz1750e|\
        avm,fritz450e|\
        avm,fritzdvbc)
@@ -365,9 +390,19 @@ 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,wpj563)
+               wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
+               ;;
        devolo,magic-2-wifi)
                label_mac=$(macaddr_add "$(mtd_get_mac_binary art 0x1002)" 3)
                ;;
+       dlink,dap-1330-a1|\
+       dlink,dap-1365-a1|\
+       dlink,dch-g020-a1)
+               lan_mac=$(mtd_get_mac_text "mp" 0x1)
+               label_mac=$lan_mac
+               ;;
        dlink,dap-2695-a1)
                label_mac=$(mtd_get_mac_ascii bdcfg "wlanmac")
                ;;
@@ -487,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)