aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-08-25 21:16:24 +0200
committerMathias Kresin <dev@kresin.me>2016-11-09 20:23:00 +0100
commitcc5c8f681e05f18678c8b10b9f747689e875ceaf (patch)
treed9f9d8986460ee0b471816882060fe3eab20e574 /target/linux
parentd8dd207ea6f299cfcaef4899f1cade375e694dd5 (diff)
downloadupstream-cc5c8f681e05f18678c8b10b9f747689e875ceaf.tar.gz
upstream-cc5c8f681e05f18678c8b10b9f747689e875ceaf.tar.bz2
upstream-cc5c8f681e05f18678c8b10b9f747689e875ceaf.zip
ramips: add TEW-691GR/TEW-692GR 2.4 GHz interface mac addresses
Assign an unused MAC addresses to the 2.4GHz wifi interface as it was originally planed but not possible. The MAC address numbering of the TEW-691GR changes to the following pattern: LAN: AA:BB:CC:DD:EE:0C WIFI: AA:BB:CC:DD:EE:0D WAN: AA:BB:CC:DD:EE:0F The MAC address numbering of the TEW-692GR changes to the following pattern: LAN: AA:BB:CC:DD:EE:e4 WAN: AA:BB:CC:DD:EE:e5 2.4GHz: AA:BB:CC:DD:EE:e7 5 GHz: AA:BB:CC:DD:EE:e8 Set the label and compatible string for the TEW-692GR PCIe wireless according to the the PCI binding documentation. Use the wifi@0,0 label and the pci0,0 compatible string since the PCI vendor and device id is unknown. It should work anyway since the compatible string isn't evaluated (yet). Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/TEW-691GR.dts2
-rw-r--r--target/linux/ramips/dts/TEW-692GR.dts6
2 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/TEW-691GR.dts b/target/linux/ramips/dts/TEW-691GR.dts
index b1f7320851..e92db1ecb2 100644
--- a/target/linux/ramips/dts/TEW-691GR.dts
+++ b/target/linux/ramips/dts/TEW-691GR.dts
@@ -107,4 +107,6 @@
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
+ mtd-mac-address = <&factory 0x4>;
+ mtd-mac-address-increment = <1>;
};
diff --git a/target/linux/ramips/dts/TEW-692GR.dts b/target/linux/ramips/dts/TEW-692GR.dts
index 1a56710e52..2c9313f200 100644
--- a/target/linux/ramips/dts/TEW-692GR.dts
+++ b/target/linux/ramips/dts/TEW-692GR.dts
@@ -131,8 +131,8 @@
pci-bridge@1 {
status = "okay";
- wmac@0,0 {
- compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
+ wifi@0,0 {
+ compatible = "pci0,0";
reg = < 0x10000 0 0 0 0 >;
ralink,2ghz = <0>;
};
@@ -144,4 +144,6 @@
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
+ mtd-mac-address = <&factory 0x4>;
+ mtd-mac-address-increment = <3>;
};