ramips: add support for TP-Link RE650 v2
[openwrt/staging/dedeckeh.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 02_network
index 9af169fbef65d8868df0dd41fd9ceab673c7e0f4..75842f4cbc07ff83a76b186f2345e12f8bac9e23 100644 (file)
@@ -17,6 +17,7 @@ ramips_setup_interfaces()
        tplink,re350-v1|\
        tplink,re500-v1|\
        tplink,re650-v1|\
+       tplink,re650-v2|\
        ubnt,unifi-6-lite|\
        ubnt,unifi-nanohd)
                ucidef_set_interface_lan "lan"
@@ -38,17 +39,27 @@ ramips_setup_interfaces()
                ucidef_set_interfaces_lan_wan "lan" "wan"
                ;;
        asiarf,ap7621-nv1|\
+       beeline,smartbox-flash|\
        glinet,gl-mt1300|\
        iptime,a3002mesh|\
        jcg,q20|\
        lenovo,newifi-d1|\
        mikrotik,routerboard-m33g|\
+       oraybox,x3a|\
+       renkforce,ws-wn530hp3-a|\
        xiaomi,mi-router-3g|\
        xiaomi,mi-router-3g-v2|\
        xiaomi,mi-router-4|\
        xiaomi,mi-router-4a-gigabit)
                ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
                ;;
+       bolt,arion)
+               ucidef_set_interfaces_lan_wan "lan" "wan"
+               ucidef_set_interface "eth_data" device "modem.103" protocol "static" ipaddr "10.22.127.222" netmask "255.255.255.255"
+               ucidef_set_interface "eth_om" device "modem.4094" protocol "static" ipaddr "169.254.0.2" netmask "255.255.255.252"
+               uci add_list firewall.@zone[1].network='eth_data'
+               uci add_list firewall.@zone[1].network='eth_om'
+               ;;
        gnubee,gb-pc1|\
        gnubee,gb-pc2)
                ucidef_set_interface_lan "lan1 lan2"
@@ -67,6 +78,9 @@ ramips_setup_interfaces()
        tplink,eap615-wall-v1)
                ucidef_set_interface_lan "lan0 lan1 lan2 lan3"
                ;;
+       tplink,tl-wpa8631p-v3)
+               ucidef_set_interface_lan "lan1 lan2 lan3 plc0"
+               ;;
        ubnt,edgerouter-x)
                ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0"
                ;;
@@ -76,6 +90,7 @@ ramips_setup_interfaces()
        ubnt,usw-flex)
                ucidef_set_interface_lan "lan1 lan2 lan3 lan4 lan5"
                ;;
+       yuncore,ax820|\
        zyxel,nr7101)
                ucidef_set_interfaces_lan_wan "lan" "wan"
                ;;
@@ -111,6 +126,11 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_ascii u-boot-env et1macaddr)
                label_mac=$(mtd_get_mac_binary factory 0x4)
                ;;
+       beeline,smartbox-flash)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env eth2macaddr)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env eth3macaddr)
+               label_mac=$lan_mac
+               ;;
        buffalo,wsr-1166dhp)
                local index="$(find_mtd_index "board_data")"
                wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)"
@@ -176,6 +196,9 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_ascii Config protest_wan_mac)
                label_mac=$lan_mac
                ;;
+       yuncore,ax820)
+               label_mac=$(mtd_get_mac_binary Factory 0x4)
+               ;;
        esac
 
        [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac