ath79: add support for TP-Link TL-WR841HP v2
[openwrt/staging/wigyori.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index c1ba7601824327e389f0e96b4804f7119691a105..83e74f06515944f210b3ff83a73de400c8197f7f 100644 (file)
@@ -15,6 +15,7 @@ ath79_setup_interfaces()
        alfa-network,pi-wifi4|\
        arduino,yun|\
        aruba,ap-105|\
+       asus,rp-ac66|\
        avm,fritz1750e|\
        avm,fritz300e|\
        avm,fritzdvbc|\
@@ -45,6 +46,7 @@ ath79_setup_interfaces()
        netgear,ex7300|\
        ocedo,koala|\
        ocedo,raccoon|\
+       onion,omega|\
        openmesh,mr600-v1|\
        openmesh,mr600-v2|\
        openmesh,mr900-v1|\
@@ -62,7 +64,9 @@ ath79_setup_interfaces()
        tplink,cpe510-v3|\
        tplink,cpe610-v1|\
        tplink,cpe610-v2|\
+       tplink,cpe710-v1|\
        tplink,eap225-outdoor-v1|\
+       tplink,eap225-v1|\
        tplink,eap225-v3|\
        tplink,eap245-v1|\
        tplink,re350k-v1|\
@@ -70,6 +74,8 @@ ath79_setup_interfaces()
        tplink,re450-v1|\
        tplink,re450-v2|\
        tplink,re450-v3|\
+       tplink,re455-v1|\
+       tplink,tl-wa1201-v2|\
        tplink,tl-wr902ac-v1|\
        ubnt,bullet-ac|\
        ubnt,bullet-m-ar7240|\
@@ -85,6 +91,8 @@ 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|\
@@ -113,11 +121,18 @@ ath79_setup_interfaces()
        ubnt,unifi-ap-outdoor-plus)
                ucidef_set_interface_lan "eth0 eth1"
                ;;
+       atheros,db120)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan" "3:lan" "4:lan" "5:lan" "1:wan"
+               ucidef_add_switch "switch1" \
+                       "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan" "5:lan"
+               ;;
        avm,fritz4020|\
        pcs,cr3000|\
        tplink,archer-c58-v1|\
        tplink,archer-c59-v1|\
-       tplink,archer-c59-v2)
+       tplink,archer-c59-v2|\
+       wd,mynet-n600)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
@@ -173,6 +188,7 @@ ath79_setup_interfaces()
        compex,wpj531-16m|\
        openmesh,a40|\
        openmesh,a60|\
+       openmesh,om2p-v1|\
        openmesh,om2p-v4|\
        openmesh,om2p-hs-v4|\
        plasmacloud,pa300|\
@@ -195,7 +211,8 @@ ath79_setup_interfaces()
                ;;
        comfast,cf-e560ac|\
        qca,ap143-8m|\
-       qca,ap143-16m)
+       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"
@@ -211,6 +228,10 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan" "2:wan"
                ;;
+       compex,wpj558-16m)
+               ucidef_add_switch "switch0" \
+                       "1:wan" "5:lan" "6@eth0"
+               ;;
        devolo,dlan-pro-1200plus-ac|\
        devolo,magic-2-wifi)
                ucidef_add_switch "switch0" \
@@ -248,6 +269,10 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "1:wan"
                ;;
+       embeddedwireless,balin)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "5:lan:1" "4:lan:2" "3:wan"
+               ;;
        embeddedwireless,dorin)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:wan" "2:lan:3" "3:lan:2"
@@ -269,6 +294,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|\
@@ -279,6 +309,20 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
                ;;
+       jjplus,jwap230)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "5:wan:1" "1:lan:2" "6@eth1"
+               ;;
+       joyit,jt-or750i)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
+       letv,lba-047-ch)
+               ucidef_set_interface_wan "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "3:lan:2" "4:lan:1"
+               ;;
        librerouter,librerouter-v1)
                ucidef_add_switch "switch0" \
                        "0@eth0" "5:wan" "6@eth1" "4:lan"
@@ -318,7 +362,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"
                ;;
@@ -396,7 +441,9 @@ 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-wr841hp-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"
@@ -506,6 +553,7 @@ ath79_setup_macs()
                wan_mac=$(macaddr_add $(mtd_get_mac_binary art 0x0) 1)
                ;;
        compex,wpj344-16m|\
+       compex,wpj558-16m|\
        compex,wpj563)
                wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
                ;;
@@ -551,6 +599,7 @@ ath79_setup_macs()
                ;;
        dlink,dir-859-a1|\
        qihoo,c301|\
+       wd,mynet-n600|\
        wd,mynet-n750)
                lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
                wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
@@ -676,6 +725,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)
                ;;