ramips: WNDR3700v5 fix mtd partitions and radios
authorL. D. Pinney <ldpinney@gmail.com>
Sat, 17 Dec 2016 00:59:53 +0000 (18:59 -0600)
committerJohn Crispin <john@phrozen.org>
Tue, 20 Dec 2016 08:35:35 +0000 (09:35 +0100)
Fix the mtd partition layout and enable both radios in the dts

Tested-by Andrius Štikonas <andrius@stikonas.eu>
Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
target/linux/ramips/dts/WNDR3700V5.dts

index b9ca6135a3de4ce74cd5be07a77c67f0630ac042..bb879a1441eac5b4f34170bb412abce89348e934 100644 (file)
@@ -81,6 +81,7 @@
                partition@0 {
                        label = "u-boot";
                        reg = <0x0 0x30000>;
                partition@0 {
                        label = "u-boot";
                        reg = <0x0 0x30000>;
+                       read-only;
                };
 
                partition@30000 {
                };
 
                partition@30000 {
@@ -97,7 +98,7 @@
 
                partition@50000 {
                        label = "firmware";
 
                partition@50000 {
                        label = "firmware";
-                       reg = <0x50000 0xfb0000>;
+                       reg = <0x50000 0xee0000>;
                };
        };
 };
                };
        };
 };
                mt76@0,0 {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                mt76@0,0 {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
-                       mediatek,mtd-eeprom = <&factory 0x0004>;
+                       mediatek,mtd-eeprom = <&factory 0x8000>;
                        mediatek,2ghz = <0>;
                };
        };
 
                        mediatek,2ghz = <0>;
                };
        };
 
-       pcie2 {
-               mt76@2,0 {
-                       reg = <0x1000 0 0 0 0>;
+       pcie1 {
+               mt76@1,0 {
+                       reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        device_type = "pci";
-                       mediatek,mtd-eeprom = <&factory 0x8004>;
+                       mediatek,mtd-eeprom = <&factory 0x0000>;
                        mediatek,5ghz = <0>;
                };
        };
                        mediatek,5ghz = <0>;
                };
        };