bcm63xx: R5010UNv2: fix flash partitions for 16MB flash
authorDaniel González Cabanelas <dgcbueu@gmail.com>
Mon, 22 Jun 2020 19:44:44 +0000 (21:44 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 11 Jul 2020 13:47:46 +0000 (15:47 +0200)
The router Nucom R5010UN v2 has the partitions defined for a 8MB flash,
but the flash chip is 16MB size. We are wasting half of the flash.

Fix it and use generic names for partitions.

Fixes: 474cde61234c ("brcm63xx: probe SPI flash through DT")
Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts

index 639cef3a7ef2f8756470447a587cf7c40c34f86d..365a4552f25d2a914ccf1e03cac4edadde2139c1 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       cfe@0 {
+                       partition@0 {
                                reg = <0x000000 0x010000>;
                                label = "cfe";
                                read-only;
                        };
 
-                       linux@10000 {
-                               reg = <0x010000 0x7e0000>;
+                       partition@10000 {
+                               reg = <0x010000 0xfe0000>;
                                label = "linux";
                                compatible = "brcm,bcm963xx-imagetag";
                        };
 
-                       nvram@7f0000 {
-                               reg = <0x7f0000 0x010000>;
+                       partition@ff0000 {
+                               reg = <0xff0000 0x010000>;
                                label = "nvram";
                        };
                };