ramips: add support for TP-Link RE650 v2
[openwrt/staging/mkresin.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 02_network
index 1fc0ccdd5b54588abe0a2c450b8f962401b419a7..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"
@@ -44,6 +45,7 @@ ramips_setup_interfaces()
        jcg,q20|\
        lenovo,newifi-d1|\
        mikrotik,routerboard-m33g|\
+       oraybox,x3a|\
        renkforce,ws-wn530hp3-a|\
        xiaomi,mi-router-3g|\
        xiaomi,mi-router-3g-v2|\
@@ -51,6 +53,13 @@ ramips_setup_interfaces()
        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"
@@ -81,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"
                ;;
@@ -186,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