]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: armada-385-linksys: partition layout is board specific
authorRalph Sennhauser <ralph.sennhauser@gmail.com>
Sun, 21 May 2017 12:48:58 +0000 (14:48 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Sat, 17 Jun 2017 06:16:46 +0000 (08:16 +0200)
Move the partition layout to individual boards. The Linksys WRT 3200 ACM
(Rango) comes with a 256MiB nand flash chip and different layout.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/armada-385-linksys-caiman.dts
arch/arm/boot/dts/armada-385-linksys-cobra.dts
arch/arm/boot/dts/armada-385-linksys-shelby.dts
arch/arm/boot/dts/armada-385-linksys.dtsi

index 05e854a14e0c4ae019c0a45b0405b8fb24aa09ba..ee669ae61011f9c8a1e761610741e26544f0e8f3 100644 (file)
                label = "caiman:white:sata";
        };
 };
+
+&nand {
+       /* 128MiB */
+
+       partition@0 {
+               label = "u-boot";
+               reg = <0x0000000 0x200000>;  /* 2MiB */
+               read-only;
+       };
+
+       partition@100000 {
+               label = "u_env";
+               reg = <0x200000 0x40000>;    /* 256KiB */
+       };
+
+       partition@140000 {
+               label = "s_env";
+               reg = <0x240000 0x40000>;    /* 256KiB */
+       };
+
+       partition@900000 {
+               label = "devinfo";
+               reg = <0x900000 0x100000>;   /* 1MiB */
+               read-only;
+       };
+
+       /* kernel1 overlaps with rootfs1 by design */
+       partition@a00000 {
+               label = "kernel1";
+               reg = <0xa00000 0x2800000>;  /* 40MiB */
+       };
+
+       partition@1000000 {
+               label = "rootfs1";
+               reg = <0x1000000 0x2200000>;  /* 34MiB */
+       };
+
+       /* kernel2 overlaps with rootfs2 by design */
+       partition@3200000 {
+               label = "kernel2";
+               reg = <0x3200000 0x2800000>; /* 40MiB */
+       };
+
+       partition@3800000 {
+               label = "rootfs2";
+               reg = <0x3800000 0x2200000>; /* 34MiB */
+       };
+
+       /*
+        * 38MiB, last MiB is for the BBT, not writable
+        */
+       partition@5a00000 {
+               label = "syscfg";
+               reg = <0x5a00000 0x2600000>;
+       };
+
+       /*
+        * Unused area between "s_env" and "devinfo".
+        * Moved here because otherwise the renumbered
+        * partitions would break the bootloader
+        * supplied bootargs
+        */
+       partition@180000 {
+               label = "unused_area";
+               reg = <0x280000 0x680000>;   /* 6.5MiB */
+       };
+};
index 5b1662b95a5893cb515f99de8eed9b7db0da3a11..5169ca89c55ac13ee0834727f317580615de44fd 100644 (file)
                label = "cobra:white:sata";
        };
 };
+
+&nand {
+       /* 128MiB */
+
+       partition@0 {
+               label = "u-boot";
+               reg = <0x0000000 0x200000>;  /* 2MiB */
+               read-only;
+       };
+
+       partition@100000 {
+               label = "u_env";
+               reg = <0x200000 0x40000>;    /* 256KiB */
+       };
+
+       partition@140000 {
+               label = "s_env";
+               reg = <0x240000 0x40000>;    /* 256KiB */
+       };
+
+       partition@900000 {
+               label = "devinfo";
+               reg = <0x900000 0x100000>;   /* 1MiB */
+               read-only;
+       };
+
+       /* kernel1 overlaps with rootfs1 by design */
+       partition@a00000 {
+               label = "kernel1";
+               reg = <0xa00000 0x2800000>;  /* 40MiB */
+       };
+
+       partition@1000000 {
+               label = "rootfs1";
+               reg = <0x1000000 0x2200000>;  /* 34MiB */
+       };
+
+       /* kernel2 overlaps with rootfs2 by design */
+       partition@3200000 {
+               label = "kernel2";
+               reg = <0x3200000 0x2800000>; /* 40MiB */
+       };
+
+       partition@3800000 {
+               label = "rootfs2";
+               reg = <0x3800000 0x2200000>; /* 34MiB */
+       };
+
+       /*
+        * 38MiB, last MiB is for the BBT, not writable
+        */
+       partition@5a00000 {
+               label = "syscfg";
+               reg = <0x5a00000 0x2600000>;
+       };
+
+       /*
+        * Unused area between "s_env" and "devinfo".
+        * Moved here because otherwise the renumbered
+        * partitions would break the bootloader
+        * supplied bootargs
+        */
+       partition@180000 {
+               label = "unused_area";
+               reg = <0x280000 0x680000>;   /* 6.5MiB */
+       };
+};
index a90937104b2bbed2658c36bdca22e3c4c21934e3..94aa35bc0bffd0b1aec94b9057080dc2c38bafc1 100644 (file)
                label = "shelby:white:sata";
        };
 };
+
+&nand {
+       /* 128MiB */
+
+       partition@0 {
+               label = "u-boot";
+               reg = <0x0000000 0x200000>;  /* 2MiB */
+               read-only;
+       };
+
+       partition@100000 {
+               label = "u_env";
+               reg = <0x200000 0x40000>;    /* 256KiB */
+       };
+
+       partition@140000 {
+               label = "s_env";
+               reg = <0x240000 0x40000>;    /* 256KiB */
+       };
+
+       partition@900000 {
+               label = "devinfo";
+               reg = <0x900000 0x100000>;   /* 1MiB */
+               read-only;
+       };
+
+       /* kernel1 overlaps with rootfs1 by design */
+       partition@a00000 {
+               label = "kernel1";
+               reg = <0xa00000 0x2800000>;  /* 40MiB */
+       };
+
+       partition@1000000 {
+               label = "rootfs1";
+               reg = <0x1000000 0x2200000>;  /* 34MiB */
+       };
+
+       /* kernel2 overlaps with rootfs2 by design */
+       partition@3200000 {
+               label = "kernel2";
+               reg = <0x3200000 0x2800000>; /* 40MiB */
+       };
+
+       partition@3800000 {
+               label = "rootfs2";
+               reg = <0x3800000 0x2200000>; /* 34MiB */
+       };
+
+       /*
+        * 38MiB, last MiB is for the BBT, not writable
+        */
+       partition@5a00000 {
+               label = "syscfg";
+               reg = <0x5a00000 0x2600000>;
+       };
+
+       /*
+        * Unused area between "s_env" and "devinfo".
+        * Moved here because otherwise the renumbered
+        * partitions would break the bootloader
+        * supplied bootargs
+        */
+       partition@180000 {
+               label = "unused_area";
+               reg = <0x280000 0x680000>;   /* 6.5MiB */
+       };
+};
index 4049eaf80638fbe5f386b82fde97da09270cb4e8..485abffb43686bd47a6f015157ba8f8c90a05c58 100644 (file)
 };
 
 &nand {
+       /* 128MiB or 256MiB */
        status = "okay";
        num-cs = <1>;
        marvell,nand-keep-config;
        marvell,nand-enable-arbiter;
        nand-on-flash-bbt;
-
-       partition@0 {
-               label = "u-boot";
-               reg = <0x0000000 0x200000>;  /* 2MiB */
-               read-only;
-       };
-
-       partition@100000 {
-               label = "u_env";
-               reg = <0x200000 0x40000>;    /* 256KiB */
-       };
-
-       partition@140000 {
-               label = "s_env";
-               reg = <0x240000 0x40000>;    /* 256KiB */
-       };
-
-       partition@900000 {
-               label = "devinfo";
-               reg = <0x900000 0x100000>;   /* 1MiB */
-               read-only;
-       };
-
-       /* kernel1 overlaps with rootfs1 by design */
-       partition@a00000 {
-               label = "kernel1";
-               reg = <0xa00000 0x2800000>;  /* 40MiB */
-       };
-
-       partition@1000000 {
-               label = "rootfs1";
-               reg = <0x1000000 0x2200000>;  /* 34MiB */
-       };
-
-       /* kernel2 overlaps with rootfs2 by design */
-       partition@3200000 {
-               label = "kernel2";
-               reg = <0x3200000 0x2800000>; /* 40MiB */
-       };
-
-       partition@3800000 {
-               label = "rootfs2";
-               reg = <0x3800000 0x2200000>; /* 34MiB */
-       };
-
-       /*
-        * 38MiB, last MiB is for the BBT, not writable
-        */
-       partition@5a00000 {
-               label = "syscfg";
-               reg = <0x5a00000 0x2600000>;
-       };
-
-       /*
-        * Unused area between "s_env" and "devinfo".
-        * Moved here because otherwise the renumbered
-        * partitions would break the bootloader
-        * supplied bootargs
-        */
-       partition@180000 {
-               label = "unused_area";
-               reg = <0x280000 0x680000>;   /* 6.5MiB */
-       };
 };
 
 &mdio {