ath79: add mikrotik subtarget
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index f5196be77fa1b6e4f0c8be5de1327a9326da7e8b..6f9aed8bf575c92453576182d278ac1b28cc2390 100755 (executable)
@@ -21,7 +21,6 @@ ath79_setup_interfaces()
        dlink,dir-505|\
        engenius,ecb1750|\
        glinet,gl-ar300m-lite|\
-       mikrotik,routerboard-wap-g-5hact2hnd|\
        netgear,ex6400|\
        netgear,ex7300|\
        ocedo,koala|\
@@ -30,6 +29,7 @@ ath79_setup_interfaces()
        pisen,ts-d084|\
        pisen,wmb001n|\
        pisen,wmm003n|\
+       siemens,ws-ap3610|\
        tplink,cpe210-v2|\
        tplink,cpe210-v3|\
        tplink,cpe510-v2|\
@@ -46,7 +46,9 @@ ath79_setup_interfaces()
        ubnt,litebeam-ac-gen2|\
        ubnt,nanobeam-ac|\
        ubnt,nanostation-ac-loco|\
+       ubnt,nanostation-loco-m|\
        ubnt,nanostation-loco-m-xw|\
+       ubnt,picostation-m|\
        ubnt,rocket-m|\
        ubnt,unifiac-lite|\
        ubnt,unifiac-lr|\
@@ -77,6 +79,8 @@ ath79_setup_interfaces()
                ;;
        buffalo,wzr-hp-ag300h|\
        tplink,archer-c25-v1|\
+       tplink,archer-c60-v1|\
+       tplink,archer-c60-v2|\
        tplink,tl-wdr3500-v1|\
        tplink,tl-wr842n-v1|\
        tplink,tl-wr842n-v3|\
@@ -103,6 +107,11 @@ ath79_setup_interfaces()
        ubnt,routerstation)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
+       comfast,cf-e560ac)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
+               ;;
        comfast,cf-wr650ac-v1|\
        comfast,cf-wr650ac-v2)
                ucidef_add_switch "switch0" \
@@ -113,6 +122,10 @@ ath79_setup_interfaces()
        ocedo,ursus)
                ucidef_set_interface_lan "eth0 eth1"
                ;;
+       devolo,magic-2-wifi)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:wan" "3:lan" "4:lan"
+               ;;
        dlink,dir-825-b1)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
@@ -132,7 +145,8 @@ ath79_setup_interfaces()
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;
        elecom,wrc-1750ghbk2-i|\
-       elecom,wrc-300ghbk2-i)
+       elecom,wrc-300ghbk2-i|\
+       sitecom,wlr-8100)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "1:wan"
                ;;
@@ -210,6 +224,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:wan"
                ;;
+       teltonika,rut955)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
        tplink,archer-a7-v5|\
        tplink,archer-c6-v2|\
        tplink,archer-c6-v2-us|\
@@ -228,12 +247,6 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"
                ;;
-       tplink,archer-c60-v1|\
-       tplink,archer-c60-v2)
-               ucidef_set_interface_wan "eth1"
-               ucidef_add_switch "switch0" \
-                       "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
-               ;;
        tplink,archer-d50-v1)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "1:wan"
@@ -319,6 +332,9 @@ 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)"))
                ;;
+       devolo,magic-2-wifi)
+               label_mac=$(macaddr_add "$(mtd_get_mac_binary art 0x1002)" 3)
+               ;;
        dlink,dir-825-b1)
                lan_mac=$(mtd_get_mac_text "caldata" 0xffa0)
                wan_mac=$(mtd_get_mac_text "caldata" 0xffb4)
@@ -398,7 +414,8 @@ ath79_setup_macs()
                wan_mac=$(mtd_get_mac_binary factory 0x0)
                lan_mac=$(macaddr_setbit_la "$wan_mac")
                ;;
-       sitecom,wlr-7100)
+       sitecom,wlr-7100|\
+       sitecom,wlr-8100)
                lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
                wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
                label_mac=$lan_mac
@@ -424,7 +441,9 @@ ath79_setup_macs()
                ;;
        ubnt,airrouter|\
        ubnt,bullet-m|\
+       ubnt,nanostation-loco-m|\
        ubnt,nanostation-m|\
+       ubnt,picostation-m|\
        ubnt,rocket-m|\
        ubnt,unifi)
                label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)