[LEDE-DEV] [PATCH] ramips: WNDR3700v5 fix mtd partitions and radios

L. D. Pinney ldpinney at gmail.com
Fri Dec 16 16:59:53 PST 2016


Fix the mtd partition layout and enable both radios in the dts

Signed-off-by: L. D. Pinney <ldpinney at gmail.com>
Tested-by Andrius Å tikonas <andrius AT stikonas.eu>

---

diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts
index b9ca613..bb879a1 100644
--- a/target/linux/ramips/dts/WNDR3700V5.dts
+++ b/target/linux/ramips/dts/WNDR3700V5.dts
@@ -81,6 +81,7 @@
 		partition at 0 {
 			label = "u-boot";
 			reg = <0x0 0x30000>;
+			read-only;
 		};
 
 		partition at 30000 {
@@ -97,7 +98,7 @@
 
 		partition at 50000 {
 			label = "firmware";
-			reg = <0x50000 0xfb0000>;
+			reg = <0x50000 0xee0000>;
 		};
 	};
 };
@@ -109,16 +110,16 @@
 		mt76 at 0,0 {
 			reg = <0x0000 0 0 0 0>;
 			device_type = "pci";
-			mediatek,mtd-eeprom = <&factory 0x0004>;
+			mediatek,mtd-eeprom = <&factory 0x8000>;
 			mediatek,2ghz = <0>;
 		};
 	};
 
-	pcie2 {
-		mt76 at 2,0 {
-			reg = <0x1000 0 0 0 0>;
+	pcie1 {
+		mt76 at 1,0 {
+			reg = <0x0000 0 0 0 0>;
 			device_type = "pci";
-			mediatek,mtd-eeprom = <&factory 0x8004>;
+			mediatek,mtd-eeprom = <&factory 0x0000>;
 			mediatek,5ghz = <0>;
 		};
 	};



More information about the Lede-dev mailing list