ath79: Add support for TP-Link TL-WR1043N v5
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index 13dce9aa58565ae25f7c8a88e384cbe3d1d11dd4..5892baca80969c704b460243fb25563f78d69221 100755 (executable)
@@ -13,12 +13,17 @@ ath79_setup_interfaces()
        devolo,dvl1200i|\
        devolo,dvl1750c|\
        devolo,dvl1750i|\
+       engenius,ecb1750|\
        glinet,ar300m-lite|\
+       netgear,ex6400|\
+       netgear,ex7300|\
        ocedo,koala|\
        ocedo,raccoon|\
        pcs,cap324|\
        pisen,wmm003n|\
        pqi,air-pen|\
+       tplink,cpe210-v2|\
+       tplink,cpe210-v3|\
        tplink,re350k-v1|\
        tplink,re450-v2|\
        tplink,tl-mr10u|\
@@ -65,8 +70,20 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:1" "3:lan:4" "4:lan:3" "5:lan:2" "2:wan"
                ;;
+       comfast,cf-e5|\
+       glinet,gl-ar150|\
+       glinet,gl-ar300m-nand|\
+       glinet,gl-ar300m-nor|\
+       glinet,gl-x750|\
+       tplink,tl-wr810n-v1|\
+       tplink,tl-wr810n-v2|\
+       ubnt,routerstation|\
+       yuncore,a770)
+               ucidef_set_interfaces_lan_wan "eth1" "eth0"
+               ;;
        devolo,dvl1200e|\
-       devolo,dvl1750e)
+       devolo,dvl1750e|\
+       ocedo,ursus)
                ucidef_set_interface_lan "eth0 eth1"
                ;;
        dlink,dir-825-b1)
@@ -79,7 +96,8 @@ ath79_setup_interfaces()
        dlink,dir-859-a1|\
        engenius,epg5000|\
        tplink,archer-c2-v3|\
-       tplink,tl-wr1043nd-v4)
+       tplink,tl-wr1043nd-v4|\
+       tplink,tl-wr1043n-v5)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;
@@ -98,16 +116,6 @@ ath79_setup_interfaces()
        etactica,eg200)
                ucidef_set_interface_lan "eth0" "dhcp"
                ;;
-       glinet,gl-ar150|\
-       glinet,gl-ar300m-nand|\
-       glinet,gl-ar300m-nor|\
-       glinet,gl-x750|\
-       tplink,tl-wr810n-v1|\
-       tplink,tl-wr810n-v2|\
-       ubnt,routerstation|\
-       yuncore,a770)
-               ucidef_set_interfaces_lan_wan "eth1" "eth0"
-               ;;
        glinet,gl-ar750s)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:2" "3:lan:1" "1:wan"
@@ -125,6 +133,13 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "5:wan" "6@eth1" "4:lan"
        ;;
+       nec,wg1200cr|\
+       ubnt,nanostation-ac|\
+       ubnt,unifiac-mesh-pro|\
+       ubnt,unifiac-pro)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan" "3:wan"
+               ;;
        nec,wg800hp)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan" "3:lan" "4:lan" "1:wan"
@@ -167,6 +182,7 @@ ath79_setup_interfaces()
        tplink,tl-mr3420-v1|\
        tplink,tl-wr841-v9|\
        tplink,tl-wr841-v11|\
+       tplink,tl-wr842n-v3|\
        ubnt,airrouter)
                ucidef_set_interface_wan "eth0"
                ucidef_add_switch "switch0" \
@@ -222,6 +238,11 @@ ath79_setup_interfaces()
        tplink,tl-wr941-v2)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
+       ubnt,acb-isp)
+               ucidef_set_interface_wan "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "2:lan:1" "3:lan:3" "4:lan:2"
+               ;;
        ubnt,routerstation-pro)
                ucidef_set_interface_wan "eth0"
                ucidef_add_switch "switch0" \
@@ -231,12 +252,6 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "5:lan" "1:wan"
                ;;
-       ubnt,nanostation-ac|\
-       ubnt,unifiac-mesh-pro|\
-       ubnt,unifiac-pro)
-               ucidef_add_switch "switch0" \
-                       "0@eth0" "2:lan" "3:wan"
-               ;;
        xiaomi,mi-router-4q)
                ucidef_set_interface_wan "eth0"
                ucidef_add_switch "switch0" \
@@ -269,7 +284,8 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_text "mac" 4)
                wan_mac=$(mtd_get_mac_text "mac" 24)
                ;;
-       dlink,dir-859-a1)
+       dlink,dir-859-a1|\
+       nec,wg1200cr)
                lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
                wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
                ;;
@@ -277,6 +293,9 @@ ath79_setup_macs()
        elecom,wrc-300ghbk2-i)
                wan_mac=$(macaddr_add "$(mtd_get_mac_binary ART 4098)" -2)
                ;;
+       engenius,ecb1750)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
+               ;;
        engenius,epg5000|\
        iodata,wn-ac1167dgr|\
        iodata,wn-ac1600dgr|\
@@ -316,11 +335,17 @@ ath79_setup_macs()
                wan_mac=$(mtd_get_mac_binary factory 0)
                lan_mac=$(macaddr_setbit_la "$wan_mac")
                ;;
+       tplink,archer-a7-v5|\
+       tplink,archer-c7-v5)
+               base_mac=$(mtd_get_mac_binary info 8)
+               wan_mac=$(macaddr_add "$base_mac" 1)
+               ;;
        tplink,archer-c7-v4)
                base_mac=$(mtd_get_mac_binary config 8)
                wan_mac=$(macaddr_add "$base_mac" 1)
                ;;
-       tplink,tl-wr1043nd-v4)
+       tplink,tl-wr1043nd-v4|\
+       tplink,tl-wr1043n-v5)
                base_mac=$(mtd_get_mac_binary product-info 8)
                wan_mac=$(macaddr_add "$base_mac" 1)
                ;;