ath79: add support for Ubiquiti PowerBeam M2 (XW)
[openwrt/staging/ldir.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index 8b3f04c8e11791b93087b1d684cd89ebcac43dde..fba6d5667487a9ae1e253dea92a9bd63f7347805 100644 (file)
@@ -70,6 +70,7 @@ ath79_setup_interfaces()
        tplink,re450-v1|\
        tplink,re450-v2|\
        tplink,re450-v3|\
+       tplink,re455-v1|\
        tplink,tl-wr902ac-v1|\
        ubnt,bullet-ac|\
        ubnt,bullet-m-ar7240|\
@@ -85,7 +86,10 @@ ath79_setup_interfaces()
        ubnt,picostation-m|\
        ubnt,powerbeam-5ac-500|\
        ubnt,powerbeam-5ac-gen2|\
+       ubnt,powerbeam-m2-xw|\
+       ubnt,powerbeam-m5-xw|\
        ubnt,powerbridge-m|\
+       ubnt,rocket-5ac-lite|\
        ubnt,rocket-m|\
        ubnt,unifiac-lite|\
        ubnt,unifiac-lr|\
@@ -170,6 +174,8 @@ ath79_setup_interfaces()
        comfast,cf-e120a-v3|\
        comfast,cf-e314n-v2|\
        compex,wpj531-16m|\
+       openmesh,a40|\
+       openmesh,a60|\
        openmesh,om2p-v4|\
        openmesh,om2p-hs-v4|\
        plasmacloud,pa300|\
@@ -186,7 +192,14 @@ ath79_setup_interfaces()
        ubnt,routerstation)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
-       comfast,cf-e560ac)
+       comfast,cf-e375ac)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:wan" "2:lan"
+               ;;
+       comfast,cf-e560ac|\
+       qca,ap143-8m|\
+       qca,ap143-16m|\
+       tplink,tl-wr841hp-v3)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
@@ -202,6 +215,7 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan" "2:wan"
                ;;
+       devolo,dlan-pro-1200plus-ac|\
        devolo,magic-2-wifi)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:wan" "3:lan" "4:lan"
@@ -259,6 +273,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan"
                ;;
+       glinet,gl-x300b)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "4:lan"
+               ;;
        iodata,etg3-r|\
        iodata,wn-ac1167dgr|\
        iodata,wn-ac1600dgr|\
@@ -269,6 +288,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
                ;;
+       joyit,jt-or750i)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
        librerouter,librerouter-v1)
                ucidef_add_switch "switch0" \
                        "0@eth0" "5:wan" "6@eth1" "4:lan"
@@ -291,6 +315,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
                ;;
+       nec,wf1200cr)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan"
+               ;;
        nec,wg1200cr|\
        qxwlan,e1700ac-v2-8m|\
        qxwlan,e1700ac-v2-16m|\
@@ -303,7 +332,8 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan" "3:wan"
                ;;
-       nec,wg800hp)
+       nec,wg800hp|\
+       xiaomi,aiot-ac2350)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan" "3:lan" "4:lan" "1:wan"
                ;;
@@ -381,7 +411,8 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4"
                ;;
-       tplink,tl-wr842n-v2)
+       tplink,tl-wr842n-v2|\
+       tplink,tl-wr941hp-v1)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
@@ -437,8 +468,8 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan"
                ;;
-       zbtlink,zbt-wd323|\
-       xiaomi,mi-router-4q)
+       xiaomi,mi-router-4q|\
+       zbtlink,zbt-wd323)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan:1" "4:lan:2"
@@ -487,10 +518,14 @@ 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)"))
                ;;
+       comfast,cf-e375ac)
+               wan_mac=$(macaddr_add $(mtd_get_mac_binary art 0x0) 1)
+               ;;
        compex,wpj344-16m|\
        compex,wpj563)
                wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
                ;;
+       devolo,dlan-pro-1200plus-ac|\
        devolo,magic-2-wifi)
                label_mac=$(macaddr_add "$(mtd_get_mac_binary art 0x1002)" 3)
                ;;
@@ -586,6 +621,7 @@ ath79_setup_macs()
                base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
                wan_mac=$(macaddr_add "$base_mac" 1)
                ;;
+       nec,wf1200cr|\
        nec,wg1200cr)
                lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
                wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
@@ -656,6 +692,9 @@ ath79_setup_macs()
        wd,mynet-wifi-rangeextender)
                lan_mac=$(nvram get et0macaddr)
                ;;
+       xiaomi,aiot-ac2350)
+               lan_mac=$(mtd_get_mac_binary art 0x1002)
+               ;;
        zyxel,nbg6616)
                label_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
                ;;