aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network100
-rw-r--r--target/linux/ramips/dts/3G-6200N.dts4
-rw-r--r--target/linux/ramips/dts/3G300M.dts4
-rw-r--r--target/linux/ramips/dts/AIR3GII.dts4
-rw-r--r--target/linux/ramips/dts/ALL0239-3G.dts4
-rw-r--r--target/linux/ramips/dts/ALL0256N-4M.dts4
-rw-r--r--target/linux/ramips/dts/ALL0256N-8M.dts4
-rw-r--r--target/linux/ramips/dts/ALL5002.dts4
-rw-r--r--target/linux/ramips/dts/ARGUS_ATP52B.dts4
-rw-r--r--target/linux/ramips/dts/ASL26555-16M.dts4
-rw-r--r--target/linux/ramips/dts/ASL26555-8M.dts8
-rw-r--r--target/linux/ramips/dts/BC2.dts4
-rw-r--r--target/linux/ramips/dts/BR-6425.dts4
-rw-r--r--target/linux/ramips/dts/BROADWAY.dts4
-rw-r--r--target/linux/ramips/dts/CARAMBOLA.dts4
-rw-r--r--target/linux/ramips/dts/D105.dts4
-rw-r--r--target/linux/ramips/dts/DIR-300-B1.dts4
-rw-r--r--target/linux/ramips/dts/DIR-300-B7.dts4
-rw-r--r--target/linux/ramips/dts/DIR-320-B1.dts4
-rw-r--r--target/linux/ramips/dts/DIR-600-B1.dts4
-rw-r--r--target/linux/ramips/dts/DIR-610-A1.dts4
-rw-r--r--target/linux/ramips/dts/DIR-615-H1.dts4
-rw-r--r--target/linux/ramips/dts/DIR-620-A1.dts4
-rw-r--r--target/linux/ramips/dts/DIR-620-D1.dts4
-rw-r--r--target/linux/ramips/dts/DIR-810L.dts4
-rw-r--r--target/linux/ramips/dts/ESR-9753.dts4
-rw-r--r--target/linux/ramips/dts/F5D8235_V1.dts1
-rw-r--r--target/linux/ramips/dts/F5D8235_V2.dts6
-rw-r--r--target/linux/ramips/dts/FONERA20N.dts4
-rw-r--r--target/linux/ramips/dts/FREESTATION5.dts4
-rw-r--r--target/linux/ramips/dts/HG255D.dts4
-rw-r--r--target/linux/ramips/dts/IP2202.dts4
-rw-r--r--target/linux/ramips/dts/M3.dts4
-rw-r--r--target/linux/ramips/dts/M4-4M.dts4
-rw-r--r--target/linux/ramips/dts/M4-8M.dts4
-rw-r--r--target/linux/ramips/dts/MPRA1.dts4
-rw-r--r--target/linux/ramips/dts/MPRA2.dts4
-rw-r--r--target/linux/ramips/dts/MZK-W300NH2.dts4
-rw-r--r--target/linux/ramips/dts/NBG-419N.dts4
-rw-r--r--target/linux/ramips/dts/NW718.dts4
-rw-r--r--target/linux/ramips/dts/OMNI-EMB-HPM.dts1
-rw-r--r--target/linux/ramips/dts/PSR-680W.dts4
-rw-r--r--target/linux/ramips/dts/RT-N13U.dts4
-rw-r--r--target/linux/ramips/dts/RT-N15.dts1
-rw-r--r--target/linux/ramips/dts/RTN56U.dts3
-rw-r--r--target/linux/ramips/dts/SL-R7205.dts4
-rw-r--r--target/linux/ramips/dts/TEW-691GR.dts1
-rw-r--r--target/linux/ramips/dts/TEW-692GR.dts1
-rw-r--r--target/linux/ramips/dts/UR-326N4G.dts4
-rw-r--r--target/linux/ramips/dts/UR-336UN.dts4
-rw-r--r--target/linux/ramips/dts/W150M.dts4
-rw-r--r--target/linux/ramips/dts/W306R_V20.dts4
-rw-r--r--target/linux/ramips/dts/W502U.dts8
-rw-r--r--target/linux/ramips/dts/WCR150GN.dts4
-rw-r--r--target/linux/ramips/dts/WL-351.dts4
-rw-r--r--target/linux/ramips/dts/WLI-TX4-AG300N.dts1
-rw-r--r--target/linux/ramips/dts/WMR300.dts1
-rw-r--r--target/linux/ramips/dts/WNCE2001.dts4
-rw-r--r--target/linux/ramips/dts/X5.dts4
-rw-r--r--target/linux/ramips/dts/X8.dts4
60 files changed, 232 insertions, 92 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 5ee2381e94..79ad4b885f 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -163,64 +163,30 @@ ramips_setup_macs()
local wan_mac=""
case $board in
- all0256n | \
- all5002 | \
- dir-615-h1)
- lan_mac=$(mtd_get_mac_binary factory 40)
- ;;
- 3g-6200n | \
- 3g300m | \
- w150m | \
- air3gii | \
- argus-atp52b | \
- bc2 | \
- br6425 | \
- broadway | \
- dir-620-d1 | \
- f5d8235-v1 | \
- ip2202 | \
- mpr-a1 | \
- mpr-a2 | \
- dir-300-b7 | \
- dir-320-b1 | \
- mzk-w300nh2 | \
- nw718 | \
- psr-680w | \
- rt-n15 | \
- sl-r7205 | \
- wmr300 | \
- wl-351)
- lan_mac=$(mtd_get_mac_binary factory 4)
+ *)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- asl26555)
- lan_mac=$(mtd_get_mac_binary devdata 16388)
- ;;
-
w306r-v20)
- lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(macaddr_add "$lan_mac" 5)
;;
- rt-n13u | \
- hg255d | \
- fonera20n | \
- dir-810l)
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(macaddr_add "$lan_mac" 1)
+ tew-691gr)
+ wan_mac=$(macaddr_add "$lan_mac" 3)
;;
- dir-300-b1 |\
- dir-300-b2 |\
- dir-600-b1 |\
- dir-610-a1)
- lan_mac=$(mtd_get_mac_binary devdata 16388)
- wan_mac=$(macaddr_add "$lan_mac" 1)
+ tew-692gr)
+ wan_mac=$(macaddr_add "$lan_mac" 4)
+ ;;
+
+ m3 |\
+ m4 |\
+ x5 |\
+ x8)
+ lan_mac=$(macaddr_add "$lan_mac" -1)
;;
dir-620-a1)
- lan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_setbit_la "$lan_mac")
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
@@ -230,57 +196,20 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_ascii nvram wanmac)
;;
- esr-9753 | \
- ur-326n4g | \
- ur-336un)
- lan_mac=$(mtd_get_mac_binary devdata 16388)
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
-
- m3 |\
- m4 |\
- x5 |\
- x8)
- lan_mac=$(mtd_get_mac_binary factory 4)
- lan_mac=$(macaddr_add "$lan_mac" -1)
- ;;
-
nbg-419n | \
wcr-150gn)
- lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(mtd_get_mac_binary factory 40)
;;
- omni-emb-hpm)
- lan_mac=$(mtd_get_mac_binary factory 40)
- ;;
-
- f5d8235-v2)
- lan_mac=$(mtd_get_mac_binary "u-boot" 262148)
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
-
rt-n56u)
- lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(mtd_get_mac_binary factory 32772)
;;
- tew-691gr)
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(macaddr_add "$lan_mac" 3)
- ;;
-
- tew-692gr)
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(macaddr_add "$lan_mac" 4)
- ;;
-
all0239-3g | \
carambola | \
freestation5 | \
w502u | \
wnce2001)
- lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(mtd_get_mac_binary factory 46)
;;
@@ -289,11 +218,6 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- d105 | \
- wli-tx4-ag300n)
- lan_mac=$(mtd_get_mac_binary factory 4)
- ;;
-
esac
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan $lan_mac
diff --git a/target/linux/ramips/dts/3G-6200N.dts b/target/linux/ramips/dts/3G-6200N.dts
index dc342439ce..0be8c7252c 100644
--- a/target/linux/ramips/dts/3G-6200N.dts
+++ b/target/linux/ramips/dts/3G-6200N.dts
@@ -54,6 +54,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/3G300M.dts b/target/linux/ramips/dts/3G300M.dts
index 62683cc16d..93e864f6a8 100644
--- a/target/linux/ramips/dts/3G300M.dts
+++ b/target/linux/ramips/dts/3G300M.dts
@@ -97,6 +97,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/AIR3GII.dts b/target/linux/ramips/dts/AIR3GII.dts
index f9fcf075e3..1276574e93 100644
--- a/target/linux/ramips/dts/AIR3GII.dts
+++ b/target/linux/ramips/dts/AIR3GII.dts
@@ -56,6 +56,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/ALL0239-3G.dts b/target/linux/ramips/dts/ALL0239-3G.dts
index 335aea85b3..fe1eba960b 100644
--- a/target/linux/ramips/dts/ALL0239-3G.dts
+++ b/target/linux/ramips/dts/ALL0239-3G.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
status = "okay";
ralink,portmap = <0x3e>;
diff --git a/target/linux/ramips/dts/ALL0256N-4M.dts b/target/linux/ramips/dts/ALL0256N-4M.dts
index 7351675b65..e92118f17e 100644
--- a/target/linux/ramips/dts/ALL0256N-4M.dts
+++ b/target/linux/ramips/dts/ALL0256N-4M.dts
@@ -56,6 +56,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
diff --git a/target/linux/ramips/dts/ALL0256N-8M.dts b/target/linux/ramips/dts/ALL0256N-8M.dts
index 8c825a9154..6a704f1a24 100644
--- a/target/linux/ramips/dts/ALL0256N-8M.dts
+++ b/target/linux/ramips/dts/ALL0256N-8M.dts
@@ -56,6 +56,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
diff --git a/target/linux/ramips/dts/ALL5002.dts b/target/linux/ramips/dts/ALL5002.dts
index 60c9c1fc44..827e9df05b 100644
--- a/target/linux/ramips/dts/ALL5002.dts
+++ b/target/linux/ramips/dts/ALL5002.dts
@@ -56,6 +56,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
diff --git a/target/linux/ramips/dts/ARGUS_ATP52B.dts b/target/linux/ramips/dts/ARGUS_ATP52B.dts
index b8e246bb03..fb04f017d5 100644
--- a/target/linux/ramips/dts/ARGUS_ATP52B.dts
+++ b/target/linux/ramips/dts/ARGUS_ATP52B.dts
@@ -75,6 +75,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
diff --git a/target/linux/ramips/dts/ASL26555-16M.dts b/target/linux/ramips/dts/ASL26555-16M.dts
index 8bc98df160..8aeeba84f4 100644
--- a/target/linux/ramips/dts/ASL26555-16M.dts
+++ b/target/linux/ramips/dts/ASL26555-16M.dts
@@ -68,6 +68,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x1e>;
};
diff --git a/target/linux/ramips/dts/ASL26555-8M.dts b/target/linux/ramips/dts/ASL26555-8M.dts
index f1501ebf11..1ddbb1c984 100644
--- a/target/linux/ramips/dts/ASL26555-8M.dts
+++ b/target/linux/ramips/dts/ASL26555-8M.dts
@@ -26,8 +26,8 @@
reg = <0x0 0x30000>;
read-only;
};
- partition@30000 {
- label = "devdata";
+ factory: partition@30000 {
+ label = "factory";
reg = <0x30000 0x10000>;
read-only;
};
@@ -63,6 +63,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x1e>;
};
diff --git a/target/linux/ramips/dts/BC2.dts b/target/linux/ramips/dts/BC2.dts
index 8877743d98..54adbafad6 100644
--- a/target/linux/ramips/dts/BC2.dts
+++ b/target/linux/ramips/dts/BC2.dts
@@ -68,6 +68,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/BR-6425.dts b/target/linux/ramips/dts/BR-6425.dts
index 913df051af..7df63c6583 100644
--- a/target/linux/ramips/dts/BR-6425.dts
+++ b/target/linux/ramips/dts/BR-6425.dts
@@ -25,6 +25,10 @@
#size-cells = <1>;
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/BROADWAY.dts b/target/linux/ramips/dts/BROADWAY.dts
index 3f00ad75be..25e3b89db9 100644
--- a/target/linux/ramips/dts/BROADWAY.dts
+++ b/target/linux/ramips/dts/BROADWAY.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
diff --git a/target/linux/ramips/dts/CARAMBOLA.dts b/target/linux/ramips/dts/CARAMBOLA.dts
index 5c63e0315a..520450a5cc 100644
--- a/target/linux/ramips/dts/CARAMBOLA.dts
+++ b/target/linux/ramips/dts/CARAMBOLA.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
diff --git a/target/linux/ramips/dts/D105.dts b/target/linux/ramips/dts/D105.dts
index c4171c003d..c19e0dabb0 100644
--- a/target/linux/ramips/dts/D105.dts
+++ b/target/linux/ramips/dts/D105.dts
@@ -72,6 +72,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/DIR-300-B1.dts b/target/linux/ramips/dts/DIR-300-B1.dts
index 8efef3c0d9..4623af2a40 100644
--- a/target/linux/ramips/dts/DIR-300-B1.dts
+++ b/target/linux/ramips/dts/DIR-300-B1.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/DIR-300-B7.dts b/target/linux/ramips/dts/DIR-300-B7.dts
index 22c4cb2c6b..492fd4ce8a 100644
--- a/target/linux/ramips/dts/DIR-300-B7.dts
+++ b/target/linux/ramips/dts/DIR-300-B7.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <0x17>;
diff --git a/target/linux/ramips/dts/DIR-320-B1.dts b/target/linux/ramips/dts/DIR-320-B1.dts
index f07e528bf5..34d7944edc 100644
--- a/target/linux/ramips/dts/DIR-320-B1.dts
+++ b/target/linux/ramips/dts/DIR-320-B1.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <0x17>;
diff --git a/target/linux/ramips/dts/DIR-600-B1.dts b/target/linux/ramips/dts/DIR-600-B1.dts
index 2c75465440..e43a0d78f0 100644
--- a/target/linux/ramips/dts/DIR-600-B1.dts
+++ b/target/linux/ramips/dts/DIR-600-B1.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/DIR-610-A1.dts b/target/linux/ramips/dts/DIR-610-A1.dts
index 67c92b469d..e6c104163a 100644
--- a/target/linux/ramips/dts/DIR-610-A1.dts
+++ b/target/linux/ramips/dts/DIR-610-A1.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
status = "okay";
ralink,portmap = <0x2f>;
diff --git a/target/linux/ramips/dts/DIR-615-H1.dts b/target/linux/ramips/dts/DIR-615-H1.dts
index 5cb2beb3e8..13d7f88c70 100644
--- a/target/linux/ramips/dts/DIR-615-H1.dts
+++ b/target/linux/ramips/dts/DIR-615-H1.dts
@@ -60,6 +60,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/DIR-620-A1.dts b/target/linux/ramips/dts/DIR-620-A1.dts
index 649b3abcc1..070edafde1 100644
--- a/target/linux/ramips/dts/DIR-620-A1.dts
+++ b/target/linux/ramips/dts/DIR-620-A1.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/DIR-620-D1.dts b/target/linux/ramips/dts/DIR-620-D1.dts
index 71d3ec2bfd..c8632f067e 100644
--- a/target/linux/ramips/dts/DIR-620-D1.dts
+++ b/target/linux/ramips/dts/DIR-620-D1.dts
@@ -60,6 +60,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts
index 95017d9ccd..d8a035a1cf 100644
--- a/target/linux/ramips/dts/DIR-810L.dts
+++ b/target/linux/ramips/dts/DIR-810L.dts
@@ -77,6 +77,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
gsw@10110000 {
ralink,port4 = "ephy";
diff --git a/target/linux/ramips/dts/ESR-9753.dts b/target/linux/ramips/dts/ESR-9753.dts
index 755196b55b..3760a465e0 100644
--- a/target/linux/ramips/dts/ESR-9753.dts
+++ b/target/linux/ramips/dts/ESR-9753.dts
@@ -77,6 +77,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts
index 36026c2326..e021565176 100644
--- a/target/linux/ramips/dts/F5D8235_V1.dts
+++ b/target/linux/ramips/dts/F5D8235_V1.dts
@@ -55,6 +55,7 @@
ethernet@400000 {
status = "okay";
+ mtd-mac-address = <&factory 0x4>;
port@0 {
ralink,fixed-link = <1000 1 1 1>;
diff --git a/target/linux/ramips/dts/F5D8235_V2.dts b/target/linux/ramips/dts/F5D8235_V2.dts
index 237709f5e4..1b96cea764 100644
--- a/target/linux/ramips/dts/F5D8235_V2.dts
+++ b/target/linux/ramips/dts/F5D8235_V2.dts
@@ -24,7 +24,7 @@
#address-cells = <1>;
#size-cells = <1>;
- partition@0 {
+ uboot: partition@0 {
label = "u-boot";
reg = <0x0 0x50000>;
read-only;
@@ -46,6 +46,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&uboot 0x40004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts
index 5c48103231..bb85bab533 100644
--- a/target/linux/ramips/dts/FONERA20N.dts
+++ b/target/linux/ramips/dts/FONERA20N.dts
@@ -82,6 +82,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts
index 0ec390c4c8..603ec363ea 100644
--- a/target/linux/ramips/dts/FREESTATION5.dts
+++ b/target/linux/ramips/dts/FREESTATION5.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x01>;
};
diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts
index 68e5e8aab8..7496ca5456 100644
--- a/target/linux/ramips/dts/HG255D.dts
+++ b/target/linux/ramips/dts/HG255D.dts
@@ -104,6 +104,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/IP2202.dts b/target/linux/ramips/dts/IP2202.dts
index ea5dc780a3..dc2af40364 100644
--- a/target/linux/ramips/dts/IP2202.dts
+++ b/target/linux/ramips/dts/IP2202.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/M3.dts b/target/linux/ramips/dts/M3.dts
index bae84ce4bf..f3c3aa4d30 100644
--- a/target/linux/ramips/dts/M3.dts
+++ b/target/linux/ramips/dts/M3.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
diff --git a/target/linux/ramips/dts/M4-4M.dts b/target/linux/ramips/dts/M4-4M.dts
index 4522fb8019..2d2ebc47b0 100644
--- a/target/linux/ramips/dts/M4-4M.dts
+++ b/target/linux/ramips/dts/M4-4M.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
diff --git a/target/linux/ramips/dts/M4-8M.dts b/target/linux/ramips/dts/M4-8M.dts
index c8e7ff51ff..23d8449ad6 100644
--- a/target/linux/ramips/dts/M4-8M.dts
+++ b/target/linux/ramips/dts/M4-8M.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts
index f363a573f5..a869427264 100644
--- a/target/linux/ramips/dts/MPRA1.dts
+++ b/target/linux/ramips/dts/MPRA1.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/MPRA2.dts b/target/linux/ramips/dts/MPRA2.dts
index 00c5d112e3..44141418c6 100644
--- a/target/linux/ramips/dts/MPRA2.dts
+++ b/target/linux/ramips/dts/MPRA2.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/MZK-W300NH2.dts b/target/linux/ramips/dts/MZK-W300NH2.dts
index 78c120a5bf..43a98ce97c 100644
--- a/target/linux/ramips/dts/MZK-W300NH2.dts
+++ b/target/linux/ramips/dts/MZK-W300NH2.dts
@@ -54,6 +54,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/NBG-419N.dts b/target/linux/ramips/dts/NBG-419N.dts
index c7d66c410e..07c5b3c356 100644
--- a/target/linux/ramips/dts/NBG-419N.dts
+++ b/target/linux/ramips/dts/NBG-419N.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/NW718.dts b/target/linux/ramips/dts/NW718.dts
index d55f226785..c67b832794 100644
--- a/target/linux/ramips/dts/NW718.dts
+++ b/target/linux/ramips/dts/NW718.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/OMNI-EMB-HPM.dts b/target/linux/ramips/dts/OMNI-EMB-HPM.dts
index 9bceb00128..fa7d515a34 100644
--- a/target/linux/ramips/dts/OMNI-EMB-HPM.dts
+++ b/target/linux/ramips/dts/OMNI-EMB-HPM.dts
@@ -60,6 +60,7 @@
ethernet@10100000 {
phy-handle = <&phy0>;
phy-mode = "rgmii";
+ mtd-mac-address = <&factory 0x28>;
mdio-bus {
status = "okay";
diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts
index ec06feee0c..62e5f720ed 100644
--- a/target/linux/ramips/dts/PSR-680W.dts
+++ b/target/linux/ramips/dts/PSR-680W.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
diff --git a/target/linux/ramips/dts/RT-N13U.dts b/target/linux/ramips/dts/RT-N13U.dts
index b6a649ccdb..ed344858f4 100644
--- a/target/linux/ramips/dts/RT-N13U.dts
+++ b/target/linux/ramips/dts/RT-N13U.dts
@@ -82,6 +82,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/RT-N15.dts b/target/linux/ramips/dts/RT-N15.dts
index 0b9d0d9f54..27b0da97fe 100644
--- a/target/linux/ramips/dts/RT-N15.dts
+++ b/target/linux/ramips/dts/RT-N15.dts
@@ -53,6 +53,7 @@
ethernet@400000 {
status = "okay";
+ mtd-mac-address = <&factory 0x4>;
port@0 {
ralink,fixed-link = <1000 1 1 1>;
diff --git a/target/linux/ramips/dts/RTN56U.dts b/target/linux/ramips/dts/RTN56U.dts
index 6dfe3f480d..ec9163a345 100644
--- a/target/linux/ramips/dts/RTN56U.dts
+++ b/target/linux/ramips/dts/RTN56U.dts
@@ -22,7 +22,8 @@
};
ethernet@10100000 {
- port@0 {
+ mtd-mac-address = <&factory 0x4>;
+ port@0 {
ralink,fixed-link = <1000 1 1 1>;
};
};
diff --git a/target/linux/ramips/dts/SL-R7205.dts b/target/linux/ramips/dts/SL-R7205.dts
index 589fd10fa2..24bf940379 100644
--- a/target/linux/ramips/dts/SL-R7205.dts
+++ b/target/linux/ramips/dts/SL-R7205.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
diff --git a/target/linux/ramips/dts/TEW-691GR.dts b/target/linux/ramips/dts/TEW-691GR.dts
index 98d45fc530..1d6152967d 100644
--- a/target/linux/ramips/dts/TEW-691GR.dts
+++ b/target/linux/ramips/dts/TEW-691GR.dts
@@ -22,6 +22,7 @@
};
ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
port@0 {
phy-handle = <&phy0>;
phy-mode = "rgmii";
diff --git a/target/linux/ramips/dts/TEW-692GR.dts b/target/linux/ramips/dts/TEW-692GR.dts
index 6c07c7760f..3d7dc9fdf2 100644
--- a/target/linux/ramips/dts/TEW-692GR.dts
+++ b/target/linux/ramips/dts/TEW-692GR.dts
@@ -23,6 +23,7 @@
ethernet@10100000 {
status = "okay";
+ mtd-mac-address = <&factory 0x28>;
port@0 {
phy-handle = <&phy0>;
phy-mode = "rgmii";
diff --git a/target/linux/ramips/dts/UR-326N4G.dts b/target/linux/ramips/dts/UR-326N4G.dts
index d97ca05ef9..4af10bb8f4 100644
--- a/target/linux/ramips/dts/UR-326N4G.dts
+++ b/target/linux/ramips/dts/UR-326N4G.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/UR-336UN.dts b/target/linux/ramips/dts/UR-336UN.dts
index b1377036cc..5ce7fa9efd 100644
--- a/target/linux/ramips/dts/UR-336UN.dts
+++ b/target/linux/ramips/dts/UR-336UN.dts
@@ -25,6 +25,10 @@
#size-cells = <1>;
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/W150M.dts b/target/linux/ramips/dts/W150M.dts
index 76ad658437..f3ab7191ca 100644
--- a/target/linux/ramips/dts/W150M.dts
+++ b/target/linux/ramips/dts/W150M.dts
@@ -93,6 +93,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/W306R_V20.dts b/target/linux/ramips/dts/W306R_V20.dts
index 16d9ad4c3a..3f57b35bd8 100644
--- a/target/linux/ramips/dts/W306R_V20.dts
+++ b/target/linux/ramips/dts/W306R_V20.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
diff --git a/target/linux/ramips/dts/W502U.dts b/target/linux/ramips/dts/W502U.dts
index 54e8d58ed2..d11a7adedd 100644
--- a/target/linux/ramips/dts/W502U.dts
+++ b/target/linux/ramips/dts/W502U.dts
@@ -1,3 +1,7 @@
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
/dts-v1/;
/include/ "rt3050.dtsi"
@@ -52,6 +56,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
diff --git a/target/linux/ramips/dts/WCR150GN.dts b/target/linux/ramips/dts/WCR150GN.dts
index 601883d24d..e59fc8d745 100644
--- a/target/linux/ramips/dts/WCR150GN.dts
+++ b/target/linux/ramips/dts/WCR150GN.dts
@@ -77,6 +77,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
diff --git a/target/linux/ramips/dts/WL-351.dts b/target/linux/ramips/dts/WL-351.dts
index bc122943d4..1e6705c02c 100644
--- a/target/linux/ramips/dts/WL-351.dts
+++ b/target/linux/ramips/dts/WL-351.dts
@@ -48,6 +48,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
ralink,fct2 = <0x0002500c>;
diff --git a/target/linux/ramips/dts/WLI-TX4-AG300N.dts b/target/linux/ramips/dts/WLI-TX4-AG300N.dts
index 62c2a799a6..0ea5e29bc2 100644
--- a/target/linux/ramips/dts/WLI-TX4-AG300N.dts
+++ b/target/linux/ramips/dts/WLI-TX4-AG300N.dts
@@ -52,6 +52,7 @@
ethernet@400000 {
status = "okay";
+ mtd-mac-address = <&factory 0x4>;
port@0 {
ralink,fixed-link = <1000 1 1 1>;
diff --git a/target/linux/ramips/dts/WMR300.dts b/target/linux/ramips/dts/WMR300.dts
index dbee9ad083..56cf6a60f1 100644
--- a/target/linux/ramips/dts/WMR300.dts
+++ b/target/linux/ramips/dts/WMR300.dts
@@ -49,6 +49,7 @@
};
ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
ralink,port-map = "wllll";
};
diff --git a/target/linux/ramips/dts/WNCE2001.dts b/target/linux/ramips/dts/WNCE2001.dts
index bbf6625bf6..10910afe31 100644
--- a/target/linux/ramips/dts/WNCE2001.dts
+++ b/target/linux/ramips/dts/WNCE2001.dts
@@ -73,6 +73,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
gpio-leds {
compatible = "gpio-leds";
power-green {
diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts
index 0a4f1b3684..a19bf4dc8e 100644
--- a/target/linux/ramips/dts/X5.dts
+++ b/target/linux/ramips/dts/X5.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
diff --git a/target/linux/ramips/dts/X8.dts b/target/linux/ramips/dts/X8.dts
index b7591dec20..cadbc3afdd 100644
--- a/target/linux/ramips/dts/X8.dts
+++ b/target/linux/ramips/dts/X8.dts
@@ -52,6 +52,10 @@
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;